libftdi Archives

Subject: Re: libftdi-1.0 for Ubuntu 9.10

From: Xiaofan Chen <xiaofanc@xxxxxxxxx>
To: libftdi@xxxxxxxxxxxxxxxxxxxxxxx
Date: Sun, 28 Feb 2010 16:46:49 +0800
On Mon, Feb 22, 2010 at 7:57 AM, Xiaofan Chen <xiaofanc@xxxxxxxxx> wrote:
>>>>> The python wrapper failed to be built under Ubuntu 9.10.
> I tested it under Arch Linux and the build is fine. Maybe the CMake version
> and/or Swig version in Ubuntu are too low.
>

Apparently Swig version is the problem. Arch has the latest 1.3.40 whereas
Ubuntu has 1.3.36. If I copy the one generated by Arch to Ubuntu, it then
builds fine.

mcuee@ubuntu:~/Desktop/build/libftdi/libftdi-1.0/build/bindings$ cp
ftdiPYTHON_wrap_arch.c ftdiPYTHON_wrap.c

mcuee@ubuntu:~/Desktop/build/libftdi/libftdi-1.0/build/bindings$ make
[ 50%] Building C object bindings/CMakeFiles/_ftdi.dir/ftdiPYTHON_wrap.c.o
/home/mcuee/Desktop/build/libftdi/libftdi-1.0/build/bindings/ftdiPYTHON_wrap.c:
In function ‘_wrap_ftdi_enable_bitbang’:
/home/mcuee/Desktop/build/libftdi/libftdi-1.0/build/bindings/ftdiPYTHON_wrap.c:6643:
warning: ‘ftdi_enable_bitbang’ is deprecated (declared at
/home/mcuee/Desktop/build/libftdi/libftdi-1.0/bindings/../src/ftdi.h:338)
Linking C shared module _ftdi.so
[100%] Built target _ftdi

mcuee@ubuntu:~/Desktop/build/libftdi/libftdi-1.0/build/bindings$ swig -version

SWIG Version 1.3.36

Compiled with g++ [i686-pc-linux-gnu]
Please see http://www.swig.org for reporting bugs and further information


-- 
Xiaofan http://mcuee.blogspot.com

--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx

Current Thread