Cannot manage to compile Python FBX 2020.0.1 VS2017 with Python 3.7
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi everyone,
I'm trying to use Python FBX in a project, and I'm discovering that there are only bindings provided for Python 2.? and 3.1. The project I'm wanting to integrate the Python FBX module is running under python 3.7, so from my understanding I need to recompile the module myself.
I wonder if others went through the same steps, but I seem to be running into a couple of problems and therefore seek help. I also hope that it might help others if solved... For information I'm running it for Windows 10.
So I started by downloading and installing the FBX SDK, the Python FBX and FBX Python Bindings ( https://www.autodesk.com/developer-network/platform-technologies/fbx-sdk-2020-0 download:)
I then tried to follow as much as possible the steps provided by Autodesk (\FBX Python Bindings\2020.0.1\readme.txt).
As they recommand first installing sip ("4.19.3 because it is known that it correctly supports the '--sip-module'"), I downloaded the source from Riverbank (https://www.riverbankcomputing.com/software/sip/download/). As it was an already prepared version I went directly to 'python configure.py', followed by 'nmake install'(make install will actually run to an infinite loop on windows). Following the install running sip -V in the python root directory confirmed that it was the 4.19.3 version.
I then ran "python PythonBindings.py Python3_x86" from the c:\Program Files\Autodesk\FBX\FBX Python Bindings\2020.0.1 directory
And that's when I seem to get stuck, it get to the following code and does nothing
=> RUN COMMAND : "C:\Users\myuser\AppData\Local\Programs\Python\Python37-32\sip" -o -t FBX_X86 -c c:\Program Files\Autodesk\FBX\FBX Python Bindings\2020.0.1\build\Python37_x86 -b c:\Program Files\Autodesk\FBX\FBX Python Bindings\2020.0.1\build\Python37_x86\fbx_module.sbf -I c:\Program Files\Autodesk\FBX\FBX Python Bindings\2020.0.1\sip c:\Program Files\Autodesk\FBX\FBX Python Bindings\2020.0.1\sip\fbx_module.sip sip: Usage: sip [-h] [-V] [-a file] [-b file] [-B tag] [-c dir] [-d file] [-D] [-e] [-f] [-g] [-I dir] [-j #] [-k] [-m file] [-o] [-p module] [-P] [-r] [-s suffix] [-t tag] [-w] [-x feature] [-X id:file] [-y file] [-z file] [@file] [file]
It looks like the command line that is ran is incorrect, but I have no idea what can be the cause. Would anyone know what's going wrong?
Thanks in advance