i really have some hard time compiling OF lately…
i’m always following the same routine:
- downloading OF
- installing depencencies (everything is up-to-date), codecs (everything is up-to-date) and reinstalling codeblocks (everything is up-to-date) - from the scripts folder
- then i’ll start the compileOF.sh script
- if this works, i’ll try the examples
if working with the master branch, the compileOF.sh fails and throws an fatal error:
HOST_OS=Linux
HOST_ARCH=x86_64
checking pkg-config libraries: cairo zlib gstreamer-app-1.0 gstreamer-1.0 gstreamer-video-1.0 gstreamer-base-1.0 libudev freetype2 fontconfig sndfile openal openssl libpulse-simple alsa gl glu glew gtk+-3.0 libmpg123
HOST_OS=Linux
HOST_ARCH=x86_64
checking pkg-config libraries: cairo zlib gstreamer-app-1.0 gstreamer-1.0 gstreamer-video-1.0 gstreamer-base-1.0 libudev freetype2 fontconfig sndfile openal openssl libpulse-simple alsa gl glu glew gtk+-3.0 libmpg123
[...]
Compiling /home/flo/openFrameworks/libs/openFrameworks/sound/ofRtAudioSoundStream.cpp
g++ -g3 -Wall -std=c++14 -march=native -mtune=native -DOF_USING_GTK -DOF_USING_GTK -DOF_USING_MPG123 -I/usr/include/gstreamer-1.0 -I/usr/include/AL -D_REENTRANT -I/usr/include/alsa -I/usr/include/GL -I/usr/include/libdrm -I/usr/include/gtk-3.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng12 -I/usr/include/atk-1.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/mirclient -I/usr/include/mircommon -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/gio-unix-2.0/ -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/home/flo/openFrameworks/libs/fmodex/include -I/home/flo/openFrameworks/libs/glfw/include -I/home/flo/openFrameworks/libs/glfw/include/GLFW -I/home/flo/openFrameworks/libs/kiss/include -I/home/flo/openFrameworks/libs/poco/include -I/home/flo/openFrameworks/libs/portaudio/include -I/home/flo/openFrameworks/libs/tess2/include -I/home/flo/openFrameworks/libs/utf8cpp/include -I/home/flo/openFrameworks/libs/utf8cpp/include/utf8 -I/home/flo/openFrameworks/libs/openFrameworks -I/home/flo/openFrameworks/libs/openFrameworks/types -I/home/flo/openFrameworks/libs/openFrameworks/gl -I/home/flo/openFrameworks/libs/openFrameworks/sound -I/home/flo/openFrameworks/libs/openFrameworks/utils -I/home/flo/openFrameworks/libs/openFrameworks/3d -I/home/flo/openFrameworks/libs/openFrameworks/graphics -I/home/flo/openFrameworks/libs/openFrameworks/math -I/home/flo/openFrameworks/libs/openFrameworks/app -I/home/flo/openFrameworks/libs/openFrameworks/events -I/home/flo/openFrameworks/libs/openFrameworks/communication -I/home/flo/openFrameworks/libs/openFrameworks/video -DDEBUG -MMD -MP -MF /home/flo/openFrameworks/libs/openFrameworksCompiled/lib/linux64/obj/Debug/libs/openFrameworks/sound/ofRtAudioSoundStream.d -MT/home/flo/openFrameworks/libs/openFrameworksCompiled/lib/linux64/obj/Debug/libs/openFrameworks/sound/ofRtAudioSoundStream.o -o /home/flo/openFrameworks/libs/openFrameworksCompiled/lib/linux64/obj/Debug/libs/openFrameworks/sound/ofRtAudioSoundStream.o -c /home/flo/openFrameworks/libs/openFrameworks/sound/ofRtAudioSoundStream.cpp
/home/flo/openFrameworks/libs/openFrameworks/sound/ofRtAudioSoundStream.cpp:8:21: fatal error: RtAudio.h: No such file or directory
compilation terminated.
makefileCommon/compile.core.mk:234: recipe for target '/home/flo/openFrameworks/libs/openFrameworksCompiled/lib/linux64/obj/Debug/libs/openFrameworks/sound/ofRtAudioSoundStream.o' failed
make[1]: *** [/home/flo/openFrameworks/libs/openFrameworksCompiled/lib/linux64/obj/Debug/libs/openFrameworks/sound/ofRtAudioSoundStream.o] Error 1
makefileCommon/compile.core.mk:213: recipe for target 'Debug' failed
make: *** [Debug] Error 2
if working with the 0.8.4 download from the website, the compileOF.sh succeeds, but all the examples are throwing errors related to the poco library:
Compiling graphicsExample for Debug
make[1]: Entering directory '/home/flo/Programme/of_v0.8.4_linux64_release/examples/graphics/graphicsExample'
checking pkg-config libraries: cairo zlib gstreamer-app-1.0 gstreamer-1.0 gstreamer-video-1.0 gstreamer-base-1.0 libudev freetype2 fontconfig sndfile openal openssl libpulse-simple alsa gl glu glew gtk+-3.0 libmpg123
Linking bin/graphicsExample_debug for linux64
g++ -o bin/graphicsExample_debug obj/linux64/Debug/src/ofApp.o obj/linux64/Debug/src/main.o ../../../libs/openFrameworksCompiled/lib/linux64/libopenFrameworksDebug.a -Wl,-rpath=./libs:./bin/libs -Wl,--as-needed -Wl,--gc-sections -L../../../libs/fmodex/lib/linux64/ -lfmodex ../../../libs/glfw/lib/linux64/libglfw3.a ../../../libs/kiss/lib/linux64/libkiss.a ../../../libs/rtAudio/lib/linux64/libRtAudio.a ../../../libs/tess2/lib/linux64/libtess2.a ../../../libs/poco/lib/linux64/libPocoNet.a ../../../libs/poco/lib/linux64/libPocoXML.a ../../../libs/poco/lib/linux64/libPocoUtil.a ../../../libs/poco/lib/linux64/libPocoFoundation.a ../../../libs/poco/lib/linux64/libPocoNetSSL.a ../../../libs/poco/lib/linux64/libPocoNet.a ../../../libs/poco/lib/linux64/libPocoCrypto.a ../../../libs/poco/lib/linux64/libPocoUtil.a ../../../libs/poco/lib/linux64/libPocoXML.a ../../../libs/poco/lib/linux64/libPocoFoundation.a -lz -lgstapp-1.0 -lgstvideo-1.0 -lgstbase-1.0 -lgstreamer-1.0 -ludev -lfontconfig -lfreetype -lsndfile -lopenal -lssl -lcrypto -lpulse-simple -lpulse -lasound -lGLEW -lGLU -lGL -lgtk-3 -lgdk-3 -lpangocairo-1.0 -lpango-1.0 -latk-1.0 -lcairo-gobject -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lmpg123 -lglut -lX11 -lXrandr -lXxf86vm -lXi -lXcursor -ldl -lpthread -lfreeimage
../../../libs/openFrameworksCompiled/lib/linux64/libopenFrameworksDebug.a(ofAppRunner.o): In Funktion `Poco::MutexImpl::lockImpl()':
/home/flo/Schreibtisch/of_v0.8.4_linux64_release/libs/openFrameworksCompiled/project/../../../libs/poco/include/Poco/Mutex_POSIX.h:82: Nicht definierter Verweis auf `Poco::SystemException::SystemException(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int)'
../../../libs/openFrameworksCompiled/lib/linux64/libopenFrameworksDebug.a(ofAppRunner.o): In Funktion `Poco::MutexImpl::unlockImpl()':
/home/flo/Schreibtisch/of_v0.8.4_linux64_release/libs/openFrameworksCompiled/project/../../../libs/poco/include/Poco/Mutex_POSIX.h:101: Nicht definierter Verweis auf `Poco::SystemException::SystemException(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int)'
../../../libs/openFrameworksCompiled/lib/linux64/libopenFrameworksDebug.a(ofShader.o): In Funktion `ofShader::parseForIncludes(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > >&, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
/home/flo/Schreibtisch/of_v0.8.4_linux64_release/libs/openFrameworksCompiled/project/../../../libs/openFrameworks/gl/ofShader.cpp:230: Nicht definierter Verweis auf `Poco::RegularExpression::RegularExpression(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int, bool)'
/home/flo/Schreibtisch/of_v0.8.4_linux64_release/libs/openFrameworksCompiled/project/../../../libs/openFrameworks/gl/ofShader.cpp:236: Nicht definierter Verweis auf `Poco::RegularExpression::match(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned long, std::vector<Poco::RegularExpression::Match, std::allocator<Poco::RegularExpression::Match> >&, int) const'
../../../libs/openFrameworksCompiled/lib/linux64/libopenFrameworksDebug.a(ofUtils.o): In Funktion `dataPathRoot()':
/home/flo/Schreibtisch/of_v0.8.4_linux64_release/libs/openFrameworksCompiled/project/../../../libs/openFrameworks/utils/ofUtils.cpp:247: Nicht definierter Verweis auf `Poco::Path::Path(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
../../../libs/openFrameworksCompiled/lib/linux64/libopenFrameworksDebug.a(ofUtils.o): In Funktion `ofSetDataPathRoot(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
[...]
/home/flo/Schreibtisch/of_v0.8.4_linux64_release/libs/openFrameworksCompiled/project/../../../libs/openFrameworks/graphics/ofTrueTypeFont.cpp:881: Nicht definierter Verweis auf `Poco::TextConverter::convert(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&)'
../../../libs/openFrameworksCompiled/lib/linux64/libopenFrameworksDebug.a(ofTrueTypeFont.o): In Funktion `ofTrueTypeFont::drawString(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, float, float)':
/home/flo/Schreibtisch/of_v0.8.4_linux64_release/libs/openFrameworksCompiled/project/../../../libs/openFrameworks/graphics/ofTrueTypeFont.cpp:1089: Nicht definierter Verweis auf `Poco::TextConverter::convert(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&)'
../../../libs/openFrameworksCompiled/lib/linux64/libopenFrameworksDebug.a(ofTrueTypeFont.o): In Funktion `ofTrueTypeFont::drawStringAsShapes(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, float, float)':
/home/flo/Schreibtisch/of_v0.8.4_linux64_release/libs/openFrameworksCompiled/project/../../../libs/openFrameworks/graphics/ofTrueTypeFont.cpp:1170: Nicht definierter Verweis auf `Poco::TextConverter::convert(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&)'
../../../libs/openFrameworksCompiled/lib/linux64/libopenFrameworksDebug.a(ofThread.o): In Funktion `ofThread::ofThread()':
/home/flo/Schreibtisch/of_v0.8.4_linux64_release/libs/openFrameworksCompiled/project/../../../libs/openFrameworks/utils/ofThread.cpp:16: Nicht definierter Verweis auf `Poco::Thread::setName(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
../../../libs/openFrameworksCompiled/lib/linux64/libopenFrameworksDebug.a(ofThread.o): In Funktion `Poco::MutexImpl::tryLockImpl()':
/home/flo/Schreibtisch/of_v0.8.4_linux64_release/libs/openFrameworksCompiled/project/../../../libs/poco/include/Poco/Mutex_POSIX.h:94: Nicht definierter Verweis auf `Poco::SystemException::SystemException(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int)'
collect2: error: ld returned 1 exit status
../../../libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk:296: recipe for target 'bin/graphicsExample_debug' failed
make[1]: *** [bin/graphicsExample_debug] Error 1
make[1]: Leaving directory '/home/flo/Programme/of_v0.8.4_linux64_release/examples/graphics/graphicsExample'
../../../libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk:144: recipe for target 'Debug' failed
make: *** [Debug] Error 2
i feel like being on a dead end here so i would be really thankful for any help!