1
Host Forum: Sonic Visualiser / Re: Make error with sonic-visualiser-1.5
« on: June 11, 2009, 19:34:22 »
I have a very similar problem (see below). I tried adding the lasound line to the LIB section of sv.prf:
Very happy to try any suggestions.
Thanks, John.
g++ -Wl,-O1 -Wl,-rpath,/home/john/QtCreator/qt/lib -o sonic-visualiser tmp_obj/main.o tmp_obj/OSCHandler.o tmp_obj/MainWindow.o tmp_obj/PreferencesDialog.o tmp_obj/moc_MainWindow.o tmp_obj/moc_PreferencesDialog.o tmp_obj/qrc_sonic-visualiser.o -L../view -L../layer -L../data -L../widgets -L../transform -L../plugin -L../base -L../system -L../framework -L../audioio -L../rdf -L/home/john/QtCreator/qt/lib -lsvframework -lsvaudioio -lsvview -lsvlayer -lsvrdf -lsvtransform -lsvwidgets -lsvdata -lsvplugin -lsvbase -lsvsystem -lbz2 -L/usr/local/lib -lvamp-hostsdk -loggz -lfishsound -lvorbisenc -lvorbis -logg -lmad -lrubberband -lfftw3 -lfftw3f -lsndfile -lsamplerate -llrdf -lrdf -lrasqal -lraptor -ljack -llo -Wl,-Bdynamic -lQtXml -L/home/john/QtCreator/qt/lib -pthread -pthread -lQtGui -L/usr/X11R6/lib -pthread -lfreetype -lgobject-2.0 -lSM -lICE -pthread -pthread -lXrender -lfontconfig -lXext -lX11 -lQtNetwork -pthread -pthread -lQtCore -lm -pthread -lgthread-2.0 -lrt -lglib-2.0 -lpthread -ldl
../data/libsvdata.a(RtMidi.o): In function `RtMidiOut::closePort()':
RtMidi.cpp:(.text+0x143): undefined reference to `snd_seq_unsubscribe_port'
RtMidi.cpp:(.text+0x14e): undefined reference to `snd_seq_port_subscribe_free'
../data/libsvdata.a(RtMidi.o): In function `RtMidiIn::closePort()':
RtMidi.cpp:(.text+0x1a3): undefined reference to `snd_seq_unsubscribe_port'
RtMidi.cpp:(.text+0x1ae): undefined reference to `snd_seq_port_subscribe_free'
RtMidi.cpp:(.text+0x1d7): undefined reference to `snd_seq_control_queue'
[...]
RtMidi.cpp:(.text+0x35f1): undefined reference to `snd_seq_get_any_client_info'
RtMidi.cpp:(.text+0x3751): undefined reference to `snd_seq_client_info_get_name'
RtMidi.cpp:(.text+0x37a7): undefined reference to `snd_seq_port_info_get_port'
collect2: ld returned 1 exit status
make[1]: *** [sonic-visualiser] Error 1
make[1]: Leaving directory `/BIG/Programs/sonic-visualiser-1.5/sv'
make: *** [sub-sv-make_default-ordered] Error 2
Code: [Select]
LIBS += -ljack
LIBS += -lportaudio
LIBS += -loggz -lfishsound
LIBS += -lmad -lid3tag
LIBS += -lfftw3f
LIBS += -lfftw3
LIBS += -lasound
but it made no difference. I'm using Linux Mint 7 (Gloria) and I've added all the required libraries. I also previously added libasound2-dev and I even tried changing the -lasound line to -lasound2. Also tried to build it in Qt-Creator, with similar results.Very happy to try any suggestions.
Thanks, John.
g++ -Wl,-O1 -Wl,-rpath,/home/john/QtCreator/qt/lib -o sonic-visualiser tmp_obj/main.o tmp_obj/OSCHandler.o tmp_obj/MainWindow.o tmp_obj/PreferencesDialog.o tmp_obj/moc_MainWindow.o tmp_obj/moc_PreferencesDialog.o tmp_obj/qrc_sonic-visualiser.o -L../view -L../layer -L../data -L../widgets -L../transform -L../plugin -L../base -L../system -L../framework -L../audioio -L../rdf -L/home/john/QtCreator/qt/lib -lsvframework -lsvaudioio -lsvview -lsvlayer -lsvrdf -lsvtransform -lsvwidgets -lsvdata -lsvplugin -lsvbase -lsvsystem -lbz2 -L/usr/local/lib -lvamp-hostsdk -loggz -lfishsound -lvorbisenc -lvorbis -logg -lmad -lrubberband -lfftw3 -lfftw3f -lsndfile -lsamplerate -llrdf -lrdf -lrasqal -lraptor -ljack -llo -Wl,-Bdynamic -lQtXml -L/home/john/QtCreator/qt/lib -pthread -pthread -lQtGui -L/usr/X11R6/lib -pthread -lfreetype -lgobject-2.0 -lSM -lICE -pthread -pthread -lXrender -lfontconfig -lXext -lX11 -lQtNetwork -pthread -pthread -lQtCore -lm -pthread -lgthread-2.0 -lrt -lglib-2.0 -lpthread -ldl
../data/libsvdata.a(RtMidi.o): In function `RtMidiOut::closePort()':
RtMidi.cpp:(.text+0x143): undefined reference to `snd_seq_unsubscribe_port'
RtMidi.cpp:(.text+0x14e): undefined reference to `snd_seq_port_subscribe_free'
../data/libsvdata.a(RtMidi.o): In function `RtMidiIn::closePort()':
RtMidi.cpp:(.text+0x1a3): undefined reference to `snd_seq_unsubscribe_port'
RtMidi.cpp:(.text+0x1ae): undefined reference to `snd_seq_port_subscribe_free'
RtMidi.cpp:(.text+0x1d7): undefined reference to `snd_seq_control_queue'
[...]
RtMidi.cpp:(.text+0x35f1): undefined reference to `snd_seq_get_any_client_info'
RtMidi.cpp:(.text+0x3751): undefined reference to `snd_seq_client_info_get_name'
RtMidi.cpp:(.text+0x37a7): undefined reference to `snd_seq_port_info_get_port'
collect2: ld returned 1 exit status
make[1]: *** [sonic-visualiser] Error 1
make[1]: Leaving directory `/BIG/Programs/sonic-visualiser-1.5/sv'
make: *** [sub-sv-make_default-ordered] Error 2