<br><br><div class="gmail_quote">On 12 April 2012 21:12, Clifford Yapp <span dir="ltr"><<a href="mailto:cliffyapp@gmail.com">cliffyapp@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Having done a little investigation into cross-compilation (after<br>
blowing away my Windows partition more or less unintentionally) it<br>
looks like our build is Not a Good Candidate - we do a truckload of<br>
introspection, as well as using custom commands and targets based off<br>
of binaries we build during compilation.<br>
<br>
While this problem (executables generated for a different platform<br>
during build testing) is of course not solvable in the general case,<br>
on Linux there is actually a glimmer of hope that binaries built for<br>
Windows *could* be run as part of the build process - i.e. using Wine<br>
when running each binary that is an output of the current build<br>
process.<br>
<br>
Has anyone ever looked into this? Would it be possible to have<br>
TRY_RUN, execute_process and add_custom_command (plus any others I<br>
missed) use wine "under the hood" to execute WIN32 compiled build<br>
targets?<br>
<br></blockquote><div><br></div><div>That actually caused me about 2-3 hours of bewilderment when I first switched from gentoo to an ubuntu machine with wine installed. All my windows cross compiles went awol and it took that long to work out that the build system was actually successfully executing some tests. </div>
<div><br></div><div>I never took advantage of it though - so I can't tell you if there are many traps lurking under the hood due to niggling inconsistencies. It should be quite feasible though.</div><div><br></div><div>
Daniel.</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Cheers,<br>
CY<br>
--<br>
<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Phone : +82-10-5400-3296 (010-5400-3296)<br>Home: <a href="http://snorriheim.dnsdojo.com/" target="_blank">http://snorriheim.dnsdojo.com/</a><br><div>Yujin Robot: <a href="http://www.yujinrobot.com/" target="_blank">http://www.yujinrobot.com/</a><br>
</div><div>Embedded Ros : <a href="http://www.ros.org/wiki/eros" target="_blank">http://www.ros.org/wiki/eros</a></div>Embedded Control Libraries: <a href="http://snorriheim.dnsdojo.com/redmine/wiki/ecl" target="_blank">http://snorriheim.dnsdojo.com/redmine/wiki/ecl</a><br>