kronihias / mcfx

multichannel cross plattform audio plug-in suite
GNU General Public License v3.0
80 stars 13 forks source link

undefined reference to symbol 'pthread_setname_np@@GLIBC_2.12' #1

Closed koppi closed 7 years ago

koppi commented 8 years ago

On Ubuntu 16.04: I'm getting:

[ 36%] Linking CXX executable ../../_bin/standalone/mcfx_convolver_standalone36
/usr/bin/ld: ../../JUCE/libJUCE_STATIC.a(juce_core.cpp.o): undefined reference to symbol 'pthread_setname_np@@GLIBC_2.12'
/lib/x86_64-linux-gnu/libpthread.so.0: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
mcfx_convolver/mcfx_convolver_standalone/CMakeFiles/mcfx_convolver_standalone36.dir/build.make:237: recipe for target '_bin/standalone/mcfx_convolver_standalone36' failed
make[2]: *** [_bin/standalone/mcfx_convolver_standalone36] Error 1

Any hints?

silvioprog commented 7 years ago

Just add the option -pthread to your build suite, e.g: set(CMAKE_C_FLAGS "-pthread").

kronihias commented 7 years ago

there was a problem with the wrong order of linking... fixed that in cmakelists

marclava commented 4 years ago

I had the same issue. Adding -pthread to CMAKE_CXX_FLAGS solved it. Could it be automated (in some cmake config)?

kronihias commented 4 years ago

@marclava, i just pushed a changed that should fix this and other problems with linux, let me know if there is any remaining problem. thanks!

marclava commented 4 years ago

It fixed problems with the plugins, but the controls of the standalones are not reacting to mouse clicks.

kronihias commented 4 years ago

strange, standalone gui works fine for me in ubuntu 18.04

marclava commented 4 years ago

I configured the mcfx_convolver project for JUCE 5.4.5 (and changed a few things in the source code so it compiles) and now the GUI is working in the app (but there's no jackd support). But I just need the VST version, so I won't suffer too much.