Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot copy file libqt6ct.so #9

Open
milahu opened this issue Jan 30, 2022 · 0 comments · May be fixed by #44
Open

cannot copy file libqt6ct.so #9

milahu opened this issue Jan 30, 2022 · 0 comments · May be fixed by #44

Comments

@milahu
Copy link

milahu commented Jan 30, 2022

this is on nixos, where qtbase is read only

-- Installing: /nix/store/wzms2f5b1014knb4dl72s66rmk3d2401-qtbase-6.2.2-bin/lib/qt-6.2.2/plugins/platformthemes/libqt6ct.so
CMake Error at src/qt6ct-qtplugin/cmake_install.cmake:60 (file):
  file INSTALL cannot copy file
  "/build/source/build/src/qt6ct-qtplugin/libqt6ct.so" to
  "/nix/store/wzms2f5b1014knb4dl72s66rmk3d2401-qtbase-6.2.2-bin/lib/qt-6.2.2/plugins/platformthemes/libqt6ct.so":
  Permission denied.
Call Stack (most recent call first):
  cmake_install.cmake:52 (include)


make: *** [Makefile:100: install] Error 1

fix: allow to set PLUGINDIR with cmake -DPLUGINDIR=/some/where/else
also qt5ct allows to set PLUGINDIR

--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -39,8 +39,10 @@
     message(FATAL_ERROR "Could NOT find lrelease executable")
 endif()
 
-#execute_process(COMMAND ${QT_QTPATHS_EXECUTABLE} -query QT_INSTALL_PLUGINS OUTPUT_VARIABLE PLUGINDIR OUTPUT_STRIP_TRAILING_WHITESPACE)
-execute_process(COMMAND ${QT_QTPATHS_EXECUTABLE} --plugin-dir OUTPUT_VARIABLE PLUGINDIR OUTPUT_STRIP_TRAILING_WHITESPACE)
+if(NOT DEFINED PLUGINDIR)
+    #execute_process(COMMAND ${QT_QTPATHS_EXECUTABLE} -query QT_INSTALL_PLUGINS OUTPUT_VARIABLE PLUGINDIR OUTPUT_STRIP_TRAILING_WHITESPACE)
+    execute_process(COMMAND ${QT_QTPATHS_EXECUTABLE} --plugin-dir OUTPUT_VARIABLE PLUGINDIR OUTPUT_STRIP_TRAILING_WHITESPACE)
+endif()
 message(STATUS "Plugin path: " ${PLUGINDIR})
 
 message(STATUS "Generating translations ...")
@ilya-fedin ilya-fedin linked a pull request Oct 20, 2024 that will close this issue
ilya-fedin added a commit to ilya-fedin/qt6ct that referenced this issue Oct 21, 2024
The qtpaths-based deduction code doesn't really work for all systems, notably NixOS.

Fixes trialuser02#9
ilya-fedin added a commit to ilya-fedin/qt6ct that referenced this issue Oct 21, 2024
The qtpaths-based deduction code doesn't really work for all systems, notably NixOS.

Fixes trialuser02#9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant