[CMake] Cross-compiling - Avoiding libraries
Rolf Eike Beer
eike at sf-mail.de
Sat Jul 28 12:04:04 EDT 2012
Svenskmand wrote:
> Hello :)
>
> I am one of the developers of OpenDungeons a FOSS RTS game inspired by
> Dungeon Keeper. I am trying to cross-compile our game on Ubuntu 12.04 for
> Windows (XP, Vista and 7), but I have run into some trouble.
>
> I following these guides:
> http://www.cmake.org/Wiki/CMake_Cross_Compiling
> http://www.cmake.org/Wiki/CmakeMingw
>
> I use the following external libraries:
>
> Ogre SDK 1.7.2 (MingW)
> https://sourceforge.net/projects/ogre/files/ogre/1.7/OgreSDK_mingw_v1-7-2.ex
> e/download CEGUI SDK 0.7.5 (MingW)
> https://sourceforge.net/projects/crayzedsgui/files/CEGUI%20Mk-2/0.7.5/CEGUI-
> SDK-0.7.5-mingw.zip/download SFML 1.6 (MingW)
> https://sourceforge.net/projects/sfml/files/sfml/1.6/SFML-1.6-dev-windows-mi
> ngw.zip/download
>
> and have made the following toolchain file (Toolchain.cmake):
>
> # this one is important
> SET(CMAKE_SYSTEM_NAME Windows)
> #this one not so much
> SET(CMAKE_SYSTEM_VERSION 1)
>
> # specify the cross compiler
> SET(CMAKE_C_COMPILER /usr/bin/i686-w64-mingw32-gcc)
> SET(CMAKE_CXX_COMPILER /usr/bin/i686-w64-mingw32-g++)
> SET(CMAKE_RC_COMPILER /usr/bin/i686-w64-mingw32-windres)
>
> SET(BOOST_ROOT ${CROSS_DIR}/OgreSDK_mingw_v1-7-2/boost)
> SET(CEGUIOGRE_LIBRARY ${CROSS_DIR}/OgreSDK_mingw_v1-7-2/lib/release)
This one ...
> SET(CEGUI_LIBRARY ${CROSS_DIR}/CEGUI/lib)
> SET(CEGUI_INCLUDE_DIR ${CROSS_DIR}/CEGUI/cegui/include)
> SET(OPENAL_LIBRARY ${CROSS_DIR}/SFML-1.6/lib)
... and this one are directories AFAICT, but you need to name a library here I
guess. So appending something like "/libOpenAL.lib" or however that thing is
called may solve your problem.
Eike
--
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://www.cmake.org/pipermail/cmake/attachments/20120728/8a5baf07/attachment.pgp>
More information about the CMake
mailing list