Skip to content
New issue

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

Build for Linux: VST3 and JUCE_JACK #10

Open
dextersLabRat opened this issue Sep 28, 2021 · 2 comments
Open

Build for Linux: VST3 and JUCE_JACK #10

dextersLabRat opened this issue Sep 28, 2021 · 2 comments

Comments

@dextersLabRat
Copy link

Hi. I'm building Frequalizer on Linux. I'm used to using the Projucer to configure the build--not so savvy with CMake. I got a coworker to help me through some build issues. I can post those fixes below.

My main goal is to build Frequalizer for a JACK target to use as a JACK plugin. I know how to do this with the Projucer but not with CMake.

How I can I build this for JACK (JUCE_JACK is probably the JUCE definition)?


Fixes for building on Linux in CMakeLists.txt:
image (3)

@SpotlightKid
Copy link

I can't even compile the VST3 on Linux (Manjaro). I get a linking error I don't understand.

I tried compiling with:

mkdir build; cd build
cmake -DCMAKE_BUILD_TYPE=Release -Wno-dev ..
cmake --build .

I get this error at the linking stage:

[...]
/usr/bin/ld: Resources/libfrequalizer_binary.a(BinaryData1.cpp.o): warning: relocation against `_ZN11FFAudioData17namedResourceListE' in read-only section `.text'
/usr/bin/ld: Resources/libfrequalizer_binary.a(BinaryData1.cpp.o): relocation R_X86_64_PC32 against symbol `_ZN11FFAudioData10FBlogo_pngE' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: bad value
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/frequalizer_VST3.dir/build.make:245: frequalizer_artefacts/Release/VST3/Frequalizer.vst3/Contents/x86_64-linux/Frequalizer.so] Error 1
make[1]: *** [CMakeFiles/Makefile2:240: CMakeFiles/frequalizer_VST3.dir/all] Error 2
make: *** [Makefile:136: all] Error 2

Anyone have an idea what is going wrong?

@dextersLabRat
Copy link
Author

Sorry that this reply is so late!! Just saw this. I'm no expert, but I have seen this kind of thing before, and I believe that the issue is dynamic library linking vs. static. See if a Google search can get you more info based on that.

Just as a starter: Google Search

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants