Unable to build on Linux (debian stable)
The build instructions for cmake seem to be incorrect:
clap-plugins$ cmake --preset ninja-system
CMake Error: The source directory "/home/dreamer/Sources/_audio/_free-audio/clap-plugins/ninja-system" does not exist.
When I try the build script using vcpkg it also fails:
error: building qtbase:x64-linux-cp failed with: BUILD_FAILED
[DEBUG] 612638: popen(/usr/bin/git --git-dir=/home/dreamer/Sources/_audio/_free-audio/clap-plugins/vcpkg/.git --work-tree=/home/dreamer/Sources/_audio/_free-audio/clap-plugins/vcpkg/.git -c core.autocrlf=false show "--pretty=format:%h %cd (%cr)" -s --date=short HEAD 2>&1)
[DEBUG] 612638: cmd_execute_and_stream_data() returned 0 after 4017 us
[DEBUG] 612638: popen(/usr/bin/git --git-dir=/home/dreamer/Sources/_audio/_free-audio/clap-plugins/vcpkg/.git --work-tree=/home/dreamer/Sources/_audio/_free-audio/clap-plugins/vcpkg/.git -c core.autocrlf=false show "--pretty=format:%h %cd (%cr)" -s --date=short HEAD 2>&1)
[DEBUG] 612638: cmd_execute_and_stream_data() returned 0 after 3811 us
Please ensure you're using the latest port files with `git pull` and `vcpkg update`.
Then check for known issues at:
https://github.com/microsoft/vcpkg/issues?q=is%3Aissue+is%3Aopen+in%3Atitle+qtbase
You can submit a new issue at:
https://github.com/microsoft/vcpkg/issues/new?template=report-package-build-failure.md&title=[qtbase]+Build+error
Include '[qtbase] Build error' in your bug report title, the following version information in your bug description, and attach any relevant failure logs from above.
vcpkg-tool version: 2022-06-15-b0f08e40f8e8752dd0b260138ee078bd9599559c
vcpkg-scripts version: b49b2bdf2 2022-06-17 (33 hours ago)
You can also use the prefilled template from /home/dreamer/Sources/_audio/_free-audio/clap-plugins/vcpkg/installed/vcpkg/issue_body.md.
[DEBUG] /mnt/vss/_work/1/s/src/vcpkg/install.cpp(558):
[DEBUG] Time in subprocesses: 44434732 us
[DEBUG] Time in parsing JSON: 969 us
[DEBUG] Time in JSON reader: 350 us
[DEBUG] Time in filesystem: 734 us
[DEBUG] Time in loading ports: 1679 us
[DEBUG] Exiting after 44.45 s (44447953 us)
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