libftdi 1.2 release candidate (rc1)

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

libftdi 1.2 release candidate (rc1)

Thomas Jarosch
Hello,

I'm pleased to announce the release candidate of libftdi 1.2.

Main highlights
------------------
* Support for FT230X devices (Uwe Bonnes)
* ftdi_usb_get_strings(): Don't try to open an already open device (Denis Sirotkin)
* Support for finding devices bricked by the Windows driver (Forest Crossman)
* cmake build system: New LibFTDI1ConfigVersion.cmake file (xantares09)
* Fix a typo in the MPSSE command CLK_BYTES_OR_LOW (Benjamin Vanheuverzwijn)
* Minor fixes for MSVC++ (Andrei Errapart)
* Various small code improvements (Florian Preinstorfer, Jochen Sprickerhof, xantares09)


Please give it some good testing. Final release is planned for late next week.

Download:
http://www.intra2net.com/en/developer/libftdi/download/libftdi1-1.2rc1.tar.bz2

GPG signature:
http://www.intra2net.com/en/developer/libftdi/download/libftdi1-1.2rc1.tar.bz2.sig


Let me know if something important is missing in the ChangeLog:
http://developer.intra2net.com/git/?p=libftdi;a=blob;f=ChangeLog;hb=HEAD


Best regards,
Thomas Jarosch

--
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
|  
Report Content as Inappropriate

Re: libftdi 1.2 release candidate (rc1)

Xiaofan Chen
On Sun, Nov 16, 2014 at 2:23 AM, Thomas Jarosch
<[hidden email]> wrote:

> I'm pleased to announce the release candidate of libftdi 1.2.
>
> Please give it some good testing. Final release is planned for late next week.

There are some warnings under Mac OS X 10.10 and there is
one error when building the example.

MyMacMini:build xiaofanc$ cmake ..
-- The C compiler identification is AppleClang 6.0.0.6000054
-- The CXX compiler identification is AppleClang 6.0.0.6000054
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- 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: RelWithDebInfo
-- Found PkgConfig: /usr/local/bin/pkg-config (found version "0.28")
-- checking for module 'libusb-1.0'
--   found libusb-1.0, version 1.0.19
-- Found LIBUSB: /usr/local/lib/libusb-1.0.dylib
-- Boost version: 1.56.0
-- Found Doxygen: /usr/local/bin/doxygen (found version "1.8.8")
-- Doxygen found.
-- Generating API documentation with Doxygen
fatal: Not a git repository (or any of the parent directories): .git
-- Detected git snapshot version: unknown
-- Building libftdi1++
-- Found SWIG: /usr/local/bin/swig (found version "3.0.2")
-- Found PythonLibs: /usr/lib/libpython2.7.dylib (found version "2.7.6")
-- Found PythonInterp: /usr/local/bin/python (found version "2.7.8")
-- Building python bindings via swig. Will be installed under
/usr/local/lib/python2.7/site-packages
-- Found Confuse: /usr/local/lib/libconfuse.a
-- Could NOT find Libintl (missing:  LIBINTL_INCLUDE_DIR LIBINTL_LIB_FOUND)
-- Building ftdi_eeprom
-- Building example programs.
-- Building libftdi++ examples.
-- Boost version: 1.56.0
-- Found the following Boost libraries:
--   unit_test_framework
-- Building unit test
-- Configuring done
CMake Warning (dev):
  Policy CMP0042 is not set: MACOSX_RPATH is enabled by default.  Run "cmake
  --help-policy CMP0042" for policy details.  Use the cmake_policy command to
  set the policy and suppress this warning.
  MACOSX_RPATH is not specified for the following targets:
   ftdi1
   ftdipp1

This warning is for project developers.  Use -Wno-dev to suppress it.
-- Generating done
-- Build files have been written to:
/Users/xiaofanc/work/libftdi/libftdi1-1.2rc/build

MyMacMini:build xiaofanc$ make
Scanning dependencies of target docs
[  4%] Generating doc/html/index.html
Warning: Tag `SYMBOL_CACHE_SIZE' at line 341 of file
`/Users/xiaofanc/work/libftdi/libftdi1-1.2rc/build/Doxyfile' has
become obsolete.
         To avoid this warning please remove this line from your
