[prev in list] [next in list] [prev in thread] [next in thread] 

List:       libftdi
Subject:    Re: libftdi-1.0 for Ubuntu 9.10
From:       Xiaofan Chen <xiaofanc () gmail ! com>
Date:       2010-02-28 9:15:31
Message-ID: a276da401002280115s2a40df65rcbbdc7df40209007 () mail ! gmail ! com
[Download RAW message or body]

On Sun, Feb 28, 2010 at 4:46 PM, Xiaofan Chen <xiaofanc@gmail.com> wrote:
> On Mon, Feb 22, 2010 at 7:57 AM, Xiaofan Chen <xiaofanc@gmail.com> 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.
>

Hmm, even though I updated Swig and Cmake to the latest version
(and remove the system provided Swig and CMake), it still filed to
build. So I give up. Maybe it is because of the Python version.

[ 41%] Swig source
Scanning dependencies of target _ftdi
[ 47%] 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_context_usb_dev_set’:
/home/mcuee/Desktop/build/libftdi/libftdi-1.0/build/bindings/ftdiPYTHON_wrap.c:3120:
warning: assignment from incompatible pointer type
/home/mcuee/Desktop/build/libftdi/libftdi-1.0/build/bindings/ftdiPYTHON_wrap.c:
In function ‘_wrap_ftdi_context_async_usb_buffer_set’:
/home/mcuee/Desktop/build/libftdi/libftdi-1.0/build/bindings/ftdiPYTHON_wrap.c:4119:
error: ‘struct ftdi_context’ has no member named ‘async_usb_buffer’
/home/mcuee/Desktop/build/libftdi/libftdi-1.0/build/bindings/ftdiPYTHON_wrap.c:4119:
error: ‘struct ftdi_context’ has no member named ‘async_usb_buffer’
/home/mcuee/Desktop/build/libftdi/libftdi-1.0/build/bindings/ftdiPYTHON_wrap.c:4122:
error: ‘struct ftdi_context’ has no member named ‘async_usb_buffer’
/home/mcuee/Desktop/build/libftdi/libftdi-1.0/build/bindings/ftdiPYTHON_wrap.c:4124:
error: ‘struct ftdi_context’ has no member named ‘async_usb_buffer’
/home/mcuee/Desktop/build/libftdi/libftdi-1.0/build/bindings/ftdiPYTHON_wrap.c:
In function ‘_wrap_ftdi_context_async_usb_buffer_get’:
/home/mcuee/Desktop/build/libftdi/libftdi-1.0/build/bindings/ftdiPYTHON_wrap.c:4149:
error: ‘struct ftdi_context’ has no member named ‘async_usb_buffer’
/home/mcuee/Desktop/build/libftdi/libftdi-1.0/build/bindings/ftdiPYTHON_wrap.c:
In function ‘_wrap_ftdi_context_async_usb_buffer_size_set’:
/home/mcuee/Desktop/build/libftdi/libftdi-1.0/build/bindings/ftdiPYTHON_wrap.c:4179:
error: ‘struct ftdi_context’ has no member named
‘async_usb_buffer_size’
/home/mcuee/Desktop/build/libftdi/libftdi-1.0/build/bindings/ftdiPYTHON_wrap.c:
In function ‘_wrap_ftdi_context_async_usb_buffer_size_get’:
/home/mcuee/Desktop/build/libftdi/libftdi-1.0/build/bindings/ftdiPYTHON_wrap.c:4201:
error: ‘struct ftdi_context’ has no member named
‘async_usb_buffer_size’
/home/mcuee/Desktop/build/libftdi/libftdi-1.0/build/bindings/ftdiPYTHON_wrap.c:
In function ‘_wrap_ftdi_device_list_dev_set’:
/home/mcuee/Desktop/build/libftdi/libftdi-1.0/build/bindings/ftdiPYTHON_wrap.c:4324:
warning: assignment from incompatible pointer type
/home/mcuee/Desktop/build/libftdi/libftdi-1.0/build/bindings/ftdiPYTHON_wrap.c:
In function ‘_wrap_ftdi_set_usbdev’:
/home/mcuee/Desktop/build/libftdi/libftdi-1.0/build/bindings/ftdiPYTHON_wrap.c:5406:
error: ‘usb_dev_handle’ undeclared (first use in this function)
/home/mcuee/Desktop/build/libftdi/libftdi-1.0/build/bindings/ftdiPYTHON_wrap.c:5406:
error: (Each undeclared identifier is reported only once
/home/mcuee/Desktop/build/libftdi/libftdi-1.0/build/bindings/ftdiPYTHON_wrap.c:5406:
error: for each function it appears in.)
/home/mcuee/Desktop/build/libftdi/libftdi-1.0/build/bindings/ftdiPYTHON_wrap.c:5406:
error: ‘arg2’ undeclared (first use in this function)
/home/mcuee/Desktop/build/libftdi/libftdi-1.0/build/bindings/ftdiPYTHON_wrap.c:5406:
error: expected expression before ‘)’ token
/home/mcuee/Desktop/build/libftdi/libftdi-1.0/build/bindings/ftdiPYTHON_wrap.c:5424:
error: expected expression before ‘)’ token
/home/mcuee/Desktop/build/libftdi/libftdi-1.0/build/bindings/ftdiPYTHON_wrap.c:
In function ‘_wrap_ftdi_usb_get_strings’:
/home/mcuee/Desktop/build/libftdi/libftdi-1.0/build/bindings/ftdiPYTHON_wrap.c:5604:
warning: passing argument 2 of ‘ftdi_usb_get_strings’ from
incompatible pointer type
/home/mcuee/Desktop/build/libftdi/libftdi-1.0/bindings/../src/ftdi.h:298:
note: expected ‘struct libusb_device *’ but argument is of type
‘struct usb_device *’
/home/mcuee/Desktop/build/libftdi/libftdi-1.0/build/bindings/ftdiPYTHON_wrap.c:
In function ‘_wrap_ftdi_usb_open_dev’:
/home/mcuee/Desktop/build/libftdi/libftdi-1.0/build/bindings/ftdiPYTHON_wrap.c:5818:
warning: passing argument 2 of ‘ftdi_usb_open_dev’ from incompatible
pointer type
/home/mcuee/Desktop/build/libftdi/libftdi-1.0/bindings/../src/ftdi.h:308:
note: expected ‘struct libusb_device *’ but argument is of type
‘struct usb_device *’
/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:6337:
warning: ‘ftdi_enable_bitbang’ is deprecated (declared at
/home/mcuee/Desktop/build/libftdi/libftdi-1.0/bindings/../src/ftdi.h:338)
make[2]: *** [bindings/CMakeFiles/_ftdi.dir/ftdiPYTHON_wrap.c.o] Error 1
make[1]: *** [bindings/CMakeFiles/_ftdi.dir/all] Error 2



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

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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic