solihawk 发表于 2010-1-22 17:35:46

skyeye安装时./configure出错cannot run C++ compiled programs

对源文件安装时,./configure时出现以下错误
checking for C++ compiler default output file name... a.out
checking whether the C++ compiler works... configure: error: in `/usr/skyeye-1.3.0_rc1':
configure: error: cannot run C++ compiled programs.
If you meant to cross compile, use `--host'.
config.log中的文件这样
configure:2944: checking for C++ compiler default output file name
configure:2966: g++    conftest.cpp>&5
configure:2970: $? = 0
configure:3008: result: a.out
configure:3027: checking whether the C++ compiler works
configure:3037: ./a.out
./configure: line 3039: ./a.out: cannot execute binary file
configure:3041: $? = 126
configure:3048: error: in `/usr/skyeye-1.3.0_rc1':
configure:3052: error: cannot run C++ compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.
不知道是什么原因,跪求解决方法

ksh 发表于 2010-2-8 11:33:10

你的编译命令是什么样子的? 对于skyeye-1.3.0_rc1应该是:
./configure
make lib
make
make install_lib
make install

jiangtao9999 发表于 2010-2-8 15:40:36

估计他把 skyeye 编译成在 arm 上面运行的程序了。
页: [1]
查看完整版本: skyeye安装时./configure出错cannot run C++ compiled programs