Skip to content

sitory/Fbx-conv-installer-Linux

Repository files navigation

Fbx-conv-installer-Linux

A small set of shell scripts to automatically download and build fbx-conv and all its dependencies.

Quick Debian and Ubuntu install

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
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 .

Installation

  1. Open terminal and cd to "Fbx-conv-installer-Linux" folder.
  2. Run chmod -R 755 . to make all files in the folder executable.
  3. Install with your package manager: libpng-dev zlib1g-dev sed git wget make gcc + lib32stdc++6 lib32gcc1 lib32z1 (For x64)
  4. Run ./Install.sh

Usage of "Run.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.

Troubleshooting

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:

  1. ./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.
  2. ./Run.sh run the shell script i use for batch file conversion, you can use arguments.
  3. export LD_LIBRARY_PATH=. (before running ./fbx-conv) to make the system look for the libraries at the current directory.
  4. sudo cp {libfbxsdk.a,libfbxsdk.so} /usr/lib (at the fbx-conv directory) to copy the files to "/usr/lib"

Links

About

A small set of shell scripts to automatically download and build fbx-conv and all its dependencies.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages