3264
- 收藏
- 点赞
- 分享
- 举报
编译 glib
请教给位前辈,我用交叉编译器来编译 glib 但不成功, 出现以下问题:
[code]
aa@aa:~/Hi3536_SDK_V2.0.4.0/glib-2.50.0$ ./build_glibArm.sh
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for arm-hisiv400-linux-strip... arm-hisiv400-linux-strip
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether UID '1000' is supported by ustar format... yes
checking whether GID '1000' is supported by ustar format... yes
checking how to create a ustar tar archive... gnutar
checking whether to enable maintainer-specific portions of Makefiles... yes
checking whether make supports nested variables... (cached) yes
checking for arm-hisiv400-linux-gcc... arm-hisiv400-linux-gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... yes
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether arm-hisiv400-linux-gcc accepts -g... yes
checking for arm-hisiv400-linux-gcc option to accept ISO C89... none needed
checking whether arm-hisiv400-linux-gcc understands -c and -o together... yes
checking for style of include used by make... GNU
checking dependency style of arm-hisiv400-linux-gcc... gcc3
checking how to run the C preprocessor... arm-hisiv400-linux-gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... arm-hisiv400-linux-gnu
checking for Win32... no
checking for the Android... no
checking for Mac OS X Carbon support... no
checking for Mac OS X Cocoa support... no
checking whether to enable garbage collector friendliness... no
checking whether to disable memory pools... no
checking for arm-hisiv400-linux-c++... arm-hisiv400-linux-c++
checking whether we are using the GNU C++ compiler... yes
checking whether arm-hisiv400-linux-c++ accepts -g... yes
checking dependency style of arm-hisiv400-linux-c++... gcc3
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... 64
checking for arm-hisiv400-linux-pkg-config... no
checking for pkg-config... /usr/bin/pkg-config
configure: WARNING: using cross tools not prefixed with host triplet
checking pkg-config is at least version 0.16... yes
checking for gawk... (cached) mawk
checking for perl5... no
checking for perl... perl
checking for indent... no
checking for perl... /usr/bin/perl
checking for a Python interpreter with version >= 2.5... python
checking for python... /usr/bin/python
checking for python version... 2.7
checking for python platform... linux2
checking for python script directory... ${prefix}/lib/python2.7/site-packages
checking for python extension module directory... ${exec_prefix}/lib/python2.7/site-packages
checking for iconv_open... yes
checking for ZLIB... yes
checking for LIBFFI... yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking for LC_MESSAGES... yes
checking libintl.h usability... yes
checking libintl.h presence... yes
checking for libintl.h... yes
checking for ngettext in libc... yes
checking for dgettext in libc... yes
checking for bind_textdomain_codeset... yes
checking for msgfmt... /usr/bin/msgfmt
checking for dcgettext... yes
checking if msgfmt accepts -c... yes
checking for gmsgfmt... /usr/bin/msgfmt
checking for xgettext... /usr/bin/xgettext
checking for catalogs to be installed... af am an ar as ast az be be@latin bg bn bn_IN bs ca ca@valencia cs cy da de dz el en_CA en_GB en@shaw eo es et eu fa fi fr ga gd gl gu he hi hr hu hy id is it ja ka kk kn ko ku lt lv mai mg mk ml mn mr ms nb nds ne nl nn oc or pa pl ps pt pt_BR ro ru rw si sk sl sq sr sr@latin sr@ije sv ta te tg th tl tr ug tt uk vi wa xh yi zh_CN zh_HK zh_TW
checking how to print strings... printf
checking for a sed that does not truncate output... /bin/sed
checking for fgrep... /bin/grep -F
checking for ld used by arm-hisiv400-linux-gcc... /opt/hisi-linux/x86-arm/arm-hisiv400-linux/arm-hisiv400-linux-gnueabi/bin/ld
checking if the linker (/opt/hisi-linux/x86-arm/arm-hisiv400-linux/arm-hisiv400-linux-gnueabi/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /opt/hisi-linux/x86-arm/arm-hisiv400-linux/target/bin/arm-hisiv400-linux-nm -B
checking the name lister (/opt/hisi-linux/x86-arm/arm-hisiv400-linux/target/bin/arm-hisiv400-linux-nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking how to convert x86_64-unknown-linux-gnu file names to arm-hisiv400-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /opt/hisi-linux/x86-arm/arm-hisiv400-linux/arm-hisiv400-linux-gnueabi/bin/ld option to reload object files... -r
checking for arm-hisiv400-linux-objdump... arm-hisiv400-linux-objdump
checking how to recognize dependent libraries... pass_all
checking for arm-hisiv400-linux-dlltool... no
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for arm-hisiv400-linux-ar... arm-hisiv400-linux-ar
checking for archiver @FILE support... @
checking for arm-hisiv400-linux-strip... (cached) arm-hisiv400-linux-strip
checking for arm-hisiv400-linux-ranlib... arm-hisiv400-linux-ranlib
checking command to parse /opt/hisi-linux/x86-arm/arm-hisiv400-linux/target/bin/arm-hisiv400-linux-nm -B output from arm-hisiv400-linux-gcc object... ok
checking for sysroot... no
checking for a working dd... /bin/dd
checking how to truncate binary pipes... /bin/dd bs=4096 count=1
checking for arm-hisiv400-linux-mt... no
checking for mt... mt
checking if mt is a manifest tool... no
checking for dlfcn.h... yes
checking for objdir... .libs
checking if arm-hisiv400-linux-gcc supports -fno-rtti -fno-exceptions... no
checking for arm-hisiv400-linux-gcc option to produce PIC... -fPIC -DPIC
checking if arm-hisiv400-linux-gcc PIC flag -fPIC -DPIC works... yes
checking if arm-hisiv400-linux-gcc static flag -static works... yes
checking if arm-hisiv400-linux-gcc supports -c -o file.o... yes
checking if arm-hisiv400-linux-gcc supports -c -o file.o... (cached) yes
checking whether the arm-hisiv400-linux-gcc linker (/opt/hisi-linux/x86-arm/arm-hisiv400-linux/arm-hisiv400-linux-gnueabi/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking how to run the C++ preprocessor... arm-hisiv400-linux-c++ -E
checking for ld used by arm-hisiv400-linux-c++... /opt/hisi-linux/x86-arm/arm-hisiv400-linux/arm-hisiv400-linux-gnueabi/bin/ld
checking if the linker (/opt/hisi-linux/x86-arm/arm-hisiv400-linux/arm-hisiv400-linux-gnueabi/bin/ld) is GNU ld... yes
checking whether the arm-hisiv400-linux-c++ linker (/opt/hisi-linux/x86-arm/arm-hisiv400-linux/arm-hisiv400-linux-gnueabi/bin/ld) supports shared libraries... yes
checking for arm-hisiv400-linux-c++ option to produce PIC... -fPIC -DPIC
checking if arm-hisiv400-linux-c++ PIC flag -fPIC -DPIC works... yes
checking if arm-hisiv400-linux-c++ static flag -static works... yes
checking if arm-hisiv400-linux-c++ supports -c -o file.o... yes
checking if arm-hisiv400-linux-c++ supports -c -o file.o... (cached) yes
checking whether the arm-hisiv400-linux-c++ linker (/opt/hisi-linux/x86-arm/arm-hisiv400-linux/arm-hisiv400-linux-gnueabi/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... (cached) GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
configure: creating ./config.lt
config.lt: creating libtool
checking for size_t... yes
checking for working alloca.h... yes
checking for alloca... yes
checking for mmap... yes
checking for posix_memalign... yes
checking for memalign... yes
checking for valloc... yes
checking for fsync... yes
checking for pipe2... yes
checking for issetugid... no
checking for timegm... yes
checking for gmtime_r... yes
checking for strerror_r... yes
checking for __libc_enable_secure... yes
checking size of char... 1
checking size of short... 2
checking size of long... 4
checking size of int... 4
checking size of void *... 4
checking size of long long... 8
checking size of __int64... 0
checking for sig_atomic_t... yes
checking for format to printf and scanf a guint64... none
checking for an ANSI C-conforming const... yes
checking for growing stack pointer... configure: error: in `/home/aa/Hi3536_SDK_V2.0.4.0/glib-2.50.0':
configure: error: cannot run test program while cross compiling
See `config.log' for more details
[/code]
请问有何办法将 test program 给 disable? 我看了 ./configure -h 但似乎没有提到 test program 这块。
谢谢
[code]
aa@aa:~/Hi3536_SDK_V2.0.4.0/glib-2.50.0$ ./build_glibArm.sh
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for arm-hisiv400-linux-strip... arm-hisiv400-linux-strip
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether UID '1000' is supported by ustar format... yes
checking whether GID '1000' is supported by ustar format... yes
checking how to create a ustar tar archive... gnutar
checking whether to enable maintainer-specific portions of Makefiles... yes
checking whether make supports nested variables... (cached) yes
checking for arm-hisiv400-linux-gcc... arm-hisiv400-linux-gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... yes
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether arm-hisiv400-linux-gcc accepts -g... yes
checking for arm-hisiv400-linux-gcc option to accept ISO C89... none needed
checking whether arm-hisiv400-linux-gcc understands -c and -o together... yes
checking for style of include used by make... GNU
checking dependency style of arm-hisiv400-linux-gcc... gcc3
checking how to run the C preprocessor... arm-hisiv400-linux-gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... arm-hisiv400-linux-gnu
checking for Win32... no
checking for the Android... no
checking for Mac OS X Carbon support... no
checking for Mac OS X Cocoa support... no
checking whether to enable garbage collector friendliness... no
checking whether to disable memory pools... no
checking for arm-hisiv400-linux-c++... arm-hisiv400-linux-c++
checking whether we are using the GNU C++ compiler... yes
checking whether arm-hisiv400-linux-c++ accepts -g... yes
checking dependency style of arm-hisiv400-linux-c++... gcc3
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... 64
checking for arm-hisiv400-linux-pkg-config... no
checking for pkg-config... /usr/bin/pkg-config
configure: WARNING: using cross tools not prefixed with host triplet
checking pkg-config is at least version 0.16... yes
checking for gawk... (cached) mawk
checking for perl5... no
checking for perl... perl
checking for indent... no
checking for perl... /usr/bin/perl
checking for a Python interpreter with version >= 2.5... python
checking for python... /usr/bin/python
checking for python version... 2.7
checking for python platform... linux2
checking for python script directory... ${prefix}/lib/python2.7/site-packages
checking for python extension module directory... ${exec_prefix}/lib/python2.7/site-packages
checking for iconv_open... yes
checking for ZLIB... yes
checking for LIBFFI... yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking for LC_MESSAGES... yes
checking libintl.h usability... yes
checking libintl.h presence... yes
checking for libintl.h... yes
checking for ngettext in libc... yes
checking for dgettext in libc... yes
checking for bind_textdomain_codeset... yes
checking for msgfmt... /usr/bin/msgfmt
checking for dcgettext... yes
checking if msgfmt accepts -c... yes
checking for gmsgfmt... /usr/bin/msgfmt
checking for xgettext... /usr/bin/xgettext
checking for catalogs to be installed... af am an ar as ast az be be@latin bg bn bn_IN bs ca ca@valencia cs cy da de dz el en_CA en_GB en@shaw eo es et eu fa fi fr ga gd gl gu he hi hr hu hy id is it ja ka kk kn ko ku lt lv mai mg mk ml mn mr ms nb nds ne nl nn oc or pa pl ps pt pt_BR ro ru rw si sk sl sq sr sr@latin sr@ije sv ta te tg th tl tr ug tt uk vi wa xh yi zh_CN zh_HK zh_TW
checking how to print strings... printf
checking for a sed that does not truncate output... /bin/sed
checking for fgrep... /bin/grep -F
checking for ld used by arm-hisiv400-linux-gcc... /opt/hisi-linux/x86-arm/arm-hisiv400-linux/arm-hisiv400-linux-gnueabi/bin/ld
checking if the linker (/opt/hisi-linux/x86-arm/arm-hisiv400-linux/arm-hisiv400-linux-gnueabi/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /opt/hisi-linux/x86-arm/arm-hisiv400-linux/target/bin/arm-hisiv400-linux-nm -B
checking the name lister (/opt/hisi-linux/x86-arm/arm-hisiv400-linux/target/bin/arm-hisiv400-linux-nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking how to convert x86_64-unknown-linux-gnu file names to arm-hisiv400-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /opt/hisi-linux/x86-arm/arm-hisiv400-linux/arm-hisiv400-linux-gnueabi/bin/ld option to reload object files... -r
checking for arm-hisiv400-linux-objdump... arm-hisiv400-linux-objdump
checking how to recognize dependent libraries... pass_all
checking for arm-hisiv400-linux-dlltool... no
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for arm-hisiv400-linux-ar... arm-hisiv400-linux-ar
checking for archiver @FILE support... @
checking for arm-hisiv400-linux-strip... (cached) arm-hisiv400-linux-strip
checking for arm-hisiv400-linux-ranlib... arm-hisiv400-linux-ranlib
checking command to parse /opt/hisi-linux/x86-arm/arm-hisiv400-linux/target/bin/arm-hisiv400-linux-nm -B output from arm-hisiv400-linux-gcc object... ok
checking for sysroot... no
checking for a working dd... /bin/dd
checking how to truncate binary pipes... /bin/dd bs=4096 count=1
checking for arm-hisiv400-linux-mt... no
checking for mt... mt
checking if mt is a manifest tool... no
checking for dlfcn.h... yes
checking for objdir... .libs
checking if arm-hisiv400-linux-gcc supports -fno-rtti -fno-exceptions... no
checking for arm-hisiv400-linux-gcc option to produce PIC... -fPIC -DPIC
checking if arm-hisiv400-linux-gcc PIC flag -fPIC -DPIC works... yes
checking if arm-hisiv400-linux-gcc static flag -static works... yes
checking if arm-hisiv400-linux-gcc supports -c -o file.o... yes
checking if arm-hisiv400-linux-gcc supports -c -o file.o... (cached) yes
checking whether the arm-hisiv400-linux-gcc linker (/opt/hisi-linux/x86-arm/arm-hisiv400-linux/arm-hisiv400-linux-gnueabi/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking how to run the C++ preprocessor... arm-hisiv400-linux-c++ -E
checking for ld used by arm-hisiv400-linux-c++... /opt/hisi-linux/x86-arm/arm-hisiv400-linux/arm-hisiv400-linux-gnueabi/bin/ld
checking if the linker (/opt/hisi-linux/x86-arm/arm-hisiv400-linux/arm-hisiv400-linux-gnueabi/bin/ld) is GNU ld... yes
checking whether the arm-hisiv400-linux-c++ linker (/opt/hisi-linux/x86-arm/arm-hisiv400-linux/arm-hisiv400-linux-gnueabi/bin/ld) supports shared libraries... yes
checking for arm-hisiv400-linux-c++ option to produce PIC... -fPIC -DPIC
checking if arm-hisiv400-linux-c++ PIC flag -fPIC -DPIC works... yes
checking if arm-hisiv400-linux-c++ static flag -static works... yes
checking if arm-hisiv400-linux-c++ supports -c -o file.o... yes
checking if arm-hisiv400-linux-c++ supports -c -o file.o... (cached) yes
checking whether the arm-hisiv400-linux-c++ linker (/opt/hisi-linux/x86-arm/arm-hisiv400-linux/arm-hisiv400-linux-gnueabi/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... (cached) GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
configure: creating ./config.lt
config.lt: creating libtool
checking for size_t... yes
checking for working alloca.h... yes
checking for alloca... yes
checking for mmap... yes
checking for posix_memalign... yes
checking for memalign... yes
checking for valloc... yes
checking for fsync... yes
checking for pipe2... yes
checking for issetugid... no
checking for timegm... yes
checking for gmtime_r... yes
checking for strerror_r... yes
checking for __libc_enable_secure... yes
checking size of char... 1
checking size of short... 2
checking size of long... 4
checking size of int... 4
checking size of void *... 4
checking size of long long... 8
checking size of __int64... 0
checking for sig_atomic_t... yes
checking for format to printf and scanf a guint64... none
checking for an ANSI C-conforming const... yes
checking for growing stack pointer... configure: error: in `/home/aa/Hi3536_SDK_V2.0.4.0/glib-2.50.0':
configure: error: cannot run test program while cross compiling
See `config.log' for more details
[/code]
请问有何办法将 test program 给 disable? 我看了 ./configure -h 但似乎没有提到 test program 这块。
谢谢
我来回答
回答0个
时间排序
认可量排序
暂无数据
或将文件直接拖到这里
悬赏:
E币
网盘
* 网盘链接:
* 提取码:
悬赏:
E币
Markdown 语法
- 加粗**内容**
- 斜体*内容*
- 删除线~~内容~~
- 引用> 引用内容
- 代码`代码`
- 代码块```编程语言↵代码```
- 链接[链接标题](url)
- 无序列表- 内容
- 有序列表1. 内容
- 缩进内容
- 图片![alt](url)
相关问答
-
2019-12-08 22:10:44
-
2015-08-27 10:19:12
-
2015-06-03 09:54:19
-
32018-08-28 19:59:27
-
02018-11-05 14:41:19
-
22019-07-18 16:57:48
-
2019-11-04 18:42:13
-
22018-08-28 13:14:22
-
2018-09-12 14:15:46
-
2016-05-31 09:24:26
-
2020-05-26 14:53:42
-
2018-02-27 17:04:03
-
12023-03-20 11:23:53
-
2019-12-28 09:09:24
-
02019-12-17 15:57:23
-
62017-01-03 23:53:47
-
02019-10-17 11:26:15
-
2020-01-10 10:40:38
-
2017-08-15 19:12:41
无更多相似问答 去提问
点击登录
-- 积分
-- E币
提问
—
收益
—
被采纳
—
我要提问
切换马甲
上一页
下一页
悬赏问答
-
50如何获取vpss chn的图像修改后发送至vo
-
5FPGA通过Bt1120传YUV422数据过来,vi接收不到数据——3516dv500
-
50SS928 运行PQtools 拼接 推到设备里有一半画面会异常
-
53536AV100的sample_vdec输出到CVBS显示
-
10海思板子mpp怎么在vi阶段改变视频数据尺寸
-
10HI3559AV100 多摄像头同步模式
-
9海思ss928单路摄像头vio中加入opencv处理并显示
-
10EB-RV1126-BC-191板子运行自己编码的程序
-
10求HI3519DV500_SDK_V2.0.1.1
-
5有偿求HI3516DV500 + OV5647驱动
举报反馈
举报类型
- 内容涉黄/赌/毒
- 内容侵权/抄袭
- 政治相关
- 涉嫌广告
- 侮辱谩骂
- 其他
详细说明
提醒
你的问题还没有最佳答案,是否结题,结题后将扣除20%的悬赏金
取消
确认
提醒
你的问题还没有最佳答案,是否结题,结题后将根据回答情况扣除相应悬赏金(1回答=1E币)
取消
确认