<p>Hi,</p>
<p>Make sure you delete the builddirectory if you change the toolchain file, in the output you sent all the compiler detection/testing results was cached.</p>
<p>/johan</p>
<div class="gmail_quote">On Feb 4, 2011 10:27 PM, "Enrique Izaguirre" <<a href="mailto:enrique.izaguirre@gmail.com">enrique.izaguirre@gmail.com</a>> wrote:<br type="attribution">> 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<br>> 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>> 2011/2/4 Alexander Neundorf <<a href="mailto:a.neundorf-work@gmx.net">a.neundorf-work@gmx.net</a>><br>> <br>>> 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<br>>> comes<br>>> > up.<br>>> ><br>>> > What value CMAKE_C_LINK_EXECUTABLE variable should be set? And where?<br>
>><br>>> This should be set via CMakeCInformation.cmake, which loads the platform-<br>>> 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>>><br></div>