[Stk] Demo Linking Error

Matthew Kettlewell matt at kettlewell.net
Thu Jan 24 22:27:36 PST 2013


Hello -

I'm trying to compile / link STK for the first time on a Fedora LXDE 17
machine.  There is an RPM of it, so I'm using that for now, but would like
to be able to compile new versions, debug options etc as well.

It appears that pthread isn't being linked into the demo projects, but I'm
not a configure guru to figure out where it needs to be checked/added...

In fact, it appears that pthread isn't even being checked for when I run
./configure (no arguments )

And here's the result of the link error  that I'm seeing.

cd projects/demo && make libdemo
make[1]: Entering directory
`/home/matt/Downloads/STK-4.4.4/stk-4.4.4/projects/demo'
g++  -O3 -Wall -I../../include -I../../include/../src/include
-DHAVE_GETTIMEOFDAY -D__LINUX_ALSA__ -D__LITTLE_ENDIAN__
-DRAWWAVE_PATH=\"../../rawwaves/\" -o demo utilities.cpp demo.cpp
-L../../src -lstk -lasound -lm
/usr/bin/ld: ../../src/libstk.a(RtAudio.o): undefined reference to symbol
'pthread_create@@GLIBC_2.1'
/usr/bin/ld: note: 'pthread_create@@GLIBC_2.1' is defined in DSO
/lib/libpthread.so.0 so try adding it to the linker command line
/lib/libpthread.so.0: could not read symbols: Invalid operation
collect2: error: ld returned 1 exit status
make[1]: *** [libdemo] Error 1
make[1]: Leaving directory
`/home/matt/Downloads/STK-4.4.4/stk-4.4.4/projects/demo'
make: *** [all] Error 2


Any thoughts / help are welcome.

Thanks

Matt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://ccrma-mail.stanford.edu/pipermail/stk/attachments/20130124/9348ba3b/attachment.html 


More information about the Stk mailing list