You are here

I can't compile Qtractor

I have no experience compiling. I don't know how to solve it.
I am following the instructions in the official documentation.
If anyone can help I appreciate it.

My system:
System: Kernel: 6.0.0-10.1-liquorix-amd64 [6.0-6~mx21+1] x86_64 bits: 64 compiler: gcc v: 10.2.1
parameters: audit=0 intel_pstate=disable hpet=disable rcupdate.rcu_expedited=1
BOOT_IMAGE=/boot/vmlinuz-6.0.0-10.1-liquorix-amd64 root=UUID= ro quiet
threadirqs splash
Desktop: Xfce 4.18.1 tk: Gtk 3.24.24 info: xfce4-panel wm: xfwm 4.18.0 vt: 7
dm: LightDM 1.26.0 Distro: Debian GNU/Linux 11 (bullseye)
base: Debian GNU/Linux 11 (bullseye)

___
Error:

CMake Warning at /opt/qt6.6-static/lib/cmake/Qt6/QtFindWrapHelper.cmake:69 (find_package):
By not providing "FindQt6BundledPcre2.cmake" in CMAKE_MODULE_PATH this
project has asked CMake to find a package configuration file provided by
"Qt6BundledPcre2", but CMake did not find one.

Could not find a package configuration file provided by "Qt6BundledPcre2"
with any of the following names:

Qt6BundledPcre2Config.cmake
qt6bundledpcre2-config.cmake

Add the installation prefix of "Qt6BundledPcre2" to CMAKE_PREFIX_PATH or
set "Qt6BundledPcre2_DIR" to a directory containing one of the above files.
If "Qt6BundledPcre2" provides a separate development package or SDK, be
sure it has been installed.
Call Stack (most recent call first):
/opt/qt6.6-static/lib/cmake/Qt6/FindWrapPCRE2.cmake:6 (qt_find_package_system_or_bundled)
/usr/share/cmake-3.27/Modules/CMakeFindDependencyMacro.cmake:76 (find_package)
/opt/qt6.6-static/lib/cmake/Qt6/QtPublicDependencyHelpers.cmake:36 (find_dependency)
/opt/qt6.6-static/lib/cmake/Qt6Core/Qt6CoreDependencies.cmake:30 (_qt_internal_find_third_party_dependencies)
/opt/qt6.6-static/lib/cmake/Qt6Core/Qt6CoreConfig.cmake:41 (include)
/opt/qt6.6-static/lib/cmake/Qt6/Qt6Config.cmake:156 (find_package)
CMakeLists.txt:210 (find_package)

CMake Error at /opt/qt6.6-static/lib/cmake/Qt6/QtFindWrapHelper.cmake:88 (message):
Can't find Qt6::BundledPcre2.
Call Stack (most recent call first):
/opt/qt6.6-static/lib/cmake/Qt6/FindWrapPCRE2.cmake:6 (qt_find_package_system_or_bundled)
/usr/share/cmake-3.27/Modules/CMakeFindDependencyMacro.cmake:76 (find_package)
/opt/qt6.6-static/lib/cmake/Qt6/QtPublicDependencyHelpers.cmake:36 (find_dependency)
/opt/qt6.6-static/lib/cmake/Qt6Core/Qt6CoreDependencies.cmake:30 (_qt_internal_find_third_party_dependencies)
/opt/qt6.6-static/lib/cmake/Qt6Core/Qt6CoreConfig.cmake:41 (include)
/opt/qt6.6-static/lib/cmake/Qt6/Qt6Config.cmake:156 (find_package)
CMakeLists.txt:210 (find_package)

CMake Warning at /opt/qt6.6-static/lib/cmake/Qt6/Qt6Config.cmake:156 (find_package):
Found package configuration file:

/opt/qt6.6-static/lib/cmake/Qt6Core/Qt6CoreConfig.cmake

but it set Qt6Core_FOUND to FALSE so package "Qt6Core" is considered to be
NOT FOUND.
Call Stack (most recent call first):
CMakeLists.txt:210 (find_package)

-- Configuring incomplete, errors occurred!
gmake: Makefile: No existe el fichero o el directorio
gmake: *** No hay ninguna regla para construir el objetivo 'Makefile'. Alto.

Forums: 
rncbc's picture

hi, I kinda feel that it's the first time you try to build/compile something ?

you certainly need to install all the build-dependencies found strictly necessary; on debian (and derivatives) this means installing a bunch of -dev suffixed deb packages.

you may lokk after the debian/control file for all those names; I'll put them now below to help you out:

Build-Depends:
  qt6-base-dev, qt6-base-dev-tools, qt6-tools-dev, qt6-tools-dev-tools,
  qt6-l10n-tools, qt6-svg-dev | libqt6svg6-dev,
  libjack-dev | libjack-jackd2-dev, libasound2-dev,
  libsndfile-dev, libvorbis-dev, libmad0-dev, libz-dev,
  libsamplerate-dev, librubberband-dev, libfftw3-dev, libaubio-dev,
  ladspa-sdk, dssi-dev, liblo-dev,
  lv2-dev, liblilv-dev, libsratom-dev, libsord-dev, libserd-dev,
  libgtk2.0-dev, libgtkmm-2.4-dev

the are the essential, make sure to install all the respective dependencies (the package manager may suggest for you).
hth.
cheers

I installed all the dependencies you include here
https://launchpad.net/~rncbc

If you look closely at the error, it says it FINDS THEM, but considers them not found due to a configuration.
Searching the forums I think I understand that it is a qt6 bug, but then I don't understand why others can compile.

Here https://forum.qt.io/topic/137551/cmake-finds-cross-compiled-qt6-config-f...
a user says:
____

