arm - Whether does cmake work on cross-compiler Linaro chain? -


i have c project, supports many platforms. generator has borland makefiles, nmake makefiles, msvc 6, 7, 8, 9, 11, eclipse cdt4 ‐ unix makefiles etc. have generated msvc 9 solution cmake on windows 7. ok.

now, generate arm cortex a8 project on ti sitara sdk, of above c project. ti sitara sdk installed on ubuntu 14.04 os host computer. there cross-compiling tool chain: linaro on ubuntu pc.

from original c project document, looks below selection appropriate sitara sdk because uses eclipse (but has 8.1.1 on window, higher cdt4)

eclipse cdt4 ‐ unix makefiles                               = generates eclipse cdt 4.0 project files. 

i have set compiler path:

export cmake_c_compiler=/home/u64rj/ti-processor-sdk-linux-am335x-evm-01.00.00.03/linux-devkit/sysroots/i686-arago-linux/usr/bin/arm-linux-gnueabihf-gcc  export cmake_eclipse_version=4.2 

when run cmake, there still such errors:

u64rj@u64rj-ms-7696:~/u64rj-fixed/sdk-2-src$ cmake -g "eclipse cdt4 - unix makefiles" -dbuild=linux-armv7a -dcfg=debug -dmath=i32 -- cmake scripts version 1.1.1.0 cmake error @ /usr/share/cmake-2.8/modules/cmakedeterminecompilerid.cmake:90 (file):   file internal cmake error when trying open file:   /home/u64rj-fixed/sdk-2-src/cmakefiles/2.8.12.2/compileridc/cmakeccompilerid.c   writing. call stack (most recent call first):   /usr/share/cmake-2.8/modules/cmakedeterminecompilerid.cmake:100 (cmake_determine_compiler_id_write)   /usr/share/cmake-2.8/modules/cmakedeterminecompilerid.cmake:39 (cmake_determine_compiler_id_build)   /usr/share/cmake-2.8/modules/cmakedetermineccompiler.cmake:131 (cmake_determine_compiler_id)   common-build/cmake/sdk-project-include.cmake:1189 (project)   cmakelists.txt:4 (sdk_project)   cmake error @ /usr/share/cmake-2.8/modules/cmakedeterminecompilerid.cmake:90 (file):   file internal cmake error when trying open file:   /home/u64rj-fixed/sdk-2-src/cmakefiles/2.8.12.2/compileridc/cmakeccompilerid.c   writing. call stack (most recent call first):   /usr/share/cmake-2.8/modules/cmakedeterminecompilerid.cmake:100 (cmake_determine_compiler_id_write)   /usr/share/cmake-2.8/modules/cmakedeterminecompilerid.cmake:39 (cmake_determine_compiler_id_build)   /usr/share/cmake-2.8/modules/cmakedetermineccompiler.cmake:131 (cmake_determine_compiler_id)   common-build/cmake/sdk-project-include.cmake:1189 (project)   cmakelists.txt:4 (sdk_project)   cmake error @ /usr/share/cmake-2.8/modules/cmakedeterminecompilerid.cmake:90 (file):   file internal cmake error when trying open file:   /home/u64rj-fixed/sdk-2-src/cmakefiles/2.8.12.2/compileridc/cmakeccompilerid.c   writing. call stack (most recent call first):   /usr/share/cmake-2.8/modules/cmakedeterminecompilerid.cmake:100 (cmake_determine_compiler_id_write)   /usr/share/cmake-2.8/modules/cmakedeterminecompilerid.cmake:39 (cmake_determine_compiler_id_build)   /usr/share/cmake-2.8/modules/cmakedetermineccompiler.cmake:131 (cmake_determine_compiler_id)   common-build/cmake/sdk-project-include.cmake:1189 (project)   cmakelists.txt:4 (sdk_project)   -- c compiler identification unknown cmake error @ /usr/share/cmake-2.8/modules/cmakedeterminecompilerid.cmake:90 (file):   file internal cmake error when trying open file:   /home/u64rj-fixed/sdk-2-src/cmakefiles/2.8.12.2/compileridcxx/cmakecxxcompilerid.cpp   writing. call stack (most recent call first):   /usr/share/cmake-2.8/modules/cmakedeterminecompilerid.cmake:100 (cmake_determine_compiler_id_write)   /usr/share/cmake-2.8/modules/cmakedeterminecompilerid.cmake:39 (cmake_determine_compiler_id_build)   /usr/share/cmake-2.8/modules/cmakedeterminecxxcompiler.cmake:127 (cmake_determine_compiler_id)   common-build/cmake/sdk-project-include.cmake:1189 (project)   cmakelists.txt:4 (sdk_project)   cmake error @ /usr/share/cmake-2.8/modules/cmakedeterminecompilerid.cmake:90 (file):   file internal cmake error when trying open file:   /home/u64rj-fixed/sdk-2-src/cmakefiles/2.8.12.2/compileridcxx/cmakecxxcompilerid.cpp   writing. call stack (most recent call first):   /usr/share/cmake-2.8/modules/cmakedeterminecompilerid.cmake:100 (cmake_determine_compiler_id_write)   /usr/share/cmake-2.8/modules/cmakedeterminecompilerid.cmake:39 (cmake_determine_compiler_id_build)   /usr/share/cmake-2.8/modules/cmakedeterminecxxcompiler.cmake:127 (cmake_determine_compiler_id)   common-build/cmake/sdk-project-include.cmake:1189 (project)   cmakelists.txt:4 (sdk_project)   -- cxx compiler identification unknown -- not determine eclipse version, assuming @ least 3.6 (helios). adjust cmake_eclipse_version if wrong. -- check working c compiler: /home/u64rj-fixed/sdk-2-src/arm-linux-gnueabihf-gcc cmake error: c compiler: "/home/u64rj-fixed/sdk-2-src/arm-linux-gnueabihf-gcc" not found.   please set cmake_c_compiler valid compiler path or name. cmake error: internal cmake error, trycompile configure of cmake failed -- check working c compiler: /home/u64rj-fixed/sdk-2-src/arm-linux-gnueabihf-gcc -- broken cmake error @ /usr/share/cmake-2.8/modules/cmaketestccompiler.cmake:61 (message):   c compiler   "/home/u64rj-fixed/sdk-2-src/arm-linux-gnueabihf-gcc"   not able compile simple test program.    fails following output:        cmake not able correctly generate project. call stack (most recent call first):   common-build/cmake/sdk-project-include.cmake:1189 (project)   cmakelists.txt:4 (sdk_project)   cmake error: c compiler: "/home/u64rj-fixed/sdk-2-src/arm-linux-gnueabihf-gcc" not found.   please set cmake_c_compiler valid compiler path or name. cmake error: cxx compiler: "/home/u64rj-fixed/sdk-2-src/arm-linux-gnueabihf-g++" not found.   please set cmake_cxx_compiler valid compiler path or name. -- configuring incomplete, errors occurred! see "/home/u64rj-fixed/sdk-2-src/cmakefiles/cmakeoutput.log". see "/home/u64rj-fixed/sdk-2-src/cmakefiles/cmakeerror.log". u64rj@u64rj-ms-7696:~/u64rj-fixed/sdk-2-src$  

armv7a architecture in build of chip ti sitara am3358.

i don't know why searches cross-compiler @ c project path: cmake error: c compiler: "/home/u64rj-fixed/sdk-2-src/arm-linux-gnueabihf-gcc" not found. please set cmake_c_compiler valid compiler path or name. cmake error: internal cmake error, trycompile configure of cmake failed -- check working c compiler: /home/u64rj-fixed/sdk-2-src/arm-linux-gnueabihf-gcc -- broken

even though cross-compiler of tool chain given export cmake_c_compiler=/home/u64rj/ti-processor-sdk-linux-am335x-evm-01.00.00.03/linux-devkit/sysroots/i686-arago-linux/usr/bin/arm-linux-gnueabihf-gcc

thanks,


Comments

Popular posts from this blog

c# - Binding a comma separated list to a List<int> in asp.net web api -

Delphi 7 and decode UTF-8 base64 -

html - Is there any way to exclude a single element from the style? (Bootstrap) -