ofRtAudioSoundStream.o failed / RtAudio.h: on fresh Archlinux / 0.9.3

I just finished a clean install on RPI2 (following the official web guide) and I am getting this error when making the OF compiling for the first time:

make Release -C /home/pi/of_v0.9.3_linuxarmv7l/libs/openFrameworksCompiled/project

 Compiling /home/pi/of_v0.9.3_linuxarmv7l/libs/openFrameworks/sound/ofRtAudioSoundStream.cpp

 g++ -O3 -DNDEBUG -Wall -std=c++14 -DGCC_HAS_REGEX -march=armv7-a -mfpu=vfp -mfloat-abi=hard -fPIC -ftree-vectorize -Wno-psabi -pipe -DOF_USING_GTK -DOF_USING_MPG123 -DTARGET_RASPBERRY_PI -DSTANDALONE -DPIC -D_REENTRANT -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS -DTARGET_POSIX -DHAVE_LIBOPENMAX=2 -DOMX -DOMX_SKIP64BIT -DUSE_EXTERNAL_OMX -DHAVE_LIBBCM_HOST -DUSE_EXTERNAL_LIBBCM_HOST -DUSE_VCHIQ_ARM -I/opt/vc/include -I/opt/vc/include/IL -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux -D_REENTRANT -pthread -I/usr/include/gstreamer-1.0 -I/usr/lib/gstreamer-1.0/include -I/usr/include/AL -I/usr/include/alsa -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/home/pi/of_v0.9.3_linuxarmv7l/libs/fmodex/include -I/home/pi/of_v0.9.3_linuxarmv7l/libs/glfw/include -I/home/pi/of_v0.9.3_linuxarmv7l/libs/glfw/include/GLFW -I/home/pi/of_v0.9.3_linuxarmv7l/libs/kiss/include -I/home/pi/of_v0.9.3_linuxarmv7l/libs/poco/include -I/home/pi/of_v0.9.3_linuxarmv7l/libs/tess2/include -I/home/pi/of_v0.9.3_linuxarmv7l/libs/utf8cpp/include -I/home/pi/of_v0.9.3_linuxarmv7l/libs/utf8cpp/include/utf8 -I/home/pi/of_v0.9.3_linuxarmv7l/libs/openFrameworks -I/home/pi/of_v0.9.3_linuxarmv7l/libs/openFrameworks/gl -I/home/pi/of_v0.9.3_linuxarmv7l/libs/openFrameworks/3d -I/home/pi/of_v0.9.3_linuxarmv7l/libs/openFrameworks/types -I/home/pi/of_v0.9.3_linuxarmv7l/libs/openFrameworks/communication -I/home/pi/of_v0.9.3_linuxarmv7l/libs/openFrameworks/app -I/home/pi/of_v0.9.3_linuxarmv7l/libs/openFrameworks/events -I/home/pi/of_v0.9.3_linuxarmv7l/libs/openFrameworks/sound -I/home/pi/of_v0.9.3_linuxarmv7l/libs/openFrameworks/graphics -I/home/pi/of_v0.9.3_linuxarmv7l/libs/openFrameworks/math -I/home/pi/of_v0.9.3_linuxarmv7l/libs/openFrameworks/utils -I/home/pi/of_v0.9.3_linuxarmv7l/libs/openFrameworks/video  -MMD -MP -MF /home/pi/of_v0.9.3_linuxarmv7l/libs/openFrameworksCompiled/lib/linuxarmv7l/obj/Release/libs/openFrameworks/sound/ofRtAudioSoundStream.d -MT/home/pi/of_v0.9.3_linuxarmv7l/libs/openFrameworksCompiled/lib/linuxarmv7l/obj/Release/libs/openFrameworks/sound/ofRtAudioSoundStream.o -o /home/pi/of_v0.9.3_linuxarmv7l/libs/openFrameworksCompiled/lib/linuxarmv7l/obj/Release/libs/openFrameworks/sound/ofRtAudioSoundStream.o -c /home/pi/of_v0.9.3_linuxarmv7l/libs/openFrameworks/sound/ofRtAudioSoundStream.cpp
    /home/pi/of_v0.9.3_linuxarmv7l/libs/openFrameworks/sound/ofRtAudioSoundStream.cpp:8:21: fatal error: RtAudio.h: No such file or directory
    compilation terminated.
    makefileCommon/compile.core.mk:239: recipe for target '/home/pi/of_v0.9.3_linuxarmv7l/libs/openFrameworksCompiled/lib/linuxarmv7l/obj/Release/libs/openFrameworks/sound/ofRtAudioSoundStream.o' failed
    make[1]: *** [/home/pi/of_v0.9.3_linuxarmv7l/libs/openFrameworksCompiled/lib/linuxarmv7l/obj/Release/libs/openFrameworks/sound/ofRtAudioSoundStream.o] Error 1
    make[1]: *** Waiting for unfinished jobs....
    makefileCommon/compile.core.mk:205: recipe for target 'Release' failed
    make: *** [Release] Error 2
    make: Leaving directory '/home/pi/of_v0.9.3_linuxarmv7l/libs/openFrameworksCompiled/project'

RtAudio.h: No such file or directory
Any idea?

I found that wget it not was installed by default in Archlinux. I installed with pacman, but I ran the scripts again and compiled and I am getting the same error.

/home/pi/of_v0.9.3_linuxarmv7l/libs/openFrameworks/sound/ofRtAudioSoundStream.cpp:8:21: fatal error: RtAudio.h: No such file or directory
compilation terminated.

I can see that ‘RtAudio.h’ it’s on ‘/usr/include’ folder…

… it seems my Archlinux system it’s broken somewhere and no way to make OF compile. :frowning:
I downloaded the 0.9.2 version & I tried this:

https://wiki.archlinux.org/index.php/Pacman/Tips_and_tricks#Backing_up_and_retrieving_a_list_of_installed_packages

Reinstalling all packages:
To reinstall all native packages, use:
# pacman -Qnq | pacman -S - 

Also I reinstalled rtmidi and rtaudio forcing to reinstall and overwriting:

[pi@alarmpi rtaudio]$ makepkg -fsiC

Finally I made rebuild:

make clean -C /home/pi/of_v0.9.2_linuxarmv7l/libs/openFrameworksCompiled/project
make Release -C /home/pi/of_v0.9.2_linuxarmv7l/libs/openFrameworksCompiled/project

… but nothing changed, still getting the same error:

