Thanks Alexander,<br>Seems that it doesn&#39;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&#39;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">&lt;<a href="mailto:a.neundorf-work@gmx.net">a.neundorf-work@gmx.net</a>&gt;</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>
&gt; Hello again,<br>
&gt;<br>
&gt; I am trying to cross-compile from Windows (actually Cygwin) to Linux.<br>
&gt; My Toolchain file (Toolchain-linuxcpp.cmake) is as follows:<br>
&gt;<br>
&gt; SET(CMAKE_SYSTEM_NAME Linux)<br>
&gt;<br>
&gt; #specify the cross-compiler<br>
&gt; set (CMAKE_C_COMPILER /bin/gcc-linux)<br>
&gt; set (CMAKE_CXX_COMPILER /bin/g++-linux)<br>
&gt;<br>
&gt;<br>
&gt; After doing the cmake build using  cmake<br>
&gt; -DCMAKE_TOOLCHAIN_FILE=../Toolchain-linuxcpp.cmake ..<br>
&gt;<br>
&gt; CMake Error: Error required internal CMake variable not set, cmake may be<br>
&gt; not be built correctly.<br>
&gt; Missing variable is:<br>
&gt; CMAKE_C_LINK_EXECUTABLE<br>
&gt;<br>
&gt;<br>
&gt; I have using both compilers separately and I didn&#39;t have any problem, but<br>
&gt; when I put them together in the Toolchain file is when this problems comes<br>
&gt; up.<br>
&gt;<br>
&gt; 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>