c++ - Cmake errors: The CXX Compiler identification is unknown, The C compiler identification is unknown -


i'm trying install opencv on fedora 21 cross compiler arm processor.

however, when try configure using cmake 3.03, gives error:

*the cxx compiler identification unknown c compiler identification unknown check working cxx compiler: /opt/friendlyarm/toolschain/4.5.1/bin/arm-linux-g++ check working cxx compiler: /opt/friendlyarm/toolschain/4.5.1/bin/arm-linux-g++ -- broken cmake error @ /usr/share/cmake/modules/cmaketestcxxcompiler.cmake:54 (message):   c++ compiler "/opt/friendlyarm/toolschain/4.5.1/bin/arm-linux-g++"   not able compile simple test program.   fails following output:    change dir: /opt/opencv/relarm/cmakefiles/cmaketmp    run build command:"/usr/bin/gmake" "cmtrycompileexec1616328985/fast"   /usr/bin/gmake -f cmakefiles/cmtrycompileexec1616328985.dir/build.make   cmakefiles/cmtrycompileexec1616328985.dir/build   gmake[1]: entering directory '/opt/opencv/relarm/cmakefiles/cmaketmp'   /usr/bin/cmake -e cmake_progress_report   /opt/opencv/relarm/cmakefiles/cmaketmp/cmakefiles 1   building cxx object   cmakefiles/cmtrycompileexec1616328985.dir/testcxxcompiler.cxx.o   /opt/friendlyarm/toolschain/4.5.1/bin/arm-linux-g++ -o   cmakefiles/cmtrycompileexec1616328985.dir/testcxxcompiler.cxx.o -c   /opt/opencv/relarm/cmakefiles/cmaketmp/testcxxcompiler.cxx    /opt/friendlyarm/toolschain/4.5.1/lib/gcc/arm-none-linux-gnueabi/4.5.1/../../../../arm-none-linux-gnueabi/bin/as:   error while loading shared libraries: libz.so.1: cannot open shared object   file: no such file or directory   cmakefiles/cmtrycompileexec1616328985.dir/build.make:57: recipe target   'cmakefiles/cmtrycompileexec1616328985.dir/testcxxcompiler.cxx.o' failed   gmake[1]: leaving directory '/opt/opencv/relarm/cmakefiles/cmaketmp'   gmake[1]: ***   [cmakefiles/cmtrycompileexec1616328985.dir/testcxxcompiler.cxx.o] error 1   makefile:118: recipe target 'cmtrycompileexec1616328985/fast' failed   gmake: *** [cmtrycompileexec1616328985/fast] error 2     cmake not able correctly generate project. call stack (most recent call first):   cmakelists.txt:63 (project) configuring incomplete, errors occurred! see "/opt/opencv/relarm/cmakefiles/cmakeoutput.log". see "/opt/opencv/relarm/cmakefiles/cmakeerror.log".* 

i tried adding path bash_profile, looks this:

# .bash_profile  # aliases , functions if [ -f ~/.bashrc ];         . ~/.bashrc fi  # user specific environment , startup programs  path=$path:$home/bin export path=$path:/usr/local/bin:/usr/local/sbin:/opt/friendlyarm/toolschain/4.5.1/bin/arm-linux-g++:/usr/bin/gmake:/usr/share/bin:/usr/share/sbin 

i have been googling around hours couldn't find helpful steps. appreciated. in advance.

from output appears cmake able find cross compiler output says can't compile simple program. start creating hello world in c++ , trying compile cross compiler. if doesn't work first problem. if work guess has environment variable(s). try have cmake print environment variables before tries compile simple c++ program , compare shell environment variables, sorry can't more helpful that.

update:

so downloaded friendlyarm , binaries provides 32 bit elf's need 32 bit version of libz. yum install zlib.i686 should solve issue. friendlyarm toolchain works me , have zlib.i686 installed already. if other errors missing shared objects make sure have 32 bit version installed.


Comments

Popular posts from this blog

facebook - android ACTION_SEND to share with specific application only -

python - Creating a new virtualenv gives a permissions error -

javascript - cocos2d-js draw circle not instantly -