SDK and Bitbucket build folder structural differences

Anything and everything that's related to OGRE or the wider graphics field that doesn't fit into the other forums.
Post Reply
caseybasichis
Greenskin
Posts: 100
Joined: Wed Jan 25, 2012 7:50 pm
x 1

SDK and Bitbucket build folder structural differences

Post by caseybasichis »

Hi,

Why do the SDK and releases built from the bitbucket sources have different directory structures? This seems to prevent swapping out the SDK with a newer build to test with existing projects.

Currently my built version does not have an 'includes' folder - instead they are scattered across various folders. Is there a script that makes a single "include" folder to match the SDK?

I have been trying to get the libcpp iOS version of Ogre running since May. It works fine with the SDK but the bitbucket source has been a nightmare.

Thanks,
Casey
User avatar
c6burns
Beholder
Posts: 1512
Joined: Fri Feb 22, 2013 4:44 am
Location: Deep behind enemy lines
x 138

Re: SDK and Bitbucket build folder structural differences

Post by c6burns »

CMake should create an install target for whatever build system you use. That's what creates the SDK.
caseybasichis
Greenskin
Posts: 100
Joined: Wed Jan 25, 2012 7:50 pm
x 1

Re: SDK and Bitbucket build folder structural differences

Post by caseybasichis »

Running the install target in Xcode seems to have created the includes in the SDK dir, though it doesn't move the libs there.

Should I just move them manually, or is there some part of the process I am still missing?

I am trying to build a project with the SDK with the libs manually moved into place. At first it wasn't finding the OgreOverlay.h, which I add the to the search paths.

Now it's giving an error that it can't find - gles2w.h - when I do a search in the include dir it doesn't find it. Any ideas?
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: SDK and Bitbucket build folder structural differences

Post by masterfalcon »

The SDK's are built using the scripts in the SDK/Platform directories. They usually start with make_*, for iOS it's called make_ios.sh.
caseybasichis
Greenskin
Posts: 100
Joined: Wed Jan 25, 2012 7:50 pm
x 1

Re: SDK and Bitbucket build folder structural differences

Post by caseybasichis »

Hi,
Building manually in xcode succeeds, but the script seems to fail, any thoughts?

Cleaning previous builds...
/Prog/Frameworks/OgreMain/1.9/ogre/SDK/iOS/build /Prog/Frameworks/OgreMain/1.9/ogre/SDK/iOS
-- 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 - no
-- 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 - no
-- Configuring OGRE 1.9.0unstable
-- Detected g++ 4.2.1

