libftdi-1.0 for Ubuntu 9.10

classic Classic list List threaded Threaded
22 messages Options
12
Reply | Threaded
Open this post in threaded view
|

libftdi-1.0 for Ubuntu 9.10

Xiaofan Chen
The python wrapper failed to be built under Ubuntu 9.10.

mcuee@ubuntu:~/Desktop/build/libftdi/libftdi-1.0/build$ cmake ..
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Build type: Debug
-- checking for module 'libusb-1.0'
--   found libusb-1.0, version 1.0.5
-- Found LIBUSB: /usr/lib/libusb-1.0.so
-- Boost not found, won't build libftdi++
-- Found PythonLibs: /usr/lib/python2.6/config/libpython2.6.so
-- Building python bindings via swig. Will be installed under
/usr/lib/python2.6/site-packages
-- Building example programs.
-- Found Doxygen: /usr/bin/doxygen
-- Doxygen found.
-- Generating API documentation with Doxygen
-- Configuring done
-- Generating done
-- Build files have been written to:
/home/mcuee/Desktop/build/libftdi/libftdi-1.0/build

mcuee@ubuntu:~/Desktop/build/libftdi/libftdi-1.0/build$ make
Scanning dependencies of target ftdi
[  7%] Building C object src/CMakeFiles/ftdi.dir/ftdi.c.o
Linking C shared library libftdi.so
[  7%] Built target ftdi
Scanning dependencies of target docs
[  7%] Generating doc
[  7%] Generating doc/html/index.html
Warning: Tag `USE_WINDOWS_ENCODING' at line 64 of file
/home/mcuee/Desktop/build/libftdi/libftdi-1.0/build/doxy.config has
become obsolete.
To avoid this warning please update your configuration file using "doxygen -u"
Warning: Tag `DETAILS_AT_TOP' at line 156 of file
/home/mcuee/Desktop/build/libftdi/libftdi-1.0/build/doxy.config has
become obsolete.
To avoid this warning please update your configuration file using "doxygen -u"
Warning: Tag `MAX_DOT_GRAPH_WIDTH' at line 1196 of file
/home/mcuee/Desktop/build/libftdi/libftdi-1.0/build/doxy.config has
become obsolete.
To avoid this warning please update your configuration file using "doxygen -u"
Warning: Tag `MAX_DOT_GRAPH_HEIGHT' at line 1204 of file
/home/mcuee/Desktop/build/libftdi/libftdi-1.0/build/doxy.config has
become obsolete.
To avoid this warning please update your configuration file using "doxygen -u"
Searching for include files...
Searching for example files...
Searching for files in directory
/home/mcuee/Desktop/build/libftdi/libftdi-1.0/examples
Searching for images...
Searching for dot files...
Searching for files to exclude
Searching for files to process...
Searching for files in directory
/home/mcuee/Desktop/build/libftdi/libftdi-1.0/src
Searching for files in directory
/home/mcuee/Desktop/build/libftdi/libftdi-1.0/ftdipp
Reading and parsing tag files
Preprocessing /home/mcuee/Desktop/build/libftdi/libftdi-1.0/src/ftdi.c...
Parsing file /home/mcuee/Desktop/build/libftdi/libftdi-1.0/src/ftdi.c...
Preprocessing /home/mcuee/Desktop/build/libftdi/libftdi-1.0/src/ftdi.h...
Parsing file /home/mcuee/Desktop/build/libftdi/libftdi-1.0/src/ftdi.h...
Preprocessing /home/mcuee/Desktop/build/libftdi/libftdi-1.0/ftdipp/ftdi.cpp...
Parsing file /home/mcuee/Desktop/build/libftdi/libftdi-1.0/ftdipp/ftdi.cpp...
Preprocessing /home/mcuee/Desktop/build/libftdi/libftdi-1.0/ftdipp/ftdi.hpp...
Parsing file /home/mcuee/Desktop/build/libftdi/libftdi-1.0/ftdipp/ftdi.hpp...
Building group list...
Building directory list...
Building namespace list...
Building file list...
Building class list...
Associating documentation with classes...
Computing nesting relations for classes...
Building example list...
Searching for enumerations...
Searching for documented typedefs...
Searching for members imported via using declarations...
Searching for included using directives...
Searching for documented variables...
Building member list...
Searching for friends...
Searching for documented defines...
Computing class inheritance relations...
Computing class usage relations...
Flushing cached template relations that have become invalid...
Creating members for template instances...
Computing class relations...
Add enum values to enums...
Searching for member function documentation...
/home/mcuee/Desktop/build/libftdi/libftdi-1.0/ftdipp/ftdi.cpp:275:
Warning: documented function `int Ftdi::Context::bitbang_enable' was
not declared or defined.
Building page list...
Search for main page...
Computing page relations...
Determining the scope of groups...
Sorting lists...
Freeing entry tree
Determining which enums are documented
Computing member relations...
Building full member lists recursively...
Adding members to member groups.
Computing member references...
Inheriting documentation...
Generating disk names...
Adding source references...
Adding xrefitems...
Counting data structures...
Resolving user defined references...
Finding anchors and sections in the documentation...
Combining using relations...
Adding members to index pages...
Generating style sheet...
Generating index page...
Generating page index...
Generating example documentation...
Generating file sources...
Generating code for file ftdi.c...
Generating code for file ftdi.cpp...
Generating code for file ftdi.h...
Generating code for file ftdi.hpp...
Generating file documentation...
Generating docs for file ftdi.c...
Generating docs for file ftdi.cpp...
Generating docs for file ftdi.h...
Generating docs for file ftdi.hpp...
Generating page documentation...
Generating docs for page deprecated...
Generating group documentation...
Generating group index...
Generating class documentation...
Generating annotated compound index...
Generating alphabetical compound index...
Generating hierarchical class index...
Generating member index...
Generating docs for compound ftdi_context...
Generating docs for compound ftdi_device_list...
Generating docs for compound ftdi_eeprom...
Generating docs for compound ftdi_transfer_control...
Generating namespace index...
Generating docs for namespace Ftdi
Generating docs for compound Ftdi::Context...
Generating docs for nested compound Ftdi::Context::Private...
Generating docs for compound Ftdi::Eeprom...
Generating docs for nested compound Ftdi::Eeprom::Private...
Generating docs for compound Ftdi::List...
Generating docs for nested compound Ftdi::List::Private...
Generating namespace member index...
Generating graph info page...
Generating file index...
Generating example index...
Generating file member index...
[ 21%] Built target docs
Scanning dependencies of target ftdi-static
[ 28%] Building C object src/CMakeFiles/ftdi-static.dir/ftdi.c.o
Linking C static library libftdi.a
[ 28%] Built target ftdi-static
[ 35%] Swig source
Scanning dependencies of target _ftdi
[ 42%] 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:2909:
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:3908:
error: ‘struct ftdi_context’ has no member named ‘async_usb_buffer’
/home/mcuee/Desktop/build/libftdi/libftdi-1.0/build/bindings/ftdiPYTHON_wrap.c:3908:
error: ‘struct ftdi_context’ has no member named ‘async_usb_buffer’
/home/mcuee/Desktop/build/libftdi/libftdi-1.0/build/bindings/ftdiPYTHON_wrap.c:3911:
error: ‘struct ftdi_context’ has no member named ‘async_usb_buffer’
/home/mcuee/Desktop/build/libftdi/libftdi-1.0/build/bindings/ftdiPYTHON_wrap.c:3913:
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:3938:
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:3968:
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:3990:
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:4113:
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:5195:
error: ‘usb_dev_handle’ undeclared (first use in this function)
/home/mcuee/Desktop/build/libftdi/libftdi-1.0/build/bindings/ftdiPYTHON_wrap.c:5195:
error: (Each undeclared identifier is reported only once
/home/mcuee/Desktop/build/libftdi/libftdi-1.0/build/bindings/ftdiPYTHON_wrap.c:5195:
error: for each function it appears in.)
/home/mcuee/Desktop/build/libftdi/libftdi-1.0/build/bindings/ftdiPYTHON_wrap.c:5195:
error: ‘arg2’ undeclared (first use in this function)
/home/mcuee/Desktop/build/libftdi/libftdi-1.0/build/bindings/ftdiPYTHON_wrap.c:5195:
error: expected expression before ‘)’ token
/home/mcuee/Desktop/build/libftdi/libftdi-1.0/build/bindings/ftdiPYTHON_wrap.c:5213:
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:5393:
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:5607:
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:6126:
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
make: *** [all] Error 2

mcuee@ubuntu:~/Desktop/build/libftdi/libftdi-1.0/build$ make -i
[  7%] Built target ftdi
[ 21%] Built target docs
[ 28%] Built target ftdi-static
[ 35%] 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:2909:
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:3908:
error: ‘struct ftdi_context’ has no member named ‘async_usb_buffer’
/home/mcuee/Desktop/build/libftdi/libftdi-1.0/build/bindings/ftdiPYTHON_wrap.c:3908:
error: ‘struct ftdi_context’ has no member named ‘async_usb_buffer’
/home/mcuee/Desktop/build/libftdi/libftdi-1.0/build/bindings/ftdiPYTHON_wrap.c:3911:
error: ‘struct ftdi_context’ has no member named ‘async_usb_buffer’
/home/mcuee/Desktop/build/libftdi/libftdi-1.0/build/bindings/ftdiPYTHON_wrap.c:3913:
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:3938:
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:3968:
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:3990:
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:4113:
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:5195:
error: ‘usb_dev_handle’ undeclared (first use in this function)
/home/mcuee/Desktop/build/libftdi/libftdi-1.0/build/bindings/ftdiPYTHON_wrap.c:5195:
error: (Each undeclared identifier is reported only once
/home/mcuee/Desktop/build/libftdi/libftdi-1.0/build/bindings/ftdiPYTHON_wrap.c:5195:
error: for each function it appears in.)
/home/mcuee/Desktop/build/libftdi/libftdi-1.0/build/bindings/ftdiPYTHON_wrap.c:5195:
error: ‘arg2’ undeclared (first use in this function)
/home/mcuee/Desktop/build/libftdi/libftdi-1.0/build/bindings/ftdiPYTHON_wrap.c:5195:
error: expected expression before ‘)’ token
/home/mcuee/Desktop/build/libftdi/libftdi-1.0/build/bindings/ftdiPYTHON_wrap.c:5213:
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:5393:
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:5607:
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:6126:
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
gcc: CMakeFiles/_ftdi.dir/ftdiPYTHON_wrap.c.o: No such file or directory
[ 42%] Built target _ftdi
Scanning dependencies of target baud_test
[ 50%] Building C object examples/CMakeFiles/baud_test.dir/baud_test.c.o
Linking C executable baud_test
[ 50%] Built target baud_test
Scanning dependencies of target bitbang
[ 57%] Building C object examples/CMakeFiles/bitbang.dir/bitbang.c.o
Linking C executable bitbang
[ 57%] Built target bitbang
Scanning dependencies of target bitbang2
[ 64%] Building C object examples/CMakeFiles/bitbang2.dir/bitbang2.c.o
Linking C executable bitbang2
[ 64%] Built target bitbang2
Scanning dependencies of target bitbang_cbus
[ 71%] Building C object examples/CMakeFiles/bitbang_cbus.dir/bitbang_cbus.c.o
Linking C executable bitbang_cbus
[ 71%] Built target bitbang_cbus
Scanning dependencies of target bitbang_ft2232
[ 78%] Building C object
examples/CMakeFiles/bitbang_ft2232.dir/bitbang_ft2232.c.o
Linking C executable bitbang_ft2232
[ 78%] Built target bitbang_ft2232
Scanning dependencies of target find_all
[ 85%] Building C object examples/CMakeFiles/find_all.dir/find_all.c.o
Linking C executable find_all
[ 85%] Built target find_all
Scanning dependencies of target serial_read
[ 92%] Building C object examples/CMakeFiles/serial_read.dir/serial_read.c.o
Linking C executable serial_read
[ 92%] Built target serial_read
Scanning dependencies of target simple
[100%] Building C object examples/CMakeFiles/simple.dir/simple.c.o
Linking C executable simple
[100%] Built target simple


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

--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: libftdi-1.0 for Ubuntu 9.10

Xiaofan Chen
On Fri, Feb 19, 2010 at 9:47 PM, Xiaofan Chen <[hidden email]> wrote:
> The python wrapper failed to be built under Ubuntu 9.10.
>

Other than this minor problem, it seems to work fine. I just
tested OpenOCD latest git with the latest git of libftdi-1.0
and it seems to work fine. Under Linux it does not really
offer higher speed than libftdi 0.17 though.

Reference:
https://lists.berlios.de/pipermail/openocd-development/2010-February/014895.html

 I guess that libftdi 0.17 has already the async mode in place
(albeit only for Linux) whereas libftdi-1.0/libusb-1.0 will work
under Windows (and Mac OS X?) as well.


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

--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to [hidden email]  

Reply | Threaded
Open this post in threaded view
|

Re: libftdi-1.0 for Ubuntu 9.10

Jie Zhang-2
On Fri, Feb 19, 2010 at 10:22 PM, Xiaofan Chen <[hidden email]> wrote:
> On Fri, Feb 19, 2010 at 9:47 PM, Xiaofan Chen <[hidden email]> wrote:
>> The python wrapper failed to be built under Ubuntu 9.10.
>>
Do you have a patch to fix it?
>
> Other than this minor problem, it seems to work fine. I just
> tested OpenOCD latest git with the latest git of libftdi-1.0
> and it seems to work fine. Under Linux it does not really
> offer higher speed than libftdi 0.17 though.
>
You need to modify OpenOCD to utilize the async mode to get higher
performance. See

The commit:
http://urjtag.git.sourceforge.net/git/gitweb.cgi?p=urjtag/urjtag;a=commit;h=ad53771377357e1f10206b2916069373fda01122

The patch:
http://sourceforge.net/mailarchive/message.php?msg_name=4B70279A.3010307%40analog.com

The explanation:
http://developer.intra2net.com/mailarchive/html/libftdi/2010/msg00065.html

> Reference:
> https://lists.berlios.de/pipermail/openocd-development/2010-February/014895.html
>
>  I guess that libftdi 0.17 has already the async mode in place
> (albeit only for Linux) whereas libftdi-1.0/libusb-1.0 will work
> under Windows (and Mac OS X?) as well.
>
Yes, I think so. But I have not tested UrJTAG on Windows.


Jie

--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: libftdi-1.0 for Ubuntu 9.10

Xiaofan Chen
On Sat, Feb 20, 2010 at 11:47 AM, Jie Zhang <[hidden email]> wrote:
Thanks. Maybe I will forward this to OpenOCD and there may be
people who can do that.

Current ftdi code in OpenOCD:
http://openocd.git.sourceforge.net/git/gitweb.cgi?p=openocd/openocd;a=blob;f=src/jtag/drivers/ft2232.c;h=82132d3b2d41159eb7974c370ce63a61a74752ff;hb=HEAD

>>  I guess that libftdi 0.17 has already the async mode in place
>> (albeit only for Linux) whereas libftdi-1.0/libusb-1.0 will work
>> under Windows (and Mac OS X?) as well.
>>
> Yes, I think so. But I have not tested UrJTAG on Windows.
>

Maybe I will give it a try later. I have never used UrJTAG before.


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

--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: libftdi-1.0 for Ubuntu 9.10

Xiaofan Chen
In reply to this post by Jie Zhang-2
On Sat, Feb 20, 2010 at 11:47 AM, Jie Zhang <[hidden email]> wrote:
>>> The python wrapper failed to be built under Ubuntu 9.10.
>>>
> Do you have a patch to fix it?

No. I do not know CMake and Swig well.

I am thinking a better approach with the wrapper may be to get
rid of Swig and use the approach like pyusb 1.0: to use ctypes.
http://sourceforge.net/apps/mediawiki/pyusb/index.php?title=Main_Page

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

--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to [hidden email]  

Reply | Threaded
Open this post in threaded view
|

Re: libftdi-1.0 for Ubuntu 9.10

Jie Zhang-2
In reply to this post by Xiaofan Chen
On Sat, Feb 20, 2010 at 12:21 PM, Xiaofan Chen <[hidden email]> wrote:

> On Sat, Feb 20, 2010 at 11:47 AM, Jie Zhang <[hidden email]> wrote:
>> You need to modify OpenOCD to utilize the async mode to get higher
>> performance. See
>>
>> The commit:
>> http://urjtag.git.sourceforge.net/git/gitweb.cgi?p=urjtag/urjtag;a=commit;h=ad53771377357e1f10206b2916069373fda01122
>>
>> The patch:
>> http://sourceforge.net/mailarchive/message.php?msg_name=4B70279A.3010307%40analog.com
>>
>> The explanation:
>> http://developer.intra2net.com/mailarchive/html/libftdi/2010/msg00065.html
>
> Thanks. Maybe I will forward this to OpenOCD and there may be
> people who can do that.
>
> Current ftdi code in OpenOCD:
> http://openocd.git.sourceforge.net/git/gitweb.cgi?p=openocd/openocd;a=blob;f=src/jtag/drivers/ft2232.c;h=82132d3b2d41159eb7974c370ce63a61a74752ff;hb=HEAD
>
Seems it can be done in the same way in ft2232_send_and_recv for
OpenOCD. But I have no time and no hardware to do it now by myself.
The only USB JTAG cable I have is Blackfin gnICE.


Jie

--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to [hidden email]  

Reply | Threaded
Open this post in threaded view
|

Re: libftdi-1.0 for Ubuntu 9.10

Jie Zhang-2
In reply to this post by Xiaofan Chen
On Sat, Feb 20, 2010 at 12:24 PM, Xiaofan Chen <[hidden email]> wrote:
> On Sat, Feb 20, 2010 at 11:47 AM, Jie Zhang <[hidden email]> wrote:
>>>> The python wrapper failed to be built under Ubuntu 9.10.
>>>>
>> Do you have a patch to fix it?
>
> No. I do not know CMake and Swig well.
>
I neither.

> I am thinking a better approach with the wrapper may be to get
> rid of Swig and use the approach like pyusb 1.0: to use ctypes.
> http://sourceforge.net/apps/mediawiki/pyusb/index.php?title=Main_Page
>
Maybe Uwe can help on this. He submitted CMake patches before.


Jie

--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to [hidden email]  

Reply | Threaded
Open this post in threaded view
|

Re: libftdi-1.0 for Ubuntu 9.10

Xiaofan Chen
In reply to this post by Jie Zhang-2
On Sat, Feb 20, 2010 at 12:37 PM, Jie Zhang <[hidden email]> wrote:
> Seems it can be done in the same way in ft2232_send_and_recv for
> OpenOCD. But I have no time and no hardware to do it now by myself.
> The only USB JTAG cable I have is Blackfin gnICE.

Thanks. I think gnICE should work with OpenOCD as it is FTDI2232x
based. I understand that your main interests are in Blackfin and
UrJTAG. But I think OpenOCD may be good for ADI as well
(at least the ARM and Cortex M3 based uConverter) and
might be useful for the BlackFin in the future if you can bring
OpenOCD support to BlackFin. Just a thought...

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

--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to [hidden email]  

Reply | Threaded
Open this post in threaded view
|

Re: libftdi-1.0 for Ubuntu 9.10

Xiaofan Chen
In reply to this post by Xiaofan Chen
On Sat, Feb 20, 2010 at 12:24 PM, Xiaofan Chen <[hidden email]> wrote:
> On Sat, Feb 20, 2010 at 11:47 AM, Jie Zhang <[hidden email]> wrote:
>>>> The python wrapper failed to be built under Ubuntu 9.10.
>>>>
>> Do you have a patch to fix it?
>
> No. I do not know CMake and Swig well.
>

I tested it under Arch Linux and the build is fine. Maybe the CMake version
and/or Swig version in Ubuntu are too low.

I also tried to build it under FreeBSD, but they do not have a proper
libusb-1.0 package but rather a wrapper of libusb 1.0.

Could you provide a bootstrapped tgz package (just like the released
libftdi-0.17 with the ./configure already there)? Thanks.


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

--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to [hidden email]  

Reply | Threaded
Open this post in threaded view
|

Re: libftdi-1.0 for Ubuntu 9.10

Jie Zhang-2
On Mon, Feb 22, 2010 at 7:57 AM, Xiaofan Chen <[hidden email]> wrote:

> On Sat, Feb 20, 2010 at 12:24 PM, Xiaofan Chen <[hidden email]> wrote:
>> On Sat, Feb 20, 2010 at 11:47 AM, Jie Zhang <[hidden email]> wrote:
>>>>> The python wrapper failed to be built under Ubuntu 9.10.
>>>>>
>>> Do you have a patch to fix it?
>>
>> No. I do not know CMake and Swig well.
>>
>
> I tested it under Arch Linux and the build is fine. Maybe the CMake version
> and/or Swig version in Ubuntu are too low.
>
> I also tried to build it under FreeBSD, but they do not have a proper
> libusb-1.0 package but rather a wrapper of libusb 1.0.
>
> Could you provide a bootstrapped tgz package (just like the released
> libftdi-0.17 with the ./configure already there)? Thanks.
>
See

http://blackfin.uclinux.org/gf/project/toolchain/scmsvn/?action=browse&path=%2Ftrunk%2Flibftdi-1.0%2F

It's behind upstream by several revisions, but it has those generated files.


Jie

--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to [hidden email]  

Reply | Threaded
Open this post in threaded view
|

Re: libftdi-1.0 for Ubuntu 9.10

Xiaofan Chen
On Mon, Feb 22, 2010 at 8:35 AM, Jie Zhang <[hidden email]> wrote:

>> Could you provide a bootstrapped tgz package (just like the released
>> libftdi-0.17 with the ./configure already there)? Thanks.
>>
> See
>
> http://blackfin.uclinux.org/gf/project/toolchain/scmsvn/?action=browse&path=%2Ftrunk%2Flibftdi-1.0%2F
>
> It's behind upstream by several revisions, but it has those generated files.
>

Thanks. It seems to work under FreeBSD (only the libftdi part, not the libftdipp
and the other parts) after some minor modifications.

[mcuee@MyFreeBSD
/usr/home/mcuee/Desktop/build/libftdi/blackfin/libftdi-1.0]$
LIBUSB_1_0_CFLAGS=-I/usr/include LIBUSB_1_0_LIBS="-L/usr/ib -lusb"
./configure --enable-libftdipp=no --enable-python-binding=no
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... nawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking build system type... i386-unknown-freebsd8.0
checking host system type... i386-unknown-freebsd8.0
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 196608
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... no
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... freebsd8.0 ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking whether we are using the GNU C++ compiler... (cached) yes
checking whether g++ accepts -g... (cached) yes
checking dependency style of g++... (cached) gcc3
checking how to run the C++ preprocessor... g++ -E
checking for ld used by g++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC -DPIC
checking if g++ PIC flag -fPIC -DPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... freebsd8.0 ld.so
checking how to hardcode library paths into programs... immediate
checking for pkg-config... /usr/local/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for LIBUSB_1_0... yes
checking for boostlib >= 1.33... yes
checking if we can build the C++ wrapper... no
checking for doxygen... no
checking for swig... /usr/local/bin/swig
checking for a Python interpreter with version >= 2.0... python
checking for python... /usr/local/bin/python
checking for python version... 2.6
checking for python platform... freebsd8
checking for python script directory... ${prefix}/lib/python2.6/site-packages
checking for python extension module directory...
${exec_prefix}/lib/python2.6/site-packages
checking /usr/local/include/python2.6/Python.h usability... no
checking /usr/local/include/python2.6/Python.h presence... no
checking for /usr/local/include/python2.6/Python.h... no
configure: WARNING: Python.h header file not found. Python development
files are required to build presage python binding. Pyt
hon can be obtained from http://www.python.org
configure: Python binding for libftdi will not be built.
configure: Enable Python binding module building with --enable-python-binding
configure: creating ./config.status
config.status: creating libftdi-config
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating bindings/Makefile
config.status: creating bindings/python/Makefile
config.status: creating bindings/python/setup.py
config.status: creating examples/Makefile
config.status: creating doc/Doxyfile
config.status: creating doc/Makefile
config.status: creating libftdi.pc
config.status: creating libftdi.spec
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands
[mcuee@MyFreeBSD
/usr/home/mcuee/Desktop/build/libftdi/blackfin/libftdi-1.0]$ gmake
gmake  all-recursive
gmake[1]: Entering directory
`/usr/home/mcuee/Desktop/build/libftdi/blackfin/libftdi-1.0'
Making all in src
gmake[2]: Entering directory
`/usr/home/mcuee/Desktop/build/libftdi/blackfin/libftdi-1.0/src'
gmake[3]: Entering directory
`/usr/home/mcuee/Desktop/build/libftdi/blackfin/libftdi-1.0'
gmake[3]: Leaving directory
`/usr/home/mcuee/Desktop/build/libftdi/blackfin/libftdi-1.0'
/bin/sh ../libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.
-I..     -g -O2 -I/usr/include -MT ftdi.lo -MD -MP -MF .deps/ftdi.Tpo
-c -o ftdi.lo ftdi.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -g -O2 -I/usr/include
-MT ftdi.lo -MD -MP -MF .deps/ftdi.Tpo -c ftdi.c  -fPIC -DPIC -o
.libs/ftdi.o
ftdi.c: In function 'ftdi_usb_close_internal':
ftdi.c:58: warning: passing argument 1 of 'libusb_close' from
incompatible pointer type
ftdi.c: At top level:
ftdi.c:201: error: conflicting types for 'ftdi_set_usbdev'
ftdi.h:292: error: previous declaration of 'ftdi_set_usbdev' was here
ftdi.c: In function 'ftdi_set_usbdev':
ftdi.c:202: warning: assignment from incompatible pointer type
ftdi.c: In function 'ftdi_usb_get_strings':
ftdi.c:325: warning: passing argument 2 of 'libusb_open' from
incompatible pointer type
ftdi.c:333: warning: passing argument 1 of
'libusb_get_string_descriptor_ascii' from incompatible pointer type
ftdi.c:342: warning: passing argument 1 of
'libusb_get_string_descriptor_ascii' from incompatible pointer type
ftdi.c:351: warning: passing argument 1 of
'libusb_get_string_descriptor_ascii' from incompatible pointer type
ftdi.c: In function 'ftdi_usb_open_dev':
ftdi.c:432: warning: passing argument 2 of 'libusb_open' from
incompatible pointer type
ftdi.c:456: warning: passing argument 1 of 'libusb_get_configuration'
from incompatible pointer type
ftdi.c:464: warning: passing argument 1 of 'libusb_set_configuration'
from incompatible pointer type
ftdi.c:471: warning: passing argument 1 of 'libusb_claim_interface'
from incompatible pointer type
ftdi.c: In function 'ftdi_usb_open_desc_index':
ftdi.c:612: warning: passing argument 2 of 'libusb_open' from
incompatible pointer type
ftdi.c:617: warning: passing argument 1 of
'libusb_get_string_descriptor_ascii' from incompatible pointer type
ftdi.c:619: warning: passing argument 1 of 'libusb_close' from
incompatible pointer type
ftdi.c:624: warning: passing argument 1 of 'libusb_close' from
incompatible pointer type
ftdi.c:630: warning: passing argument 1 of
'libusb_get_string_descriptor_ascii' from incompatible pointer type
ftdi.c: In function 'ftdi_usb_reset':
ftdi.c:775: warning: passing argument 1 of 'libusb_control_transfer'
from incompatible pointer type
ftdi.c: In function 'ftdi_usb_purge_rx_buffer':
ftdi.c:797: warning: passing argument 1 of 'libusb_control_transfer'
from incompatible pointer type
ftdi.c: In function 'ftdi_usb_purge_tx_buffer':
ftdi.c:819: warning: passing argument 1 of 'libusb_control_transfer'
from incompatible pointer type
ftdi.c: In function 'ftdi_usb_close':
ftdi.c:864: warning: passing argument 1 of 'libusb_release_interface'
from incompatible pointer type
ftdi.c: In function 'ftdi_set_baudrate':
ftdi.c:1031: warning: passing argument 1 of 'libusb_control_transfer'
from incompatible pointer type
ftdi.c: In function 'ftdi_set_line_property2':
ftdi.c:1119: warning: passing argument 1 of 'libusb_control_transfer'
from incompatible pointer type
ftdi.c: In function 'ftdi_write_data':
ftdi.c:1147: warning: passing argument 1 of 'libusb_bulk_transfer'
from incompatible pointer type
ftdi.c: In function 'ftdi_read_data':
ftdi.c:1533: warning: passing argument 1 of 'libusb_bulk_transfer'
from incompatible pointer type
ftdi.c: In function 'ftdi_enable_bitbang':
ftdi.c:1679: warning: passing argument 1 of 'libusb_control_transfer'
from incompatible pointer type
ftdi.c: In function 'ftdi_disable_bitbang':
ftdi.c:1696: warning: passing argument 1 of 'libusb_control_transfer'
from incompatible pointer type
ftdi.c: In function 'ftdi_set_bitmode':
ftdi.c:1720: warning: passing argument 1 of 'libusb_control_transfer'
from incompatible pointer type
ftdi.c: In function 'ftdi_read_pins':
ftdi.c:1739: warning: passing argument 1 of 'libusb_control_transfer'
from incompatible pointer type
ftdi.c: In function 'ftdi_set_latency_timer':
ftdi.c:1767: warning: passing argument 1 of 'libusb_control_transfer'
from incompatible pointer type
ftdi.c: In function 'ftdi_get_latency_timer':
ftdi.c:1785: warning: passing argument 1 of 'libusb_control_transfer'
from incompatible pointer type
ftdi.c: In function 'ftdi_poll_modem_status':
ftdi.c:1835: warning: passing argument 1 of 'libusb_control_transfer'
from incompatible pointer type
ftdi.c: In function 'ftdi_setflowctrl':
ftdi.c:1857: warning: passing argument 1 of 'libusb_control_transfer'
from incompatible pointer type
ftdi.c: In function 'ftdi_setdtr':
ftdi.c:1883: warning: passing argument 1 of 'libusb_control_transfer'
from incompatible pointer type
ftdi.c: In function 'ftdi_setrts':
ftdi.c:1909: warning: passing argument 1 of 'libusb_control_transfer'
from incompatible pointer type
ftdi.c: In function 'ftdi_setdtr_rts':
ftdi.c:1941: warning: passing argument 1 of 'libusb_control_transfer'
from incompatible pointer type
ftdi.c: In function 'ftdi_set_event_char':
ftdi.c:1966: warning: passing argument 1 of 'libusb_control_transfer'
from incompatible pointer type
ftdi.c: In function 'ftdi_set_error_char':
ftdi.c:1991: warning: passing argument 1 of 'libusb_control_transfer'
from incompatible pointer type
ftdi.c: In function 'ftdi_read_eeprom_location':
ftdi.c:2393: warning: passing argument 1 of 'libusb_control_transfer'
from incompatible pointer type
ftdi.c: In function 'ftdi_read_eeprom':
ftdi.c:2414: warning: passing argument 1 of 'libusb_control_transfer'
from incompatible pointer type
ftdi.c: In function 'ftdi_read_chipid':
ftdi.c:2451: warning: passing argument 1 of 'libusb_control_transfer'
from incompatible pointer type
ftdi.c:2454: warning: passing argument 1 of 'libusb_control_transfer'
from incompatible pointer type
ftdi.c: In function 'ftdi_read_eeprom_getsize':
ftdi.c:2489: warning: passing argument 1 of 'libusb_control_transfer'
from incompatible pointer type
ftdi.c: In function 'ftdi_write_eeprom_location':
ftdi.c:2514: warning: passing argument 1 of 'libusb_control_transfer'
from incompatible pointer type
ftdi.c: In function 'ftdi_write_eeprom':
ftdi.c:2548: warning: passing argument 1 of 'libusb_control_transfer'
from incompatible pointer type
ftdi.c: In function 'ftdi_erase_eeprom':
ftdi.c:2567: warning: passing argument 1 of 'libusb_control_transfer'
from incompatible pointer type
gmake[2]: *** [ftdi.lo] Error 1
gmake[2]: Leaving directory
`/usr/home/mcuee/Desktop/build/libftdi/blackfin/libftdi-1.0/src'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory
`/usr/home/mcuee/Desktop/build/libftdi/blackfin/libftdi-1.0'
gmake: *** [all] Error 2

The reason is the incompatibility of the FreeBSD 1.0 wrapper and libusb 1.0.

http://old.nabble.com/Re%3A-LibUSB-on-FreeBSD--current-%288.x%29-p27667777.html

Changing "struct libusb_device_handle" into "libusb_device_handle"  in
both ftdi.h
and ftdi.c will make libftdi being able to built under FreeBSD.

[mcuee@MyFreeBSD
/usr/home/mcuee/Desktop/build/libftdi/blackfin/libftdi-1.0]$ gmake
gmake  all-recursive
gmake[1]: Entering directory
`/usr/home/mcuee/Desktop/build/libftdi/blackfin/libftdi-1.0'
Making all in src
gmake[2]: Entering directory
`/usr/home/mcuee/Desktop/build/libftdi/blackfin/libftdi-1.0/src'
gmake[3]: Entering directory
`/usr/home/mcuee/Desktop/build/libftdi/blackfin/libftdi-1.0'
gmake[3]: Leaving directory
`/usr/home/mcuee/Desktop/build/libftdi/blackfin/libftdi-1.0'
/bin/sh ../libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.
-I..     -g -O2 -I/usr/include -MT ftdi.lo -MD -MP -MF .deps/ftdi.Tpo
-c -o ftdi.lo ftdi.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -g -O2 -I/usr/include
-MT ftdi.lo -MD -MP -MF .deps/ftdi.Tpo -c ftdi.c  -fPIC -DPIC -o
.libs/ftdi.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -g -O2 -I/usr/include
-MT ftdi.lo -MD -MP -MF .deps/ftdi.Tpo -c ftdi.c -o ftdi.o >/dev/null
2>&1
mv -f .deps/ftdi.Tpo .deps/ftdi.Plo
/bin/sh ../libtool --tag=CC   --mode=link gcc  -g -O2 -I/usr/include
-version-info 18:0:17  -o libftdi.la -rpath /usr/local/lib ftdi.lo
-L/usr/ib -lusb
libtool: link: gcc -shared  .libs/ftdi.o   -L/usr/ib -lusb
-Wl,-soname -Wl,libftdi.so.18 -o .libs/libftdi.so.18
libtool: link: (cd ".libs" && rm -f "libftdi.so" && ln -s
"libftdi.so.18" "libftdi.so")
libtool: link: (cd ".libs" && rm -f "libftdi.so" && ln -s
"libftdi.so.18" "libftdi.so")
libtool: link: ar cru .libs/libftdi.a  ftdi.o
libtool: link: ranlib .libs/libftdi.a
libtool: link: ( cd ".libs" && rm -f "libftdi.la" && ln -s
"../libftdi.la" "libftdi.la" )
gmake[2]: Leaving directory
`/usr/home/mcuee/Desktop/build/libftdi/blackfin/libftdi-1.0/src'
Making all in bindings
gmake[2]: Entering directory
`/usr/home/mcuee/Desktop/build/libftdi/blackfin/libftdi-1.0/bindings'
gmake[3]: Entering directory
`/usr/home/mcuee/Desktop/build/libftdi/blackfin/libftdi-1.0'
gmake[3]: Leaving directory
`/usr/home/mcuee/Desktop/build/libftdi/blackfin/libftdi-1.0'
Making all in python
gmake[3]: Entering directory
`/usr/home/mcuee/Desktop/build/libftdi/blackfin/libftdi-1.0/bindings/python'
gmake[4]: Entering directory
`/usr/home/mcuee/Desktop/build/libftdi/blackfin/libftdi-1.0'
gmake[4]: Leaving directory
`/usr/home/mcuee/Desktop/build/libftdi/blackfin/libftdi-1.0'
gmake  all-am
gmake[4]: Entering directory
`/usr/home/mcuee/Desktop/build/libftdi/blackfin/libftdi-1.0/bindings/python'
gmake[5]: Entering directory
`/usr/home/mcuee/Desktop/build/libftdi/blackfin/libftdi-1.0'
gmake[5]: Leaving directory
`/usr/home/mcuee/Desktop/build/libftdi/blackfin/libftdi-1.0'
gmake[4]: Nothing to be done for `all-am'.
gmake[4]: Leaving directory
`/usr/home/mcuee/Desktop/build/libftdi/blackfin/libftdi-1.0/bindings/python'
gmake[3]: Leaving directory
`/usr/home/mcuee/Desktop/build/libftdi/blackfin/libftdi-1.0/bindings/python'
gmake[3]: Entering directory
`/usr/home/mcuee/Desktop/build/libftdi/blackfin/libftdi-1.0/bindings'
gmake[4]: Entering directory
`/usr/home/mcuee/Desktop/build/libftdi/blackfin/libftdi-1.0'
gmake[4]: Leaving directory
`/usr/home/mcuee/Desktop/build/libftdi/blackfin/libftdi-1.0'
gmake[3]: Nothing to be done for `all-am'.
gmake[3]: Leaving directory
`/usr/home/mcuee/Desktop/build/libftdi/blackfin/libftdi-1.0/bindings'
gmake[2]: Leaving directory
`/usr/home/mcuee/Desktop/build/libftdi/blackfin/libftdi-1.0/bindings'
Making all in examples
gmake[2]: Entering directory
`/usr/home/mcuee/Desktop/build/libftdi/blackfin/libftdi-1.0/examples'
gcc -DHAVE_CONFIG_H -I. -I.. -I../src -I../ftdipp    -g -O2
-I/usr/include -MT simple.o -MD -MP -MF .deps/simple.Tpo -c -o
simple.o simple.c
mv -f .deps/simple.Tpo .deps/simple.Po
/bin/sh ../libtool --tag=CC   --mode=link gcc  -g -O2 -I/usr/include
-no-install  -o simple simple.o ../src/libftdi.la
libtool: link: gcc -g -O2 -I/usr/include -o simple simple.o
../src/.libs/libftdi.so -L/usr/ib -lusb -Wl,-rpath
-Wl,/usr/home/mcuee/Desktop/build/libftdi/blackfin/libftdi-1.0/src/.libs
-Wl,-rpath -Wl,/usr/local/lib
gcc -DHAVE_CONFIG_H -I. -I.. -I../src -I../ftdipp    -g -O2
-I/usr/include -MT bitbang.o -MD -MP -MF .deps/bitbang.Tpo -c -o
bitbang.o bitbang.c
mv -f .deps/bitbang.Tpo .deps/bitbang.Po
/bin/sh ../libtool --tag=CC   --mode=link gcc  -g -O2 -I/usr/include
-no-install  -o bitbang bitbang.o ../src/libftdi.la
libtool: link: gcc -g -O2 -I/usr/include -o bitbang bitbang.o
../src/.libs/libftdi.so -L/usr/ib -lusb -Wl,-rpath
-Wl,/usr/home/mcuee/Desktop/build/libftdi/blackfin/libftdi-1.0/src/.libs
-Wl,-rpath -Wl,/usr/local/lib
gcc -DHAVE_CONFIG_H -I. -I.. -I../src -I../ftdipp    -g -O2
-I/usr/include -MT bitbang2.o -MD -MP -MF .deps/bitbang2.Tpo -c -o
bitbang2.o bitbang2.c
mv -f .deps/bitbang2.Tpo .deps/bitbang2.Po
/bin/sh ../libtool --tag=CC   --mode=link gcc  -g -O2 -I/usr/include
-no-install  -o bitbang2 bitbang2.o ../src/libftdi.la
libtool: link: gcc -g -O2 -I/usr/include -o bitbang2 bitbang2.o
../src/.libs/libftdi.so -L/usr/ib -lusb -Wl,-rpath
-Wl,/usr/home/mcuee/Desktop/build/libftdi/blackfin/libftdi-1.0/src/.libs
-Wl,-rpath -Wl,/usr/local/lib
gcc -DHAVE_CONFIG_H -I. -I.. -I../src -I../ftdipp    -g -O2
-I/usr/include -MT bitbang_ft2232.o -MD -MP -MF
.deps/bitbang_ft2232.Tpo -c -o bitbang_ft2232.o bitbang_ft2232.c
mv -f .deps/bitbang_ft2232.Tpo .deps/bitbang_ft2232.Po
/bin/sh ../libtool --tag=CC   --mode=link gcc  -g -O2 -I/usr/include
-no-install  -o bitbang_ft2232 bitbang_ft2232.o ../src/libftdi.la
libtool: link: gcc -g -O2 -I/usr/include -o bitbang_ft2232
bitbang_ft2232.o  ../src/.libs/libftdi.so -L/usr/ib -lusb -Wl,-rpath
-Wl,/usr/home/mcuee/Desktop/build/libftdi/blackfin/libftdi-1.0/src/.libs
-Wl,-rpath -Wl,/usr/local/lib
gcc -DHAVE_CONFIG_H -I. -I.. -I../src -I../ftdipp    -g -O2
-I/usr/include -MT bitbang_cbus.o -MD -MP -MF .deps/bitbang_cbus.Tpo
-c -o bitbang_cbus.o bitbang_cbus.c
mv -f .deps/bitbang_cbus.Tpo .deps/bitbang_cbus.Po
/bin/sh ../libtool --tag=CC   --mode=link gcc  -g -O2 -I/usr/include
-no-install  -o bitbang_cbus bitbang_cbus.o ../src/libftdi.la
libtool: link: gcc -g -O2 -I/usr/include -o bitbang_cbus
bitbang_cbus.o  ../src/.libs/libftdi.so -L/usr/ib -lusb -Wl,-rpath
-Wl,/usr/home/mcuee/Desktop/build/libftdi/blackfin/libftdi-1.0/src/.libs
-Wl,-rpath -Wl,/usr/local/lib
gcc -DHAVE_CONFIG_H -I. -I.. -I../src -I../ftdipp    -g -O2
-I/usr/include -MT find_all.o -MD -MP -MF .deps/find_all.Tpo -c -o
find_all.o find_all.c
mv -f .deps/find_all.Tpo .deps/find_all.Po
/bin/sh ../libtool --tag=CC   --mode=link gcc  -g -O2 -I/usr/include
-no-install  -o find_all find_all.o ../src/libftdi.la
libtool: link: gcc -g -O2 -I/usr/include -o find_all find_all.o
../src/.libs/libftdi.so -L/usr/ib -lusb -Wl,-rpath
-Wl,/usr/home/mcuee/Desktop/build/libftdi/blackfin/libftdi-1.0/src/.libs
-Wl,-rpath -Wl,/usr/local/lib
gcc -DHAVE_CONFIG_H -I. -I.. -I../src -I../ftdipp    -g -O2
-I/usr/include -MT serial_read.o -MD -MP -MF .deps/serial_read.Tpo -c
-o serial_read.o serial_read.c
mv -f .deps/serial_read.Tpo .deps/serial_read.Po
/bin/sh ../libtool --tag=CC   --mode=link gcc  -g -O2 -I/usr/include
-no-install  -o serial_read serial_read.o ../src/libftdi.la
libtool: link: gcc -g -O2 -I/usr/include -o serial_read serial_read.o
../src/.libs/libftdi.so -L/usr/ib -lusb -Wl,-rpath
-Wl,/usr/home/mcuee/Desktop/build/libftdi/blackfin/libftdi-1.0/src/.libs
-Wl,-rpath -Wl,/usr/local/lib
gcc -DHAVE_CONFIG_H -I. -I.. -I../src -I../ftdipp    -g -O2
-I/usr/include -MT baud_test.o -MD -MP -MF .deps/baud_test.Tpo -c -o
baud_test.o baud_test.c
mv -f .deps/baud_test.Tpo .deps/baud_test.Po
/bin/sh ../libtool --tag=CC   --mode=link gcc  -g -O2 -I/usr/include
-no-install  -o baud_test baud_test.o ../src/libftdi.la
libtool: link: gcc -g -O2 -I/usr/include -o baud_test baud_test.o
../src/.libs/libftdi.so -L/usr/ib -lusb -Wl,-rpath
-Wl,/usr/home/mcuee/Desktop/build/libftdi/blackfin/libftdi-1.0/src/.libs
-Wl,-rpath -Wl,/usr/local/lib
gmake[2]: Leaving directory
`/usr/home/mcuee/Desktop/build/libftdi/blackfin/libftdi-1.0/examples'
Making all in doc
gmake[2]: Entering directory
`/usr/home/mcuee/Desktop/build/libftdi/blackfin/libftdi-1.0/doc'
gmake[3]: Entering directory
`/usr/home/mcuee/Desktop/build/libftdi/blackfin/libftdi-1.0'
gmake[3]: Leaving directory
`/usr/home/mcuee/Desktop/build/libftdi/blackfin/libftdi-1.0'
gmake[2]: Nothing to be done for `all'.
gmake[2]: Leaving directory
`/usr/home/mcuee/Desktop/build/libftdi/blackfin/libftdi-1.0/doc'
gmake[2]: Entering directory
`/usr/home/mcuee/Desktop/build/libftdi/blackfin/libftdi-1.0'
gmake[2]: Leaving directory
`/usr/home/mcuee/Desktop/build/libftdi/blackfin/libftdi-1.0'
gmake[1]: Leaving directory
`/usr/home/mcuee/Desktop/build/libftdi/blackfin/libftdi-1.0'


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

