I'm trying to make it work as well. No success yet, but I'll post here how far I've got. First, I had to install the package extra-cmake-modules, maybe this should be build dependency.
Then I had to modify CMakeLists.txt to add /usr/share/ECM/find-modules to CMAKE_MODULE_PATH, but to make it work I had to move the Set up CMake module path to run before the find_package calls:
# ...
# fix for KF6
set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake" "/usr/share/ECM/find-modules")
# Find required packages
find_package(Qt6 CONFIG REQUIRED COMPONENTS Core Network Widgets)
find_package(ECM REQUIRED NO_MODULE)
find_package(KF6Config REQUIRED)
find_package(KF6CoreAddons REQUIRED)
find_package(KF6KIO REQUIRED)
find_package(KF6 REQUIRED COMPONENTS WidgetsAddons)
# Set up CMake module path
set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ${ECM_KDE_MODULE_DIR} "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
# ...
Now I see the (happy) message The following REQUIRED packages have been found... but now I see new erros:
A missing package:
-- The following OPTIONAL packages have not been found:
* Qt6QmlCompilerPlusPrivateTools (required version >= 6.9.0)
And lack of destination:
CMake Error at CMakeLists.txt:73 (install):
install FILES given no DESTINATION!
CMake Error at CMakeLists.txt:74 (install):
install TARGETS given no LIBRARY DESTINATION for module target
"fileitemactioninsyncplugin".
The install lines seem fine, but the env vars are probably not loading properly.
install(FILES ${INSYNC_ACTION_PLUGIN}.desktop DESTINATION ${SERVICES_INSTALL_DIR})
install(TARGETS ${INSYNC_ACTION_PLUGIN} DESTINATION ${PLUGIN_INSTALL_DIR})
Pinned Comments
Xavier commented on 2021-12-16 18:22 (UTC) (edited on 2022-11-07 17:59 (UTC) by Xavier)
The version of this package is generally mismatched with respect to the official Insync package, please check the version on the website specific for Dolphin before flagging it as out of sync.