Error in audioOutputExample, v0061, Ubuntu 9.10

After make (or build in C::B) command:

  
<...>  
-L../../../libs/unicap/lib/linux -s  -lopenFrameworks -lfmodexp -lfmodex -lfreeimage -lfreetype -lGLee -loFappsink -lPocoFoundation -lPocoNet -lPocoUtil -lPocoXML -lRtAudio -ldcam -lunicap -lv4l2cpi -lv4l -lvid21394 `pkg-config  gstreamer-0.10 gstreamer-video-0.10 gstreamer-base-0.10 libudev --libs` -lglut -lGL -lasound    
../../../libs/rtAudio/lib/linux/libRtAudio.a(RtAudio.o): In function `RtApiJack::getDeviceCount()':  
RtAudio.cpp:(.text+0xf51): undefined reference to `jack_client_open'  
RtAudio.cpp:(.text+0xf97): undefined reference to `jack_get_ports'  
RtAudio.cpp:(.text+0x10a8): undefined reference to `jack_client_close'  
../../../libs/rtAudio/lib/linux/libRtAudio.a(RtAudio.o): In function `RtApiJack::stopStream()':  
RtAudio.cpp:(.text+0x2f57): undefined reference to `jack_deactivate'  
../../../libs/rtAudio/lib/linux/libRtAudio.a(RtAudio.o): In function `RtApiJack::startStream()':  
RtAudio.cpp:(.text+0x301e): undefined reference to `jack_activate'  
RtAudio.cpp:(.text+0x305c): undefined reference to `jack_get_ports'  
RtAudio.cpp:(.text+0x30a5): undefined reference to `jack_port_name'  
RtAudio.cpp:(.text+0x30ba): undefined reference to `jack_connect'  
RtAudio.cpp:(.text+0x3205): undefined reference to `jack_get_ports'  
RtAudio.cpp:(.text+0x324d): undefined reference to `jack_port_name'  
RtAudio.cpp:(.text+0x326d): undefined reference to `jack_connect'  
../../../libs/rtAudio/lib/linux/libRtAudio.a(RtAudio.o): In function `RtApiJack::closeStream()':  
RtAudio.cpp:(.text+0x3344): undefined reference to `jack_client_close'  
RtAudio.cpp:(.text+0x341e): undefined reference to `jack_deactivate'  
../../../libs/rtAudio/lib/linux/libRtAudio.a(RtAudio.o): In function `RtApiJack::getDeviceInfo(unsigned int)':  
RtAudio.cpp:(.text+0x3507): undefined reference to `jack_client_open'  
RtAudio.cpp:(.text+0x3552): undefined reference to `jack_get_ports'  
RtAudio.cpp:(.text+0x36bb): undefined reference to `jack_get_sample_rate'  
RtAudio.cpp:(.text+0x370c): undefined reference to `jack_get_ports'  
RtAudio.cpp:(.text+0x3762): undefined reference to `jack_get_ports'  
RtAudio.cpp:(.text+0x37d6): undefined reference to `jack_client_close'  
RtAudio.cpp:(.text+0x38ee): undefined reference to `jack_client_close'  
../../../libs/rtAudio/lib/linux/libRtAudio.a(RtAudio.o): In function `RtApiJack::callbackEvent(unsigned long)':  
RtAudio.cpp:(.text+0x3bcc): undefined reference to `jack_port_get_buffer'  
RtAudio.cpp:(.text+0x3c97): undefined reference to `jack_port_get_buffer'  
RtAudio.cpp:(.text+0x3de7): undefined reference to `jack_port_get_buffer'  
RtAudio.cpp:(.text+0x3e4f): undefined reference to `jack_port_get_buffer'  
RtAudio.cpp:(.text+0x3f07): undefined reference to `jack_port_get_buffer'  
../../../libs/rtAudio/lib/linux/libRtAudio.a(RtAudio.o): In function `RtApiJack::RtApiJack()':  
RtAudio.cpp:(.text+0x41d0): undefined reference to `jack_set_error_function'  
../../../libs/rtAudio/lib/linux/libRtAudio.a(RtAudio.o): In function `RtApiJack::RtApiJack()':  
RtAudio.cpp:(.text+0x44f0): undefined reference to `jack_set_error_function'  
../../../libs/rtAudio/lib/linux/libRtAudio.a(RtAudio.o): In function `RtApiJack::probeDeviceOpen(unsigned int, RtApi::StreamMode, unsigned int, unsigned int, unsigned int, unsigned long, unsigned int*, RtAudio::StreamOptions*)':  
RtAudio.cpp:(.text+0x48de): undefined reference to `jack_client_open'  
RtAudio.cpp:(.text+0x4936): undefined reference to `jack_get_ports'  
RtAudio.cpp:(.text+0x4a80): undefined reference to `jack_client_open'  
RtAudio.cpp:(.text+0x4ae2): undefined reference to `jack_get_ports'  
RtAudio.cpp:(.text+0x4cd8): undefined reference to `jack_get_sample_rate'  
RtAudio.cpp:(.text+0x4cf7): undefined reference to `jack_client_close'  
RtAudio.cpp:(.text+0x5018): undefined reference to `jack_get_ports'  
RtAudio.cpp:(.text+0x503d): undefined reference to `jack_port_by_name'  
RtAudio.cpp:(.text+0x5045): undefined reference to `jack_port_get_latency'  
RtAudio.cpp:(.text+0x50d9): undefined reference to `jack_get_buffer_size'  
RtAudio.cpp:(.text+0x5317): undefined reference to `jack_client_close'  
RtAudio.cpp:(.text+0x549b): undefined reference to `jack_set_process_callback'  
RtAudio.cpp:(.text+0x54b7): undefined reference to `jack_set_xrun_callback'  
RtAudio.cpp:(.text+0x54d6): undefined reference to `jack_on_shutdown'  
RtAudio.cpp:(.text+0x5588): undefined reference to `jack_port_register'  
RtAudio.cpp:(.text+0x56ea): undefined reference to `jack_port_register'  
collect2: ld returned 1 exit status  
  

Installed JACK libraries:

  
aptitude search libjack  
i   libjack-dev                                                             
i A libjack0                                                                 
i   libjack0.100.0-0                                                      
i   libjack0.100.0-dev                                                   
p   libjackasyn-dev                                                                  
p   libjackasyn0           

How to fix these errors?

hey thanks

you’re on 64bits right? i had jack installed and rtaudio got compiled with it by default.

No, I am on 32bit.
Ubuntu 9.10 (Karmic) kernel 2.6.31-17-generic i686, GNOME 2.28.1

yes, the 32bits library was compiled for jack instead of alsa, have just recompiled it again, if you download the package again it should work without problem

Thanks! It’s work.
But app returns Segmentation fault after closing. In all examples with RtAudio.

  
kodemi@kodemi-laptop:~/of_preRelease_v0061_linux_FAT/apps/examples/audioOutputExample/bin$ ./clickToLaunchApp_Debug.sh   
/home/kodemi/of_preRelease_v0061_linux_FAT/apps/examples/audioOutputExample/bin  
Segmentation fault  
kodemi@kodemi-laptop:~/of_preRelease_v0061_linux_FAT/apps/examples/audioOutputExample/bin$