On Wednesday, March 09, 2011 11:16:46 am Markus Rathgeb wrote:
> Hello!
> 
> I am using cmake for cross compiling of several Qt applications.
> To do this with cmake v2.8.4 I have to change the FindQt4.cmake file.
> 
> The variables QT_LIBRARY_DIR, QT_HEADERS_DIR, QT_BINARY_DIR (...) will
> already be prefixed with the CMAKE_FIND_ROOT_PATH variable value.

What do you mean already prefixed?  Are you setting them in the toolchain file?

> For cross compiling CMAKE_FIND_ROOT_PATH_MODE_LIBRARY and
> CMAKE_FIND_ROOT_PATH_MODE_INCLUDE should be set to ONLY (IMHO).
> 
> FindQt4 is using NO_DEFAULT_PATH for finding libraries, headers and
> binaries, so I had also to add NO_CMAKE_FIND_ROOT_PATH to that calls.
> 
> Could you have a look at the attached patch?

Can you send me the toolchain file also?

A few times in the past, users have submitted cross-compile patches for 
FindQt4.cmake and the end result was to simplify the toolchain files.

-- 
Clinton Stimpson
Elemental Technologies, Inc
Computational Simulation Software, LLC
www.csimsoft.com
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to