Re: [LAU] building giada on arch - RtAudio.h

From: R. Mattes <rm@email-addr-hidden-freiburg.de>
Date: Thu Apr 26 2012 - 13:35:12 EEST

On Thu, 26 Apr 2012 10:57:03 +0200, Atte André Jensen wrote
> Hi
>
> I'm trying to build giada (0.4.8) on arch. Running ./configure
> --target=linux fails:
>
> atte@email-addr-hidden:~/software/giada/giada_0.4.8$ ./configure --target=linux
> <snip>
> checking RtAudio.h usability... no
> checking RtAudio.h presence... no
> checking for RtAudio.h... no
> configure: error: library 'rtAudio' not found!
>
> I installed rtaudio from aur, and the files are in
> /usr/include/rtaudio/
>
> atte@email-addr-hidden:~$ ll /usr/include/rtaudio/
> total 360K
> -rwxr-xr-x 1 root root 5,5K Apr 26 10:06 asio.cpp
> -rwxr-xr-x 1 root root 3,4K Apr 26 10:06 asiodrivers.cpp
> -rwxr-xr-x 1 root root 719 Apr 26 10:06 asiodrivers.h
> -rwxr-xr-x 1 root root 2,3K Apr 26 10:06 asiodrvr.h
> -rwxr-xr-x 1 root root 42K Apr 26 10:06 asio.h
> -rwxr-xr-x 1 root root 6,7K Apr 26 10:06 asiolist.cpp
> -rwxr-xr-x 1 root root 994 Apr 26 10:06 asiolist.h
> -rwxr-xr-x 1 root root 1,4K Apr 26 10:06 asiosys.h
> -rwxr-xr-x 1 root root 106K Apr 26 10:06 dsound.h
> -rwxr-xr-x 1 root root 636 Apr 26 10:06 ginclude.h
> -rwxr-xr-x 1 root root 1,6K Apr 26 10:06 iasiodrv.h
> -rwxr-xr-x 1 root root 24K Apr 26 10:06 iasiothiscallresolver.cpp
> -rwxr-xr-x 1 root root 9,7K Apr 26 10:06 iasiothiscallresolver.h
> -rwxr-xr-x 1 root root 40K Apr 26 10:06 RtAudio.h
> -rwxr-xr-x 1 root root 2,1K Apr 26 10:06 RtError.h
> -rwxr-xr-x 1 root root 74K Apr 26 10:06 soundcard.h
>
> After reading Ralf Mattes post, I copied RtAudio.h and RtError.h
> into /usr/local/include/rtaudio/:

Hmm, did you really _read_ my post? IIRC my remark was about
installing custom/locally installed (!) software into system
directories. If I understand your mail correctly, you installed
RTAudio from a package repository, so it should stay in '/usr' and
not in '/usr/local'.
Anyway: that doesn't seem to be the problem. Your RtAudio header
is now in /usr/local/include/rtaudio which is _not_ in the compiler's
search path! You need to run configure like this:

CPPFLAGS=-I/usr/include/rtaudio ./configure --target=linux

(after you repaired your copy/move mess :-)

  
> and ran
> atte@email-addr-hidden:~$ sudo ldconfig -n /usr/local/
> atte@email-addr-hidden:~$ sudo ldconfig -n /usr/local/include/rtaudio/

No - ldconfig deals with libraries, not with header files.

 sudo ldconfig -n /usr/local/lib
 
> but configure still fails. What am I doing wrong here?

ldconfig refreshes the _linker/loader_ cache, which has nothing
to do with configure.

> NB1: I'm not sure *exactly* what "sudo ldconfig -n /usr/local/" does,
> I read abit about it, and it seems it "scans the system, sets up
> symbolic links and creates (updates) /etc/ld.so.cache". So supposed
> I want to "unto" whatever happened when running "sudo ldconfig -n
> /usr/local/", what steps should I take?

None, it didn't do any harm-
 
> NB2: Grrr, why on earth does the giada tarball extract in the
> working directory and not in it's own properly named (with version)
> directory? No need to answer, just a rhetoric rant :-)

Yes, that's anoying, to say the least.

 HTH Ralf Mattes
 
> --
> Atte
>
> http://atte.dk http://modlys.dk
> _______________________________________________
> Linux-audio-user mailing list
> Linux-audio-user@email-addr-hidden
> http://lists.linuxaudio.org/listinfo/linux-audio-user

--
R. Mattes -
Hochschule fuer Musik Freiburg
rm@email-addr-hidden-freiburg.de
_______________________________________________
Linux-audio-user mailing list
Linux-audio-user@email-addr-hidden
http://lists.linuxaudio.org/listinfo/linux-audio-user
Received on Thu Apr 26 12:15:02 2012

This archive was generated by hypermail 2.1.8 : Thu Apr 26 2012 - 12:15:02 EEST