[fixed] 0.7.1 compiling issues

Errors, malfunctions, website typos.
Post Reply
Arty
F7 - Goldenseal
Posts: 13
Joined: Wed Dec 19, 2012 12:02 am

[fixed] 0.7.1 compiling issues

Post by Arty » Fri Jun 28, 2013 8:19 pm

Hi,
thanks for another release of giada
Though, building it on Arch gives some problems:

- main.cpp misses '#include <unistd.h>' for included usleep

- ./configure doesn't include src/rtaudio
This did it for me:
cd src/rtaudio
./configure --with-alsa --with-jack --disable-shared --enable-static
make
cd ../../
./configure --prefix=/usr --target=linux #--enable-vst
make

rtaudio on Arch does not include static libs - but I suspect it would have been linked instead of your modified source
What's the reason / what changes have you done to rtaudio?
Last edited by Arty on Sat Jun 29, 2013 11:10 am, edited 1 time in total.

User avatar
FFT
F14 - Syrian Rue
Posts: 512
Joined: Thu Mar 08, 2012 6:51 pm

Re: 0.7.1 compiling issues

Post by FFT » Fri Jun 28, 2013 10:49 pm

Hi Arty,
We needed to tweak (or, better, hack) RtAudio in order to provide support for Jack Transport.
- main.cpp misses '#include <unistd.h>' for included usleep
thanks, fixed in git
- ./configure doesn't include src/rtaudio
There's a new step in the make process (docs here), you have to call first

Code: Select all

make libs
(which takes care of the included libs) and then

Code: Select all

make
.

make libs basically runs ./configure inside src/rtaudio but it's quite experimental: all parameters are hardcoded for now, and --disable-shared is missing. Do you think that the make libs step breaks any standard procedure on Arch (or Linux in general)?

Arty
F7 - Goldenseal
Posts: 13
Joined: Wed Dec 19, 2012 12:02 am

Re: 0.7.1 compiling issues

Post by Arty » Fri Jun 28, 2013 11:45 pm

Using:
./configure --prefix=/usr --target=linux #--enable-vst
(cd src; make libs)
make

results in:
[...] rtaudio/librtaudio.a -ljack -lasound -lpthread -ldl -lpulse-simple -lsamplerate -lpthread
/usr/bin/ld: rtaudio/librtaudio.a(RtAudio.o): undefined reference to symbol 'pa_strerror@@PULSE_0'
/usr/bin/ld: note: 'pa_strerror@@PULSE_0' is defined in DSO /usr/lib/libpulse.so.0 so try adding it to the linker command line
/usr/lib/libpulse.so.0: could not read symbols: Invalid operation
collect2: error: ld returned 1 exit status
make[1]: *** [giada] Error 1

:(
Edit:
Looking at the error again... it misses -lpulse

Code: Select all

    (cd src; make libs)
    sed -i 's:-lpulse-simple:-lpulse-simple  -lpulse:' src/Makefile
    make
:)

Edit2:
force use of system CFLAGS/CXXFLAGS

Code: Select all

sed -i 's:CFLAGS   = @CXXFLAGS@:CFLAGS   += @CXXFLAGS@:' src/rtaudio/Makefile.in

User avatar
FFT
F14 - Syrian Rue
Posts: 512
Joined: Thu Mar 08, 2012 6:51 pm

Re: [fixed] 0.7.1 compiling issues

Post by FFT » Sat Jun 29, 2013 9:41 pm

I'm glad you fixed it. Anyway, as you suggested, a patch applied to vanilla RtAudio seems to be easier and less error prone.

Post Reply