-- Enabling GCC visibility flags
-- Search path: /Prog/Frameworks/OgreMain/1.9/ogre/SDK/iOS/build/iOSDependencies;/Prog/Frameworks/OgreMain/1.9/ogre/iOSDependencies;/Prog/Frameworks/OgreMain/1.9/ogre/SDK/iOS/build/../iOSDependencies;/Prog/Frameworks/OgreMain/1.9/ogre/../iOSDependencies
-- 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;/Prog/Frameworks/OgreMain/1.9/ogre/iOSDependencies/lib/Release/libzzip.a;debug;/Prog/Frameworks/OgreMain/1.9/ogre/iOSDependencies/lib/Debug/libzzip.a
-- Looking for FreeImage...
-- checking for module 'freeimage'
-- package 'freeimage' not found
-- Found FreeImage: optimized;/Prog/Frameworks/OgreMain/1.9/ogre/iOSDependencies/lib/Release/libFreeImage.a;debug;/Prog/Frameworks/OgreMain/1.9/ogre/iOSDependencies/lib/Debug/libFreeImage.a
-- Looking for FREETYPE...
-- checking for module 'freetype2'
-- package 'freetype2' not found
-- CMAKE_PREFIX_PATH: /Prog/Frameworks/OgreMain/1.9/ogre/SDK/iOS/build/iOSDependencies;/Prog/Frameworks/OgreMain/1.9/ogre/iOSDependencies;/Prog/Frameworks/OgreMain/1.9/ogre/SDK/iOS/build/../iOSDependencies;/Prog/Frameworks/OgreMain/1.9/ogre/../iOSDependencies;/usr/local;/usr/lib/i386-linux-gnu
-- CMAKE_PREFIX_PATH: /Prog/Frameworks/OgreMain/1.9/ogre/SDK/iOS/build/iOSDependencies;/Prog/Frameworks/OgreMain/1.9/ogre/iOSDependencies;/Prog/Frameworks/OgreMain/1.9/ogre/SDK/iOS/build/../iOSDependencies;/Prog/Frameworks/OgreMain/1.9/ogre/../iOSDependencies;/usr/local;/usr/lib/i386-linux-gnu
-- Found FREETYPE: optimized;/Prog/Frameworks/OgreMain/1.9/ogre/iOSDependencies/lib/Release/libFreeType.a;debug;/Prog/Frameworks/OgreMain/1.9/ogre/iOSDependencies/lib/Debug/libFreeType.a
-- Looking for POCO...
-- checking for module 'POCO'
-- package 'POCO' not found
-- Could not locate POCO
-- Looking for TBB...
-- Could not locate TBB
-- Looking for GLSL_Optimizer...
-- checking for module 'GLSL_Optimizer'
-- package 'GLSL_Optimizer' not found
-- Found GLSL_Optimizer: optimized;/Prog/Frameworks/OgreMain/1.9/ogre/iOSDependencies/lib/Release/libglsl_optimizer.a;debug;/Prog/Frameworks/OgreMain/1.9/ogre/iOSDependencies/lib/Debug/libglsl_optimizer.a
-- Looking for HLSL2GLSL...
-- checking for module 'HLSL2GLSL'
-- package 'HLSL2GLSL' not found
-- Found HLSL2GLSL: optimized;/Prog/Frameworks/OgreMain/1.9/ogre/iOSDependencies/lib/Release/libhlsl2glsl.a;debug;/Prog/Frameworks/OgreMain/1.9/ogre/iOSDependencies/lib/Debug/libhlsl2glsl.a
-- Looking for OIS...
-- checking for module 'OIS'
-- package 'OIS' not found
-- Found OIS: optimized;/Prog/Frameworks/OgreMain/1.9/ogre/iOSDependencies/lib/Release/libOIS.a;debug;/Prog/Frameworks/OgreMain/1.9/ogre/iOSDependencies/lib/Debug/libOIS.a
-- Looking for Softimage...
-- Could not locate Softimage
-- Could NOT find TinyXML (missing: TINYXML_INCLUDE_DIR TINYXML_LIBRARIES)
-- Looking for CppUnit...
-- checking for module 'cppunit'
-- package 'cppunit' not found
-- Could not locate CppUnit
--
-----------------------------------------------------------------------------
-- The following external packages were located on your system.
-- This installation will have the extra features provided by these packages.
+ zlib
+ zziplib
+ freeimage
+ freetype
+ OpenGL
+ OpenGL 3+
+ OpenGL ES 1.x
+ OpenGL ES 2.x
+ OpenGL ES 3.x
+ boost
+ boost-thread
+ boost-date_time
+ boost-system
+ boost-chrono
+ boost-atomic
+ GLSL Optimizer
+ HLSL2GLSL
+ OIS
+ Doxygen
-----------------------------------------------------------------------------
-- 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/>
+ Softimage: Softimage SDK needed for building XSIExporter <FALSE>
+ TinyXML: TinyXML needed for building OgreXMLConverter <FALSE>
+ 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
+ Volume
+ Overlay
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
+ ETC image codec
+ FreeImage codec
+ ZIP archives
+ libc++ 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:
Use Boost: enabled

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

-- Configuring done
-- Generating done
-- Build files have been written to: /Prog/Frameworks/OgreMain/1.9/ogre/SDK/iOS/build
Building for simulator...
Build settings from command line:
SDKROOT = iphonesimulator6.1

=== BUILD NATIVE TARGET OgreMain OF PROJECT OGRE WITH CONFIGURATION Release ===
Check dependencies
No architectures to compile for (ARCHS=, VALID_ARCHS=i386).


=== BUILD AGGREGATE TARGET ZERO_CHECK OF PROJECT OGRE WITH CONFIGURATION Release ===
Check dependencies


** BUILD FAILED **


