Re: [LAD] Lexicon MX300 console for Linux

From: Adrian Knoth <adi@email-addr-hidden>
Date: Fri Feb 25 2011 - 14:29:18 EET

On 02/25/11 11:30, jani@email-addr-hidden wrote:

> http://leevi.sourceforge.net

Two things I faced:

1. linking fails:

gcc -L/lib -L/usr/lib -L/usr/local/lib -L/usr/pkg/lib -L -lpthread -ldl
-lm -lz -lc -o bin/leevi act.o bob.o callback.o cmdline.o config.o
effects.o event.o font.o graphics.o library.o main.o maths.o menu.o
messages.o mx.o path.o thread.o timer.o ui.o usbsys.o widget.o
gfx_solid.o worker.o worker_diskfree.o worker_diskread.o
worker_diskwrite.o worker_graphics.o worker_sound.o worker_usb.o
thread.o: In function `threadKill':
thread.c:(.text+0x22c): undefined reference to `pthread_kill'
thread.o: In function `threadInit':
thread.c:(.text+0x2fb): undefined reference to `pthread_create'
collect2: ld returned 1 exit status
make: *** [bin/leevi] Error 1

Solution: place -lpthread after all object files (yes, ordering matters)

2. When configured for libusb-1.0, it puts libusb-0 into the config
file:

#usb_library_libusb = libusb-1.0.so
usb_library_libusb = libusb.so

Should probably be tweaked in the install target or during compilation.

Haven't looked closer, but maybe saying somewhere what the different
audio bindings are supposed to do might make sense. At the moment, I
don't see why I need any of portaudio, pulseaudio or alsa to run a GUI
for outboard equipment.

Cheers
_______________________________________________
Linux-audio-dev mailing list
Linux-audio-dev@email-addr-hidden
http://lists.linuxaudio.org/listinfo/linux-audio-dev
Received on Fri Feb 25 16:15:04 2011

This archive was generated by hypermail 2.1.8 : Fri Feb 25 2011 - 16:15:04 EET