error in make examples with github version

Hi,
I’m using the o.f. github version with Jaunty Ubuntu and having the following errors when compiling the examples (this is serialexample)

compiling object for: src/testApp.cpp
mkdir -p obj/Release/src
g++ -c -march=native -mtune=native -O3 -Wall -fexceptions -I. -I…/…/…/libs/FreeImage/include -I…/…/…/libs/fmodex/include -I…/…/…/libs/freetype/include -I…/…/…/libs/freetype/include/freetype2 -I…/…/…/libs/freetype/include/freetype2/freetype -I…/…/…/libs/freetype/include/freetype2/freetype/config -I…/…/…/libs/glee/include -I…/…/…/libs/glu/include -I…/…/…/libs/glut/include -I…/…/…/libs/gstappsink/include -I…/…/…/libs/gstappsink/include/gst -I…/…/…/libs/gstappsink/include/gst/app -I…/…/…/libs/poco/include -I…/…/…/libs/poco/include/Poco -I…/…/…/libs/poco/include/Poco/DOM -I…/…/…/libs/poco/include/Poco/Net -I…/…/…/libs/poco/include/Poco/XML -I…/…/…/libs/poco/include/Poco/Dynamic -I…/…/…/libs/poco/include/Poco/SAX -I…/…/…/libs/poco/include/Poco/Util -I…/…/…/libs/poco/include/CppUnit -I…/…/…/libs/quicktime/include -I…/…/…/libs/rtAudio/include -I…/…/…/libs/videoInput/include -I…/…/…/libs/openFrameworks/ -I…/…/…/libs/openFrameworks/app -I…/…/…/libs/openFrameworks/graphics -I…/…/…/libs/openFrameworks/video -I…/…/…/libs/openFrameworks/utils -I…/…/…/libs/openFrameworks/sound -I…/…/…/libs/openFrameworks/communication -I…/…/…/libs/openFrameworks/events pkg-config gstreamer-0.10 gstreamer-video-0.10 gstreamer-base-0.10 libudev --cflags -MMD -MP -MFobj/Release/src/testApp.d -MTobj/Release/src/testApp.d -oobj/Release/src/testApp.o -c src/testApp.cpp
compiling object for: src/main.cpp
mkdir -p obj/Release/src
g++ -c -march=native -mtune=native -O3 -Wall -fexceptions -I. -I…/…/…/libs/FreeImage/include -I…/…/…/libs/fmodex/include -I…/…/…/libs/freetype/include -I…/…/…/libs/freetype/include/freetype2 -I…/…/…/libs/freetype/include/freetype2/freetype -I…/…/…/libs/freetype/include/freetype2/freetype/config -I…/…/…/libs/glee/include -I…/…/…/libs/glu/include -I…/…/…/libs/glut/include -I…/…/…/libs/gstappsink/include -I…/…/…/libs/gstappsink/include/gst -I…/…/…/libs/gstappsink/include/gst/app -I…/…/…/libs/poco/include -I…/…/…/libs/poco/include/Poco -I…/…/…/libs/poco/include/Poco/DOM -I…/…/…/libs/poco/include/Poco/Net -I…/…/…/libs/poco/include/Poco/XML -I…/…/…/libs/poco/include/Poco/Dynamic -I…/…/…/libs/poco/include/Poco/SAX -I…/…/…/libs/poco/include/Poco/Util -I…/…/…/libs/poco/include/CppUnit -I…/…/…/libs/quicktime/include -I…/…/…/libs/rtAudio/include -I…/…/…/libs/videoInput/include -I…/…/…/libs/openFrameworks/ -I…/…/…/libs/openFrameworks/app -I…/…/…/libs/openFrameworks/graphics -I…/…/…/libs/openFrameworks/video -I…/…/…/libs/openFrameworks/utils -I…/…/…/libs/openFrameworks/sound -I…/…/…/libs/openFrameworks/communication -I…/…/…/libs/openFrameworks/events pkg-config gstreamer-0.10 gstreamer-video-0.10 gstreamer-base-0.10 libudev --cflags -MMD -MP -MFobj/Release/src/main.d -MTobj/Release/src/main.d -oobj/Release/src/main.o -c src/main.cpp
linking bin/serialExample
g++ -o bin/serialExample obj/Release/src/testApp.o obj/Release/src/main.o -march=native -mtune=native -O3 -Wall -fexceptions -I. -I…/…/…/libs/FreeImage/include -I…/…/…/libs/fmodex/include -I…/…/…/libs/freetype/include -I…/…/…/libs/freetype/include/freetype2 -I…/…/…/libs/freetype/include/freetype2/freetype -I…/…/…/libs/freetype/include/freetype2/freetype/config -I…/…/…/libs/glee/include -I…/…/…/libs/glu/include -I…/…/…/libs/glut/include -I…/…/…/libs/gstappsink/include -I…/…/…/libs/gstappsink/include/gst -I…/…/…/libs/gstappsink/include/gst/app -I…/…/…/libs/poco/include -I…/…/…/libs/poco/include/Poco -I…/…/…/libs/poco/include/Poco/DOM -I…/…/…/libs/poco/include/Poco/Net -I…/…/…/libs/poco/include/Poco/XML -I…/…/…/libs/poco/include/Poco/Dynamic -I…/…/…/libs/poco/include/Poco/SAX -I…/…/…/libs/poco/include/Poco/Util -I…/…/…/libs/poco/include/CppUnit -I…/…/…/libs/quicktime/include -I…/…/…/libs/rtAudio/include -I…/…/…/libs/videoInput/include -I…/…/…/libs/openFrameworks/ -I…/…/…/libs/openFrameworks/app -I…/…/…/libs/openFrameworks/graphics -I…/…/…/libs/openFrameworks/video -I…/…/…/libs/openFrameworks/utils -I…/…/…/libs/openFrameworks/sound -I…/…/…/libs/openFrameworks/communication -I…/…/…/libs/openFrameworks/events pkg-config gstreamer-0.10 gstreamer-video-0.10 gstreamer-base-0.10 libudev --cflags -L…/…/…/libs/fmodex/lib/linux -L…/…/…/libs/FreeImage/lib/linux -L…/…/…/libs/freetype/lib/linux -L…/…/…/libs/glee/lib/linux -L…/…/…/libs/gstappsink/lib/linux -L…/…/…/libs/openFrameworksCompiled/lib/linux -L…/…/…/libs/poco/lib/linux -L…/…/…/libs/rtAudio/lib/linux -Wl,-rpath=./libs -lopenFrameworks -lfmodex -lfreeimage -lfreetype -lGLee -loFappsink -lPocoFoundation -lPocoNet -lPocoUtil -lPocoXML -lRtAudio pkg-config gstreamer-0.10 gstreamer-video-0.10 gstreamer-base-0.10 libudev --libs -lglut -lGL -lGLU -lasound
…/…/…/libs/rtAudio/lib/linux/libRtAudio.a(RtAudio.o): In function RtAudio::RtAudio(RtAudio::Api)': RtAudio.cpp:(.text+0x119c): undefined reference tostd::ctype::_M_widen_init() const’
collect2: ld returned 1 exit status
make: *** [bin/serialExample] Error 1

