kronihias / ambix

cross-platform Ambisonic VST, LV2 plug-ins with variable order for use in Digital Audio Workstations like Reaper or Ardour or as Jack standalone applications
GNU General Public License v2.0
235 stars 34 forks source link

vst: undefined linker symbol warnings #7

Closed koppi closed 7 years ago

koppi commented 8 years ago

On Ubuntu 16.04: during the re-scan of the vst directory by Renoise (- my vst host), I'm getting the following undefined linker symbol warnings and the ambix vst plugins do not show up in the DAW:

Renoise LOG> Application: Enter MainLoop...
Renoise LOG> VSTPlugs: VST_PATH environment variable not set. Using '/usr/lib[64]/vst:/usr/local/lib[64]/vst:~/.vst'...
Renoise LOG> Audio Plugins: Skipping VST plugin path '/usr/lib/vst/' (Directory does not exist)...
Renoise LOG> Audio Plugins: Skipping VST plugin path '/usr/lib64/vst/' (Directory does not exist)...
Renoise LOG> Audio Plugins: Skipping VST plugin path '/usr/local/lib/vst/' (Directory does not exist)...
Renoise LOG> Audio Plugins: Skipping VST plugin path '/usr/local/lib64/vst/' (Directory does not exist)...
Renoise LOG> Audio Plugins: Searching for VST plugins in '/home/koppi/.vst/'
Renoise LOG> VstPlugs: Trying to instantiate /home/koppi/.vst/ambix_binaural_o5.so
Renoise LOG> VstPlugs: Instantiate FAILED (failed to open the DLL: '/home/koppi/.vst/ambix_binaural_o5.so: undefined symbol: glXGetProcAddress') !!!
Renoise LOG> VstPlugs: Trying to instantiate /home/koppi/.vst/ambix_converter_o5.so
Renoise LOG> VstPlugs: Instantiate FAILED (failed to open the DLL: '/home/koppi/.vst/ambix_converter_o5.so: undefined symbol: glXGetProcAddress') !!!
Renoise LOG> VstPlugs: Trying to instantiate /home/koppi/.vst/ambix_decoder_o5.so
Renoise LOG> VstPlugs: Instantiate FAILED (failed to open the DLL: '/home/koppi/.vst/ambix_decoder_o5.so: undefined symbol: glXGetProcAddress') !!!
Renoise LOG> VstPlugs: Trying to instantiate /home/koppi/.vst/ambix_directional_loudness_o5.so
Renoise LOG> VstPlugs: Instantiate FAILED (failed to open the DLL: '/home/koppi/.vst/ambix_directional_loudness_o5.so: undefined symbol: glXGetProcAddress') !!!
Renoise LOG> VstPlugs: Trying to instantiate /home/koppi/.vst/ambix_encoder_i2_o5.so
Renoise LOG> VstPlugs: Instantiate FAILED (failed to open the DLL: '/home/koppi/.vst/ambix_encoder_i2_o5.so: undefined symbol: FT_Init_FreeType') !!!
Renoise LOG> VstPlugs: Trying to instantiate /home/koppi/.vst/ambix_encoder_i4_o5.so
Renoise LOG> VstPlugs: Instantiate FAILED (failed to open the DLL: '/home/koppi/.vst/ambix_encoder_i4_o5.so: undefined symbol: FT_Init_FreeType') !!!
Renoise LOG> VstPlugs: Trying to instantiate /home/koppi/.vst/ambix_encoder_i6_o5.so
Renoise LOG> VstPlugs: Instantiate FAILED (failed to open the DLL: '/home/koppi/.vst/ambix_encoder_i6_o5.so: undefined symbol: FT_Init_FreeType') !!!
Renoise LOG> VstPlugs: Trying to instantiate /home/koppi/.vst/ambix_encoder_i8_o5.so
Renoise LOG> VstPlugs: Instantiate FAILED (failed to open the DLL: '/home/koppi/.vst/ambix_encoder_i8_o5.so: undefined symbol: FT_Init_FreeType') !!!
Renoise LOG> VstPlugs: Trying to instantiate /home/koppi/.vst/ambix_encoder_o5.so
Renoise LOG> VstPlugs: Instantiate FAILED (failed to open the DLL: '/home/koppi/.vst/ambix_encoder_o5.so: undefined symbol: FT_Init_FreeType') !!!
Renoise LOG> VstPlugs: Trying to instantiate /home/koppi/.vst/ambix_maxre_o5.so
Renoise LOG> VstPlugs: Instantiate FAILED (failed to open the DLL: '/home/koppi/.vst/ambix_maxre_o5.so: undefined symbol: glXGetProcAddress') !!!
Renoise LOG> VstPlugs: Trying to instantiate /home/koppi/.vst/ambix_mirror_o5.so
Renoise LOG> VstPlugs: Instantiate FAILED (failed to open the DLL: '/home/koppi/.vst/ambix_mirror_o5.so: undefined symbol: glXGetProcAddress') !!!
Renoise LOG> VstPlugs: Trying to instantiate /home/koppi/.vst/ambix_rotator_o5.so
Renoise LOG> VstPlugs: Instantiate FAILED (failed to open the DLL: '/home/koppi/.vst/ambix_rotator_o5.so: undefined symbol: glXGetProcAddress') !!!
Renoise LOG> VstPlugs: Trying to instantiate /home/koppi/.vst/ambix_rotator_z_o5.so
Renoise LOG> VstPlugs: Instantiate FAILED (failed to open the DLL: '/home/koppi/.vst/ambix_rotator_z_o5.so: undefined symbol: glXGetProcAddress') !!!
Renoise LOG> VstPlugs: Trying to instantiate /home/koppi/.vst/ambix_vmic_o5.so
Renoise LOG> VstPlugs: Instantiate FAILED (failed to open the DLL: '/home/koppi/.vst/ambix_vmic_o5.so: undefined symbol: glXGetProcAddress') !!!
Renoise LOG> VstPlugs: Trying to instantiate /home/koppi/.vst/ambix_warp_o5.so
Renoise LOG> VstPlugs: Instantiate FAILED (failed to open the DLL: '/home/koppi/.vst/ambix_warp_o5.so: undefined symbol: glXGetProcAddress') !!!
Renoise LOG> VstPlugs: Trying to instantiate /home/koppi/.vst/ambix_widening_o5.so
Renoise LOG> VstPlugs: Instantiate FAILED (failed to open the DLL: '/home/koppi/.vst/ambix_widening_o5.so: undefined symbol: glXGetProcAddress') !!!
Renoise LOG> LADSPA: LADSPA_PATH environment variable not set. Using '/usr/lib[64]/ladspa:/usr/local/lib[64]/ladspa:~/.ladspa'...

Any hints on this?

umlaeute commented 7 years ago

looks like an underlinking with gl(x).

try force-preloading the gl libraries when starting renoise:

LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libGL.so renoise

(the actual path my differ, depending on your system)

koppi commented 7 years ago

@umlaeute thank's for the hint!

With the following on my Ubuntu 16.04 installation Renoise loads the ambix VST plugins successfully:

LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libGL.so:/usr/lib/x86_64-linux-gnu/libfreetype.so renoise
umlaeute commented 7 years ago

actually, i wouldn't yet close this issue. what i've posted is a hack to workaround the problem. the proper fix is to correctly link the plugins. (so if you can, please re-open it)

kronihias commented 7 years ago

in CMakeLists.txt I Link against OpenGL and this works for me under Debian. Does Ubuntu behave somehow different or did you not use the Cmake build system?

kronihias commented 7 years ago

@koppi i fixed the build for Ubuntu. please try again now. best, matthias

koppi commented 7 years ago

@kronihias Thank's for the quick fix https://github.com/kronihias/ambix/commit/94f9e1b08d99a2acfa4184b6d1cfdb1fd1073bfb . the ambix vst plugins work now for me. Tested on Ubuntu 16.04 64 bit and Renoise V3.1.0 as vst host.