Maldela / fancontrol-gui

GUI for Fancontrol. It uses the KAuth module of the KDE Frameworks 5 to write the generated config file. Furthermore it communicates with systemd via dbus to control the fancontrol service. If you want to compile without systemd support set the -DNO_SYSTEMD option.
GNU General Public License v2.0
309 stars 31 forks source link

CMAKE_INSTALL_PREFIX not honored (install failure) #55

Open hasufell opened 3 years ago

hasufell commented 3 years ago
cmake .. -DCMAKE_INSTALL_PREFIX=/home/hasufell/.local/ -DBUILD_KCM=on -DBUILD_PLASMOID=on
make -j
make install

Result:

[  1%] Generating ts...
[  1%] Built target tsfiles-5baa8c25129a54c60e9bf00052860100
[  2%] Generating mo...
[  2%] Built target pofiles-5baa8c25129a54c60e9bf00052860100
[  4%] actions for org.kde.fancontrol.gui.helper
[  5%] Built target org.kde.fancontrol.gui.helper.policy-customtarget
[  7%] Automatic MOC for target fancontrol_gui-helper
[  7%] Built target fancontrol_gui-helper_autogen
[ 11%] Built target fancontrol_gui-helper
[ 12%] Built target org.kde.fancontrol.gui-genericqml-metadata-json
[ 14%] Automatic MOC for target fancontrol_gui
[ 14%] Built target fancontrol_gui_autogen
[ 20%] Built target fancontrol_gui
[ 21%] Built target org.kde.fancontrol.kcm-kcms-metadata-json
[ 22%] Automatic MOC for target kcm_fancontrol
[ 24%] Built target kcm_fancontrol_autogen
[ 28%] Built target kcm_fancontrol
[ 30%] Built target org.kde.fancontrol.plasmoid-plasmoids-metadata-json
[ 31%] Automatic MOC for target fancontrol_qml_plugin
[ 31%] Built target fancontrol_qml_plugin_autogen
[ 51%] Built target fancontrol_qml_plugin
[ 52%] Automatic MOC for target fancontrol_test_lib
[ 52%] Built target fancontrol_test_lib_autogen
[ 77%] Built target fancontrol_test_lib
[ 78%] Automatic MOC for target loadertest
[ 78%] Built target loadertest_autogen
[ 82%] Built target loadertest
[ 84%] Automatic MOC for target pwmfantest
[ 84%] Built target pwmfantest_autogen
[ 88%] Built target pwmfantest
[ 90%] Automatic MOC for target fantest
[ 90%] Built target fantest_autogen
[ 94%] Built target fantest
[ 95%] Automatic MOC for target temptest
[ 95%] Built target temptest_autogen
[100%] Built target temptest
Install the project...
-- Install configuration: "Debug"
-- Installing: /home/hasufell/.local/share/icons/hicolor/scalable/apps/org.kde.fancontrol.gui.svg
-- Up-to-date: /home/hasufell/.local/share/locale
-- Up-to-date: /home/hasufell/.local/share/locale/de
-- Up-to-date: /home/hasufell/.local/share/locale/de/LC_MESSAGES
-- Installing: /home/hasufell/.local/share/locale/de/LC_MESSAGES/kcm_fancontrol.mo
-- Up-to-date: /home/hasufell/.local/share/locale/hu
-- Up-to-date: /home/hasufell/.local/share/locale/hu/LC_MESSAGES
-- Installing: /home/hasufell/.local/share/locale/hu/LC_MESSAGES/kcm_fancontrol.mo
-- Installing: /usr/libexec/kf5/kauth/fancontrol_gui-helper
CMake Error at helper/cmake_install.cmake:60 (file):
  file INSTALL cannot copy file
  "/home/hasufell/git/fancontrol-gui/build/bin/fancontrol_gui-helper" to
  "/usr/libexec/kf5/kauth/fancontrol_gui-helper": Permission denied.
Call Stack (most recent call first):
  cmake_install.cmake:68 (include)

make: *** [Makefile:127: install] Error 1
Maldela commented 3 years ago

The KAuth helper files need to be installed in their default directories under /usr. Nothing I can do about that. I am developing a successor to fancontrol and fancontrol-gui, though, that won't need KAuth anymore.