Csound Csound-dev Csound-tekno Search About

[Cs-dev] CS5 fails to compile

Date2005-02-03 06:35
Fromjpff@codemist.co.uk
Subject[Cs-dev] CS5 fails to compile
I get

...
gcc -Wl,-Bdynamic -o cscore util1/cscore/cscore_main.o -L. -L. -L/usr/lib -L/usr/local/lib -L. -L. -L/usr/local/lib/python2.3/config -L/usr/local/lib -L/usr/X11R6/lib -lcsound -lsndfile -lfltk -ldl -lpthread -lm -lXext -lX11 -lportmidi -lporttime -lfltk -ldl -lstdc++ -lpthread -lm
./libcsound.a(main.o): In function `csoundCompile':
Top/main.c:397: the use of `tmpnam' is dangerous, better use `mkstemp'
/home/jpff/Audio/portmidi/pm_linux/pmlinuxalsa.c:61: undefined reference to `snd_strerror'
/home/jpff/Audio/portmidi/pm_linux/pmlinuxalsa.c:63: undefined reference to `snd_strerror'
/usr/local/lib/libportmidi.a(pmlinuxalsa.o): In function `alsa_use_queue':
/home/jpff/Audio/portmidi/pm_linux/pmlinuxalsa.c:80: undefined reference to `snd_seq_alloc_queue'
/home/jpff/Audio/portmidi/pm_linux/pmlinuxalsa.c:85: undefined reference to `snd_seq_queue_tempo_sizeof'
/home/jpff/Audio/portmidi/pm_linux/pmlinuxalsa.c:85: undefined reference to `snd_seq_queue_tempo_sizeof'
/home/jpff/Audio/portmidi/pm_linux/pmlinuxalsa.c:86: undefined reference to `snd_seq_queue_tempo_set_tempo'
/home/jpff/Audio/portmidi/pm_linux/pmlinuxalsa.c:87: undefined reference to `snd_seq_queue_tempo_set_ppq'
/home/jpff/Audio/portmidi/pm_linux/pmlinuxalsa.c:88: undefined reference to `snd_seq_set_queue_tempo'
and so forth for ages.

Why?  Nothing changed in this area.
xenakis:~/Sourceforge/csound5> ls -l /usr/local/lib/libportmidi.a
-rw-r--r--    1 root     root       203660 Jul 12  2004 /usr/local/lib/libportmidi.a
Looks like cscore is loadinf midi libraries?  Confused and stuck
==John ffitch


-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2005-02-03 11:11
FromIstvan Varga
SubjectRe: [Cs-dev] CS5 fails to compile
jpff@codemist.co.uk wrote:

> Why?  Nothing changed in this area.
> xenakis:~/Sourceforge/csound5> ls -l /usr/local/lib/libportmidi.a
> -rw-r--r--    1 root     root       203660 Jul 12  2004 /usr/local/lib/libportmidi.a
> Looks like cscore is loadinf midi libraries?  Confused and stuck
> ==John ffitch

It appears that libportmidi.a depends on the ALSA library. To fix this problem,
SConstruct needs to be modified so that libasound.so gets loaded with portmidi.
At line 362:

     if getPlatform() == 'mingw':
         csoundProgramEnvironment.Append(LIBS = ['winmm'])
         vstEnvironment.Append(LIBS = ['winmm'])
*   if getPlatform() == 'linux' and alsaFound:
*       csoundProgramEnvironment.Append(LIBS = ['asound'])
*       vstEnvironment.Append(LIBS = ['asound'])

Add the lines marked with '*' (of course, the '*' should be removed).
Hopefully this will fix the error (I could not reproduce it as I do
not have portmidi).


-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net