How do I build libdivecomputer?
Posted: Wed Nov 23, 2011 3:16 am
In the How to report dive computer download problems? topic, you provide libdivecomputer test binaries. These work great, but I'm unable to build these myself with working USB support. What do I do wrong here?
Just as a comparison, here's the MacDive binary:
Code: Select all
$ cd libusb
$ ./configure --prefix /Users/henrik/local
$ make clean; make; make install
$ cd ../libdivecomputer
$ ./configure --prefix /Users/henrik/local LIBUSB_CFLAGS="-I${HOME}/local/include" LIBUSB_LIBS="-L${HOME}/local/lib -lusb-1.0"
$ make clean; make; make install
$ otool -L ~/local/bin/vyper
/Users/henrik/local/bin/vyper:
/Users/henrik/local/lib/libdivecomputer.0.dylib (compatibility version 1.0.0, current version 1.0.0)
/Users/henrik/local/lib/libusb-1.0.0.dylib (compatibility version 2.0.0, current version 2.0.0)
/usr/lib/libobjc.A.dylib (compatibility version 1.0.0, current version 228.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 159.1.0)
$ ~/local/bin/vyper /dev/tty.SLAB_USBtoUART
DEVICE=/dev/tty.SLAB_USBtoUART, DELAY=500
suunto_vyper_device_open
TRACE (serial_posix.c:632, ioctl): Inappropriate ioctl for device (25)
suunto_vyper.c:144: Failed to set the DTR line.
suunto_vyper_test.c:38: Error opening serial port.
suunto_vyper_device_open
TRACE (serial_posix.c:632, ioctl): Inappropriate ioctl for device (25)
suunto_vyper.c:144: Failed to set the DTR line.
suunto_vyper_test.c:71: Error opening serial port.
Code: Select all
$ otool -L ~/Downloads/vyper
/Users/henrik/Downloads/vyper:
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 88.3.10)
$ ~/Downloads/vyper /dev/tty.SLAB_USBtoUART
DATETIME 2011-11-22T19:06:56Z (1321988816)
REVISION 069797a08250262b19a84c9308ec7fbca3235fa2
DEVICE=/dev/tty.SLAB_USBtoUART, DELAY=500
suunto_vyper_device_open
Configure: baudrate=2400, databits=8, parity=2, stopbits=1, flowcontrol=0
Timeout: value=1000
DTR: value=1
Sleep: value=100
Flush: queue=3, input=0, output=0