<html><head></head><body>Hi again, <br>
<br>
Is there nobody who can help me? I thought it would be a common thing to use cmake to cross compile!? Has nobody ever used visual studio to do so? <br>
<br>
Cheers<br>
Michael <br>
<br><br><div class="gmail_quote">Am 29. Oktober 2015 15:21:41 MEZ, schrieb Michael Jaentsch <michael.jaentsch@in.tum.de>:<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<pre class="k9mail">Hi all,<br /><br />I have a question concerning Cross Compiling with CMake on Windows. I <br />would like to use Visual Studio but this is not a must. What I do is, I <br />setup a project for Cross Compiling on Linux and it works fine. Now I <br />want to transfer to Windows, so I set up a toolchain file which sets the <br />following variables:<br />CMAKE_SYSTEM_NAME<br />CMAKE_SYSTEM_PROCESSOR<br />CMAKE_FIND_ROOT_PATH<br />CMAKE_C_COMPILER<br />CMAKE_CXX_COMPILER<br /><br />and some more stuff. Then I run my cmake gui (I tried 3.2 and 3.4rc2) <br />on Windows and tell it to generate a project for Visual Studio 10 and to <br />use the toolchain file. However, the output shows that it is trying to <br />use the Visual Studio compiler and then subsequently the build fails <br />because of some unkown compiler flags.<br /><br />So my question is: Is it even possible to do what I'm trying to do? Can <br />I cross compile with Visual Studio or do I have to u
 se a
different <br />generator? All I found in the documentation is that it is possible to <br />cross compile with a toolchain file...<br /><br />Cheers<br />Michael<br /><br /></pre></blockquote></div><br>
--<br>
Sent from my mobile</body></html>