--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to [hidden email]  

Reply | Threaded
Open this post in threaded view
|

Re: libftdi-1.0 for Ubuntu 9.10

Xiaofan Chen
On Mon, Feb 22, 2010 at 8:13 PM, Xiaofan Chen <[hidden email]> wrote:
>> http://blackfin.uclinux.org/gf/project/toolchain/scmsvn/?action=browse&path=%2Ftrunk%2Flibftdi-1.0%2F
>>
>> It's behind upstream by several revisions, but it has those generated files.
>>
> Thanks. It seems to work under FreeBSD (only the libftdi part, not the libftdipp
> and the other parts) after some minor modifications.
>

This also helps me to build libftdi-1.0 under Cygwin/Windows with the
new libusb 1.0 Windows backend.

I could not get the configure script to recognize the libusb-1.0
under Windows. So I remove the check of the libusb-1.0 and
use the following option to build libftdi-1.0.

...
if test -n "$PKG_CONFIG"; then
        _pkg_min_version=0.9.0
...
fi

have_libusb_1_0=yes
if test "$have_libusb_1_0" = "yes"; then
  CFLAGS="$CFLAGS $LIBUSB_1_0_CFLAGS"
  CXXFLAGS="$CXXFLAGS $LIBUSB_1_0_CFLAGS"
  USB_LIBS="$USB_LIBS $LIBUSB_1_0_LIBS"
  HAVE_USB=yes

$as_echo "#define HAVE_LIBUSB_1_0 1" >>confdefs.h
fi
...

ENABLE_ASYNC_MODE=0


mcuee@AcerPC ~/mcu/libftdi1/libftdi-1.0
$ LIBUSB_1_0_CFLAGS="-I/usr/local/include/libusb-1.0" LIBUSB_1_0_LIBS="-L/usr/l
ocal/lib -lusb-1.0" ./configure --disable-libftdipp --disable-python-binding

I have not installed CMake under cygwin.

How do you build libftdi-1.0 under Windows?

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

--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to [hidden email]  

Reply | Threaded
Open this post in threaded view
|

Re: libftdi-1.0 for Ubuntu 9.10

Jie Zhang-2
On Tue, Feb 23, 2010 at 10:12 PM, Xiaofan Chen <[hidden email]> wrote:
> I have not installed CMake under cygwin.
>
> How do you build libftdi-1.0 under Windows?
>
I don't remember the details. I use mingw/msys and gmake, not CMake nor cygwin.

Jie

--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to [hidden email]  

Reply | Threaded
Open this post in threaded view
|

Re: libftdi-1.0 for Ubuntu 9.10

Xiaofan Chen
On Wed, Feb 24, 2010 at 8:33 AM, Jie Zhang <[hidden email]> wrote:
> On Tue, Feb 23, 2010 at 10:12 PM, Xiaofan Chen <[hidden email]> wrote:
>> I have not installed CMake under cygwin.
>>
>> How do you build libftdi-1.0 under Windows?
>>
> I don't remember the details. I use mingw/msys and gmake,
> not CMake nor cygwin.
>

