Thanks Alexander,<br>Seems that it doesn't have much information but here it is:<br><br># cmake -DCMAKE_TOOLCHAIN_FILE=../Toolchain-linuxcpp.cmake ..<br>System name is:<br>Linux<br>The Top directory is:<br>/home/x0148488/omapflash<br>
Adding subdirectory comdriver...<br>Entering comdriver's CMakeLists<br>Now trying to find AdbWinApi.lib library<br>Adding subdirectory common...<br>Adding subdirectory host...<br>-- Configuring done<br>CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.<br>
Missing variable is:<br>CMAKE_C_LINK_EXECUTABLE<br>-- Generating done<br>-- Build files have been written to: /home/x0148488/omapflash/cmake_build<br><br>Thanks<br><br>Enrique<br><br><br><br><div class="gmail_quote">2011/2/4 Alexander Neundorf <span dir="ltr"><<a href="mailto:a.neundorf-work@gmx.net">a.neundorf-work@gmx.net</a>></span><br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div><div></div><div class="h5">On Friday 04 February 2011, Enrique Izaguirre wrote:<br>
> Hello again,<br>
><br>
> I am trying to cross-compile from Windows (actually Cygwin) to Linux.<br>
> My Toolchain file (Toolchain-linuxcpp.cmake) is as follows:<br>
><br>
> SET(CMAKE_SYSTEM_NAME Linux)<br>
><br>
> #specify the cross-compiler<br>
> set (CMAKE_C_COMPILER /bin/gcc-linux)<br>
> set (CMAKE_CXX_COMPILER /bin/g++-linux)<br>
><br>
><br>
> After doing the cmake build using cmake<br>
> -DCMAKE_TOOLCHAIN_FILE=../Toolchain-linuxcpp.cmake ..<br>
><br>
> CMake Error: Error required internal CMake variable not set, cmake may be<br>
> not be built correctly.<br>
> Missing variable is:<br>
> CMAKE_C_LINK_EXECUTABLE<br>
><br>
><br>
> I have using both compilers separately and I didn't have any problem, but<br>
> when I put them together in the Toolchain file is when this problems comes<br>
> up.<br>
><br>
> What value CMAKE_C_LINK_EXECUTABLE variable should be set? And where?<br>
<br>
</div></div>This should be set via CMakeCInformation.cmake, which loads the platform- and<br>
compiler specific files, e.g. Modules/Compiler/GNU-C.cmake.<br>
Can you please post the output of the cmake run ?<br>
<br>
Alex<br>
</blockquote></div><br>