Are you following the directions here?<div><a href="http://www.cmake.org/Wiki/CMake_Cross_Compiling">http://www.cmake.org/Wiki/CMake_Cross_Compiling</a></div><div><br></div><div>Or trying to cross compile some other way...?</div>
<div><br><br><div class="gmail_quote">On Mon, Jan 4, 2010 at 3:00 AM, Daniel Stonier <span dir="ltr"><<a href="mailto:d.stonier@gmail.com">d.stonier@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><br></div><div>The more I use cmake, the more I find it difficult to bend in to shape to cross compile. The original design doesn't seem to be designed for anything more than windows-linux or linux-windows cross compiles.<br clear="all">
</div><div><br></div><div>Some things I'm having to currently work around by creating my own cross-compiling set of modules. My host is an amd64 linux and my target is an arm linux.</div><div><br></div><div>- You can't set CMAKE_SYSTEM_NAME to anything useful other than Linux, which of course doesn't trigger the cross-compile variable CROSS_COMPILING because the host is the same.</div>
<div>- There is no distinction between install prefixes for the target and the host. Sometimes I'd like to put various build tools on the host system at the same time as libs and binaries on the target root.</div><div>
- Debian packaging in cpack will only ever put things in /usr, regardless of cross-compiles or different CMAKE_INSTALL_PREFIX. Refer again to above comment.</div><div><br></div><div>Having some useful autotools install style variables (--prefix and --exec-prefix), someway of utilising of proper gnu tuples (e.g. arm-unknown-linux-gnueabi) would make things alot easier.</div>
<div><br></div><div>Is this planned or is this something that could use a nudge to move into a useful direction? </div><div><br></div><div>Do many other people cross-compile much with cmake?</div><br><font color="#888888">-- <br>
Phone : +82-10-5400-3296 (010-5400-3296)<br>
HomePage: <a href="http://snorriheim.dnsdojo.com/" target="_blank">http://snorriheim.dnsdojo.com/</a><br>Yujin Robot: <a href="http://www.yujinrobot.com/" target="_blank">http://www.yujinrobot.com/</a><br>Projects: <a href="http://snorriheim.dnsdojo.com/redmine/projects" target="_blank">http://snorriheim.dnsdojo.com/redmine/projects</a><br>
</font><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></div>