The following build commands failed:
Check dependencies
(1 failure)
mv: rename lib/iphonesimulator/Release/*.a to sdk/lib/iphonesimulator/Release/*.a: No such file or directory
Building for devices...
Build settings from command line:
SDKROOT = iphoneos6.1

=== BUILD NATIVE TARGET OgreMain OF PROJECT OGRE WITH CONFIGURATION Release ===
Check dependencies
No architectures to compile for (ARCHS=, VALID_ARCHS=armv7 armv7s).


=== BUILD AGGREGATE TARGET ZERO_CHECK OF PROJECT OGRE WITH CONFIGURATION Release ===
Check dependencies


** BUILD FAILED **


The following build commands failed:
Check dependencies
(1 failure)
mv: rename lib/iphoneos/Release/*.a to sdk/lib/iphoneos/Release/*.a: No such file or directory
Copying frameworks...
lipo /Prog/Frameworks/OgreMain/1.9/ogre/SDK/iOS/build/sdk/lib/iphoneos/Release/lib*
lipo: can't open input file: /Prog/Frameworks/OgreMain/1.9/ogre/SDK/iOS/build/sdk/lib/iphoneos/Release/lib* (No such file or directory)
Frameworks copied.
Generating Samples Project...
/Prog/Frameworks/OgreMain/1.9/ogre/SDK/iOS/build/sdk /Prog/Frameworks/OgreMain/1.9/ogre/SDK/iOS/build /Prog/Frameworks/OgreMain/1.9/ogre/SDK/iOS
CMake Error: The source directory "/Prog/Frameworks/OgreMain/1.9/ogre/SDK/iOS/build/sdk" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.
rm: CMakeCache.txt: No such file or directory
sed: OGRE.xcodeproj/project.pbxproj: No such file or directory
sed: CMakeScripts/*: No such file or directory
sed: CMakeFiles/*.*: No such file or directory
sed: lib/pkgconfig/*: No such file or directory
/Prog/Frameworks/OgreMain/1.9/ogre/SDK/iOS/build /Prog/Frameworks/OgreMain/1.9/ogre/SDK/iOS
End Generating Samples Project
Copying SDK...
/Prog/Frameworks/OgreMain/1.9/ogre/SDK/iOS
End Copying SDK
Building DMG...
"disk2" unmounted.
"disk2" ejected.
Preparing imaging engine…
Reading Protective Master Boot Record (MBR : 0)…
(CRC32 $8A2EB7A1: Protective Master Boot Record (MBR : 0))
Reading GPT Header (Primary GPT Header : 1)…
(CRC32 $6EF8129B: GPT Header (Primary GPT Header : 1))
Reading GPT Partition Data (Primary GPT Table : 2)…
(CRC32 $C0C19250: GPT Partition Data (Primary GPT Table : 2))
Reading (Apple_Free : 3)…
(CRC32 $00000000: (Apple_Free : 3))
Reading OgreSDK (Apple_HFS : 4)…
.............................................................................................................................
(CRC32 $FF7B0715: OgreSDK (Apple_HFS : 4))
Reading (Apple_Free : 5)…
...............................................................................................................................................
(CRC32 $00000000: (Apple_Free : 5))
Reading GPT Partition Data (Backup GPT Table : 6)…
...............................................................................................................................................
(CRC32 $C0C19250: GPT Partition Data (Backup GPT Table : 6))
Reading GPT Header (Backup GPT Header : 7)…
................................................................................................................................................
(CRC32 $20A8EDDF: GPT Header (Backup GPT Header : 7))
Adding resources…
................................................................................................................................................
Elapsed Time: 3.142s
File size: 1286830 bytes, Checksum: CRC32 $4DD698E8
Sectors processed: 2097232, 26043 compressed
Speed: 4.0Mbytes/sec
Savings: 99.9%
created: /Prog/Frameworks/OgreMain/1.9/ogre/SDK/iOS/OgreSDK_iOS_v1-9-0unstable.dmg
Done!
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: SDK and Bitbucket build folder structural differences

Post by masterfalcon »

What are the Xcode and OS X versions on the machine that you are using to build?
caseybasichis
Greenskin
Posts: 100
Joined: Wed Jan 25, 2012 7:50 pm
x 1

Re: SDK and Bitbucket build folder structural differences

Post by caseybasichis »

Hi,

I was able to get it to compile - I have two versions of XCode and it was using 4.6 instead of 5.

I'm trying to use this template as cmake is still not finding ogre parts - http://www.crowdscontrol.net/blog/2013- ... g-ogre-3d/

It seem to not fine Overlay.h, which is just a matter of adding the Overlay folder to the search path. After that I get an error:

/Prog/Frameworks/OgreMain/iOS/OgreSDK/include/OGRE/RenderSystems/GLES2/OgreGLES2Prerequisites.h:43:13: 'GLES2/gles2w.h' file not found

Is that a change from 1.8 to 1.9?
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: SDK and Bitbucket build folder structural differences

Post by masterfalcon »

Yes, that is a new change in 1.9. Looks like I need to fix that in the install targets.
caseybasichis
Greenskin
Posts: 100
Joined: Wed Jan 25, 2012 7:50 pm
x 1

Re: SDK and Bitbucket build folder structural differences

Post by caseybasichis »

Cool, should I add a bug fix for that?
Post Reply