object src/highgui/CMakeFiles/highgui.dir/grfmt_exr.o
[ 74%] Building CXX object src/highgui/CMakeFiles/highgui.dir/grfmt_sunras.o
[ 74%] Building CXX object src/highgui/CMakeFiles/highgui.dir/grfmt_tiff.o
Linking CXX shared library ../../lib/libhighgui.so
/usr/bin/ld: /usr/local/lib/libjasper.a(jas_cm.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/libjasper.a: could not read symbols: Bad value
collect2: ld 返回 1
make[2]: *** [lib/libhighgui.so.2.1.0] 错误 1
make[1]: *** [src/highgui/CMakeFiles/highgui.dir/all] 错误 2
make: *** [all] 错误 2
[tzgly@localhost OpenCV-2.1.0]$
为什么????
怎么解决???
问题原因是版本不对。
1:把安装下载gtk+-2.0的包改为yum install gtk+*,安装系统对应的版本
2:把cmake2.8.11改为cmake2.8.5
重新安装以上两个包以后就可以正常安装了
上一页 [1] [2] [3] [4]