+ -
当前位置:首页 → 问答吧 → 关于交叉编译,有经验的请进

关于交叉编译,有经验的请进

时间: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文件是存在的。

请问有谁遇到过这种情况么?我在网上查了很多,也有人遇到过相同的问题,但就是没人高人出来指点。      

作者: 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      

作者: 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的      

作者: goshao   发布时间: 2005-12-01

热门下载

更多