I'm trying to compile the Open Kinect drivers for Python on Windows I made a Make file with CMake (link) and tried compiling it with VC++ Express.
Everything seems to compile alright (the viewer sample works), except for the Python wrapper. I changed the output folder of freenect, which places freenect.lib in another folder to prevent a collision. When I changed this it and try to compile cython_freenect I get:
1>------ Build started: Project: ZERO_CHECK, Configuration: Release Win32 ------
2>------ Build started: Project: freenect, Configuration: Release Win32 ------
2> Creating library C:/IvoPython/Kinect/Driver/lib/Release/freenect.lib and object C:/IvoPython/Kinect/Driver/lib/Release/freenect.exp
2> freenect.vcxproj -> C:\IvoPython\Kinect\Driver\Release\freenect.dll
3>------ Build started: Project: freenect_sync, Configuration: Release Win32 ------
3> Creating library C:/IvoPython/Kinect/Driver/lib/Release/freenect_sync.lib and object C:/IvoPython/Kinect/Driver/lib/Release/freenect_sync.exp
3> freenect_sync.vcxproj -> C:\IvoPython\Kinect\Driver\Release\freenect_sync.dll
4>------ Build started: Project: cython_freenect, Configuration: Release Win32 ------
4>LINK : fatal error LNK1149开发者_如何学编程: output filename matches input filename 'C:\IvoPython\Kinect\Driver\lib\Release\freenect.lib'
========== Build: 3 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
It's strange that it can't find the library, because it just created it and I manually linked it to the library.
Any suggestions as to what I'm doing wrong? As far as I know I followed all the steps in the Python Wrapper for Windows guide.
Somehow the linker got a wrong argument: the output file matches one of the input files. Is C:/IvoPython/Kinnect/Driver an exisiting path from your download ?
You should try to choose a build target outside Kinnect, maybe C:/IvoPython/build
精彩评论