configuration file or upgrade it using "doxygen -u"
Warning: Tag `XML_SCHEMA' at line 1418 of file
`/Users/xiaofanc/work/libftdi/libftdi1-1.2rc/build/Doxyfile' has
become obsolete.
         To avoid this warning please remove this line from your
configuration file or upgrade it using "doxygen -u"
Warning: Tag `XML_DTD' at line 1424 of file
`/Users/xiaofanc/work/libftdi/libftdi1-1.2rc/build/Doxyfile' has
become obsolete.
         To avoid this warning please remove this line from your
configuration file or upgrade it using "doxygen -u"
[  4%] Built target docs
Scanning dependencies of target ftdi1
[  8%] Building C object src/CMakeFiles/ftdi1.dir/ftdi.c.o
[ 12%] Building C object src/CMakeFiles/ftdi1.dir/ftdi_stream.c.o
Linking C shared library libftdi1.dylib
[ 12%] Built target ftdi1
Scanning dependencies of target ftdi1-static
[ 16%] Building C object src/CMakeFiles/ftdi1-static.dir/ftdi.c.o
[ 20%] Building C object src/CMakeFiles/ftdi1-static.dir/ftdi_stream.c.o
Linking C static library libftdi1.a
[ 20%] Built target ftdi1-static
Scanning dependencies of target ftdipp1
[ 24%] Building CXX object ftdipp/CMakeFiles/ftdipp1.dir/ftdi.cpp.o
Linking CXX shared library libftdipp1.dylib
[ 24%] Built target ftdipp1
Scanning dependencies of target ftdipp1-static
[ 28%] Building CXX object ftdipp/CMakeFiles/ftdipp1-static.dir/ftdi.cpp.o
Linking CXX static library libftdipp1.a
[ 28%] Built target ftdipp1-static
Scanning dependencies of target doc_i
[ 32%] Generating ../doc/xml/ftdi_8c.xml
Warning: Tag `SYMBOL_CACHE_SIZE' at line 345 of file `Doxyfile' has
become obsolete.
         To avoid this warning please remove this line from your
configuration file or upgrade it using "doxygen -u"
Warning: Tag `XML_SCHEMA' at line 1422 of file `Doxyfile' has become obsolete.
         To avoid this warning please remove this line from your
configuration file or upgrade it using "doxygen -u"
Warning: Tag `XML_DTD' at line 1428 of file `Doxyfile' has become obsolete.
         To avoid this warning please remove this line from your
configuration file or upgrade it using "doxygen -u"
[ 36%] Generating ftdi1_doc.i
[ 36%] Built target doc_i
[ 40%] Swig source
Scanning dependencies of target _ftdi1
[ 44%] Building C object python/CMakeFiles/_ftdi1.dir/ftdi1PYTHON_wrap.c.o
Linking C shared module _ftdi1.so
[ 44%] Built target _ftdi1
Scanning dependencies of target ftdi_eeprom
[ 48%] Building C object ftdi_eeprom/CMakeFiles/ftdi_eeprom.dir/main.c.o
Linking C executable ftdi_eeprom
[ 48%] Built target ftdi_eeprom
Scanning dependencies of target baud_test
[ 52%] Building C object examples/CMakeFiles/baud_test.dir/baud_test.c.o
Linking C executable baud_test
[ 52%] Built target baud_test
Scanning dependencies of target bitbang
[ 56%] Building C object examples/CMakeFiles/bitbang.dir/bitbang.c.o
Linking C executable bitbang
[ 56%] Built target bitbang
Scanning dependencies of target bitbang2
[ 60%] Building C object examples/CMakeFiles/bitbang2.dir/bitbang2.c.o
Linking C executable bitbang2
[ 60%] Built target bitbang2
Scanning dependencies of target bitbang_cbus
[ 64%] Building C object examples/CMakeFiles/bitbang_cbus.dir/bitbang_cbus.c.o
Linking C executable bitbang_cbus
[ 64%] Built target bitbang_cbus
Scanning dependencies of target bitbang_ft2232
[ 68%] Building C object
examples/CMakeFiles/bitbang_ft2232.dir/bitbang_ft2232.c.o
Linking C executable bitbang_ft2232
[ 68%] Built target bitbang_ft2232
Scanning dependencies of target eeprom
[ 72%] Building C object examples/CMakeFiles/eeprom.dir/eeprom.c.o
Linking C executable eeprom
[ 72%] Built target eeprom
Scanning dependencies of target find_all
[ 76%] Building C object examples/CMakeFiles/find_all.dir/find_all.c.o
Linking C executable find_all
[ 76%] Built target find_all
Scanning dependencies of target find_all_pp
[ 80%] Building CXX object examples/CMakeFiles/find_all_pp.dir/find_all_pp.cpp.o
/Users/xiaofanc/work/libftdi/libftdi1-1.2rc/examples/find_all_pp.cpp:49:47:
error: too many arguments to function call,
      expected 2, have 3
    List* list = List::find_all(context, vid, pid);
                 ~~~~~~~~~~~~~~               ^~~
