-
Notifications
You must be signed in to change notification settings - Fork 153
Description
finally i installed fbx sdk in my machine.
it was not easy, so those who suffering to install fbx_sdk, i hope this helps.
i wrote that manual with many googling and trial.
environment
* Ubuntu 20.04 LTS
* python 3.8.10
- download and install fbx sdk
- fbx sdk
- version
- 202032
- tar file download path
./<YOUR_FBXSDK_PATH>/
- instruction
cd <YOUR_FBXSDK_PATH>tar zxvf fbx202032_fbxsdk_linux.tar.gz./fbx202032_fbxsdk_linux.tar.gzexport FBXSDK_ROOT=<YOUR_FBXSDK_PATH>
- you should check env param
- version
- fbx python binding
- version
- 202032
- tar file download path
./YOUR_FBX_PYTHON_BINDING_PATH/
- instruction
cd <YOUR_FBX_PYTHON_BINDING_PATH>tar zxvf fbx202032_fbxpythonbindings_linux.tar.gz./fbx202032_fbxpythonbindings_linux.tar.gz
- version
- reference
- [autodesk FBX SDK 202032](https://www.autodesk.com/developer-network/platform-technologies/fbx-sdk-2020-3.2)
- no need fbx python sdk
- fbx sdk
- sip - build tool
- version
- 4.19.3
- file download path
./<YOUR_SIP_PATH>/
- install
cd <YOUR_SIP_PATH>python configure.pymakemake installexport SIP_ROOT=<YOUR_SIP_PATH>
- you should check env param
- reference
- version
- sdk build
cd <YOUR_FBX_PYTHON_BINDING_PATH>python PythonBindings.py Python3_x64 buildsip- when get problem with lxml
sudo apt insatll libxml2-devpython PythonBindings.py Python3_x64 buildsip
- modify make file and re-install
-
there is possibility of error when import fbx after first build.
fbx undefined symbol: xmlFree- that is error about link order related with libxml2.so's
- you should modify the make file
- [make file modify](https://forums.autodesk.com/t5/fbx-forum/fbx-python-bindings-fails-on-ubuntu-because-of-undefined-symbol/td-p/9538320)
-
cd <YOUR_FBX_PYTHON_BINDING_PATH>/build/Python38_x64 -
make clean -
open make file and modify
from LIBS = -L/workspace/CALM/fbxsdk/lib/gcc/x64/release -lz -lxml2 /workspace/CALM/fbxsdk/lib/gcc/x64/release/libfbxsdk.a to LIBS = -L/workspace/CALM/fbxsdk/lib/gcc/x64/release /workspace/CALM/fbxsdk/lib/gcc/x64/release/libfbxsdk.a -lz -lxml2
-
make install -
files are created in
<YOUR_FBX_PYTHON_BINDING_PATH/build/Distrib/site-packages/fbx>after installingfbx.soFbxCommon.pyfbxsip.so
-
and file is copied to
<YOUR_PIP_PATH>/site-packagesfbx.so
-
- add sys path to your .py file
-
the package paths are not added to python sys.path, you should add path manually.
-
maybe i should move
<YOUR_FBX_PYTHON_BINDING_PATH/build/Distrib/site-packages/fbx>to my python site-package. and maybe don't need this step.import sys sys.path.append('<YOUR_FBX_PYTHON_BINDING_PATH>/build/Distrib/site-packages/fbx/') ...
-
now you can successfully import fbx, FbxCommon packages.
-
- other reference