There is a specular issue opened here:
https://forum.qt.io/topic/134586/installed-qt6-to-linux-cmake-target-qt6...
for such cmake lists:

cmake_minimum_required(VERSION 3.10)
cmake_policy(SET CMP0084 NEW)
project(test)
find_package(Qt6 REQUIRED COMPONENTS Core)
target_link_libraries(test INTERFACE Qt::Core)
add_executable(test main.cpp)

and by invoking:
cmake .. -DCMAKE_PREFIX_PATH=/home/michal/Qt/6.3.1/gcc_64/lib/cmake/Qt6

the problem still persists.
Thanks.
___

I already told you, I'm a newbie and it's beyond me :(

rncbc's picture

wait a minute, WHY you installed the other PPAs than just "Applications" ? and why are you trying to build against the qt6.6-static, which is only applicable for the vee-one plugins, while on the launchpad.net build servers? you could build qtractor alright with all these, but it's just not advisable for you to take that path atm.

get rid of that: remove the qt6.6-static and libs ppa's, if any installed, please, they're completely unnecessary to the case at hand; and install all the above bulld-depends, making sure not a single one is missed.

I am communicating this to you for information purposes, since the unresolved errors refer to VST3 and CLAP, which plugins usually have versions in formats that I have been able to compile.

__LV2
Installing lv2-dev from KxStudio gave an error.
With the MX version it worked correctly. I think the error is related to this:
https://discourse.ardour.org/t/problem-compiling-7-4/108697/9

Remote dependencies (.gitmodules):

__VST3
With: cmake -B build

CMake Error at src/CMakeLists.txt:364 (add_executable):
   Cannot find source file:

     /home/.../qtractor-tests/src/vst3/base/source/baseiids.cpp

   Tried extensions .c .C .c++ .cc .cpp .cxx .cu .mpp .m .M .mm .ixx .cppm
   .ccm .cxxm .c++m .h .hh .h++ .hm .hpp .hxx .in .txx .f .F .for .f77 .f90
   .f95 .f03 .hip .ispc

I disable the VST3 option, do "cmake -B build" again this time it seems correct.

___CLAP
Now with: cmake --build build

/home/ccs/qtractor-tests/src/qtractorClapPlugin.cpp:33:10: fatal error: clap/clap.h: No such file or directory
    33 | #include 
       |

Will the fact that they are remote dependencies have anything to do with it?

rncbc's picture

hi,

if you're checking out from a git working tree, you'll need to pull in the vst3 and clap modules; for just that you might have to issue the following command:

git submodule update --init --recursive

at least once from the top source tree and then, drop the --init option after that first time and whenever those modules might get updated later on.

hth.

On a similar topic, I don't have any problem compiling qtractor from the git repository, but when I do 'cmake -B build .' I always get a message reading

-- Could NOT find XKB (missing: XKB_LIBRARY XKB_INCLUDE_DIR) (Required is at least version "0.5.0")

Everything then seems to go OK after that, and I haven't found any problems in qtractor which seem to relate to it.

Is this something I should correct? And if so, how?

That was it, now it compiles perfectly.

When I can I will make a "How to compile Qtractor" with all these specifications.

Thanks

I request permission to modify two points in the official documentation,
and add a new: How to Compile Qtractor?
https://sourceforge.net/p/visualthemes-qtractor/wiki/How%20to%20%20Compi...

Points to be modify on:
https://sourceforge.net/p/qtractor/wiki/Manual%20-%202%20Installing%20an...

_1
In:
2.2. Build dependencies

Change:
sudo apt-get build-dep qtractor

By:
sudo apt install qt6-base-dev qt6-base-dev-tools qt6-tools-dev qt6-tools-dev-tools qt6-l10n-tools qt6-svg-dev libqt6svg6-dev libjack-dev libjack-jackd2-dev libasound2-dev libsndfile-dev libvorbis-dev libmad0-dev libz-dev libsamplerate-dev librubberband-dev libfftw3-dev libaubio-dev ladspa-sdk dssi-dev liblo-dev lv2-dev liblilv-dev libsratom-dev libsord-dev libserd-dev libgtk2.0-dev libgtkmm-2.4-dev

Motive:
"sudo apt-get build-dep qtractor" not work.

_2
In:
2.3.2. Qtractor for the experienced and adventurous

Change:
git clone https://git.code.sf.net/p/qtractor/code qtractor-code

By:
git clone --recursive https://git.code.sf.net/p/qtractor/code qtractor-code

Motive:
Ensure CLAP and VTS3 dependencies are included

Att

rncbc's picture

granted

I would strongly advise against replacing apt-get's build-dep with a list of static (in terms of documentation) packages. It's a complete anti-pattern as those packages are going to change over time. Also, build-dep worked flawlessly (as I'd expect it to) on my Ubuntu 23.10 box (which of course is Debian based).

In AV linux (Mx) I have not had success with:

"sudo apt-get build-dep qtractor"

It returns me:
"Could not find font package for qtractor"

But if it's like you say I'll change to
...

"sudo apt-get build-dep qtractor"

If it doesn't work try:

"sudo apt install qt6-base-dev qt6-base-dev-tools qt6-tools-dev qt6-tools-dev-tools qt6-l10n-tools qt6-svg-dev libqt6svg6-dev libjack-dev libjack-jackd2-dev libasound2 -dev libsndfile-dev libvorbis-dev libmad0-dev libz-dev libsamplerate-dev librubberband-dev libfftw3-dev libaubio-dev ladspa-sdk dssi-dev liblo-dev lv2-dev liblilv-dev libsratom-dev libsord-dev libserd-dev libgtk2.0-dev libgtkmm-2.4-dev"

Yep, makes sense

Add new comment