[Solved]Does Current Ogre version support iPhone iOS4.1

Discussion of issues specific to mobile platforms such as iOS, Android, Symbian and Meego.
Post Reply
OOPhantom
Gnoblar
Posts: 24
Joined: Thu Sep 16, 2010 9:01 am

[Solved]Does Current Ogre version support iPhone iOS4.1

Post by OOPhantom »

I'm new for Ogre project, but I really like this open source project can provide us such an excellent game engine.
I have iOS 4.1 loaded in my mac os. I tried to build latest iPhone dependencies source code with Apple latest iOS4.1 SDK, but I found Build and Run button is gray down.
Does anyone meet this situation?
And then I tried to download iOS4.0 dependencies files, and follow the instruction as below, but I found an Xcode can not parse xcodeproj file error:
cmake -D OGRE_BUILD_PLATFORM_IPHONE=1 -G Xcode ..
../SDK/iPhone/fix_linker_paths.sh
Does anyone can help me about this? Thanks.
Last edited by OOPhantom on Fri Oct 01, 2010 9:10 am, edited 1 time in total.

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: Does Current Ogre version support iPhone iOS4.1

Post by masterfalcon »

Yes, 4.1 is supported.

Try it again without running fix_linker_paths.sh. It is no longer necessary only if you are using CMake 2.8.1 or later.

OOPhantom
Gnoblar
Posts: 24
Joined: Thu Sep 16, 2010 9:01 am

Re: Does Current Ogre version support iPhone iOS4.1

Post by OOPhantom »

I tried again, but I found the same error.

I checked my environment, I run cmake in terminal, it shows 2.8.1. This is a little strange, I download 2.8.2 version of cmake.
I tried to install 2.8.0 in your previous post, but it is still the same.

I attach the output as below:
cmake -D OGRE_BUILD_PLATFORM_IPHONE=1 -G Xcode ..
-- Checking whether C compiler has -isysroot
-- Checking whether C compiler has -isysroot - yes
-- Checking whether C compiler supports OSX deployment target flag
-- Checking whether C compiler supports OSX deployment target flag - yes
-- Checking whether CXX compiler has -isysroot
-- Checking whether CXX compiler has -isysroot - yes
-- Checking whether CXX compiler supports OSX deployment target flag
-- Checking whether CXX compiler supports OSX deployment target flag - yes
-- Configuring OGRE 1.8.0unstable
-- Performing Test OGRE_GCC_HAS_SSE
-- Performing Test OGRE_GCC_HAS_SSE - Success
-- Performing Test OGRE_GCC_VISIBILITY
-- Performing Test OGRE_GCC_VISIBILITY - Success
-- Detected g++ 4.2.1

