[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Mingw-cross-env-list] Question and Help

From: Martin Lambers
Subject: Re: [Mingw-cross-env-list] Question and Help
Date: Thu, 18 Mar 2010 07:05:34 +0100
User-agent: Mutt/1.5.18 (2008-05-17)

On Wed, 17. Mar 2010, 20:58:11 -0500, Omar Andrés Zapata Mesa wrote:
> I am working with cmake in big project with qt4 any months ago, and I want
> compile windows software into my debian system,
> how I can tell to cmake that find my new enviroment? or have your some
> cmake.find file? o what your suggest me?

Generic cross compilation instructions for CMake can be found here:

You have to set various options to tell CMake what kind of system you
want to compile for and where to find the proper include and library

Mingw-cross-env uses this for the OpenSceneGraph package, see

If you have Mingw-cross-env installed in e.g. /MCE, then you would use
something like this:

cmake . \
 -DCMAKE_FIND_ROOT_PATH=/MCE/usr/i686-pc-mingw32 \
 -DCMAKE_C_COMPILER=/MCE/usr/bin/i686-pc-mingw32-gcc' \
 -DCMAKE_INCLUDE_PATH=/MCE/usr/i686-pc-mingw32/include \
 -DCMAKE_LIB_PATH=/MCE/usr/i686-pc-mingw32/lib \

However, the project might still use some CMake macros or scripts that
do not support cross compilation and need to be fixed manually.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]