rncbc / qtractor

Qtractor - An Audio/MIDI multi-track sequencer
https://qtractor.org
GNU General Public License v2.0
499 stars 87 forks source link

qtractor fails to find external vst3sdk #331

Open yurivict opened 2 years ago

yurivict commented 2 years ago

vst3sdk-3.7.4_build_25 doesn't install any pkgconfig files, but qtractor attempts pkg_check_modules when CONFIG_VST3SDK isn't set. Therefore, it can never find externally installed vst3sdk.

Then, cmake expects files at ${CONFIG_VST3SDK}/base/source/baseiids.cpp which isn't installed by the vst3sdk package.

rncbc commented 2 years ago

maybe cmake -DCONFIG_VST3SDK=/path/to/VST_SDK/VST3_SDK ... will help?

yurivict commented 2 years ago

maybe cmake -DCONFIG_VST3SDK=/path/to/VST_SDK/VST3_SDK ... will help?

No, because it then tries to look for non-existent files:

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

    /usr/local/include/vst3sdk/base/source/baseiids.cpp
rncbc commented 2 years ago

probably /usr/local/include/vst3sdk is not the place where unpacked the (vst-sdk_3.7.4_build-25_2021-12-16.zip)/ VST_SDK/vst3sdk or is it?

yurivict commented 2 years ago

The vst3sdk package installs headers into /usr/local/include/vst3sdk and libraries into /usr/local/lib/vst3. It doesn't contain sources,

rncbc commented 2 years ago

what vst3sdk package are you possibly talking about?

I'm talking about the official archive that you may download from steinberg.net OR even from its github.com repo

yurivict commented 2 years ago

I am talking about binary pakages like these: https://repology.org/project/vst3sdk/versions

They are built from steinberg's github repository https://github.com/steinbergmedia/vst3sdk by running cmake.

yurivict commented 2 years ago

IMO you can replace the current pkg_check_modules call (which is meaningless w/out the pkgconfig file) with user-supplied VST3 header/library paths.

rncbc commented 2 years ago

the binary package you're referring probably provides the example plugins and not the full SDK and source code.

please do what I told in https://github.com/rncbc/qtractor/issues/331#issuecomment-1100970493

otoh. I do my own private packaging on OBS, see https://build.opensuse.org/package/show/home:rncbc:libs/vst3sdk: the vst3sdk custom package do provide a pkg-config file for my own again CI/CD pipelines: https://build.opensuse.org/package/view_file/home:rncbc:libs/vst3sdk/vst3sdk.pc

cheers

yurivict commented 2 years ago

the binary package you're referring probably provides the example plugins and not the full SDK and source code.

I updated the FreeBSD port to use the full source tarball, but the vst3sdk package contains all binaries built by the vst3sdk project and should contain everything necessary to build both hosts and plugins. It isn't clear why can't qtractor use it.

rncbc commented 2 years ago

the binary package you're referring probably provides the example plugins and not the full SDK and source code.

I updated the FreeBSD port to use the full source tarball, but the vst3sdk package contains all binaries built by the vst3sdk project and should contain everything necessary to build both hosts and plugins. It isn't clear why can't qtractor use it.

it might containg everything necessary to build plugins but for hosts it's just not true, obviously.