[CMake] Cross compilation from linux to windows using debian cross compilation i586-mingw32msvc-

Olivier Delannoy olivier.delannoy at gmail.com
Tue Sep 21 03:58:34 EDT 2010


Hi,
I have a bunch of  questions related to cross compilation using CMake.

I am using CMake for a C project. The build process works very well
for both linux and windows. I am now trying to sort out cross
compilation from linux to windows. I gathered information from the
CMake wiki and manage to get this working without any problem using
http://mingw-cross-env.nongnu.org/. I just needed to add one variation
compared to the documentation on the wiki. My toolchain file needed to
contain an override for the ranlib util. The build process generated
by CMake was trying to use the default one provided by the host
system. Is there any reason why this is not mention at all on the
wiki? Is it supposed to be guessed by CMake? Are there any other way
to achieve that without explicitly referencing the ranlib tool in the
toolchain file?

My main problem appeared when I tried to use the debian package
providing the toolchain i586-mingw32msvc. The built with CMake worked
fine following operations as expected. However, none of the executable
generated are failing to execute. Does anyone experienced this problem
before?

-- 
Olivier Delannoy


More information about the CMake mailing list