ARM的Nano-x交叉编译

ARM的Nano-x交叉编译,arm,cross-compiling,Arm,Cross Compiling,我正在尝试交叉编译用于arm架构的nano-x 我在配置文件中编辑了以下几行: 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/nan

我正在尝试交叉编译用于arm架构的nano-x

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

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 编译引擎/image\u jpeg.c。。。 cc1:警告:包含位置“/usr/include/freetype2”对于交叉编译不安全 /home/user/oe/nanox/microwindows-0.92/src/engine/image_jpeg.c:49:致命错误:jpeglib.h:没有这样的文件或目录 编译终止。 make[1]:***[/home/user/oe/nanox/microwindows-0.92/src/obj/engine/image\u jpeg.o]错误1 make:**[subdir-/home/user/oe/nanox/microwindows-0.92/src/mwin]错误2 此外,每次编译后,我都有一个警告:

cc1: warning: include location "/usr/include/some file" is unsafe for cross-compilation cc1:警告:包含位置“/usr/include/some file”对于交叉编译不安全 我试着为我的架构进行编译,一切都很顺利。演示正在运行

还有一个问题:

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:错误:“asm”中不可能存在约束 /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我怀疑您是根据生成系统的头文件而不是目标文件进行编译的。这是由于版本不匹配而导致奇怪崩溃的一种方法


使用
--sysroot=
编译-其中
是目标归档系统映像的根目录,包括标题和库文件

我怀疑您是根据构建系统的头文件而不是目标文件进行编译的。这是由于版本不匹配而导致奇怪崩溃的一种方法


使用
--sysroot=
编译-其中
是目标归档系统映像的根目录,包括标题和库文件

谢谢。我必须编辑配置文件并设置INC*值。例如:INCT1LIB=/usr/includeThanks。我必须编辑配置文件并设置INC*值。例:INCT1LIB=/usr/includeThere is next problem:
在函数“MwSelect”中:/home/user/oe/nanox/microwindows-0.92/src/mwin/winmain.c:356:error:asm/home/user/oe/nanox/microwindows-0.92/src/mwin/winmain中不可能的约束。c:357:error: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
还有一个问题:
在函数“MwSelect”中:/home/user/oe/nanox/microwindows-0.92/src/mwin/winmain.c:356:Error:asm'/home/user/oe/nanox/microwindows-0.92/src/mwin/win/winmain中存在不可能的约束。c:357:Error: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