-- Enabling GCC visibility flags
-- Check if the system is big endian
-- Searching 16 bit integer
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of unsigned short
-- Check size of unsigned short - done
-- Using unsigned short
-- Check if the system is big endian - little endian
-- Search path: /SourceCode/OrgeIphone/ogre/build/iPhoneDependencies;/SourceCode/OrgeIphone/ogre/iPhoneDependencies;/SourceCode/OrgeIphone/ogre/build/../iPhoneDependencies;/SourceCode/OrgeIphone/ogre/../iPhoneDependencies
-- Looking for ZLIB...
-- checking for module 'zzip-zlib-config'
-- package 'zzip-zlib-config' not found
-- Found ZLIB: optimized;/usr/lib/libz.dylib;debug;/usr/lib/libz.dylib
-- Looking for ZZip...
-- checking for module 'zziplib'
-- package 'zziplib' not found
-- Found ZZip: optimized;/SourceCode/OrgeIphone/ogre/iPhoneDependencies/lib/release/libzzip.a;debug;/SourceCode/OrgeIphone/ogre/iPhoneDependencies/lib/debug/libzzip.a
-- Looking for FreeImage...
-- checking for module 'freeimage'
-- package 'freeimage' not found
-- Found FreeImage: optimized;/SourceCode/OrgeIphone/ogre/iPhoneDependencies/lib/release/libFreeImage.a;debug;/SourceCode/OrgeIphone/ogre/iPhoneDependencies/lib/debug/libFreeImage.a
-- Looking for FREETYPE...
-- checking for module 'freetype2'
-- found freetype2, version 10.0.4
-- CMAKE_PREFIX_PATH: /SourceCode/OrgeIphone/ogre/build/iPhoneDependencies;/SourceCode/OrgeIphone/ogre/iPhoneDependencies;/SourceCode/OrgeIphone/ogre/build/../iPhoneDependencies;/SourceCode/OrgeIphone/ogre/../iPhoneDependencies;/usr/local
-- CMAKE_PREFIX_PATH: /SourceCode/OrgeIphone/ogre/build/iPhoneDependencies;/SourceCode/OrgeIphone/ogre/iPhoneDependencies;/SourceCode/OrgeIphone/ogre/build/../iPhoneDependencies;/SourceCode/OrgeIphone/ogre/../iPhoneDependencies;/usr/local
-- Found FREETYPE: optimized;/SourceCode/OrgeIphone/ogre/iPhoneDependencies/lib/release/libFreeType.a;debug;/SourceCode/OrgeIphone/ogre/iPhoneDependencies/lib/debug/libFreeType.a
-- Looking for XOpenDisplay in /opt/local/lib/libX11.dylib;/opt/local/lib/libXext.dylib
-- Looking for XOpenDisplay in /opt/local/lib/libX11.dylib;/opt/local/lib/libXext.dylib - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - not found
-- Found X11: /opt/local/lib/libX11.dylib
-- Looking for POCO...
-- checking for module 'POCO'
-- package 'POCO' not found
-- Could not locate POCO
-- Looking for TBB...
-- Could not locate TBB
-- Looking for OIS...
-- OIS_PREFIX_PATH changed.
-- checking for module 'OIS'
-- package 'OIS' not found
-- Found OIS: optimized;/SourceCode/OrgeIphone/ogre/iPhoneDependencies/lib/release/libOIS.a;debug;/SourceCode/OrgeIphone/ogre/iPhoneDependencies/lib/debug/libOIS.a
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
-- Looking for CppUnit...
-- checking for module 'cppunit'
-- package 'cppunit' not found
-- Could not locate CppUnit
-- Looking for iPhone SDK...
-- Found iPhone SDK
--
-----------------------------------------------------------------------------
-- The following external packages were located on your system.
-- This installation will have the extra features provided by these packages.
+ zlib
+ zziplib
+ freeimage
+ freetype
+ X11
+ Xt
+ Xaw
+ OpenGL
+ OpenGL ES 1.x
+ OpenGL ES 2.x
+ boost
+ boost-thread
+ boost-date_time
+ OIS
+ iPhone SDK
-----------------------------------------------------------------------------
-- The following OPTIONAL packages could NOT be located on your system.
-- Consider installing them to enable more features from this software.
+ POCO: POCO framework <http://pocoproject.org/>
+ tbb: Threading Building Blocks <http://www.threadingbuildingblocks.org/>
+ Doxygen: Tool for building API documentation <http://doxygen.org>
+ CppUnit: Library for performing unit tests <http://cppunit.sourceforge.net>
-----------------------------------------------------------------------------

--
----------------------------------------------------------------------------
FEATURE SUMMARY
----------------------------------------------------------------------------

Building components:
+ Paging
+ Property
+ Terrain
+ RTShader System
+ RTShader System Core Shaders
+ RTShader System Extensions Shaders
Building plugins:
+ BSP scene manager
+ Octree scene manager
+ Portal connected zone scene manager
+ Particle FX
Building rendersystems:
+ OpenGL ES 1.x
+ OpenGL ES 2.x
Building executables:
+ Samples
Building core features:
+ DDS image codec
+ PVRTC image codec
+ FreeImage codec
+ ZIP archives
+ Viewport orientation mode support

Build type: static
Threading support: background (boost)
Use double precision: disabled
Allocator type: nedmalloc (pooling)
STL containers use allocator: enabled
Strings use allocator: disabled
Memory tracker (debug): disabled
Memory tracker (release): disabled
Use new script compilers: enabled
Use Boost: enabled

----------------------------------------------------------------------------

-- Configuring done
-- Generating done
-- Build files have been written to: /SourceCode/OrgeIphone/ogre/build
When I open xcodeproj file, it shows:
Project OGRE.xcodeproj cannot be opened because the project file cannot be parsed.
From the output, I found there are some package are not found, does it OK?

OOPhantom
Gnoblar
Posts: 24
Joined: Thu Sep 16, 2010 9:01 am

Re: Does Current Ogre version support iPhone iOS4.1

Post by OOPhantom »

This issue can be fixed as below:
(1)sudo port uninstall cmake
(2)install cmake 2.8.0 package

Post Reply