首页 文章

针对ARM的Nano-x交叉编译

提问于
浏览
1

我正在尝试交叉编译nano-x for arm架构 .

我在配置文件中编辑了下一行:

ARCH = LINUX-ARM ARMTOOLSPREFIX = arm-none-linux-gnueabi-

运行make之后我有下一个错误:

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

1 回答

  • 1

    我怀疑你正在编译你的构建系统的头文件而不是目标 . 由于版本不匹配,这是一个奇怪的崩溃的秘诀 .

    使用 --sysroot=<target-root> 进行编译 - 其中 <target-root> 是目标文件系统映像的根目录,包括头文件和库文件 .

相关问题