我正在嘗試爲arm架構交叉編譯nano-x。針對ARM的Nano-x交叉編譯
我在配置文件中編輯下一行:
ARCH = LINUX-ARM
ARMTOOLSPREFIX = arm-none-linux-gnueabi-
後,我跑讓我有一個錯誤:
Compiling engine/image_jpeg.c ... cc1: warning: include location "/usr/include/freetype2" is unsafe for cross-compilation /home/user/oe/nanox/microwindows-0.92/src/engine/image_jpeg.c:49: fatal error: jpeglib.h: No such file or directory compilation terminated. make[1]: *** [/home/user/oe/nanox/microwindows-0.92/src/obj/engine/image_jpeg.o] Error 1 make: *** [subdir-/home/user/oe/nanox/microwindows-0.92/src/mwin] Error 2
每個編譯後我也有一個警告:
cc1: warning: include location "/usr/include/some file" is unsafe for cross-compilation
我試圖編譯我的架構,一切都很順利。演示正在運行。
有下一個問題:
In function 'MwSelect': /home/user/oe/nanox/microwindows-0.92/src/mwin/winmain.c:356: error: impossible constraint in 'asm' /home/user/oe/nanox/microwindows-0.92/src/mwin/winmain.c:357: error: impossible constraint in 'asm' /home/user/oe/nanox/microwindows-0.92/src/mwin/winmain.c:358: error: impossible constraint in 'asm' make[1]: *** [/home/user/oe/nanox/microwindows-0.92/src/obj/mwin/winmain.o] Error 1 make: *** [subdir-/home/user/oe/nanox/microwindows-0.92/src/mwin] Error 2
有下一個問題: '在功能 'MwSelect': /home/user/oe/nanox/microwindows-0.92/src/mwin/winmain.c:356:錯誤:在 '彙編' 不可能約束/ home/user/oe/nanox/microwindows-0.92/src/mwin/winmain.c:357:錯誤:'asm'中的不可約束條件 /home/user/oe/nanox/microwindows-0.92/src/mwin/winmain。 c:358:錯誤:'asm'中的不可約束 make [1]:*** [/home/user/oe/nanox/microwindows-0.92/src/obj/mwin/winmain.o]錯誤1 make: *** [subdir-/home/user/oe/nanox/microwindows-0.92/src/mwin]錯誤2 ' – 2013-04-09 10:21:03