Compiling /home/pi/of_v0.9.2_linuxarmv7l/libs/openFrameworks/sound/ofRtAudioSoundStream.cpp
g++ -O3 -DNDEBUG -Wall -std=c++14 -DGCC_HAS_REGEX -march=armv7-a -mfpu=vfp -mfloat-abi=hard -fPIC -ftree-vectorize -Wno-psabi -pipe -DOF_USING_GTK -DOF_USING_MPG123 -DTARGET_RASPBERRY_PI -DSTANDALONE -DPIC -D_REENTRANT -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS -DTARGET_POSIX -DHAVE_LIBOPENMAX=2 -DOMX -DOMX_SKIP64BIT -DUSE_EXTERNAL_OMX -DHAVE_LIBBCM_HOST -DUSE_EXTERNAL_LIBBCM_HOST -DUSE_VCHIQ_ARM -I/opt/vc/include -I/opt/vc/include/IL -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux -D_REENTRANT -pthread -I/usr/include/gstreamer-1.0 -I/usr/lib/gstreamer-1.0/include -I/usr/include/AL -I/usr/include/alsa -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/home/pi/of_v0.9.2_linuxarmv7l/libs/fmodex/include -I/home/pi/of_v0.9.2_linuxarmv7l/libs/glfw/include -I/home/pi/of_v0.9.2_linuxarmv7l/libs/glfw/include/GLFW -I/home/pi/of_v0.9.2_linuxarmv7l/libs/kiss/include -I/home/pi/of_v0.9.2_linuxarmv7l/libs/poco/include -I/home/pi/of_v0.9.2_linuxarmv7l/libs/tess2/include -I/home/pi/of_v0.9.2_linuxarmv7l/libs/utf8cpp/include -I/home/pi/of_v0.9.2_linuxarmv7l/libs/utf8cpp/include/utf8 -I/home/pi/of_v0.9.2_linuxarmv7l/libs/openFrameworks -I/home/pi/of_v0.9.2_linuxarmv7l/libs/openFrameworks/app -I/home/pi/of_v0.9.2_linuxarmv7l/libs/openFrameworks/gl -I/home/pi/of_v0.9.2_linuxarmv7l/libs/openFrameworks/3d -I/home/pi/of_v0.9.2_linuxarmv7l/libs/openFrameworks/graphics -I/home/pi/of_v0.9.2_linuxarmv7l/libs/openFrameworks/video -I/home/pi/of_v0.9.2_linuxarmv7l/libs/openFrameworks/utils -I/home/pi/of_v0.9.2_linuxarmv7l/libs/openFrameworks/types -I/home/pi/of_v0.9.2_linuxarmv7l/libs/openFrameworks/sound -I/home/pi/of_v0.9.2_linuxarmv7l/libs/openFrameworks/math -I/home/pi/of_v0.9.2_linuxarmv7l/libs/openFrameworks/communication -I/home/pi/of_v0.9.2_linuxarmv7l/libs/openFrameworks/events  -MMD -MP -MF /home/pi/of_v0.9.2_linuxarmv7l/libs/openFrameworksCompiled/lib/linuxarmv7l/obj/Release/libs/openFrameworks/sound/ofRtAudioSoundStream.d -MT/home/pi/of_v0.9.2_linuxarmv7l/libs/openFrameworksCompiled/lib/linuxarmv7l/obj/Release/libs/openFrameworks/sound/ofRtAudioSoundStream.o -o /home/pi/of_v0.9.2_linuxarmv7l/libs/openFrameworksCompiled/lib/linuxarmv7l/obj/Release/libs/openFrameworks/sound/ofRtAudioSoundStream.o -c /home/pi/of_v0.9.2_linuxarmv7l/libs/openFrameworks/sound/ofRtAudioSoundStream.cpp
In file included from /home/pi/of_v0.9.2_linuxarmv7l/libs/openFrameworks/math/ofVec3f.h:3:0,
                 from /home/pi/of_v0.9.2_linuxarmv7l/libs/openFrameworks/types/ofPoint.h:3,
                 from /home/pi/of_v0.9.2_linuxarmv7l/libs/openFrameworks/math/ofMath.h:3,
                 from /home/pi/of_v0.9.2_linuxarmv7l/libs/openFrameworks/types/ofColor.h:5,
                 from /home/pi/of_v0.9.2_linuxarmv7l/libs/openFrameworks/types/ofTypes.h:4,
                 from /home/pi/of_v0.9.2_linuxarmv7l/libs/openFrameworks/utils/ofLog.h:5,
                 from /home/pi/of_v0.9.2_linuxarmv7l/libs/openFrameworks/utils/ofUtils.h:7,
                 from /home/pi/of_v0.9.2_linuxarmv7l/libs/openFrameworks/sound/ofFmodSoundPlayer.cpp:4:
