On Friday 17 March 2006 03:00, Iain Duncan wrote: > I tried building my own portmidi test app and it worked ok, so not sure > what is wrong. The message I get from scons is: > > scons: Building targets ... > gcc -Wl,-Bdynamic -shared -o libpmidi.so InOut/pmidi.os -L. -L. > -L/usr/local/lib64 -L. -L. -lsndfile -lportmidi -lporttime -lasoun d > /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/../../../../x86_64-pc-linux-gnu/bin/ld: > /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/../../../../ > lib64/libportmidi.a(portmidi.o): relocation R_X86_64_32 against `a local > symbol' can not be used when making a shared object; reco mpile with -fPIC > /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/../../../../lib64/libportmidi.a: > could not read symbols: Bad value The libportmidi.a library was probably compiled without the option that requests position independent code. This is needed by the Csound PortMidi plugin which is a shared library, but not the static test app, that is why the latter does not fail. The solution is to recompile PortMidi with adding -fPIC to the compiler flags in the Makefile. > As to using alsamidi, I don't seem to be having any luck with that > either. What should I pass to -M when wanting to use the first alsa midi > device on the system? I am getting the following output from csound when > using -M0 or -M1: > > ALSA lib rawmidi.c:283:(snd_rawmidi_open_noupdate) Unknown RawMidi 1 > ALSA: error opening MIDI input device > *** error opening MIDI in device: -1 (Unknown MIDI error) For -+rtmidi=alsa, devices are specified as ALSA device names (similarly to real time audio with -+rtaudio=alsa). For example, -M hw:1,0 would use device #0 on card #1, assuming that it exists. ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net