[prev in list] [next in list] [prev in thread] [next in thread] 

List:       cmake
Subject:    Re: [CMake] Cross-compiling - Avoiding libraries
From:       Rolf Eike Beer <eike () sf-mail ! de>
Date:       2012-07-28 16:04:04
Message-ID: 15099197.qxfrL6KuAL () eto
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


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
-- 

["signature.asc" (application/pgp-signature)]

--

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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic