We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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
PLUGINDIR
cmake -DPLUGINDIR=/some/where/else
qt5ct
--- 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 ...")
The text was updated successfully, but these errors were encountered:
Allow to override Qt plugin directory
db58e84
The qtpaths-based deduction code doesn't really work for all systems, notably NixOS. Fixes trialuser02#9
ff9ecf8
Successfully merging a pull request may close this issue.
this is on nixos, where qtbase is read only
fix: allow to set
PLUGINDIR
withcmake -DPLUGINDIR=/some/where/else
also
qt5ct
allows to setPLUGINDIR
The text was updated successfully, but these errors were encountered: