Closed hhebb closed 1 year ago
I get /usr/bin/ld: cannot find -lz
as well as /usr/bin/ld: cannot find -lxml2
while building pythonbindings. It's caused by the missing of both zlib and libxml2 (not sure if it's common to miss libz). The problem can be solved by sudo apt install zlib1g-dev libxml2-dev
.
It took me some time to find out which package -lz
stands for, so I comment here for those who may stuck on the same problem as me.
Error: FBX library failed to load - importing FBX data will not succeed. Message: No module named 'fbxsip'
I also encountered the same problem in Ubuntu 22.04. Is there any solution?
Error: FBX library failed to load - importing FBX data will not succeed. Message: No module named 'fbxsip'
I also encountered the same problem in Ubuntu 22.04. Is there any solution?
after modifying the Makefile, run sudo make
before make install
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.
./<YOUR_FBXSDK_PATH>/
cd <YOUR_FBXSDK_PATH>
tar zxvf fbx202032_fbxsdk_linux.tar.gz
./fbx202032_fbxsdk_linux.tar.gz
export FBXSDK_ROOT=<YOUR_FBXSDK_PATH>
./YOUR_FBX_PYTHON_BINDING_PATH/
cd <YOUR_FBX_PYTHON_BINDING_PATH>
tar zxvf fbx202032_fbxpythonbindings_linux.tar.gz
./fbx202032_fbxpythonbindings_linux.tar.gz
./<YOUR_SIP_PATH>/
cd <YOUR_SIP_PATH>
python configure.py
make
make install
export SIP_ROOT=<YOUR_SIP_PATH>
cd <YOUR_FBX_PYTHON_BINDING_PATH>
python PythonBindings.py Python3_x64 buildsip
sudo apt insatll libxml2-dev
python 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
cd <YOUR_FBX_PYTHON_BINDING_PATH>/build/Python38_x64
make clean
open make file and modify
make install
files are created in
<YOUR_FBX_PYTHON_BINDING_PATH/build/Distrib/site-packages/fbx>
after installingfbx.so
FbxCommon.py
fbxsip.so
and file is copied to
<YOUR_PIP_PATH>/site-packages
fbx.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.now you can successfully import fbx, FbxCommon packages.