is there any known solution ?

thanks in advance Alex

can you post the output of:

gcc -v

it seems to be an incompatibility between gcc versions.

thanks for the answer :

I forgot to mention that it’s a 32bit machine:

$ gcc -v
Using built-in specs.
Target: i486-linux-gnu
Configured with: …/src/configure -v --with-pkgversion=‘Ubuntu 4.3.3-5ubuntu4’ --with-bugurl=file:///usr/share/doc/gcc-4.3/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --with-gxx-include-dir=/usr/include/c++/4.3 --program-suffix=-4.3 --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --enable-mpfr --enable-targets=all --with-tune=generic --enable-checking=release --build=i486-linux-gnu --host=i486-linux-gnu --target=i486-linux-gnu
Thread model: posix
gcc version 4.3.3 (Ubuntu 4.3.3-5ubuntu4)

UPDATE:
I recompiled the Rtaudio 407 and tried to follow the two topics :
http://forum.openframeworks.cc/t/openframeworks-with-linuxjack/4242/0
http://forum.openframeworks.cc/t/openframeworks-with-linuxjack/4242/26

to fix the jack problem I have now:
…/…/…/libs/rtAudio/lib/linux/libRtAudio.a(RtAudio.o): In function RtApiJack::stopStream()': RtAudio.cpp:(.text+0x5dc1): undefined reference tojack_deactivate’
…/…/…/libs/rtAudio/lib/linux/libRtAudio.a(RtAudio.o): In function RtApiJack::startStream()': RtAudio.cpp:(.text+0x5e75): undefined reference tojack_activate’
RtAudio.cpp:(.text+0x5eb4): undefined reference to jack\_get\_ports' RtAudio.cpp:(.text+0x5efd): undefined reference tojack_port_name’
RtAudio.cpp:(.text+0x5f12): undefined reference to jack\_connect' RtAudio.cpp:(.text+0x6080): undefined reference tojack_get_ports’
RtAudio.cpp:(.text+0x60cd): undefined reference to jack\_port\_name' RtAudio.cpp:(.text+0x60f3): undefined reference tojack_connect’
…/…/…/libs/rtAudio/lib/linux/libRtAudio.a(RtAudio.o): In function RtApiJack::closeStream()': RtAudio.cpp:(.text+0x61b2): undefined reference tojack_client_close’
RtAudio.cpp:(.text+0x62ee): undefined reference to jack\_deactivate' ../../../libs/rtAudio/lib/linux/libRtAudio.a(RtAudio.o): In functionRtApiJack::callbackEvent(unsigned long)’:
RtAudio.cpp:(.text+0x73a7): undefined reference to jack\_port\_get\_buffer' RtAudio.cpp:(.text+0x752f): undefined reference tojack_port_get_buffer’
RtAudio.cpp:(.text+0x75bf): undefined reference to jack\_port\_get\_buffer' RtAudio.cpp:(.text+0x761f): undefined reference tojack_port_get_buffer’
RtAudio.cpp:(.text+0x76ff): undefined reference to jack\_port\_get\_buffer' ../../../libs/rtAudio/lib/linux/libRtAudio.a(RtAudio.o): In functionRtApiJack::getDeviceInfo(unsigned int)’:
RtAudio.cpp:(.text+0x7e99): undefined reference to jack\_client\_open' RtAudio.cpp:(.text+0x7ed6): undefined reference tojack_get_ports’
RtAudio.cpp:(.text+0x8038): undefined reference to jack\_get\_sample\_rate' RtAudio.cpp:(.text+0x808a): undefined reference tojack_get_ports’
RtAudio.cpp:(.text+0x80e2): undefined reference to jack\_get\_ports' RtAudio.cpp:(.text+0x8163): undefined reference tojack_client_close’
RtAudio.cpp:(.text+0x8290): undefined reference to jack\_client\_close' ../../../libs/rtAudio/lib/linux/libRtAudio.a(RtAudio.o): In functionRtApiJack::getDeviceCount()’:
RtAudio.cpp:(.text+0x843e): undefined reference to jack\_client\_open' RtAudio.cpp:(.text+0x848b): undefined reference tojack_get_ports’
RtAudio.cpp:(.text+0x85b3): undefined reference to `jack_client_close’
[…]
collect2: ld returned 1 exit status
make: *** [bin/audioOutputExample_debug] Error 1

Here are some informations that can be useful:

$ dpkg --list |grep jack
ii jackd 0.116.1-3ubuntu3 JACK Audio Connection Kit (server and example clients)
ii libjack-dev 0.116.1-3ubuntu3 JACK Audio Connection Kit (development files)
ii libjack0 0.116.1-3ubuntu3 JACK Audio Connection Kit (libraries)
ii libjack0.100.0-0 0.116.1-3ubuntu3 JACK Audio Connection Kit (libraries)
ii libjack0.100.0-dev 0.116.1-3ubuntu3 JACK Audio Connection Kit (libraries)
rc libjackasyn0 0.11-2ubuntu3 The Asynchrounous JACK Library
ii qjackctl 0.3.4-0ubuntu2 User interface for controlling the JACK sound server

Inside : audioOutputExample_linux.cbp (attached)
I tried to put the jack lib but maybe something is wrong because I cannot see my added options (could you suggest something on that ? ):
$make
linking bin/audioOutputExample
g++ -o bin/audioOutputExample obj/Release/src/testApp.o obj/Release/src/main.o -march=native -mtune=native -O3 -Wall -fexceptions -I. -I…/…/…/libs/FreeImage/include -I…/…/…/libs/fmodex/include -I…/…/…/libs/freetype/include -I…/…/…/libs/freetype/include/freetype2 -I…/…/…/libs/freetype/include/freetype2/freetype -I…/…/…/libs/freetype/include/freetype2/freetype/config -I…/…/…/libs/glee/include -I…/…/…/libs/glu/include -I…/…/…/libs/glut/include -I…/…/…/libs/gstappsink/include -I…/…/…/libs/gstappsink/include/gst -I…/…/…/libs/gstappsink/include/gst/app -I…/…/…/libs/poco/include -I…/…/…/libs/poco/include/Poco -I…/…/…/libs/poco/include/Poco/DOM -I…/…/…/libs/poco/include/Poco/Net -I…/…/…/libs/poco/include/Poco/XML -I…/…/…/libs/poco/include/Poco/Dynamic -I…/…/…/libs/poco/include/Poco/SAX -I…/…/…/libs/poco/include/Poco/Util -I…/…/…/libs/poco/include/CppUnit -I…/…/…/libs/quicktime/include -I…/…/…/libs/rtAudio/include -I…/…/…/libs/videoInput/include -I…/…/…/libs/openFrameworks/ -I…/…/…/libs/openFrameworks/app -I…/…/…/libs/openFrameworks/graphics -I…/…/…/libs/openFrameworks/video -I…/…/…/libs/openFrameworks/utils -I…/…/…/libs/openFrameworks/sound -I…/…/…/libs/openFrameworks/communication -I…/…/…/libs/openFrameworks/events pkg-config gstreamer-0.10 gstreamer-video-0.10 gstreamer-base-0.10 libudev --cflags -L…/…/…/libs/fmodex/lib/linux -L…/…/…/libs/FreeImage/lib/linux -L…/…/…/libs/freetype/lib/linux -L…/…/…/libs/glee/lib/linux -L…/…/…/libs/gstappsink/lib/linux -L…/…/…/libs/openFrameworksCompiled/lib/linux -L…/…/…/libs/poco/lib/linux -L…/…/…/libs/rtAudio/lib/linux -Wl,-rpath=./libs -lopenFrameworks -lfmodex -lfreeimage -lfreetype -lGLee -loFappsink -lPocoFoundation -lPocoNet -lPocoUtil -lPocoXML -lRtAudio pkg-config gstreamer-0.10 gstreamer-video-0.10 gstreamer-base-0.10 libudev --libs -lglut -lGL -lGLU -lasound
…/…/…/libs/rtAudio/lib/linux/libRtAudio.a(RtAudio.o): In function RtApiJack::stopStream()': RtAudio.cpp:(.text+0x5dc1): undefined reference tojack_deactivate’
…/…/…/libs/rtAudio/lib/linux/libRtAudio.a(RtAudio.o): In function RtApiJack::startStream()': RtAudio.cpp:(.text+0x5e75): undefined reference tojack_activate’
RtAudio.cpp:(.text+0x5eb4): undefined reference to jack\_get\_ports' RtAudio.cpp:(.text+0x5efd): undefined reference tojack_port_name’
RtAudio.cpp:(.text+0x5f12): undefined reference to jack\_connect' [.......] RtAudio.cpp:(.text+0xa9aa): undefined reference tojack_set_error_function’
collect2: ld returned 1 exit status
make: *** [bin/audioOutputExample] Error 1
linking bin/audioOutputExample

thanks in advance Alex

and here is : audioOutputExample_linux.cbp

modifications are contained into tags

$ cat audioOutputExample_linux.cbp

<?xml version="1.0" encoding="UTF-8" ?>

<CodeBlocks_project_file>

As a last try I added to the makefile
LIBS += -ljack

and it works … :?: :?:
so I guess I did not understood how to use the codeblocks files

the problem is that the default rtaudio version that comes with OF doesn’t include jack support so the jack library is not included in the projects. if you want to recompile rtAudio without jack support:

./configure --without-jack
make