A small set of shell scripts to automatically download and build fbx-conv and all its dependencies.
git clone https://github.com/sitory/Fbx-conv-installer-Linux.git
cd Fbx-conv-installer-Linux
chmod -R 755 .
sudo ./0-Install-DebianUbuntuDependencies.sh && ./Install.sh
libgdx-fbxconv-gui install (Optional)
cd fbx-conv
ln -sfn fbx-conv fbx-conv-lin64
wget https://github.com/ASneakyFox/libgdx-fbxconv-gui/releases/download/1.5/fbxconv-gui.jar
chmod 755 fbxconv-gui.jar
cp ../fbx-conv-gui.sh .
- Open terminal and
cd
to "Fbx-conv-installer-Linux" folder. - Run
chmod -R 755 .
to make all files in the folder executable. - Install with your package manager:
libpng-dev zlib1g-dev sed git wget make gcc
+lib32stdc++6 lib32gcc1 lib32z1
(For x64) - Run
./Install.sh
cd
to fbx-conv and put your models in the "models" folder, run ./Run.sh
to convert the files. Converted files will be moved to the "converted" folder, all the files will be moved to the "done" folder. You can edit the "Run.sh" file to place the files directly in your project folder. (ex: "/user/game/models/3d" instead of "converted")
You can also use watch -n2 ./Run.sh
to run the script each 2 seconds, so your files will be converted automatically when saved.
Or while sleep 2; do find models | entr -d -r "./Run.sh"; done
(You need to install entr for this sudo apt-get install entr
) so the script will be run each time the files in the "models" folder changes.
When i try to run ./fbx-conv
i get this error error while loading shared libraries: libfbxsdk.so: cannot open shared object file: No such file or directory
This happens because the system search by default for libfbxsdk.so and libfbxsdk.a on the "/usr/lib" directory, you can use either:
./fbx-conv.sh
or./fbx-conv-gui.sh
(if you installed the gui) a script that run fbx-conv, but export the library path to current directory before doing it, you can use arguments../Run.sh
run the shell script i use for batch file conversion, you can use arguments.export LD_LIBRARY_PATH=.
(before running./fbx-conv
) to make the system look for the libraries at the current directory.sudo cp {libfbxsdk.a,libfbxsdk.so} /usr/lib
(at the fbx-conv directory) to copy the files to "/usr/lib"