[CMake] cmake Error running link command: No such file or directory

Štefan Bellus stevo.bellus at gmail.com
Fri Sep 27 06:17:46 EDT 2013


Hi



I setup mixed project C and CXX for generic platform TI dsp.



I build static library. Library is not build because AR command is empty in
link.txt.



It is working when I not mix C/CXX.



What is wrong?





Toolchan file:

set(CMAKE_SYSTEM_NAME "Generic")

SET(CMAKE_SYSTEM_PROCESSOR "tidsp_mv64")

set(TIDSP_TYPE "mv64+")



# specify the cross compiler

SET(CMAKE_C_COMPILER
/usr/local/share/cross-compilers/TMS320C6x/6.1.13/bin/cl6x)

SET(CMAKE_CXX_COMPILER
/usr/local/share/cross-compilers/TMS320C6x/6.1.13/bin/cl6x)

SET(CMAKE_AR
/usr/local/share/cross-compilers/TMS320C6x/6.1.13/bin/ar6x)

SET(CMAKE_STRIP
/usr/local/share/cross-compilers/TMS320C6x/6.1.13/bin/strip6x)

SET(CMAKE_RANLIB       "")



# where is the target environment

SET(CMAKE_FIND_ROOT_PATH  /usr/local/share/cross-compilers/TMS320C6x/6.1.13)



# search for programs in the build host directories

SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)

# for libraries and headers in the target directories

SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)

SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)



include_directories(/usr/local/share/cross-compilers/TMS320C6x/6.1.13/include)

link_directories(/usr/local/share/cross-compilers/TMS320C6x/6.1.13/lib)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20130927/4464f587/attachment.htm>


More information about the CMake mailing list