我尝试交叉编译要在 arm 目标上运行的应用程序(我的主机是 x86 ubuntu 11.10)。
当我运行“make”时,我得到这个错误:
mar@ubuntu:~/Desktop/App$ make
cc1plus: warning: include location "/usr/include/GL/" is unsafe for cross-compilation
cc1plus: warning: include location "/usr/include/c++/4.6/" is unsafe for cross-compilation
cc1plus: warning: include location "/usr/include/qt4/" is unsafe for cross-compilation
..
/usr/include/qt4/QtOpenGL/qgl.h:77:15: fatal error: GL: No such file or directory
compilation terminated.
make: *** [main.o] Error 1
我知道我需要为 arm 交叉编译我的库 qt4 和 OpenGL,但我不知道如何。
对于makefile,我使用那些编译器。
CC = arm-none-linux-gnueabi-gcc
CXX = arm-none-linux-gnueabi-g++
AR = ar