I will try that. My main interests with libftdi is for OpenOCD. But
now I got some FTDI chip based demo boards as well.


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

--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to [hidden email]  

Reply | Threaded
Open this post in threaded view
|

Re: libftdi-1.0 for Ubuntu 9.10

Jan Wilmans
I use either gcc (mingw) and ms VS2007 to build libftdi on
libusb-win32 code can be found:

http://code.google.com/p/nowindlibraries/source/browse/#svn/trunk/ftdx

ftdx is a libraries that offers a standard interface to libftdi on
libusb _and_ to FTD2xx (FTDI's own binaries driver)
and works on linux/windows/macOSX/bsd

Makefiles are missing from the repository for non-windows platforms,
but the code is tested on all platforms.
I will re-add CMakefiles soon.

Greetings,

Jan Wilmans



On 24 February 2010 02:44, Xiaofan Chen <[hidden email]> wrote:

> On Wed, Feb 24, 2010 at 8:33 AM, Jie Zhang <[hidden email]> wrote:
>> On Tue, Feb 23, 2010 at 10:12 PM, Xiaofan Chen <[hidden email]> wrote:
>>> I have not installed CMake under cygwin.
>>>
>>> How do you build libftdi-1.0 under Windows?
>>>
>> I don't remember the details. I use mingw/msys and gmake,
>> not CMake nor cygwin.
>>
>
> I will try that. My main interests with libftdi is for OpenOCD. But
> now I got some FTDI chip based demo boards as well.
>
>
> --
> Xiaofan http://mcuee.blogspot.com
>
> --
> libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
> To unsubscribe send a mail to [hidden email]
>
>



--
Met vriendelijke groeten,

--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to [hidden email]  

Reply | Threaded
Open this post in threaded view
|

Re: libftdi-1.0 for Ubuntu 9.10

Xiaofan Chen
On Wed, Feb 24, 2010 at 5:46 PM, Jan Wilmans <[hidden email]> wrote:

> I use either gcc (mingw) and ms VS2007 to build libftdi on
> libusb-win32 code can be found:
>
> http://code.google.com/p/nowindlibraries/source/browse/#svn/trunk/ftdx
>
> ftdx is a libraries that offers a standard interface to libftdi on
> libusb _and_ to FTD2xx (FTDI's own binaries driver)
> and works on linux/windows/macOSX/bsd
>
> Makefiles are missing from the repository for non-windows platforms,
> but the code is tested on all platforms.
> I will re-add CMakefiles soon.
>

Thanks. The thread is about libftdi-1.0. But your
project is interesting.


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

--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to [hidden email]  

Reply | Threaded
Open this post in threaded view
|

Re: libftdi-1.0 for Ubuntu 9.10

Jan Wilmans
Where is can sources/development of libftdi-1.0 be found?

http://www.intra2net.com/en/developer/libftdi/index.php

does not mention it?

Greetings,

Jan Wilmans

On 24 February 2010 11:46, Xiaofan Chen <[hidden email]> wrote:

> On Wed, Feb 24, 2010 at 5:46 PM, Jan Wilmans <[hidden email]> wrote:
>> I use either gcc (mingw) and ms VS2007 to build libftdi on
>> libusb-win32 code can be found:
>>
>> http://code.google.com/p/nowindlibraries/source/browse/#svn/trunk/ftdx
>>
>> ftdx is a libraries that offers a standard interface to libftdi on
>> libusb _and_ to FTD2xx (FTDI's own binaries driver)
>> and works on linux/windows/macOSX/bsd
>>
>> Makefiles are missing from the repository for non-windows platforms,
>> but the code is tested on all platforms.
>> I will re-add CMakefiles soon.
>>
>
> Thanks. The thread is about libftdi-1.0. But your
> project is interesting.
>
>
> --
> Xiaofan http://mcuee.blogspot.com
>
> --
> libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
> To unsubscribe send a mail to [hidden email]
>
>



--
Met vriendelijke groeten,

--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to [hidden email]  

Reply | Threaded
Open this post in threaded view
|

Re: libftdi-1.0 for Ubuntu 9.10

Xiaofan Chen
On Wed, Feb 24, 2010 at 6:54 PM, Jan Wilmans <[hidden email]> wrote:
> Where is can sources/development of libftdi-1.0 be found?
>
> http://www.intra2net.com/en/developer/libftdi/index.php
>
> does not mention it?

Please refer to the following announcement recently.

---------- Forwarded message ----------
From: Jie Zhang
Date: Tue, Jan 19, 2010 at 7:49 PM
Subject: libftdi git tree for porting to libusb 1.0
To: libftdi
Cc: libusb-devel


Gerd of Intra2net kindly offered me to host a git tree to continue the
development work of porting libftdi to libusb 1.0.

You can get it with

   git clone git://developer.intra2net.com/libftdi-1.0

It is available via gitweb too

   http://developer.intra2net.com/git/?p=libftdi-1.0

For the record, this work was first published in

   http://developer.intra2net.com/mailarchive/html/libftdi/2009/msg00254.html

The latest patch was publised in the libusb mailing list today. But
none of its three archives received my email now. So you need to find
it out by yourself if you want to take a look. It's exactly the same
patch I committed as commit 579b006f4873fa72c73d372660d158061497bcc9
on this git tree.

Thanks,
Jie

--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to [hidden email]  

Reply | Threaded
Open this post in threaded view
|

Re: libftdi-1.0 for Ubuntu 9.10

Xiaofan Chen
In reply to this post by Xiaofan Chen
On Mon, Feb 22, 2010 at 7:57 AM, Xiaofan Chen <[hidden email]> 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 [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: libftdi-1.0 for Ubuntu 9.10

Xiaofan Chen
On Sun, Feb 28, 2010 at 4:46 PM, Xiaofan Chen <[hidden email]> wrote:

> On Mon, Feb 22, 2010 at 7:57 AM, Xiaofan Chen <[hidden email]> 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 [hidden email]

12