有谁知道如何在 mac 上使用 fbx-conv 吗?我在这里下载了 zip 文件:http://libgdx.badlogicgames.com/fbx-conv/
带有fbx-conv-mac thePathOfMyFile
的命令行不起作用,它总是显示“找不到命令”。然后是自述文件:
On Linux and Mac, we have to link to the dynamic libraries of the FBX SDK (libfbxsdk.so and libfbxsdk.dylib). We recommend copying libfbxsdk.so to /usr/lib on Linux. Otherwise you can use LD_LIBRARY_PATH and set it to the directory you put the .so file.
我只有 .dylib
文件,因此我尝试使用以下命令将其复制到 /usr/lib
中:sudo cp/Users/MyName/fbx-conv/libfbxsdk.dylib/usr/lib
,它工作了,文件被复制到这个文件夹,但是命令行 fbx-conv-mac thePathOfMyFile
仍然不起作用:command未找到。
仍在自述文件中,它说:
Building
You'll need premake and an installation of the FBX SDK 2014. Once installed/downloaded, set the FBX_SDK_ROOT to the directory where you installed the FBX SDK. Then run one of the generate_XXX scripts. These will generate a Visual Studio/XCode project, or a Makefile.
在 Google 上,使用 FBX SDK 2014,我找到了下载 fbx-conv-master
的链接:https://github.com/libgdx/fbx-conv看起来像是包含好文件的文件夹,但我不知道如何使用它们,例如没有 fbx-conv
。
有什么帮助吗?
谢谢
最佳答案
好的,我从 libgdx 论坛得到了答案,在 Mac 上,解决方案是编写 ./fbx-conv-mac filePath
而不是 fbx-conv-mac filePath
。它对我有用。
关于linux - 如何开始使用 fbx-conv? "Command not found"问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23237742/