/home/pi/of_v0.9.2_linuxarmv7l/libs/openFrameworks/math/ofVec2f.h: In member function 'ofVec2f& ofVec2f::average(const ofVec2f*, std::size_t)':
/home/pi/of_v0.9.2_linuxarmv7l/libs/openFrameworks/math/ofVec2f.h:1363:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for( int i=0; i<num; i++) {
                 ^
/home/pi/of_v0.9.2_linuxarmv7l/libs/openFrameworks/sound/ofRtAudioSoundStream.cpp:8:21: fatal error: RtAudio.h: No such file or directory
compilation terminated.
makefileCommon/compile.core.mk:239: recipe for target '/home/pi/of_v0.9.2_linuxarmv7l/libs/openFrameworksCompiled/lib/linuxarmv7l/obj/Release/libs/openFrameworks/sound/ofRtAudioSoundStream.o' failed
make[1]: *** [/home/pi/of_v0.9.2_linuxarmv7l/libs/openFrameworksCompiled/lib/linuxarmv7l/obj/Release/libs/openFrameworks/sound/ofRtAudioSoundStream.o] Error 1
make[1]: *** Waiting for unfinished jobs....
makefileCommon/compile.core.mk:205: recipe for target 'Release' failed
make: *** [Release] Error 2
make: Leaving directory '/home/pi/of_v0.9.2_linuxarmv7l/libs/openFrameworksCompiled/project'

I don’t know what to try more, just to loose another day starting from scratch…

(PS: it would be awesome to have a full image SD ready to download on the OF web ready to boot, it’s allways a nightmare to me…)

Hi,

what version of rtaudio did you install? If it’s 4.1.2-1, try to install 4.1.1-7.

My program compiled ok, but after upgrading to 4.2.1, I got the same ‘RtAudio.h’ missing error today. Without investigating to much, I reinstalled the 4.1.1-7 version, and it worked again. (OF 0.9.3, Arch)

Good luck!

1 Like

Hey! cool thanks @Easy! :slightly_smiling:
that’s fresh air, finally.

…Did you installed something more to get de audio examples to sound through the onboard minijack output? Any special tweaking? I wasn’t getting sound on my previous 0.9.0 SD neither…

Thanks!

I installed rtaudio from AUR without any special tweaking. I only changed the architecture to ‘armv7h’ in the PKGBUILD file as suggested. Since rtmidi was not in the repositories, I had to install it from AUR as well.

I just checked the soundPlayerExample-> Sound is playing normal from the minijack.

I just noticed, that you have an RPI2. Mine is a RPI3, but that shouldn’t make a huge difference

Thanks.

Sorry to still asking man, but where did you find the 4.1.1-7 version?

Here I can see only the last one:

https://aur.archlinux.org/packages/rtaudio/

http://www.music.mcgill.ca/~gary/rtaudio/release/rtaudio-4.1.2.tar.gz

I found this:
So I am looking around…

Arch Linux Archive
The Arch Linux Archive is a daily snapshot of the official repositories.
The ALA can be used to install a previous package version, or restore the system to an earlier date.
Rebuild the package
If the package is unavailable, find the correct PKGBUILD and rebuild it with makepkg.
For packages from the official repositories, retrieve the PKGBUILD with ABS and change the software version. Alternatively, find the package on the Packages website, click "View Changes", and navigate to the desired version. The files are available through a .tar.gz snapshot, and via the Tree view.
See also Getting PKGBUILDs from SVN#Checkout an older revision of a package.
Old AUR packages can be obtained from aur-mirror. See Arch User Repository#Git repositories for AUR3 packages for details.

You can also visit http://pkgbuild.com/git/aur-mirror.git/tree/<packagename> directly as trying to load http://pkgbuild.com/git/aur-mirror.git/tree in a web browser is going to use a lot of time and memory.

Ok! solved ! :slightly_smiling:

You can also visit http://pkgbuild.com/git/aur-mirror.git/tree/<packagename> directly as trying to load http://pkgbuild.com/git/aur-mirror.git/tree in a web browser is going to use a lot of time and memory. !

here is rtaudio 4.1.1 PKGBUIILD content:

http://pkgbuild.com/git/aur-mirror.git/tree/rtaudio/PKGBUILD

I just made copy/paste to a new file and made the ‘makepkg -si’: (with fC to overwrite, just in case…)

[pi@alarmpi rtaudio]$ makepkg -fsiC

Cheers!

:thumbsup: Glad you found it!

I still had a copy of the old PKGBUILD on another machine.

For the record: This is the 4.1.1-7 PKGBUILD:
http://pastebin.com/jFbwFdw2

1 Like

Just for future reference: openFrameworks is also available as package in AUR. This package also includes a rtAudio.patch, that should fix this issue. I’m compiling it right now and will update this comment, when I’m done.

Edit: the AUR version of OF solves the rtaudio issue, but has an issue with QT Designer until version 0.9.4 is released. Using the make-file works like a charm.

The patch to fix rtaudio looks like this:

--- ofRtAudioSoundStream.cpp	2016-03-09 17:40:44.000000000 +0100
+++ ofRtAudioSoundStream.cpp.fixed	2016-04-29 18:06:13.321128680 +0200
@@ -5,7 +5,7 @@
 #include "ofSoundStream.h"
 #include "ofMath.h"
 #include "ofUtils.h"
-#include "RtAudio.h"
+#include "rtaudio/RtAudio.h"
 
 
 //------------------------------------------------------------------------------
1 Like