libftdi Archives

Subject: RE: libftdi 1.x getting closer

From: xantares 09 <xantares09@xxxxxxxxxxx>
To: <libftdi@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 3 Sep 2012 09:11:14 +0000


> Date: Sun, 2 Sep 2012 21:39:21 +0800
> Subject: Re: libftdi 1.x getting closer
> From: xiaofanc@xxxxxxxxx
> To: libftdi@xxxxxxxxxxxxxxxxxxxxxxx
>
> On Sun, Jul 29, 2012 at 12:19 AM, Thomas Jarosch
> <thomas.jarosch@xxxxxxxxxxxxx> wrote:
> > Hey there,
> >
> > I've finally merged the "renames-for-release" branch into master.
> > This was the largest TODO entry left before we can do
> > an official libftdi 1.x release.
> >
> > You will probably need to adapt your configuration scripts / cmake files
> > to pick up "libftdi1" instead of "libftdi".
> >
> > "libftdi-config" is now called "libftdi1-config",
> > same goes for the pkconfig files.
> >
> > Please give the "master" branch some testing.
>
> The python wrapper seems to fail to be built under Mac OS X
> here (10.7.4 Lion, Homebrew).
>
> mymacmini:build xiaofanc$ cmake ..
> -- The C compiler identification is GNU 4.2.1
> -- The CXX compiler identification is Clang 4.0.0
> -- Checking whether C compiler has -isysroot
> -- Checking whether C compiler has -isysroot - yes
> -- Checking whether C compiler supports OSX deployment target flag
> -- Checking whether C compiler supports OSX deployment target flag - yes
> -- 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
> -- Found PkgConfig: /usr/local/bin/pkg-config (found version "0.27.1")
> -- checking for module 'libusb-1.0'
> -- found libusb-1.0, version 1.0.12
> -- Found LIBUSB: /usr/local/lib/libusb-1.0.dylib
> -- Boost version: 1.50.0
> -- Detected git snapshot version: v0.17-345-g5f70b4c
> -- Building libftdi1++
> -- Found SWIG: /usr/local/bin/swig (found version "2.0.7")
> -- Found PythonLibs: /usr/local/lib/libpython3.2m.dylib (found version "2.7.1")
> -- Found PythonInterp: /usr/bin/python (found version "2.7.1")
> -- Building python bindings via swig. Will be installed under
> /usr/local/lib/python2.7/site-packages
> -- checking for module 'libconfuse'
> -- found libconfuse, version 2.7
> -- Building ftdi_eeprom
> -- Building example programs.
> -- Building libftdi++ examples.
> -- Boost version: 1.50.0
> -- Found the following Boost libraries:
> -- unit_test_framework
> -- Building unit test
> -- Found Doxygen: /usr/local/bin/doxygen (found version "1.8.1.2")
> -- Doxygen found.
> -- Generating API documentation with Doxygen
> -- Configuring done
> -- Generating done
> -- Build files have been written to: /Users/xiaofanc/work/libftdi/libftdi/build
> mymacmini:build xiaofanc$ make
> Scanning dependencies of target docs
> [ 4%] Generating doc/html/index.html
> warning: Tag `SHOW_DIRECTORIES' at line 519 of file
> /Users/xiaofanc/work/libftdi/libftdi/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 `HTML_ALIGN_MEMBERS' at line 906 of file
> /Users/xiaofanc/work/libftdi/libftdi/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 `USE_INLINE_TREES' at line 1093 of file
> /Users/xiaofanc/work/libftdi/libftdi/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
> [ 13%] Building C object src/CMakeFiles/ftdi1.dir/ftdi_stream.c.o
> Linking C shared library libftdi1.dylib
> [ 13%] Built target ftdi1
> Scanning dependencies of target ftdi1-static
> [ 17%] Building C object src/CMakeFiles/ftdi1-static.dir/ftdi.c.o
> [ 21%] Building C object src/CMakeFiles/ftdi1-static.dir/ftdi_stream.c.o
> Linking C static library libftdi1.a
> [ 21%] Built target ftdi1-static
> Scanning dependencies of target ftdipp1
> [ 26%] Building CXX object ftdipp/CMakeFiles/ftdipp1.dir/ftdi.cpp.o
> Linking CXX shared library libftdipp1.dylib
> [ 26%] Built target ftdipp1
> Scanning dependencies of target ftdipp1-static
> [ 30%] Building CXX object ftdipp/CMakeFiles/ftdipp1-static.dir/ftdi.cpp.o
> Linking CXX static library libftdipp1.a
> [ 30%] Built target ftdipp1-static
> [ 34%] Swig source
> Scanning dependencies of target _ftdi1
> [ 39%] Building C object bindings/CMakeFiles/_ftdi1.dir/ftdi1PYTHON_wrap.c.o
> Linking C shared module _ftdi1.so
> Undefined symbols for architecture x86_64:
> "_PyClass_Type", referenced from:
> _SwigPyClientData_New in ftdi1PYTHON_wrap.c.o
> "_PyInstance_NewRaw", referenced from:
> _SWIG_Python_NewShadowInstance in ftdi1PYTHON_wrap.c.o
> "_PyInstance_Type", referenced from:
> _SWIG_Python_GetSwigThis in ftdi1PYTHON_wrap.c.o
> "_PyInt_AsLong", referenced from:
> _SWIG_AsVal_double in ftdi1PYTHON_wrap.c.o
> _SWIG_AsVal_long in ftdi1PYTHON_wrap.c.o
> _SWIG_AsVal_unsigned_SS_long in ftdi1PYTHON_wrap.c.o
> __wrap_read_data in ftdi1PYTHON_wrap.c.o
> __wrap_get_eeprom_buf in ftdi1PYTHON_wrap.c.o
> "_PyInt_FromLong", referenced from:
> _SWIG_From_int in ftdi1PYTHON_wrap.c.o
> "_PyInt_FromSize_t", referenced from:
> _SWIG_From_unsigned_SS_int in ftdi1PYTHON_wrap.c.o
> "_PyString_AsString", referenced from:
> _SWIG_Python_str_AsChar in ftdi1PYTHON_wrap.c.o
> "_PyString_AsStringAndSize", referenced from:
> _SWIG_AsCharPtrAndSize in ftdi1PYTHON_wrap.c.o
> "_PyString_ConcatAndDel", referenced from:
> _SwigPyObject_repr in ftdi1PYTHON_wrap.c.o
> _swig_varlink_str in ftdi1PYTHON_wrap.c.o
> "_PyString_Format", referenced from:
> _SwigPyObject_format in ftdi1PYTHON_wrap.c.o
> "_PyString_FromFormat", referenced from:
> _SwigPyObject_repr in ftdi1PYTHON_wrap.c.o
> _SwigPyPacked_repr in ftdi1PYTHON_wrap.c.o
> _SwigPyPacked_str in ftdi1PYTHON_wrap.c.o
> "_PyString_FromString", referenced from:
> _SWIG_Python_str_FromChar in ftdi1PYTHON_wrap.c.o
> _swig_varlink_repr in ftdi1PYTHON_wrap.c.o
> _swig_varlink_str in ftdi1PYTHON_wrap.c.o
> "_PyString_FromStringAndSize", referenced from:
> _convertString in ftdi1PYTHON_wrap.c.o
> _SWIG_FromCharPtrAndSize in ftdi1PYTHON_wrap.c.o
> "_Py_InitModule4_64", referenced from:
> _SWIG_Python_SetModule in ftdi1PYTHON_wrap.c.o
> _init_ftdi1 in ftdi1PYTHON_wrap.c.o
> "__PyInstance_Lookup", referenced from:
> _SWIG_Python_GetSwigThis in ftdi1PYTHON_wrap.c.o
> ld: symbol(s) not found for architecture x86_64
> collect2: ld returned 1 exit status
> make[2]: *** [bindings/_ftdi1.so] Error 1
> make[1]: *** [bindings/CMakeFiles/_ftdi1.dir/all] Error 2
> make: *** [all] Error 2
> mymacmini:build xiaofanc$ make -i
> [ 4%] Built target docs
> [ 13%] Built target ftdi1
> [ 21%] Built target ftdi1-static
> [ 26%] Built target ftdipp1
> [ 30%] Built target ftdipp1-static
> Linking C shared module _ftdi1.so
> Undefined symbols for architecture x86_64:
> "_PyClass_Type", referenced from:
> _SwigPyClientData_New in ftdi1PYTHON_wrap.c.o
> "_PyInstance_NewRaw", referenced from:
> _SWIG_Python_NewShadowInstance in ftdi1PYTHON_wrap.c.o
> "_PyInstance_Type", referenced from:
> _SWIG_Python_GetSwigThis in ftdi1PYTHON_wrap.c.o
> "_PyInt_AsLong", referenced from:
> _SWIG_AsVal_double in ftdi1PYTHON_wrap.c.o
> _SWIG_AsVal_long in ftdi1PYTHON_wrap.c.o
> _SWIG_AsVal_unsigned_SS_long in ftdi1PYTHON_wrap.c.o
> __wrap_read_data in ftdi1PYTHON_wrap.c.o
> __wrap_get_eeprom_buf in ftdi1PYTHON_wrap.c.o
> "_PyInt_FromLong", referenced from:
> _SWIG_From_int in ftdi1PYTHON_wrap.c.o
> "_PyInt_FromSize_t", referenced from:
> _SWIG_From_unsigned_SS_int in ftdi1PYTHON_wrap.c.o
> "_PyString_AsString", referenced from:
> _SWIG_Python_str_AsChar in ftdi1PYTHON_wrap.c.o
> "_PyString_AsStringAndSize", referenced from:
> _SWIG_AsCharPtrAndSize in ftdi1PYTHON_wrap.c.o
> "_PyString_ConcatAndDel", referenced from:
> _SwigPyObject_repr in ftdi1PYTHON_wrap.c.o
> _swig_varlink_str in ftdi1PYTHON_wrap.c.o
> "_PyString_Format", referenced from:
> _SwigPyObject_format in ftdi1PYTHON_wrap.c.o
> "_PyString_FromFormat", referenced from:
> _SwigPyObject_repr in ftdi1PYTHON_wrap.c.o
> _SwigPyPacked_repr in ftdi1PYTHON_wrap.c.o
> _SwigPyPacked_str in ftdi1PYTHON_wrap.c.o
> "_PyString_FromString", referenced from:
> _SWIG_Python_str_FromChar in ftdi1PYTHON_wrap.c.o
> _swig_varlink_repr in ftdi1PYTHON_wrap.c.o
> _swig_varlink_str in ftdi1PYTHON_wrap.c.o
> "_PyString_FromStringAndSize", referenced from:
> _convertString in ftdi1PYTHON_wrap.c.o
> _SWIG_FromCharPtrAndSize in ftdi1PYTHON_wrap.c.o
> "_Py_InitModule4_64", referenced from:
> _SWIG_Python_SetModule in ftdi1PYTHON_wrap.c.o
> _init_ftdi1 in ftdi1PYTHON_wrap.c.o
> "__PyInstance_Lookup", referenced from:
> _SWIG_Python_GetSwigThis in ftdi1PYTHON_wrap.c.o
> ld: symbol(s) not found for architecture x86_64
> collect2: ld returned 1 exit status
> [ 39%] Built target _ftdi1
> Scanning dependencies of target ftdi_eeprom
> [ 43%] Building C object ftdi_eeprom/CMakeFiles/ftdi_eeprom.dir/main.c.o
> Linking C executable ftdi_eeprom
> [ 43%] Built target ftdi_eeprom
> Scanning dependencies of target baud_test
> [ 47%] Building C object examples/CMakeFiles/baud_test.dir/baud_test.c.o
> Linking C executable baud_test
> [ 47%] Built target baud_test
> Scanning dependencies of target bitbang
> [ 52%] Building C object examples/CMakeFiles/bitbang.dir/bitbang.c.o
> Linking C executable bitbang
> [ 52%] Built target bitbang
> Scanning dependencies of target bitbang2
> [ 56%] Building C object examples/CMakeFiles/bitbang2.dir/bitbang2.c.o
> Linking C executable bitbang2
> [ 56%] Built target bitbang2
> Scanning dependencies of target bitbang_cbus
> [ 60%] Building C object examples/CMakeFiles/bitbang_cbus.dir/bitbang_cbus.c.o
> Linking C executable bitbang_cbus
> [ 60%] Built target bitbang_cbus
> Scanning dependencies of target bitbang_ft2232
> [ 65%] Building C object
> examples/CMakeFiles/bitbang_ft2232.dir/bitbang_ft2232.c.o
> Linking C executable bitbang_ft2232
> [ 65%] Built target bitbang_ft2232
> Scanning dependencies of target eeprom
> [ 69%] Building C object examples/CMakeFiles/eeprom.dir/eeprom.c.o
> Linking C executable eeprom
> [ 69%] Built target eeprom
> Scanning dependencies of target find_all
> [ 73%] Building C object examples/CMakeFiles/find_all.dir/find_all.c.o
> Linking C executable find_all
> [ 73%] Built target find_all
> Scanning dependencies of target find_all_pp
> [ 78%] Building CXX object examples/CMakeFiles/find_all_pp.dir/find_all_pp.cpp.o
> Linking CXX executable find_all_pp
> [ 78%] Built target find_all_pp
> Scanning dependencies of target serial_test
> [ 82%] Building C object examples/CMakeFiles/serial_test.dir/serial_test.c.o
> Linking C executable serial_test
> [ 82%] Built target serial_test
> Scanning dependencies of target simple
> [ 86%] Building C object examples/CMakeFiles/simple.dir/simple.c.o
> Linking C executable simple
> [ 86%] Built target simple
> Scanning dependencies of target stream_test
> [ 91%] Building C object examples/CMakeFiles/stream_test.dir/stream_test.c.o
> Linking C executable stream_test
> [ 91%] Built target stream_test
> Scanning dependencies of target test_libftdi1
> [ 95%] 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 libftdi+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx
>

Hi,

The python wrapper is not linked against libpython on purpose.
Have you at least tried to run it ?

M.


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


Current Thread