How can I install fbx sdk and build the loader plugins correctly with Qt5.10?
-
I'm currently using Qt5.10 and want to load .fbx model in my qt application. The documentation told me that "QMesh will also support the following format if the SDK is installed and the fbx geometry loader plugin is built and found", but honestly I can't quite understand. I'm wondering where I can get the source files and how to build them to a plugin? After that, how can I make Qt find the plugin? In addition, I'm using MacOS.
-
I'm currently using Qt5.10 and want to load .fbx model in my qt application. The documentation told me that "QMesh will also support the following format if the SDK is installed and the fbx geometry loader plugin is built and found", but honestly I can't quite understand. I'm wondering where I can get the source files and how to build them to a plugin? After that, how can I make Qt find the plugin? In addition, I'm using MacOS.
@Peihao-Wang spoiler alert: not a user of .fbx files
It looks like you need to install the Autodesk FBX SDK, in particular the Mac download. -
Thanks for your immediate reply. I've installed fbxsdk for Mac Clang, but as I tried to include "fbxsdk.h" into my source file, the compiler told me "fbxsdk.h" not found. I think I should do some path configuration, but I'm not clear about how to do this.
-
Thanks for your immediate reply. I've installed fbxsdk for Mac Clang, but as I tried to include "fbxsdk.h" into my source file, the compiler told me "fbxsdk.h" not found. I think I should do some path configuration, but I'm not clear about how to do this.
@Peihao-Wang ok, so you should identify where such header file (and maybe other ones) was installed by the SDK (i.e. usually /usr/include or /usr/local/include in Linux) along with the location of library files (i.e. .so files usually under /usr/lib or /usr/local/lib in Linux).
Then update your Qt project file .pro with entries for INCLUDEPATH and LIBS:... INCLUDEPATH += /path/to/sdk/headers LIBS += -L/path/to/sdk/libraries -lFile1 -lFile2
in the example, I assume your SDK provides and your application is using functions from library files libFile1.so and libFile2.so
-
My thanks again. Actually, I don't need to add "fbxsdk.h" in my project, I think. Instead, I may need to compile fbx geometry loader manually (I found this: https://github.com/yunit-io/qt3d/tree/6310f055965f824f716ccc3fbc99e4209f667635).
In that case, I should clone the repository, run "qmake && make" to build the project, find the generated DLLs, and put them into the {$HOME}/Qt5.10.0/5.10.0/clang_64/plugins/geometryloaders, am I right? -
My thanks again. Actually, I don't need to add "fbxsdk.h" in my project, I think. Instead, I may need to compile fbx geometry loader manually (I found this: https://github.com/yunit-io/qt3d/tree/6310f055965f824f716ccc3fbc99e4209f667635).
In that case, I should clone the repository, run "qmake && make" to build the project, find the generated DLLs, and put them into the {$HOME}/Qt5.10.0/5.10.0/clang_64/plugins/geometryloaders, am I right?@Peihao-Wang I'm afraid I'm not experienced with 3D plugins, but from documentation:
QMesh will also support the following format if the SDK is installed and the fbx geometry loader plugin is built and found:
Autodesk FBXso it looks like it's the way to go (and if not, it won't be that hard to try)
-
My thanks again. Actually, I don't need to add "fbxsdk.h" in my project, I think. Instead, I may need to compile fbx geometry loader manually (I found this: https://github.com/yunit-io/qt3d/tree/6310f055965f824f716ccc3fbc99e4209f667635).
In that case, I should clone the repository, run "qmake && make" to build the project, find the generated DLLs, and put them into the {$HOME}/Qt5.10.0/5.10.0/clang_64/plugins/geometryloaders, am I right?@Peihao-Wang hello, I have the same problem,and have no idea how to solve it,can you help me?
this is my quesiton :https://forum.qt.io/topic/97379/how-add-fbx-sdk-in-my-mac-qt-project
thanks a lot
-
I'm currently using Qt5.10 and want to load .fbx model in my qt application. The documentation told me that "QMesh will also support the following format if the SDK is installed and the fbx geometry loader plugin is built and found", but honestly I can't quite understand. I'm wondering where I can get the source files and how to build them to a plugin? After that, how can I make Qt find the plugin? In addition, I'm using MacOS.
@Peihao-Wang Hey there! Were you able to make it work? I'm struggling with the same issue.