试图获取在Ubuntu 12.04上编译的一个示例
我在用make -f Makefile-x64-static
但是,我得到了错误make: gcc4: Command not found
我尝试在makefile中从gcc4切换到gcc。
但是,我得到了编译错误note: #pragma message: IMPORTANT NOTE: The FBX SDK API changed substantially. Please define FBXSDK_NEW_API in your project and fix compilation errors as instructed in fbxsdk_compatibility.h.
以及链接错误/usr/bin/ld: cannot find -luuid
任何提示将不胜感激。
最佳答案
预备知识
sudo apt get安装uuid dev
安装安装LIXMU DEVLIXI DEV
sudo apt get安装libx11 dev
需要对Makefile进行修改
gcc4改为gcc
CC=GCC
LD=通用条款
将-lX11添加到LIBS
LIBS=-lfbxsdk-$(LIBFBXVERSION)$(静态)-lm-lrt-luuid-lc-lstdc++-lpthread-ldl-lglut_gcc34-amd64-lGLEW_amd64-lGLU-lGL-lXmu-lX11
将-DFBXSDK_NEW_API添加到C_标志和CXX_标志
CFLAGS=-m64-DFBXSDK_新API
CXXFLAGS=-m64-DFBXSDK_新的API