关于交叉编译,有经验的请进
时间:2005-10-14
来源:互联网
我最近在linux下安装了mipsel-linux交叉编译环境,编译openh323,(在这之前pwlib已经交叉编译好了.)
环境变量都已经设置好了,然后./configure
--host=mips-linux
结果出现了这个错误
/home/sujing/pwlib/version.h... configure: error: cannot check for file existence when cross compiling
但是我查看了pwlib,version.h文件是存在的。
请问有谁遇到过这种情况么?我在网上查了很多,也有人遇到过相同的问题,但就是没人高人出来指点。
环境变量都已经设置好了,然后./configure
--host=mips-linux
结果出现了这个错误
/home/sujing/pwlib/version.h... configure: error: cannot check for file existence when cross compiling
但是我查看了pwlib,version.h文件是存在的。
请问有谁遇到过这种情况么?我在网上查了很多,也有人遇到过相同的问题,但就是没人高人出来指点。
作者: suwen 发布时间: 2005-10-14
估计你需要指出pwlib的路径吧
存在,但是编译器不知道
存在,但是编译器不知道
作者: AIKO_sex 发布时间: 2005-10-15
5555555555555
作者: suwen 发布时间: 2005-10-17
看看那个configure脚本,什么时候给你这个错误信息的
作者: sunfish 发布时间: 2005-10-21
在./configure前指定include的路径试试
CFLAGS或者CXXFLAGS
就象我这样:
# CFLAGS=-I/home/RMT/Project/Develop/DFB/include \
LDFLAGS=-L/home/RMT/Project/Develop/DFB/lib \
CC=arm-elf-gcc CXX=arm-elf-g++ AR=arm-elf-ar \
RANLIB=arm-elf-ranlib LD=arm-elf-ld \
./configure --target arm-elf-linux --host x86-pc-linux \
--disable-shared --enable-static --disable-sdl \
--with-gfxdrivers=none --with-inputdrivers=none \
--prefix=/home/RMT/Project/DFB
CFLAGS或者CXXFLAGS
就象我这样:
# CFLAGS=-I/home/RMT/Project/Develop/DFB/include \
LDFLAGS=-L/home/RMT/Project/Develop/DFB/lib \
CC=arm-elf-gcc CXX=arm-elf-g++ AR=arm-elf-ar \
RANLIB=arm-elf-ranlib LD=arm-elf-ld \
./configure --target arm-elf-linux --host x86-pc-linux \
--disable-shared --enable-static --disable-sdl \
--with-gfxdrivers=none --with-inputdrivers=none \
--prefix=/home/RMT/Project/DFB
作者: novflying 发布时间: 2005-10-31
我也碰到相通的问题,pwlib也是弄好了的
但是编译openh33时有问题
./configure --host=arm-linux --build=i686-pc-linux-gnu
checking for arm-linux-g++... /usr/local/arm/3.3.2/bin/arm-linux-g++
checking for C++ compiler default output file name... a.out
checking whether the C++ compiler works... yes
checking whether we are cross compiling... yes
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether /usr/local/arm/3.3.2/bin/arm-linux-g++ accepts -g... yes
checking for arm-linux-gcc... /usr/local/arm/3.3.2/bin/arm-linux-gcc
checking whether we are using the GNU C compiler... yes
checking whether /usr/local/arm/3.3.2/bin/arm-linux-gcc accepts -g... yes
checking for /usr/local/arm/3.3.2/bin/arm-linux-gcc option to accept ANSI C... none needed
checking how to run the C preprocessor... /usr/local/arm/3.3.2/bin/arm-linux-gcc -Echecking for egrep... grep -E
checking for ANSI C header files... yes
OpenH323 version is 1.17.2
checking for /MYPROG/CROSS/pwlib_v1_9_1/version.h... configure: error: cannot check for file existence when cross compiling
之前是定义了CC,CXX,PWLIBDIR,OPENH333DIR的
但是编译openh33时有问题
./configure --host=arm-linux --build=i686-pc-linux-gnu
checking for arm-linux-g++... /usr/local/arm/3.3.2/bin/arm-linux-g++
checking for C++ compiler default output file name... a.out
checking whether the C++ compiler works... yes
checking whether we are cross compiling... yes
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether /usr/local/arm/3.3.2/bin/arm-linux-g++ accepts -g... yes
checking for arm-linux-gcc... /usr/local/arm/3.3.2/bin/arm-linux-gcc
checking whether we are using the GNU C compiler... yes
checking whether /usr/local/arm/3.3.2/bin/arm-linux-gcc accepts -g... yes
checking for /usr/local/arm/3.3.2/bin/arm-linux-gcc option to accept ANSI C... none needed
checking how to run the C preprocessor... /usr/local/arm/3.3.2/bin/arm-linux-gcc -Echecking for egrep... grep -E
checking for ANSI C header files... yes
OpenH323 version is 1.17.2
checking for /MYPROG/CROSS/pwlib_v1_9_1/version.h... configure: error: cannot check for file existence when cross compiling
之前是定义了CC,CXX,PWLIBDIR,OPENH333DIR的
作者: goshao 发布时间: 2005-12-01
相关阅读 更多
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28