Open dromer opened 2 years ago
Maybe your version of cmake is a bit old?
@dromer what distro are you using?
Archlinux:
cmake version 3.23.2
Debian stable:
cmake version 3.18.4
@abique My cmake
verison is 3.22.2
(Fedora 36), which is like, one minor version older and I am able to build properly. I think @abique is maintaining the repo - it would be better to use a distro that isn't bleeding-edge. Maybe that will prevent problems for users who have stable or older Linux distros?
Or @dromer , another fix would be to build cmake
manually by yourself. That should do the job too.
Maybe you can download a build from the github actions? https://github.com/free-audio/clap-plugins/actions/runs/2231777715
Ah it could be that it requires a glibc that is too recent for your system?
My whole point was to do a build on a stable distro. If it builds and runs on debian it'll build and run pretty much everywhere.
ldd (Debian GLIBC 2.31-13+deb11u3) 2.31
I updated to 3.24.2
from bullseye-backports .. now it gets stuck on qt6 dependencies:
-- Could NOT find Qt6Qml (missing: Qt6Qml_DIR)
-- Could NOT find Qt6Quick (missing: Qt6Quick_DIR)
CMake Error at CMakeLists.txt:15 (find_package):
Found package configuration file:
/usr/lib/x86_64-linux-gnu/cmake/Qt6/Qt6Config.cmake
but it set Qt6_FOUND to FALSE so package "Qt6" is considered to be NOT
FOUND. Reason given by package:
Failed to find Qt component "Qml".
Expected Config file at
"/usr/lib/x86_64-linux-gnu/cmake/Qt6Qml/Qt6QmlConfig.cmake" does NOT exist
Failed to find Qt component "Quick".
Expected Config file at
"/usr/lib/x86_64-linux-gnu/cmake/Qt6Quick/Qt6QuickConfig.cmake" does NOT
exist
Also tried with vcpkg which also fails on qt: error: building qtbase:x64-linux-cp failed with: BUILD_FAILED
ERROR: Feature "xcb": Forcing to "ON" breaks its condition:
QT_FEATURE_thread AND TARGET XCB::XCB AND TEST_xcb_syslibs AND QT_FEATURE_xkbcommon_x11
Condition values dump:
QT_FEATURE_thread = "ON"
TARGET XCB::XCB found
TEST_xcb_syslibs = "FALSE"
QT_FEATURE_xkbcommon_x11 not evaluated
CMake Error at cmake/QtBuildInformation.cmake:163 (message):
Check the configuration messages for an error that has occurred.
Call Stack (most recent call first):
cmake/QtBuildInformation.cmake:20 (qt_configure_print_summary)
cmake/QtBuildInternals/QtBuildInternalsConfig.cmake:501 (qt_print_feature_summary)
CMakeLists.txt:193 (qt_build_repo_end)
-- Configuring incomplete, errors occurred!
See also "/home/dreamer/Sources/_audio/_clap/clap-plugins/vcpkg/buildtrees/qtbase/x64-linux-cp-rel/CMakeFiles/CMakeOutput.log".
See also "/home/dreamer/Sources/_audio/_clap/clap-plugins/vcpkg/buildtrees/qtbase/x64-linux-cp-rel/CMakeFiles/CMakeError.log".
ninja: build stopped: subcommand failed.
Ok, I needed package qt6-declarative-dev
for this.
Trying to load these into bitwig none of them have a UI (also CLAP SVF
crashes everything).
[edit: additional requirements for debian: qml6-module-qtqml-workerscript qml6-module-qtquick qml6-module-qtquick-controls qml6-module-qtquick-layouts qml6-module-qtquick-templates
The build instructions for cmake seem to be incorrect:
When I try the build script using vcpkg it also fails: