paulnasca/paulstretch_cpp

ArchLinux build error

Opened this issue · 1 comments

I'm getting this error on an updated 64bit ArchLinux:

$ ./compile_linux_fftw_jack.sh 
/usr/bin/ld: /tmp/ccxnXlzq.o: undefined reference to symbol 'vorbis_block_init'
/usr/bin/ld: note: 'vorbis_block_init' is defined in DSO /usr/lib/libvorbis.so.0 so try adding it to the linker command line
/usr/lib/libvorbis.so.0: could not read symbols: Invalid operation
collect2: error: ld returned 1 exit status
AS383 commented

A same problems on ROSA Linux R11. The solution is add flags -lvorbis -logg -lz to gcc comand line in compile script:

g++ -ggdb GUI.cxx FreeEditUI.cxx *.cpp Input/*.cpp Output/*.cpp `fltk-config --cflags` \
 `fltk-config --ldflags`  -laudiofile -lz -lfftw3f -logg -lvorbis -lvorbisenc -lvorbisfile -lportaudio -lpthread -lmad -lmxml -o $outfile