Author Topic: Make error with sonic-visualiser-1.5  (Read 6890 times)

Pablo

  • Newbie
  • *
  • Posts: 2
    • View Profile
Make error with sonic-visualiser-1.5
« on: March 19, 2009, 10:06:35 »
Hi Chris,
I'm trying to compile sv 1.5 from source in 64studio x86 (ubuntu hardy based). I followed the README and INSTALL files to the letter. I bumped into the same issue that has been reported here in a recent topic, despite having installed vamp-plugin-sdk from the ubuntu repository (1.3). This was solved by compiling and installing vamp-plugin-sdk-2.0 from the source found here. So far so good.

However, when I compile with make and after a few minutes, I've got this message:

.......................................
 -lsvbase -lsvsystem -lbz2 -lvamp-hostsdk -loggz -logg -lfishsound -lvorbisenc -lvorbis -logg -lm -lmad -lrubberband -lfftw3 -lm -lfftw3f -lm -lsndfile -lsamplerate -llrdf -lrdf -lrasqal -lraptor -lrasqal -lraptor -lraptor -ljack -llo -Wl,-Bdynamic -lpthread -ldl -lpthread -lQtXml -lQtGui -lQtNetwork -lQtCore
../data/libsvdata.a(RtMidi.o): In function `RtMidiOut::closePort()':
RtMidi.cpp:(.text+0x153): undefined reference to `snd_seq_unsubscribe_port'
RtMidi.cpp:(.text+0x15e): undefined reference to `snd_seq_port_subscribe_free'
../data/libsvdata.a(RtMidi.o): In function `RtMidiIn::closePort()':
RtMidi.cpp:(.text+0x1b3): undefined reference to `snd_seq_unsubscribe_port'
RtMidi.cpp:(.text+0x1be): undefined reference to `snd_seq_port_subscribe_free'
RtMidi.cpp:(.text+0x1e7): undefined reference to `snd_seq_control_queue'
RtMidi.cpp:(.text+0x1f1): undefined reference to `snd_seq_drain_output'
../data/libsvdata.a(RtMidi.o): In function `portInfo(_snd_seq*, _snd_seq_port_info*, unsigned int, int)':
RtMidi.cpp:(.text+0x236): undefined reference to `snd_seq_client_info_sizeof'
RtMidi.cpp:(.text+0x24d): undefined reference to `snd_seq_client_info_sizeof'
RtMidi.cpp:(.text+0x277): undefined reference to `snd_seq_client_info_set_client'
RtMidi.cpp:(.text+0x28d): undefined reference to `snd_seq_query_next_client'
RtMidi.cpp:(.text+0x29c): undefined reference to `snd_seq_client_info_get_client'
RtMidi.cpp:(.text+0x2ac): undefined reference to `snd_seq_port_info_set_client'
RtMidi.cpp:(.text+0x2bc): undefined reference to `snd_seq_port_info_set_port'
RtMidi.cpp:(.text+0x2c8): undefined reference to `snd_seq_query_next_port'
RtMidi.cpp:(.text+0x2d4): undefined reference to `snd_seq_port_info_get_type'
RtMidi.cpp:(.text+0x2e0): undefined reference to `snd_seq_port_info_get_capability'
../data/libsvdata.a(RtMidi.o): In function `RtMidiOut::getPortCount()':
RtMidi.cpp:(.text+0x359): undefined reference to `snd_seq_port_info_sizeof'

...............................................# goes on for other 50 or so similar lines.........

../data/libsvdata.a(RtMidi.o): In function `RtMidiIn::~RtMidiIn()':
RtMidi.cpp:(.text+0x35aa): undefined reference to `snd_seq_delete_port'
RtMidi.cpp:(.text+0x35bb): undefined reference to `snd_seq_free_queue'
RtMidi.cpp:(.text+0x35c5): undefined reference to `snd_seq_close'
../data/libsvdata.a(RtMidi.o): In function `RtMidiIn::~RtMidiIn()':
RtMidi.cpp:(.text+0x37ba): undefined reference to `snd_seq_delete_port'
RtMidi.cpp:(.text+0x37cb): undefined reference to `snd_seq_free_queue'
RtMidi.cpp:(.text+0x37d5): undefined reference to `snd_seq_close'
collect2: ld devolvió el estado de salida 1
make[1]: *** [sonic-visualiser] Error 1

And it stops here.

Regards, Pablo


cannam

  • Administrator
  • Sr. Member
  • *****
  • Posts: 273
    • View Profile
Re: Make error with sonic-visualiser-1.5
« Reply #1 on: March 19, 2009, 15:02:23 »
Ah, crap.

Add

Code: [Select]
LIBS += -lasound

to the file sv.prf, and then make again.


Chris

Pablo

  • Newbie
  • *
  • Posts: 2
    • View Profile
Success
« Reply #2 on: March 19, 2009, 16:06:01 »
Thank you Chris, that did the trick.
:)
Pablo

rosegardener

  • Newbie
  • *
  • Posts: 1
    • View Profile
Re: Make error with sonic-visualiser-1.5
« Reply #3 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:

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