libftdi Archives

Subject: Re: How to install libftdi under Win7

From: "Robert Schilling" <Fun_Extra_300@xxxxxxx>
To: libftdi@xxxxxxxxxxxxxxxxxxxxxxx
Date: Sat, 16 Feb 2013 17:04:52 +0100
I'm currently trying to build the python bindings for python3.2 but this still 
fails. I'm getting undefined references to the C extensions.

Linking C shared module _ftdi1.pyd
CMakeFiles\_ftdi1.dir/objects.a(ftdi1PYTHON_wrap.c.obj): In function 
`SWIG_Python_ErrorType':
C:/Program Files (x86)/CMake 2.8/bindings/ftdi1PYTHON_wrap.c:989: undefined 
reference to `_imp__PyExc_RuntimeError'
C:/Program Files (x86)/CMake 2.8/bindings/ftdi1PYTHON_wrap.c:965: undefined 
reference to `_imp__PyExc_IndexError'
C:/Program Files (x86)/CMake 2.8/bindings/ftdi1PYTHON_wrap.c:959: undefined 
reference to `_imp__PyExc_IOError'
C:/Program Files (x86)/CMake 2.8/bindings/ftdi1PYTHON_wrap.c:956: undefined 
reference to `_imp__PyExc_MemoryError'
C:/Program Files (x86)/CMake 2.8/bindings/ftdi1PYTHON_wrap.c:986: undefined 
reference to `_imp__PyExc_AttributeError'
C:/Program Files (x86)/CMake 2.8/bindings/ftdi1PYTHON_wrap.c:983: undefined 
reference to `_imp__PyExc_SystemError'
C:/Program Files (x86)/CMake 2.8/bindings/ftdi1PYTHON_wrap.c:980: undefined 
reference to `_imp__PyExc_ValueError'
C:/Program Files (x86)/CMake 2.8/bindings/ftdi1PYTHON_wrap.c:977: undefined 
reference to `_imp__PyExc_SyntaxError'
C:/Program Files (x86)/CMake 2.8/bindings/ftdi1PYTHON_wrap.c:974: undefined 
reference to `_imp__PyExc_OverflowError'
C:/Program Files (x86)/CMake 2.8/bindings/ftdi1PYTHON_wrap.c:971: undefined 
reference to `_imp__PyExc_ZeroDivisionError'

C:/Program Files (x86)/CMake 2.8/bindings/ftdi1PYTHON_wrap.c:968: undefined 
reference to `_imp__PyExc_TypeError'
CMakeFiles\_ftdi1.dir/objects.a(ftdi1PYTHON_wrap.c.obj): In function 
`SwigPyClientData_New':
C:/Program Files (x86)/CMake 2.8/bindings/ftdi1PYTHON_wrap.c:1453: undefined 
reference to `_imp__PyType_Type'
CMakeFiles\_ftdi1.dir/objects.a(ftdi1PYTHON_wrap.c.obj): In function 
`SwigPyObject_richcompare':
C:/Program Files (x86)/CMake 2.8/bindings/ftdi1PYTHON_wrap.c:1625: undefined 
reference to `_imp___Py_NotImplementedStruc
t'
CMakeFiles\_ftdi1.dir/objects.a(ftdi1PYTHON_wrap.c.obj): In function 
`SWIG_AsVal_double':
C:/Program Files (x86)/CMake 2.8/bindings/ftdi1PYTHON_wrap.c:3018: undefined 
reference to `_imp__PyFloat_Type'
CMakeFiles\_ftdi1.dir/objects.a(ftdi1PYTHON_wrap.c.obj): In function 
`SWIG_Python_AppendOutput':
C:/Program Files (x86)/CMake 2.8/bindings/ftdi1PYTHON_wrap.c:1256: undefined 
reference to `_imp___Py_NoneStruct'
CMakeFiles\_ftdi1.dir/objects.a(ftdi1PYTHON_wrap.c.obj): In function 
`SWIG_Python_ConvertFunctionPtr':
C:/Program Files (x86)/CMake 2.8/bindings/ftdi1PYTHON_wrap.c:2386: undefined 
reference to `_imp__PyCFunction_Type'
CMakeFiles\_ftdi1.dir/objects.a(ftdi1PYTHON_wrap.c.obj): In function 
`SWIG_Python_SetErrorMsg':
C:/Program Files (x86)/CMake 2.8/bindings/ftdi1PYTHON_wrap.c:1206: undefined 
reference to `_imp__PyExc_ValueError'
C:/Program Files (x86)/CMake 2.8/bindings/ftdi1PYTHON_wrap.c:1206: undefined 
reference to `_imp__PyExc_ValueError'
C:/Program Files (x86)/CMake 2.8/bindings/ftdi1PYTHON_wrap.c:1206: undefined 
reference to `_imp__PyExc_ValueError'
C:/Program Files (x86)/CMake 2.8/bindings/ftdi1PYTHON_wrap.c:1206: undefined 
reference to `_imp__PyExc_ValueError'
CMakeFiles\_ftdi1.dir/objects.a(ftdi1PYTHON_wrap.c.obj): In function 
`SWIG_Python_NewShadowInstance':
C:/Program Files (x86)/CMake 2.8/bindings/ftdi1PYTHON_wrap.c:2465: undefined 
reference to `_imp__PyBaseObject_Type'
collect2.exe: error: ld returned 1 exit status
mingw32-make[2]: *** [bindings/_ftdi1.pyd] Error 1
mingw32-make[1]: *** [bindings/CMakeFiles/_ftdi1.dir/all] Error 2
mingw32-make: *** [all] Error 2


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

Current Thread