[Announcement] CMake build platforms (WinRT/WP8/iOS/NACL)

News, announcements and important global threads from the Ogre3D Team.
Post Reply
User avatar
Wolfmanfx
OGRE Team Member
OGRE Team Member
Posts: 1525
Joined: Fri Feb 03, 2006 10:37 pm
Location: Austria - Leoben
x 99
Contact:

[Announcement] CMake build platforms (WinRT/WP8/iOS/NACL)

Post by Wolfmanfx »

I refactored the find_package for directX and seperated it for DX9/DX11.
After that i also removed the following options from cmake
  • OGRE_BUILD_PLATFORM_NACL
    OGRE_BUILD_PLATFORM_WINRT
    OGRE_BUILD_PLATFORM_WINDOWS_PHONE
so its more streamlined with the iOS build where you also have to specify the build platform manually.
You have to specify that value BEFORE you configure cmake (when using cmake gui) or pass it via the command line
  • Command line:
    -DOGRE_BUILD_PLATFORM_WINRT=TRUE

    CMake-GUI:
    cmake_build_platform.jpg
    cmake_build_platform.jpg (29.04 KiB) Viewed 11274 times
---
Atm the following platforms needs to be specified manually:
  • OGRE_BUILD_PLATFORM_APPLE_IOS
    OGRE_BUILD_PLATFORM_NACL
    OGRE_BUILD_PLATFORM_WINRT
    OGRE_BUILD_PLATFORM_WINDOWS_PHONE
---
Regarding DX11 we use the installable SDK as default for WinRT/WP8 you have specify the build platform as described before. DX9 always use the installable SDK.
simedj
Goblin
Posts: 262
Joined: Fri Nov 18, 2011 6:50 pm
x 3

Re: [Announcement] CMake build platforms (WinRT/WP8/iOS/NACL

Post by simedj »

Is this in effect for 1.8 branch as well, or 1.9 only? If 1.8, what Ogre version is it... I have 1.8.2 for iOS already but that predates your post.

When you say do it BEFORE configuring, when I am doing a brand new build what order is it? The first "configure" asks me which compiler to use, do I add the option before or after that?
Looking to find experienced Ogre & shader developers/artists. PM me with a contact email address if interested.
User avatar
masterfalcon
OGRE Team Member
OGRE Team Member
Posts: 4270
Joined: Sun Feb 25, 2007 4:56 am
Location: Bloomington, MN
x 126
Contact:

Re: [Announcement] CMake build platforms (WinRT/WP8/iOS/NACL

Post by masterfalcon »

Support for OGRE_BUILD_PLATFORM_APPLE_IOS already exists in 1.8. You need to add that option before you configure with CMake.
simedj
Goblin
Posts: 262
Joined: Fri Nov 18, 2011 6:50 pm
x 3

Re: [Announcement] CMake build platforms (WinRT/WP8/iOS/NACL

Post by simedj »

Hmm, there was a checkbox for it when I last built (1.8.2) so I guess it's newer than that. I'll have to watch out next time I update on the Mac.

It's not 100% clear to me how changing things to require manually hacking the CMake setup is slicker than a nice set of options I turn on/off ;)
Looking to find experienced Ogre & shader developers/artists. PM me with a contact email address if interested.
User avatar
jacmoe
OGRE Retired Moderator
OGRE Retired Moderator
Posts: 20570
Joined: Thu Jan 22, 2004 10:13 am
Location: Denmark
x 179
Contact:

Re: [Announcement] CMake build platforms (WinRT/WP8/iOS/NACL

Post by jacmoe »

@Simedj: those options needs to be set before the configuration stage, so it can't be a 'nice set of options'. No big deal: add the option before hitting 'configure' for the first time.
CMake works in mysterious ways sometimes.
/* Less noise. More signal. */
Ogitor Scenebuilder - powered by Ogre, presented by Qt, fueled by Passion.
OgreAddons - the Ogre code suppository.
Post Reply