/usr/local/include/ftdi.hpp:180:5: note: 'find_all' declared here
    static List* find_all(int vendor, int product);
    ^
1 error generated.
make[2]: *** [examples/CMakeFiles/find_all_pp.dir/find_all_pp.cpp.o] Error 1
make[1]: *** [examples/CMakeFiles/find_all_pp.dir/all] Error 2
make: *** [all] Error 2

MyMacMini:build xiaofanc$ make -i
[  4%] Built target docs
[ 12%] Built target ftdi1
[ 20%] Built target ftdi1-static
[ 24%] Built target ftdipp1
[ 28%] Built target ftdipp1-static
[ 36%] Built target doc_i
[ 44%] Built target _ftdi1
[ 48%] Built target ftdi_eeprom
[ 52%] Built target baud_test
[ 56%] Built target bitbang
[ 60%] Built target bitbang2
[ 64%] Built target bitbang_cbus
[ 68%] Built target bitbang_ft2232
[ 72%] Built target eeprom
[ 76%] Built target find_all
[ 80%] Building CXX object examples/CMakeFiles/find_all_pp.dir/find_all_pp.cpp.o
/Users/xiaofanc/work/libftdi/libftdi1-1.2rc/examples/find_all_pp.cpp:49:47:
error: too many arguments to function call,
      expected 2, have 3
    List* list = List::find_all(context, vid, pid);
                 ~~~~~~~~~~~~~~               ^~~
/usr/local/include/ftdi.hpp:180:5: note: 'find_all' declared here
    static List* find_all(int vendor, int product);
    ^
1 error generated.
Linking CXX executable find_all_pp
clang: error: no such file or directory:
'CMakeFiles/find_all_pp.dir/find_all_pp.cpp.o'
[ 80%] Built target find_all_pp
Scanning dependencies of target serial_test
[ 84%] Building C object examples/CMakeFiles/serial_test.dir/serial_test.c.o
Linking C executable serial_test
[ 84%] Built target serial_test
Scanning dependencies of target simple
[ 88%] Building C object examples/CMakeFiles/simple.dir/simple.c.o
Linking C executable simple
[ 88%] Built target simple
Scanning dependencies of target stream_test
[ 92%] Building C object examples/CMakeFiles/stream_test.dir/stream_test.c.o
Linking C executable stream_test
[ 92%] Built target stream_test
Scanning dependencies of target test_libftdi1
[ 96%] Building CXX object test/CMakeFiles/test_libftdi1.dir/basic.cpp.o
[100%] Building CXX object test/CMakeFiles/test_libftdi1.dir/baudrate.cpp.o
Linking CXX executable test_libftdi1
[100%] Built target test_libftdi1


--
Xiaofan

--
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
|  
Report Content as Inappropriate

Re: Re: libftdi 1.2 release candidate (rc1)

Thomas Jarosch
Hi Xiaofan,

On Sunday, 16. November 2014 10:06:38 Xiaofan Chen wrote:
> /Users/xiaofanc/work/libftdi/libftdi1-1.2rc/examples/find_all_pp.cpp:49:47
> : error: too many arguments to function call,
>       expected 2, have 3
>     List* list = List::find_all(context, vid, pid);
>                  ~~~~~~~~~~~~~~               ^~~
> /usr/local/include/ftdi.hpp:180:5: note: 'find_all' declared here
>     static List* find_all(int vendor, int product);
>     ^

thanks for testing :)

This looks like a header mismatch, may be again
conflicting with the "homebrew" stuff?

The function signature of find_all() was changed from

-    static List* find_all(int vendor, int product);

to

+    static List* find_all(Context &context, int vendor, int product);

in commit 7c21beca63e7d4b07d7ebff25428ca4cfdbc8ec5
That was already part of libftdi 1.0.


I've checked the CMakeLists.txt in the "examples" subdir:
Actually it should prefer the local ftdi.hpp before any system wide file.
Not sure why it picks up your file in /usr/local/include.

You could try a "make VERBOSE=1" and just post the line when it compiles
the ftdi_pp example. Then we can examine the include path.

Cheers,
Thomas


--
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
|  
Report Content as Inappropriate

Re: Re: libftdi 1.2 release candidate (rc1)

Xiaofan Chen
On Mon, Nov 17, 2014 at 4:51 PM, Thomas Jarosch
<[hidden email]> wrote:

> Hi Xiaofan,
>
> On Sunday, 16. November 2014 10:06:38 Xiaofan Chen wrote:
>> /Users/xiaofanc/work/libftdi/libftdi1-1.2rc/examples/find_all_pp.cpp:49:47
>> : error: too many arguments to function call,
>>       expected 2, have 3
>>     List* list = List::find_all(context, vid, pid);
>>                  ~~~~~~~~~~~~~~               ^~~
>> /usr/local/include/ftdi.hpp:180:5: note: 'find_all' declared here
>>     static List* find_all(int vendor, int product);
>>     ^
>
> thanks for testing :)
>
> This looks like a header mismatch, may be again
> conflicting with the "homebrew" stuff?
>
> The function signature of find_all() was changed from
>
> -    static List* find_all(int vendor, int product);
>
> to
>
> +    static List* find_all(Context &context, int vendor, int product);
>
> in commit 7c21beca63e7d4b07d7ebff25428ca4cfdbc8ec5
> That was already part of libftdi 1.0.

You are right, somehow I have libftdi0 and libftdi installed
from Homebrew. And that is not good to have anyway. I
uninstalled libftdi0 and now everything seems to be okay
now. So I consider this as a non-problem now.

>
> I've checked the CMakeLists.txt in the "examples" subdir:
> Actually it should prefer the local ftdi.hpp before any system wide file.
> Not sure why it picks up your file in /usr/local/include.
>
> You could try a "make VERBOSE=1" and just post the line when it compiles
> the ftdi_pp example. Then we can examine the include path.

Here it is. Not so sure if it is good or not.

[ 80%] Building CXX object examples/CMakeFiles/find_all_pp.dir/find_all_pp.cpp.o

cd /Users/xiaofanc/work/libftdi/libftdi1-1.2rc/build/examples &&
/usr/bin/c++    -O2 -g -DNDEBUG -isysroot
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk
-I/Users/xiaofanc/work/libftdi/libftdi1-1.2rc/src -I/usr/local/include
-I/Users/xiaofanc/work/libftdi/libftdi1-1.2rc/ftdipp
-I/usr/local/include/libusb-1.0
-I/Users/xiaofanc/work/libftdi/libftdi1-1.2rc/examples
-I/Users/xiaofanc/work/libftdi/libftdi1-1.2rc/build/examples    -Wall
-o CMakeFiles/find_all_pp.dir/find_all_pp.cpp.o -c
/Users/xiaofanc/work/libftdi/libftdi1-1.2rc/examples/find_all_pp.cpp

Linking CXX executable find_all_pp

cd /Users/xiaofanc/work/libftdi/libftdi1-1.2rc/build/examples &&
/usr/local/Cellar/cmake/3.0.2/bin/cmake -E cmake_link_script
CMakeFiles/find_all_pp.dir/link.txt --verbose=1

/usr/bin/c++   -O2 -g -DNDEBUG -isysroot
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk
-Wl,-search_paths_first -Wl,-headerpad_max_install_names
CMakeFiles/find_all_pp.dir/find_all_pp.cpp.o  -o find_all_pp
../ftdipp/libftdipp1.2.2.0.dylib ../src/libftdi1.2.2.0.dylib
/usr/local/lib/libusb-1.0.dylib

/usr/local/Cellar/cmake/3.0.2/bin/cmake -E cmake_progress_report
/Users/xiaofanc/work/libftdi/libftdi1-1.2rc/build/CMakeFiles  13

[ 80%] Built target find_all_pp

/Applications/Xcode.app/Contents/Developer/usr/bin/make -f
examples/CMakeFiles/serial_test.dir/build.make
examples/CMakeFiles/serial_test.dir/depend

cd /Users/xiaofanc/work/libftdi/libftdi1-1.2rc/build &&
/usr/local/Cellar/cmake/3.0.2/bin/cmake -E cmake_depends "Unix
Makefiles" /Users/xiaofanc/work/libftdi/libftdi1-1.2rc
/Users/xiaofanc/work/libftdi/libftdi1-1.2rc/examples
/Users/xiaofanc/work/libftdi/libftdi1-1.2rc/build
/Users/xiaofanc/work/libftdi/libftdi1-1.2rc/build/examples
/Users/xiaofanc/work/libftdi/libftdi1-1.2rc/build/examples/CMakeFiles/serial_test.dir/DependInfo.cmake
--color=

/Applications/Xcode.app/Contents/Developer/usr/bin/make -f
examples/CMakeFiles/serial_test.dir/build.make
examples/CMakeFiles/serial_test.dir/build

/usr/local/Cellar/cmake/3.0.2/bin/cmake -E cmake_progress_report
/Users/xiaofanc/work/libftdi/libftdi1-1.2rc/build/CMakeFiles 21


--
Xiaofan

--
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
|  
Report Content as Inappropriate

Re: libftdi 1.2 release candidate (rc1)

Thomas Jarosch
On 11/17/2014 01:56 PM, Xiaofan Chen wrote:
> cd /Users/xiaofanc/work/libftdi/libftdi1-1.2rc/build/examples &&
> /usr/bin/c++    -O2 -g -DNDEBUG -isysroot
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk
> -I/Users/xiaofanc/work/libftdi/libftdi1-1.2rc/src -I/usr/local/include
> -I/Users/xiaofanc/work/libftdi/libftdi1-1.2rc/ftdipp

something sneaked "/usr/local/include" in there.
As uninstalling libftdi0 solved the issue,
I consider this resolved for now.

Cheers,
Thomas


--
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
|  
Report Content as Inappropriate

Re: libftdi 1.2 release candidate (rc1)

Xiaofan Chen
On Tue, Nov 18, 2014 at 2:40 AM, Thomas Jarosch
<[hidden email]> wrote:

> On 11/17/2014 01:56 PM, Xiaofan Chen wrote:
>> cd /Users/xiaofanc/work/libftdi/libftdi1-1.2rc/build/examples &&
>> /usr/bin/c++    -O2 -g -DNDEBUG -isysroot
>> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk
>> -I/Users/xiaofanc/work/libftdi/libftdi1-1.2rc/src -I/usr/local/include
>> -I/Users/xiaofanc/work/libftdi/libftdi1-1.2rc/ftdipp
>
> something sneaked "/usr/local/include" in there.
> As uninstalling libftdi0 solved the issue,
> I consider this resolved for now.

I agree. Thanks.

--
Xiaofan

--
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
|  
Report Content as Inappropriate

Re: Re: libftdi 1.2 release candidate (rc1)

Thomas Jarosch
On Tuesday, 18. November 2014 16:32:25 Xiaofan Chen wrote:

> > On 11/17/2014 01:56 PM, Xiaofan Chen wrote:
> >> cd /Users/xiaofanc/work/libftdi/libftdi1-1.2rc/build/examples &&
> >> /usr/bin/c++    -O2 -g -DNDEBUG -isysroot
> >> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/De
> >> veloper/SDKs/MacOSX10.10.sdk
> >> -I/Users/xiaofanc/work/libftdi/libftdi1-1.2rc/src -I/usr/local/include
> >> -I/Users/xiaofanc/work/libftdi/libftdi1-1.2rc/ftdipp
> >
> > something sneaked "/usr/local/include" in there.
> > As uninstalling libftdi0 solved the issue,
> > I consider this resolved for now.
>
> I agree. Thanks.

since there seems to be no outstanding issues,
let's have a release later today :)

Too bad there is no real freshcode / freshmeat alternative yet,
at least that I'm aware of.

Cheers,
Thomas


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

Loading...