CMake falls into infinite loop when building trunk on Mac

Problems building or running the engine, queries about how to use features etc.
Post Reply
User avatar
Calder
Greenskin
Posts: 124
Joined: Mon Mar 02, 2009 11:04 pm
x 3

CMake falls into infinite loop when building trunk on Mac

Post by Calder »

I've been keeping fairly up-to-date with Ogre 1.7 trunk, but when I went to build it today on my Mac, it got stuck in an infinite loop during the CMake process.

So here's the output of typing 'cmake .':

Code: Select all

-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Configuring OGRE 1.7.0
-- Performing Test OGRE_GCC_VISIBILITY
-- Performing Test OGRE_GCC_VISIBILITY - Success
-- Detected g++ 4.0.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
-- Looking for ZLIB...
-- checking for module 'zzip-zlib-config'
--   found zzip-zlib-config, version 1.2.3
-- Found ZLIB: optimized;/usr/local/lib/libz.a;debug;/usr/local/lib/libz.a
-- Looking for ZZip...
-- checking for module 'zziplib'
--   found zziplib, version 0.13.53
-- Found ZZip: optimized;/usr/local/lib/libzzip.dylib;debug;/usr/local/lib/libzzip.dylib
-- Looking for FreeImage...
-- checking for module 'freeimage'
--   package 'freeimage' not found
-- Found FreeImage: optimized;/usr/local/lib/libfreeimage.a;debug;/usr/local/lib/libfreeimage.a
-- Looking for FREETYPE...
-- checking for module 'freetype2'
--   package 'freetype2' not found
-- Found FREETYPE: optimized;/usr/X11R6/lib/libfreetype.dylib;debug;/usr/X11R6/lib/libfreetype.dylib
-- Looking for XOpenDisplay in /usr/X11R6/lib/libX11.dylib;/usr/X11R6/lib/libXext.dylib
-- Looking for XOpenDisplay in /usr/X11R6/lib/libX11.dylib;/usr/X11R6/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 - found
-- Found X11: /usr/X11R6/lib/libX11.dylib
-- Looking for Cg...
-- Cg_PREFIX_PATH changed.
-- checking for module 'Cg'
--   package 'Cg' not found
-- Found Cg: -framework Cg
-- 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: -framework OIS
-- Found Doxygen: /usr/local/bin/doxygen
-- Looking for CppUnit...
-- checking for module 'cppunit'
--   package 'cppunit' not found
-- Found CppUnit: optimized;/opt/local/lib/libcppunit.dylib;debug;/opt/local/lib/libcppunit.dylib
-- Looking for Carbon...
-- checking for module 'Carbon'
--   package 'Carbon' not found
-- Found Carbon: -framework Carbon
-- Looking for Cocoa...
-- checking for module 'Cocoa'
--   package 'Cocoa' not found
-- Found Cocoa: -framework Cocoa
-- Looking for IOKit...
-- checking for module 'IOKit'
--   package 'IOKit' not found
-- Found IOKit: -framework IOKit
-- 
-----------------------------------------------------------------------------
-- 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
+ cg
+ boost
+ boost-thread
+ boost-date_time
+ OIS
+ Doxygen
+ CppUnit
+ Carbon
+ Cocoa
+ IOKit
-----------------------------------------------------------------------------
-- 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/>
-----------------------------------------------------------------------------

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

Building components:
  + Paging
  + Property
  + Terrain
  + RTShader System
  + RTShader System Core Shaders
  + RTShader System Extensions Shaders
Building plugins:
  + BSP scene manager
  + Cg program manager
  + Octree scene manager
  + Portal connected zone scene manager
  + Particle FX
Building rendersystems:
  + OpenGL
Building executables:
  + Samples
  + Tools
Building core features:
  + DDS image codec
  + FreeImage codec
  + ZIP archives

Build type:                      dynamic
Threading support:               background (boost)
Use double precision:            disabled
Allocator type:                  user
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
You have changed variables that require your cache to be deleted.
Configure will be re-run and you may have to reset some variables.
The following variables have changed:
CMAKE_C_COMPILER= /usr/bin/gcc
CMAKE_CXX_COMPILER= /usr/bin/c++

-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Configuring OGRE 1.7.0
-- Performing Test OGRE_GCC_VISIBILITY
-- Performing Test OGRE_GCC_VISIBILITY - Success
-- Detected g++ 4.0.1
...
and it just keeps repeating until I Ctrl-C it. Any help would be greatly appreciated!
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: CMake falls into infinite loop when building trunk on Mac

Post by jacmoe »

Do you have separate source and build directories ?
/* Less noise. More signal. */
Ogitor Scenebuilder - powered by Ogre, presented by Qt, fueled by Passion.
OgreAddons - the Ogre code suppository.
User avatar
Calder
Greenskin
Posts: 124
Joined: Mon Mar 02, 2009 11:04 pm
x 3

Re: CMake falls into infinite loop when building trunk on Mac

Post by Calder »

Sorry, I'm not sure what you mean. I checked out the latest revision and ran 'cmake .' and this is what happened.
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: CMake falls into infinite loop when building trunk on Mac

Post by jacmoe »

Make a new directory for the build, enter it and issue the cmake command there.
Put the location of the source as a parameter.

http://www.ogre3d.org/wiki/index.php/Bu ... With_CMake
/* Less noise. More signal. */
Ogitor Scenebuilder - powered by Ogre, presented by Qt, fueled by Passion.
OgreAddons - the Ogre code suppository.
User avatar
Calder
Greenskin
Posts: 124
Joined: Mon Mar 02, 2009 11:04 pm
x 3

Re: CMake falls into infinite loop when building trunk on Mac

Post by Calder »

Ah, thanks for the clarification! Unfortunately, it yields the same result:

Code: Select all

desky:~ calderco$ cd Developer/
desky:Developer calderco$ mkdir ogre-build
desky:Developer calderco$ cd ogre-build/
desky:ogre-build calderco$ cmake ../ogre1.7/
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Configuring OGRE 1.7.0
-- Performing Test OGRE_GCC_VISIBILITY
-- Performing Test OGRE_GCC_VISIBILITY - Success
-- Detected g++ 4.0.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
-- Looking for ZLIB...
-- checking for module 'zzip-zlib-config'
--   found zzip-zlib-config, version 1.2.3
-- Found ZLIB: optimized;/usr/local/lib/libz.a;debug;/usr/local/lib/libz.a
-- Looking for ZZip...
-- checking for module 'zziplib'
--   found zziplib, version 0.13.53
-- Found ZZip: optimized;/usr/local/lib/libzzip.dylib;debug;/usr/local/lib/libzzip.dylib
-- Looking for FreeImage...
-- checking for module 'freeimage'
--   package 'freeimage' not found
-- Found FreeImage: optimized;/usr/local/lib/libfreeimage.a;debug;/usr/local/lib/libfreeimage.a
-- Looking for FREETYPE...
-- checking for module 'freetype2'
--   package 'freetype2' not found
-- Found FREETYPE: optimized;/usr/X11R6/lib/libfreetype.dylib;debug;/usr/X11R6/lib/libfreetype.dylib
-- Looking for XOpenDisplay in /usr/X11R6/lib/libX11.dylib;/usr/X11R6/lib/libXext.dylib
-- Looking for XOpenDisplay in /usr/X11R6/lib/libX11.dylib;/usr/X11R6/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 - found
-- Found X11: /usr/X11R6/lib/libX11.dylib
-- Looking for Cg...
-- Cg_PREFIX_PATH changed.
-- checking for module 'Cg'
--   package 'Cg' not found
-- Found Cg: -framework Cg
-- 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: -framework OIS
-- Found Doxygen: /usr/local/bin/doxygen
-- Looking for CppUnit...
-- checking for module 'cppunit'
--   package 'cppunit' not found
-- Found CppUnit: optimized;/opt/local/lib/libcppunit.dylib;debug;/opt/local/lib/libcppunit.dylib
-- Looking for Carbon...
-- checking for module 'Carbon'
--   package 'Carbon' not found
-- Found Carbon: -framework Carbon
-- Looking for Cocoa...
-- checking for module 'Cocoa'
--   package 'Cocoa' not found
-- Found Cocoa: -framework Cocoa
-- Looking for IOKit...
-- checking for module 'IOKit'
--   package 'IOKit' not found
-- Found IOKit: -framework IOKit
-- 
-----------------------------------------------------------------------------
-- 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
+ cg
+ boost
+ boost-thread
+ boost-date_time
+ OIS
+ Doxygen
+ CppUnit
+ Carbon
+ Cocoa
+ IOKit
-----------------------------------------------------------------------------
-- 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/>
-----------------------------------------------------------------------------

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

Building components:
  + Paging
  + Property
  + Terrain
  + RTShader System
  + RTShader System Core Shaders
  + RTShader System Extensions Shaders
Building plugins:
  + BSP scene manager
  + Cg program manager
  + Octree scene manager
  + Portal connected zone scene manager
  + Particle FX
Building rendersystems:
  + OpenGL
Building executables:
  + Samples
  + Tools
Building core features:
  + DDS image codec
  + FreeImage codec
  + ZIP archives

Build type:                      dynamic
Threading support:               background (boost)
Use double precision:            disabled
Allocator type:                  user
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
You have changed variables that require your cache to be deleted.
Configure will be re-run and you may have to reset some variables.
The following variables have changed:
CMAKE_C_COMPILER= /usr/bin/gcc
CMAKE_CXX_COMPILER= /usr/bin/c++

-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Configuring OGRE 1.7.0
-- Performing Test OGRE_GCC_VISIBILITY
-- Performing Test OGRE_GCC_VISIBILITY - Success
-- Detected g++ 4.0.1
...
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: CMake falls into infinite loop when building trunk on Mac

Post by masterfalcon »

Try just cmake .. or cmake -G Xcode .. if you want to generate a Xcode project.
User avatar
Calder
Greenskin
Posts: 124
Joined: Mon Mar 02, 2009 11:04 pm
x 3

Re: CMake falls into infinite loop when building trunk on Mac

Post by Calder »

Well, Xcode worked... Here's the output, if it helps:

Code: Select all

desky:ogre-build calderco$ cmake ../ogre1.7/ -G Xcode
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/g++
-- Check for working CXX compiler: /usr/bin/g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Configuring OGRE 1.7.0
-- Performing Test OGRE_GCC_VISIBILITY
-- Performing Test OGRE_GCC_VISIBILITY - Success
-- Detected g++ 4.0.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
-- Looking for ZLIB...
-- checking for module 'zzip-zlib-config'
--   found zzip-zlib-config, version 1.2.3
-- Found ZLIB: optimized;/usr/local/lib/libz.a;debug;/usr/local/lib/libz.a
-- Looking for ZZip...
-- checking for module 'zziplib'
--   found zziplib, version 0.13.53
-- Found ZZip: optimized;/usr/local/lib/libzzip.dylib;debug;/usr/local/lib/libzzip.dylib
-- Looking for FreeImage...
-- checking for module 'freeimage'
--   package 'freeimage' not found
-- Found FreeImage: optimized;/usr/local/lib/libfreeimage.a;debug;/usr/local/lib/libfreeimage.a
-- Looking for FREETYPE...
-- checking for module 'freetype2'
--   package 'freetype2' not found
-- Found FREETYPE: optimized;/usr/X11R6/lib/libfreetype.dylib;debug;/usr/X11R6/lib/libfreetype.dylib
-- Looking for XOpenDisplay in /usr/X11R6/lib/libX11.dylib;/usr/X11R6/lib/libXext.dylib
-- Looking for XOpenDisplay in /usr/X11R6/lib/libX11.dylib;/usr/X11R6/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 - found
-- Found X11: /usr/X11R6/lib/libX11.dylib
-- Looking for Cg...
-- Cg_PREFIX_PATH changed.
-- checking for module 'Cg'
--   package 'Cg' not found
-- Found Cg: -framework Cg
-- 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: -framework OIS
-- Found Doxygen: /usr/local/bin/doxygen
-- Looking for CppUnit...
-- checking for module 'cppunit'
--   package 'cppunit' not found
-- Found CppUnit: optimized;/opt/local/lib/libcppunit.dylib;debug;/opt/local/lib/libcppunit.dylib
-- Looking for Carbon...
-- checking for module 'Carbon'
--   package 'Carbon' not found
-- Found Carbon: -framework Carbon
-- Looking for Cocoa...
-- checking for module 'Cocoa'
--   package 'Cocoa' not found
-- Found Cocoa: -framework Cocoa
-- Looking for IOKit...
-- checking for module 'IOKit'
--   package 'IOKit' not found
-- Found IOKit: -framework IOKit
-- 
-----------------------------------------------------------------------------
-- 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
+ cg
+ boost
+ boost-thread
+ boost-date_time
+ OIS
+ Doxygen
+ CppUnit
+ Carbon
+ Cocoa
+ IOKit
-----------------------------------------------------------------------------
-- 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/>
-----------------------------------------------------------------------------

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

Building components:
  + Paging
  + Property
  + Terrain
  + RTShader System
  + RTShader System Core Shaders
  + RTShader System Extensions Shaders
Building plugins:
  + BSP scene manager
  + Cg program manager
  + Octree scene manager
  + Portal connected zone scene manager
  + Particle FX
Building rendersystems:
  + OpenGL
Building executables:
  + Samples
  + Tools
Building core features:
  + DDS image codec
  + FreeImage codec
  + ZIP archives

Build type:                      dynamic
Threading support:               background (boost)
Use double precision:            disabled
Allocator type:                  user
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: /Users/calderco/Developer/ogre-build
Still, I would like to be able to use make if there's any chance of debugging this. It's not a huge deal if it's too much work at this point, but it's mildly inconvenient...
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: CMake falls into infinite loop when building trunk on Mac

Post by masterfalcon »

Following the directions exactly, what happens if you just run cmake .. ?

NOT cmake ../ogre1.7/

I just did it here with no problems.
User avatar
Calder
Greenskin
Posts: 124
Joined: Mon Mar 02, 2009 11:04 pm
x 3

Re: CMake falls into infinite loop when building trunk on Mac

Post by Calder »

Running 'CMake ..' just yields

Code: Select all

CMake Error: The source directory "/Users/calderco/Developer" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.
and with good reason. The directory structure is

Code: Select all

HOME
    Developer
        ogre1.7
        ogre-build
and as I said, it works fine for Xcode, just not makefiles.
User avatar
Calder
Greenskin
Posts: 124
Joined: Mon Mar 02, 2009 11:04 pm
x 3

Re: CMake falls into infinite loop when building trunk on Mac

Post by Calder »

The essential problem is basically these lines:

Code: Select all

You have changed variables that require your cache to be deleted.
Configure will be re-run and you may have to reset some variables.
The following variables have changed:
CMAKE_C_COMPILER= /usr/bin/gcc
CMAKE_CXX_COMPILER= /usr/bin/c++
This is really quite annoying, are you sure there's no hope of figuring this one out?
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: CMake falls into infinite loop when building trunk on Mac

Post by masterfalcon »

It appears to be caused by the following lines in the CMakeLists.txt file at the root of the source tree:

Code: Select all

  include(CMakeForceCompiler)
  CMAKE_FORCE_C_COMPILER(gcc-4.0 GNU)
  CMAKE_FORCE_CXX_COMPILER(gcc-4.0 GNU)
These are necessary for 10.4 compatibility so removing or commenting them out isn't an option. But I'm unsure why an error is being thrown but only when creating makefiles.
Mancobian
Gnoblar
Posts: 5
Joined: Tue Dec 01, 2009 4:14 pm
Location: Georgia (USA)

Re: CMake falls into infinite loop when building trunk on Mac

Post by Mancobian »

Although I'm still unclear on the underlying cause, it seems that this configure loop bug* is triggered by modifying any compiler assignments in a CMakeLists.txt file after issuing the first project() command.

Thus, in the Ogre project's root CMakeLists.txt file, I moved the block of code that detects the iPhone/Apple platforms before the initial project(OGRE) call and it does appear to prevent this looping behavior without breaking anything else.

I've uploaded my modified CMakeLists.txt to http://www.thesecretdesigncollective.co ... eLists.txt for reference.

* Original reference found at the CMake mailing list archive: http://www.mail-archive.com/cmake@cmake ... 25107.html
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: CMake falls into infinite loop when building trunk on Mac

Post by masterfalcon »

@Mancobian I'll give this a try today and see how it works out.
Mancobian
Gnoblar
Posts: 5
Joined: Tue Dec 01, 2009 4:14 pm
Location: Georgia (USA)

Re: CMake falls into infinite loop when building trunk on Mac

Post by Mancobian »

masterfalcon wrote:@Mancobian I'll give this a try today and see how it works out.
Before I lead you too far astray, masterfalcon, it appears that setting the compiler before invoking project(OGRE) wreaks havoc further along in the build process. I received a slew of "undefined symbols" during the linking stage that seemed to indicate a failure to find libstdc++ which I speculate is a result of my previous suggestion.

What I've done instead is comment out the CMAKE_FORCE_C/CXX_COMPILER(...) calls and roll with gcc-4.2 (-arch i386) because I'm doing a test build of Ogre against dependencies exclusively built from source using said compiler/architecture. However, I see from the CMake comments that forcing the compiler to gcc-4.0 was done for backwards-compatibility with OSX 10.4, so my course of action will probably not be a good general solution. Nevertheless, I thought I'd document it here as a stopgap solution for any other Snow Leopard users out there.

As it stands, though, it looks like the desire for backwards-compatibility and this looping config bug present a bit of a catch-22. Although my experience with CMake is (obviously) limited, if I find any further details on the problem or think of another way to resolve it, I'll drop a note here.
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: CMake falls into infinite loop when building trunk on Mac

Post by masterfalcon »

Strange. I didn't get any linker errors. I reverted the change to the file anyways just to be safe.
gapgen
Gnoblar
Posts: 10
Joined: Wed Dec 09, 2009 1:05 pm

Re: CMake falls into infinite loop when building trunk on Mac

Post by gapgen »

EDIT: Fixed the stuff below seemingly by installing Cg from the Nvidia website.

I also had to fiddle with the latest svn version of the code by changing two calls to void ProgramManager::bindUniformParameters(Program* pCpuProgram, GpuProgramParametersSharedPtr& passParams) in the function void ProgramManager::acquirePrograms(Pass* pass, TargetRenderState* renderState) - apparently my compiler doesn't like the return values of functions being passed-by-reference (i.e. f(g());, where f is defined as void f(int& A) ). Using a temp variable and (via this example) calling:

Code: Select all

temp = g();
f(temp);
seemed to satisfy the compiler.
---
I ran into the infinite loop problem with CMake but fixed it by removing the force compiler lines as suggested. However, now when I make the file, it can't find the Cg framework, although it seems to be linking to the correct location. I've put a dump of my make output below (with a text replace of my username for USERNAME). This is for Snow Leopard, and I haven't got it to work either for the default option or for the Code::Blocks option (it works OK for XCode, I think, but I'd prefer not to use it if possible).

Code: Select all

"/Applications/CMake 2.8-0.app/Contents/bin/cmake" -H/Users/USERNAME/Documents/Programming/ogre -B/Users/USERNAME/Documents/Programming/ogre/mybuild --check-build-system CMakeFiles/Makefile.cmake 0
"/Applications/CMake 2.8-0.app/Contents/bin/cmake" -E cmake_progress_start /Users/USERNAME/Documents/Programming/ogre/mybuild/CMakeFiles /Users/USERNAME/Documents/Programming/ogre/mybuild/CMakeFiles/progress.marks
make -f CMakeFiles/Makefile2 all
make -f OgreMain/CMakeFiles/OgreMain.dir/build.make OgreMain/CMakeFiles/OgreMain.dir/depend
cd /Users/USERNAME/Documents/Programming/ogre/mybuild && "/Applications/CMake 2.8-0.app/Contents/bin/cmake" -E cmake_depends "Unix Makefiles" /Users/USERNAME/Documents/Programming/ogre /Users/USERNAME/Documents/Programming/ogre/OgreMain /Users/USERNAME/Documents/Programming/ogre/mybuild /Users/USERNAME/Documents/Programming/ogre/mybuild/OgreMain /Users/USERNAME/Documents/Programming/ogre/mybuild/OgreMain/CMakeFiles/OgreMain.dir/DependInfo.cmake --color=
make -f OgreMain/CMakeFiles/OgreMain.dir/build.make OgreMain/CMakeFiles/OgreMain.dir/build
make[2]: Nothing to be done for `OgreMain/CMakeFiles/OgreMain.dir/build'.
"/Applications/CMake 2.8-0.app/Contents/bin/cmake" -E cmake_progress_report /Users/USERNAME/Documents/Programming/ogre/mybuild/CMakeFiles  1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
[ 43%] Built target OgreMain
make -f RenderSystems/GL/CMakeFiles/RenderSystem_GL.dir/build.make RenderSystems/GL/CMakeFiles/RenderSystem_GL.dir/depend
make -f PlugIns/OctreeSceneManager/CMakeFiles/Plugin_OctreeSceneManager.dir/build.make PlugIns/OctreeSceneManager/CMakeFiles/Plugin_OctreeSceneManager.dir/depend
cd /Users/USERNAME/Documents/Programming/ogre/mybuild && "/Applications/CMake 2.8-0.app/Contents/bin/cmake" -E cmake_depends "Unix Makefiles" /Users/USERNAME/Documents/Programming/ogre /Users/USERNAME/Documents/Programming/ogre/PlugIns/OctreeSceneManager /Users/USERNAME/Documents/Programming/ogre/mybuild /Users/USERNAME/Documents/Programming/ogre/mybuild/PlugIns/OctreeSceneManager /Users/USERNAME/Documents/Programming/ogre/mybuild/PlugIns/OctreeSceneManager/CMakeFiles/Plugin_OctreeSceneManager.dir/DependInfo.cmake --color=
cd /Users/USERNAME/Documents/Programming/ogre/mybuild && "/Applications/CMake 2.8-0.app/Contents/bin/cmake" -E cmake_depends "Unix Makefiles" /Users/USERNAME/Documents/Programming/ogre /Users/USERNAME/Documents/Programming/ogre/RenderSystems/GL /Users/USERNAME/Documents/Programming/ogre/mybuild /Users/USERNAME/Documents/Programming/ogre/mybuild/RenderSystems/GL /Users/USERNAME/Documents/Programming/ogre/mybuild/RenderSystems/GL/CMakeFiles/RenderSystem_GL.dir/DependInfo.cmake --color=
make -f PlugIns/OctreeSceneManager/CMakeFiles/Plugin_OctreeSceneManager.dir/build.make PlugIns/OctreeSceneManager/CMakeFiles/Plugin_OctreeSceneManager.dir/build
make[2]: Nothing to be done for `PlugIns/OctreeSceneManager/CMakeFiles/Plugin_OctreeSceneManager.dir/build'.
"/Applications/CMake 2.8-0.app/Contents/bin/cmake" -E cmake_progress_report /Users/USERNAME/Documents/Programming/ogre/mybuild/CMakeFiles  60 61 62
[ 46%] Built target Plugin_OctreeSceneManager
make -f PlugIns/BSPSceneManager/CMakeFiles/Plugin_BSPSceneManager.dir/build.make PlugIns/BSPSceneManager/CMakeFiles/Plugin_BSPSceneManager.dir/depend
cd /Users/USERNAME/Documents/Programming/ogre/mybuild && "/Applications/CMake 2.8-0.app/Contents/bin/cmake" -E cmake_depends "Unix Makefiles" /Users/USERNAME/Documents/Programming/ogre /Users/USERNAME/Documents/Programming/ogre/PlugIns/BSPSceneManager /Users/USERNAME/Documents/Programming/ogre/mybuild /Users/USERNAME/Documents/Programming/ogre/mybuild/PlugIns/BSPSceneManager /Users/USERNAME/Documents/Programming/ogre/mybuild/PlugIns/BSPSceneManager/CMakeFiles/Plugin_BSPSceneManager.dir/DependInfo.cmake --color=
make -f PlugIns/BSPSceneManager/CMakeFiles/Plugin_BSPSceneManager.dir/build.make PlugIns/BSPSceneManager/CMakeFiles/Plugin_BSPSceneManager.dir/build
make[2]: Nothing to be done for `PlugIns/BSPSceneManager/CMakeFiles/Plugin_BSPSceneManager.dir/build'.
"/Applications/CMake 2.8-0.app/Contents/bin/cmake" -E cmake_progress_report /Users/USERNAME/Documents/Programming/ogre/mybuild/CMakeFiles  56 57 58
[ 49%] Built target Plugin_BSPSceneManager
make -f PlugIns/CgProgramManager/CMakeFiles/Plugin_CgProgramManager.dir/build.make PlugIns/CgProgramManager/CMakeFiles/Plugin_CgProgramManager.dir/depend
make -f RenderSystems/GL/CMakeFiles/RenderSystem_GL.dir/build.make RenderSystems/GL/CMakeFiles/RenderSystem_GL.dir/build
cd /Users/USERNAME/Documents/Programming/ogre/mybuild && "/Applications/CMake 2.8-0.app/Contents/bin/cmake" -E cmake_depends "Unix Makefiles" /Users/USERNAME/Documents/Programming/ogre /Users/USERNAME/Documents/Programming/ogre/PlugIns/CgProgramManager /Users/USERNAME/Documents/Programming/ogre/mybuild /Users/USERNAME/Documents/Programming/ogre/mybuild/PlugIns/CgProgramManager /Users/USERNAME/Documents/Programming/ogre/mybuild/PlugIns/CgProgramManager/CMakeFiles/Plugin_CgProgramManager.dir/DependInfo.cmake --color=
make -f PlugIns/CgProgramManager/CMakeFiles/Plugin_CgProgramManager.dir/build.make PlugIns/CgProgramManager/CMakeFiles/Plugin_CgProgramManager.dir/build
Linking CXX shared library ../../lib/Plugin_CgProgramManager.dylib
cd /Users/USERNAME/Documents/Programming/ogre/mybuild/PlugIns/CgProgramManager && "/Applications/CMake 2.8-0.app/Contents/bin/cmake" -E cmake_link_script CMakeFiles/Plugin_CgProgramManager.dir/link.txt --verbose=1
/usr/bin/c++   -arch i386 -isysroot /Developer/SDKs/MacOSX10.6.sdk -mmacosx-version-min=10.6 -O2 -g -dynamiclib -headerpad_max_install_names  -o ../../lib/Plugin_CgProgramManager.dylib -install_name @executable_path/../Plugins/Plugin_CgProgramManager.dylib CMakeFiles/Plugin_CgProgramManager.dir/src/OgreCgFxScriptLoader.cpp.o CMakeFiles/Plugin_CgProgramManager.dir/src/OgreCgPlugin.cpp.o CMakeFiles/Plugin_CgProgramManager.dir/src/OgreCgProgram.cpp.o CMakeFiles/Plugin_CgProgramManager.dir/src/OgreCgProgramFactory.cpp.o CMakeFiles/Plugin_CgProgramManager.dir/src/OgreCgProgramManagerDll.cpp.o -L/opt/local/lib ../../lib/Ogre.framework/Versions/1.7.0/Ogre -framework Cg /usr/lib/libz.dylib ../../../Dependencies/lib/release/libzzip.a ../../../Dependencies/lib/release/libfreeimage.a ../../../Dependencies/lib/release/libfreetype.a -framework Carbon -framework Cocoa /opt/local/lib/libboost_thread-mt-1_35.dylib /opt/local/lib/libboost_date_time-mt-1_35.dylib 
make[2]: Nothing to be done for `RenderSystems/GL/CMakeFiles/RenderSystem_GL.dir/build'.
"/Applications/CMake 2.8-0.app/Contents/bin/cmake" -E cmake_progress_report /Users/USERNAME/Documents/Programming/ogre/mybuild/CMakeFiles  73 74 75 76 77 78 79 80 81 82 83 84 85 86 87
[ 64%] Built target RenderSystem_GL
make -f PlugIns/ParticleFX/CMakeFiles/Plugin_ParticleFX.dir/build.make PlugIns/ParticleFX/CMakeFiles/Plugin_ParticleFX.dir/depend
cd /Users/USERNAME/Documents/Programming/ogre/mybuild && "/Applications/CMake 2.8-0.app/Contents/bin/cmake" -E cmake_depends "Unix Makefiles" /Users/USERNAME/Documents/Programming/ogre /Users/USERNAME/Documents/Programming/ogre/PlugIns/ParticleFX /Users/USERNAME/Documents/Programming/ogre/mybuild /Users/USERNAME/Documents/Programming/ogre/mybuild/PlugIns/ParticleFX /Users/USERNAME/Documents/Programming/ogre/mybuild/PlugIns/ParticleFX/CMakeFiles/Plugin_ParticleFX.dir/DependInfo.cmake --color=
Scanning dependencies of target Plugin_ParticleFX
make -f PlugIns/ParticleFX/CMakeFiles/Plugin_ParticleFX.dir/build.make PlugIns/ParticleFX/CMakeFiles/Plugin_ParticleFX.dir/build
"/Applications/CMake 2.8-0.app/Contents/bin/cmake" -E cmake_progress_report /Users/USERNAME/Documents/Programming/ogre/mybuild/CMakeFiles 
"/Applications/CMake 2.8-0.app/Contents/bin/cmake" -E cmake_progress_report /Users/USERNAME/Documents/Programming/ogre/mybuild/CMakeFiles 
[ 64%] [ 64%] Building CXX object PlugIns/ParticleFX/CMakeFiles/Plugin_ParticleFX.dir/src/OgreBoxEmitter.cpp.o
cd /Users/USERNAME/Documents/Programming/ogre/mybuild/PlugIns/ParticleFX && /usr/bin/c++   -DPlugin_ParticleFX_EXPORTS -DBOOST_ALL_NO_LIB -D_USRDLL -DOGRE_PARTICLEFXPLUGIN_EXPORTS -arch i386 -isysroot /Developer/SDKs/MacOSX10.6.sdk -mmacosx-version-min=10.6 -O2 -g -fPIC -I/Users/USERNAME/Documents/Programming/ogre/OgreMain/include -I/Users/USERNAME/Documents/Programming/ogre/mybuild/include -I/Users/USERNAME/Documents/Programming/ogre/OgreMain/include/OSX -I/Users/USERNAME/Documents/Programming/ogre/Dependencies/include -I/Users/USERNAME/Documents/Programming/ogre/Dependencies/include/OIS -I/Users/USERNAME/Documents/Programming/ogre/Dependencies/Cg.framework/Headers -F/Users/USERNAME/Documents/Programming/ogre/Dependencies -I/System/Library/Frameworks/Carbon.framework/Headers -I/System/Library/Frameworks/Cocoa.framework/Headers -I/opt/local/include/boost-1_35 -I/Users/USERNAME/Documents/Programming/ogre/PlugIns/ParticleFX/include   -msse -pthread -F/Users/USERNAME/Documents/Programming/ogre/mybuild  -DOGRE_GCC_VISIBILITY -fvisibility=hidden -fvisibility-inlines-hidden -o CMakeFiles/Plugin_ParticleFX.dir/src/OgreBoxEmitter.cpp.o -c /Users/USERNAME/Documents/Programming/ogre/PlugIns/ParticleFX/src/OgreBoxEmitter.cpp
Building CXX object PlugIns/ParticleFX/CMakeFiles/Plugin_ParticleFX.dir/src/OgreAreaEmitter.cpp.o
cd /Users/USERNAME/Documents/Programming/ogre/mybuild/PlugIns/ParticleFX && /usr/bin/c++   -DPlugin_ParticleFX_EXPORTS -DBOOST_ALL_NO_LIB -D_USRDLL -DOGRE_PARTICLEFXPLUGIN_EXPORTS -arch i386 -isysroot /Developer/SDKs/MacOSX10.6.sdk -mmacosx-version-min=10.6 -O2 -g -fPIC -I/Users/USERNAME/Documents/Programming/ogre/OgreMain/include -I/Users/USERNAME/Documents/Programming/ogre/mybuild/include -I/Users/USERNAME/Documents/Programming/ogre/OgreMain/include/OSX -I/Users/USERNAME/Documents/Programming/ogre/Dependencies/include -I/Users/USERNAME/Documents/Programming/ogre/Dependencies/include/OIS -I/Users/USERNAME/Documents/Programming/ogre/Dependencies/Cg.framework/Headers -F/Users/USERNAME/Documents/Programming/ogre/Dependencies -I/System/Library/Frameworks/Carbon.framework/Headers -I/System/Library/Frameworks/Cocoa.framework/Headers -I/opt/local/include/boost-1_35 -I/Users/USERNAME/Documents/Programming/ogre/PlugIns/ParticleFX/include   -msse -pthread -F/Users/USERNAME/Documents/Programming/ogre/mybuild  -DOGRE_GCC_VISIBILITY -fvisibility=hidden -fvisibility-inlines-hidden -o CMakeFiles/Plugin_ParticleFX.dir/src/OgreAreaEmitter.cpp.o -c /Users/USERNAME/Documents/Programming/ogre/PlugIns/ParticleFX/src/OgreAreaEmitter.cpp
"/Applications/CMake 2.8-0.app/Contents/bin/cmake" -E cmake_progress_report /Users/USERNAME/Documents/Programming/ogre/mybuild/CMakeFiles 69
[ 65%] Building CXX object PlugIns/ParticleFX/CMakeFiles/Plugin_ParticleFX.dir/src/OgreColourFaderAffector2.cpp.o
cd /Users/USERNAME/Documents/Programming/ogre/mybuild/PlugIns/ParticleFX && /usr/bin/c++   -DPlugin_ParticleFX_EXPORTS -DBOOST_ALL_NO_LIB -D_USRDLL -DOGRE_PARTICLEFXPLUGIN_EXPORTS -arch i386 -isysroot /Developer/SDKs/MacOSX10.6.sdk -mmacosx-version-min=10.6 -O2 -g -fPIC -I/Users/USERNAME/Documents/Programming/ogre/OgreMain/include -I/Users/USERNAME/Documents/Programming/ogre/mybuild/include -I/Users/USERNAME/Documents/Programming/ogre/OgreMain/include/OSX -I/Users/USERNAME/Documents/Programming/ogre/Dependencies/include -I/Users/USERNAME/Documents/Programming/ogre/Dependencies/include/OIS -I/Users/USERNAME/Documents/Programming/ogre/Dependencies/Cg.framework/Headers -F/Users/USERNAME/Documents/Programming/ogre/Dependencies -I/System/Library/Frameworks/Carbon.framework/Headers -I/System/Library/Frameworks/Cocoa.framework/Headers -I/opt/local/include/boost-1_35 -I/Users/USERNAME/Documents/Programming/ogre/PlugIns/ParticleFX/include   -msse -pthread -F/Users/USERNAME/Documents/Programming/ogre/mybuild  -DOGRE_GCC_VISIBILITY -fvisibility=hidden -fvisibility-inlines-hidden -o CMakeFiles/Plugin_ParticleFX.dir/src/OgreColourFaderAffector2.cpp.o -c /Users/USERNAME/Documents/Programming/ogre/PlugIns/ParticleFX/src/OgreColourFaderAffector2.cpp
"/Applications/CMake 2.8-0.app/Contents/bin/cmake" -E cmake_progress_report /Users/USERNAME/Documents/Programming/ogre/mybuild/CMakeFiles 
[ 65%] Building CXX object PlugIns/ParticleFX/CMakeFiles/Plugin_ParticleFX.dir/src/OgreColourFaderAffector.cpp.o
cd /Users/USERNAME/Documents/Programming/ogre/mybuild/PlugIns/ParticleFX && /usr/bin/c++   -DPlugin_ParticleFX_EXPORTS -DBOOST_ALL_NO_LIB -D_USRDLL -DOGRE_PARTICLEFXPLUGIN_EXPORTS -arch i386 -isysroot /Developer/SDKs/MacOSX10.6.sdk -mmacosx-version-min=10.6 -O2 -g -fPIC -I/Users/USERNAME/Documents/Programming/ogre/OgreMain/include -I/Users/USERNAME/Documents/Programming/ogre/mybuild/include -I/Users/USERNAME/Documents/Programming/ogre/OgreMain/include/OSX -I/Users/USERNAME/Documents/Programming/ogre/Dependencies/include -I/Users/USERNAME/Documents/Programming/ogre/Dependencies/include/OIS -I/Users/USERNAME/Documents/Programming/ogre/Dependencies/Cg.framework/Headers -F/Users/USERNAME/Documents/Programming/ogre/Dependencies -I/System/Library/Frameworks/Carbon.framework/Headers -I/System/Library/Frameworks/Cocoa.framework/Headers -I/opt/local/include/boost-1_35 -I/Users/USERNAME/Documents/Programming/ogre/PlugIns/ParticleFX/include   -msse -pthread -F/Users/USERNAME/Documents/Programming/ogre/mybuild  -DOGRE_GCC_VISIBILITY -fvisibility=hidden -fvisibility-inlines-hidden -o CMakeFiles/Plugin_ParticleFX.dir/src/OgreColourFaderAffector.cpp.o -c /Users/USERNAME/Documents/Programming/ogre/PlugIns/ParticleFX/src/OgreColourFaderAffector.cpp
"/Applications/CMake 2.8-0.app/Contents/bin/cmake" -E cmake_progress_report /Users/USERNAME/Documents/Programming/ogre/mybuild/CMakeFiles 
[ 65%] Building CXX object PlugIns/ParticleFX/CMakeFiles/Plugin_ParticleFX.dir/src/OgreColourImageAffector.cpp.o
cd /Users/USERNAME/Documents/Programming/ogre/mybuild/PlugIns/ParticleFX && /usr/bin/c++   -DPlugin_ParticleFX_EXPORTS -DBOOST_ALL_NO_LIB -D_USRDLL -DOGRE_PARTICLEFXPLUGIN_EXPORTS -arch i386 -isysroot /Developer/SDKs/MacOSX10.6.sdk -mmacosx-version-min=10.6 -O2 -g -fPIC -I/Users/USERNAME/Documents/Programming/ogre/OgreMain/include -I/Users/USERNAME/Documents/Programming/ogre/mybuild/include -I/Users/USERNAME/Documents/Programming/ogre/OgreMain/include/OSX -I/Users/USERNAME/Documents/Programming/ogre/Dependencies/include -I/Users/USERNAME/Documents/Programming/ogre/Dependencies/include/OIS -I/Users/USERNAME/Documents/Programming/ogre/Dependencies/Cg.framework/Headers -F/Users/USERNAME/Documents/Programming/ogre/Dependencies -I/System/Library/Frameworks/Carbon.framework/Headers -I/System/Library/Frameworks/Cocoa.framework/Headers -I/opt/local/include/boost-1_35 -I/Users/USERNAME/Documents/Programming/ogre/PlugIns/ParticleFX/include   -msse -pthread -F/Users/USERNAME/Documents/Programming/ogre/mybuild  -DOGRE_GCC_VISIBILITY -fvisibility=hidden -fvisibility-inlines-hidden -o CMakeFiles/Plugin_ParticleFX.dir/src/OgreColourImageAffector.cpp.o -c /Users/USERNAME/Documents/Programming/ogre/PlugIns/ParticleFX/src/OgreColourImageAffector.cpp
"/Applications/CMake 2.8-0.app/Contents/bin/cmake" -E cmake_progress_report /Users/USERNAME/Documents/Programming/ogre/mybuild/CMakeFiles 
[ 65%] Building CXX object PlugIns/ParticleFX/CMakeFiles/Plugin_ParticleFX.dir/src/OgreColourInterpolatorAffector.cpp.o
cd /Users/USERNAME/Documents/Programming/ogre/mybuild/PlugIns/ParticleFX && /usr/bin/c++   -DPlugin_ParticleFX_EXPORTS -DBOOST_ALL_NO_LIB -D_USRDLL -DOGRE_PARTICLEFXPLUGIN_EXPORTS -arch i386 -isysroot /Developer/SDKs/MacOSX10.6.sdk -mmacosx-version-min=10.6 -O2 -g -fPIC -I/Users/USERNAME/Documents/Programming/ogre/OgreMain/include -I/Users/USERNAME/Documents/Programming/ogre/mybuild/include -I/Users/USERNAME/Documents/Programming/ogre/OgreMain/include/OSX -I/Users/USERNAME/Documents/Programming/ogre/Dependencies/include -I/Users/USERNAME/Documents/Programming/ogre/Dependencies/include/OIS -I/Users/USERNAME/Documents/Programming/ogre/Dependencies/Cg.framework/Headers -F/Users/USERNAME/Documents/Programming/ogre/Dependencies -I/System/Library/Frameworks/Carbon.framework/Headers -I/System/Library/Frameworks/Cocoa.framework/Headers -I/opt/local/include/boost-1_35 -I/Users/USERNAME/Documents/Programming/ogre/PlugIns/ParticleFX/include   -msse -pthread -F/Users/USERNAME/Documents/Programming/ogre/mybuild  -DOGRE_GCC_VISIBILITY -fvisibility=hidden -fvisibility-inlines-hidden -o CMakeFiles/Plugin_ParticleFX.dir/src/OgreColourInterpolatorAffector.cpp.o -c /Users/USERNAME/Documents/Programming/ogre/PlugIns/ParticleFX/src/OgreColourInterpolatorAffector.cpp
"/Applications/CMake 2.8-0.app/Contents/bin/cmake" -E cmake_progress_report /Users/USERNAME/Documents/Programming/ogre/mybuild/CMakeFiles 70
[ 66%] Building CXX object PlugIns/ParticleFX/CMakeFiles/Plugin_ParticleFX.dir/src/OgreCylinderEmitter.cpp.o
cd /Users/USERNAME/Documents/Programming/ogre/mybuild/PlugIns/ParticleFX && /usr/bin/c++   -DPlugin_ParticleFX_EXPORTS -DBOOST_ALL_NO_LIB -D_USRDLL -DOGRE_PARTICLEFXPLUGIN_EXPORTS -arch i386 -isysroot /Developer/SDKs/MacOSX10.6.sdk -mmacosx-version-min=10.6 -O2 -g -fPIC -I/Users/USERNAME/Documents/Programming/ogre/OgreMain/include -I/Users/USERNAME/Documents/Programming/ogre/mybuild/include -I/Users/USERNAME/Documents/Programming/ogre/OgreMain/include/OSX -I/Users/USERNAME/Documents/Programming/ogre/Dependencies/include -I/Users/USERNAME/Documents/Programming/ogre/Dependencies/include/OIS -I/Users/USERNAME/Documents/Programming/ogre/Dependencies/Cg.framework/Headers -F/Users/USERNAME/Documents/Programming/ogre/Dependencies -I/System/Library/Frameworks/Carbon.framework/Headers -I/System/Library/Frameworks/Cocoa.framework/Headers -I/opt/local/include/boost-1_35 -I/Users/USERNAME/Documents/Programming/ogre/PlugIns/ParticleFX/include   -msse -pthread -F/Users/USERNAME/Documents/Programming/ogre/mybuild  -DOGRE_GCC_VISIBILITY -fvisibility=hidden -fvisibility-inlines-hidden -o CMakeFiles/Plugin_ParticleFX.dir/src/OgreCylinderEmitter.cpp.o -c /Users/USERNAME/Documents/Programming/ogre/PlugIns/ParticleFX/src/OgreCylinderEmitter.cpp
"/Applications/CMake 2.8-0.app/Contents/bin/cmake" -E cmake_progress_report /Users/USERNAME/Documents/Programming/ogre/mybuild/CMakeFiles 
[ 66%] Building CXX object PlugIns/ParticleFX/CMakeFiles/Plugin_ParticleFX.dir/src/OgreDeflectorPlaneAffector.cpp.o
cd /Users/USERNAME/Documents/Programming/ogre/mybuild/PlugIns/ParticleFX && /usr/bin/c++   -DPlugin_ParticleFX_EXPORTS -DBOOST_ALL_NO_LIB -D_USRDLL -DOGRE_PARTICLEFXPLUGIN_EXPORTS -arch i386 -isysroot /Developer/SDKs/MacOSX10.6.sdk -mmacosx-version-min=10.6 -O2 -g -fPIC -I/Users/USERNAME/Documents/Programming/ogre/OgreMain/include -I/Users/USERNAME/Documents/Programming/ogre/mybuild/include -I/Users/USERNAME/Documents/Programming/ogre/OgreMain/include/OSX -I/Users/USERNAME/Documents/Programming/ogre/Dependencies/include -I/Users/USERNAME/Documents/Programming/ogre/Dependencies/include/OIS -I/Users/USERNAME/Documents/Programming/ogre/Dependencies/Cg.framework/Headers -F/Users/USERNAME/Documents/Programming/ogre/Dependencies -I/System/Library/Frameworks/Carbon.framework/Headers -I/System/Library/Frameworks/Cocoa.framework/Headers -I/opt/local/include/boost-1_35 -I/Users/USERNAME/Documents/Programming/ogre/PlugIns/ParticleFX/include   -msse -pthread -F/Users/USERNAME/Documents/Programming/ogre/mybuild  -DOGRE_GCC_VISIBILITY -fvisibility=hidden -fvisibility-inlines-hidden -o CMakeFiles/Plugin_ParticleFX.dir/src/OgreDeflectorPlaneAffector.cpp.o -c /Users/USERNAME/Documents/Programming/ogre/PlugIns/ParticleFX/src/OgreDeflectorPlaneAffector.cpp
"/Applications/CMake 2.8-0.app/Contents/bin/cmake" -E cmake_progress_report /Users/USERNAME/Documents/Programming/ogre/mybuild/CMakeFiles 
[ 66%] Building CXX object PlugIns/ParticleFX/CMakeFiles/Plugin_ParticleFX.dir/src/OgreDirectionRandomiserAffector.cpp.o
cd /Users/USERNAME/Documents/Programming/ogre/mybuild/PlugIns/ParticleFX && /usr/bin/c++   -DPlugin_ParticleFX_EXPORTS -DBOOST_ALL_NO_LIB -D_USRDLL -DOGRE_PARTICLEFXPLUGIN_EXPORTS -arch i386 -isysroot /Developer/SDKs/MacOSX10.6.sdk -mmacosx-version-min=10.6 -O2 -g -fPIC -I/Users/USERNAME/Documents/Programming/ogre/OgreMain/include -I/Users/USERNAME/Documents/Programming/ogre/mybuild/include -I/Users/USERNAME/Documents/Programming/ogre/OgreMain/include/OSX -I/Users/USERNAME/Documents/Programming/ogre/Dependencies/include -I/Users/USERNAME/Documents/Programming/ogre/Dependencies/include/OIS -I/Users/USERNAME/Documents/Programming/ogre/Dependencies/Cg.framework/Headers -F/Users/USERNAME/Documents/Programming/ogre/Dependencies -I/System/Library/Frameworks/Carbon.framework/Headers -I/System/Library/Frameworks/Cocoa.framework/Headers -I/opt/local/include/boost-1_35 -I/Users/USERNAME/Documents/Programming/ogre/PlugIns/ParticleFX/include   -msse -pthread -F/Users/USERNAME/Documents/Programming/ogre/mybuild  -DOGRE_GCC_VISIBILITY -fvisibility=hidden -fvisibility-inlines-hidden -o CMakeFiles/Plugin_ParticleFX.dir/src/OgreDirectionRandomiserAffector.cpp.o -c /Users/USERNAME/Documents/Programming/ogre/PlugIns/ParticleFX/src/OgreDirectionRandomiserAffector.cpp
"/Applications/CMake 2.8-0.app/Contents/bin/cmake" -E cmake_progress_report /Users/USERNAME/Documents/Programming/ogre/mybuild/CMakeFiles 
[ 66%] Building CXX object PlugIns/ParticleFX/CMakeFiles/Plugin_ParticleFX.dir/src/OgreEllipsoidEmitter.cpp.o
cd /Users/USERNAME/Documents/Programming/ogre/mybuild/PlugIns/ParticleFX && /usr/bin/c++   -DPlugin_ParticleFX_EXPORTS -DBOOST_ALL_NO_LIB -D_USRDLL -DOGRE_PARTICLEFXPLUGIN_EXPORTS -arch i386 -isysroot /Developer/SDKs/MacOSX10.6.sdk -mmacosx-version-min=10.6 -O2 -g -fPIC -I/Users/USERNAME/Documents/Programming/ogre/OgreMain/include -I/Users/USERNAME/Documents/Programming/ogre/mybuild/include -I/Users/USERNAME/Documents/Programming/ogre/OgreMain/include/OSX -I/Users/USERNAME/Documents/Programming/ogre/Dependencies/include -I/Users/USERNAME/Documents/Programming/ogre/Dependencies/include/OIS -I/Users/USERNAME/Documents/Programming/ogre/Dependencies/Cg.framework/Headers -F/Users/USERNAME/Documents/Programming/ogre/Dependencies -I/System/Library/Frameworks/Carbon.framework/Headers -I/System/Library/Frameworks/Cocoa.framework/Headers -I/opt/local/include/boost-1_35 -I/Users/USERNAME/Documents/Programming/ogre/PlugIns/ParticleFX/include   -msse -pthread -F/Users/USERNAME/Documents/Programming/ogre/mybuild  -DOGRE_GCC_VISIBILITY -fvisibility=hidden -fvisibility-inlines-hidden -o CMakeFiles/Plugin_ParticleFX.dir/src/OgreEllipsoidEmitter.cpp.o -c /Users/USERNAME/Documents/Programming/ogre/PlugIns/ParticleFX/src/OgreEllipsoidEmitter.cpp
"/Applications/CMake 2.8-0.app/Contents/bin/cmake" -E cmake_progress_report /Users/USERNAME/Documents/Programming/ogre/mybuild/CMakeFiles 71
[ 67%] Building CXX object PlugIns/ParticleFX/CMakeFiles/Plugin_ParticleFX.dir/src/OgreHollowEllipsoidEmitter.cpp.o
cd /Users/USERNAME/Documents/Programming/ogre/mybuild/PlugIns/ParticleFX && /usr/bin/c++   -DPlugin_ParticleFX_EXPORTS -DBOOST_ALL_NO_LIB -D_USRDLL -DOGRE_PARTICLEFXPLUGIN_EXPORTS -arch i386 -isysroot /Developer/SDKs/MacOSX10.6.sdk -mmacosx-version-min=10.6 -O2 -g -fPIC -I/Users/USERNAME/Documents/Programming/ogre/OgreMain/include -I/Users/USERNAME/Documents/Programming/ogre/mybuild/include -I/Users/USERNAME/Documents/Programming/ogre/OgreMain/include/OSX -I/Users/USERNAME/Documents/Programming/ogre/Dependencies/include -I/Users/USERNAME/Documents/Programming/ogre/Dependencies/include/OIS -I/Users/USERNAME/Documents/Programming/ogre/Dependencies/Cg.framework/Headers -F/Users/USERNAME/Documents/Programming/ogre/Dependencies -I/System/Library/Frameworks/Carbon.framework/Headers -I/System/Library/Frameworks/Cocoa.framework/Headers -I/opt/local/include/boost-1_35 -I/Users/USERNAME/Documents/Programming/ogre/PlugIns/ParticleFX/include   -msse -pthread -F/Users/USERNAME/Documents/Programming/ogre/mybuild  -DOGRE_GCC_VISIBILITY -fvisibility=hidden -fvisibility-inlines-hidden -o CMakeFiles/Plugin_ParticleFX.dir/src/OgreHollowEllipsoidEmitter.cpp.o -c /Users/USERNAME/Documents/Programming/ogre/PlugIns/ParticleFX/src/OgreHollowEllipsoidEmitter.cpp
"/Applications/CMake 2.8-0.app/Contents/bin/cmake" -E cmake_progress_report /Users/USERNAME/Documents/Programming/ogre/mybuild/CMakeFiles 
[ 67%] Building CXX object PlugIns/ParticleFX/CMakeFiles/Plugin_ParticleFX.dir/src/OgreLinearForceAffector.cpp.o
cd /Users/USERNAME/Documents/Programming/ogre/mybuild/PlugIns/ParticleFX && /usr/bin/c++   -DPlugin_ParticleFX_EXPORTS -DBOOST_ALL_NO_LIB -D_USRDLL -DOGRE_PARTICLEFXPLUGIN_EXPORTS -arch i386 -isysroot /Developer/SDKs/MacOSX10.6.sdk -mmacosx-version-min=10.6 -O2 -g -fPIC -I/Users/USERNAME/Documents/Programming/ogre/OgreMain/include -I/Users/USERNAME/Documents/Programming/ogre/mybuild/include -I/Users/USERNAME/Documents/Programming/ogre/OgreMain/include/OSX -I/Users/USERNAME/Documents/Programming/ogre/Dependencies/include -I/Users/USERNAME/Documents/Programming/ogre/Dependencies/include/OIS -I/Users/USERNAME/Documents/Programming/ogre/Dependencies/Cg.framework/Headers -F/Users/USERNAME/Documents/Programming/ogre/Dependencies -I/System/Library/Frameworks/Carbon.framework/Headers -I/System/Library/Frameworks/Cocoa.framework/Headers -I/opt/local/include/boost-1_35 -I/Users/USERNAME/Documents/Programming/ogre/PlugIns/ParticleFX/include   -msse -pthread -F/Users/USERNAME/Documents/Programming/ogre/mybuild  -DOGRE_GCC_VISIBILITY -fvisibility=hidden -fvisibility-inlines-hidden -o CMakeFiles/Plugin_ParticleFX.dir/src/OgreLinearForceAffector.cpp.o -c /Users/USERNAME/Documents/Programming/ogre/PlugIns/ParticleFX/src/OgreLinearForceAffector.cpp
"/Applications/CMake 2.8-0.app/Contents/bin/cmake" -E cmake_progress_report /Users/USERNAME/Documents/Programming/ogre/mybuild/CMakeFiles 
[ 67%] Building CXX object PlugIns/ParticleFX/CMakeFiles/Plugin_ParticleFX.dir/src/OgreParticleFX.cpp.o
cd /Users/USERNAME/Documents/Programming/ogre/mybuild/PlugIns/ParticleFX && /usr/bin/c++   -DPlugin_ParticleFX_EXPORTS -DBOOST_ALL_NO_LIB -D_USRDLL -DOGRE_PARTICLEFXPLUGIN_EXPORTS -arch i386 -isysroot /Developer/SDKs/MacOSX10.6.sdk -mmacosx-version-min=10.6 -O2 -g -fPIC -I/Users/USERNAME/Documents/Programming/ogre/OgreMain/include -I/Users/USERNAME/Documents/Programming/ogre/mybuild/include -I/Users/USERNAME/Documents/Programming/ogre/OgreMain/include/OSX -I/Users/USERNAME/Documents/Programming/ogre/Dependencies/include -I/Users/USERNAME/Documents/Programming/ogre/Dependencies/include/OIS -I/Users/USERNAME/Documents/Programming/ogre/Dependencies/Cg.framework/Headers -F/Users/USERNAME/Documents/Programming/ogre/Dependencies -I/System/Library/Frameworks/Carbon.framework/Headers -I/System/Library/Frameworks/Cocoa.framework/Headers -I/opt/local/include/boost-1_35 -I/Users/USERNAME/Documents/Programming/ogre/PlugIns/ParticleFX/include   -msse -pthread -F/Users/USERNAME/Documents/Programming/ogre/mybuild  -DOGRE_GCC_VISIBILITY -fvisibility=hidden -fvisibility-inlines-hidden -o CMakeFiles/Plugin_ParticleFX.dir/src/OgreParticleFX.cpp.o -c /Users/USERNAME/Documents/Programming/ogre/PlugIns/ParticleFX/src/OgreParticleFX.cpp
"/Applications/CMake 2.8-0.app/Contents/bin/cmake" -E cmake_progress_report /Users/USERNAME/Documents/Programming/ogre/mybuild/CMakeFiles 
[ 67%] Building CXX object PlugIns/ParticleFX/CMakeFiles/Plugin_ParticleFX.dir/src/OgreParticleFXPlugin.cpp.o
cd /Users/USERNAME/Documents/Programming/ogre/mybuild/PlugIns/ParticleFX && /usr/bin/c++   -DPlugin_ParticleFX_EXPORTS -DBOOST_ALL_NO_LIB -D_USRDLL -DOGRE_PARTICLEFXPLUGIN_EXPORTS -arch i386 -isysroot /Developer/SDKs/MacOSX10.6.sdk -mmacosx-version-min=10.6 -O2 -g -fPIC -I/Users/USERNAME/Documents/Programming/ogre/OgreMain/include -I/Users/USERNAME/Documents/Programming/ogre/mybuild/include -I/Users/USERNAME/Documents/Programming/ogre/OgreMain/include/OSX -I/Users/USERNAME/Documents/Programming/ogre/Dependencies/include -I/Users/USERNAME/Documents/Programming/ogre/Dependencies/include/OIS -I/Users/USERNAME/Documents/Programming/ogre/Dependencies/Cg.framework/Headers -F/Users/USERNAME/Documents/Programming/ogre/Dependencies -I/System/Library/Frameworks/Carbon.framework/Headers -I/System/Library/Frameworks/Cocoa.framework/Headers -I/opt/local/include/boost-1_35 -I/Users/USERNAME/Documents/Programming/ogre/PlugIns/ParticleFX/include   -msse -pthread -F/Users/USERNAME/Documents/Programming/ogre/mybuild  -DOGRE_GCC_VISIBILITY -fvisibility=hidden -fvisibility-inlines-hidden -o CMakeFiles/Plugin_ParticleFX.dir/src/OgreParticleFXPlugin.cpp.o -c /Users/USERNAME/Documents/Programming/ogre/PlugIns/ParticleFX/src/OgreParticleFXPlugin.cpp
"/Applications/CMake 2.8-0.app/Contents/bin/cmake" -E cmake_progress_report /Users/USERNAME/Documents/Programming/ogre/mybuild/CMakeFiles 
[ 67%] Building CXX object PlugIns/ParticleFX/CMakeFiles/Plugin_ParticleFX.dir/src/OgrePointEmitter.cpp.o
cd /Users/USERNAME/Documents/Programming/ogre/mybuild/PlugIns/ParticleFX && /usr/bin/c++   -DPlugin_ParticleFX_EXPORTS -DBOOST_ALL_NO_LIB -D_USRDLL -DOGRE_PARTICLEFXPLUGIN_EXPORTS -arch i386 -isysroot /Developer/SDKs/MacOSX10.6.sdk -mmacosx-version-min=10.6 -O2 -g -fPIC -I/Users/USERNAME/Documents/Programming/ogre/OgreMain/include -I/Users/USERNAME/Documents/Programming/ogre/mybuild/include -I/Users/USERNAME/Documents/Programming/ogre/OgreMain/include/OSX -I/Users/USERNAME/Documents/Programming/ogre/Dependencies/include -I/Users/USERNAME/Documents/Programming/ogre/Dependencies/include/OIS -I/Users/USERNAME/Documents/Programming/ogre/Dependencies/Cg.framework/Headers -F/Users/USERNAME/Documents/Programming/ogre/Dependencies -I/System/Library/Frameworks/Carbon.framework/Headers -I/System/Library/Frameworks/Cocoa.framework/Headers -I/opt/local/include/boost-1_35 -I/Users/USERNAME/Documents/Programming/ogre/PlugIns/ParticleFX/include   -msse -pthread -F/Users/USERNAME/Documents/Programming/ogre/mybuild  -DOGRE_GCC_VISIBILITY -fvisibility=hidden -fvisibility-inlines-hidden -o CMakeFiles/Plugin_ParticleFX.dir/src/OgrePointEmitter.cpp.o -c /Users/USERNAME/Documents/Programming/ogre/PlugIns/ParticleFX/src/OgrePointEmitter.cpp
"/Applications/CMake 2.8-0.app/Contents/bin/cmake" -E cmake_progress_report /Users/USERNAME/Documents/Programming/ogre/mybuild/CMakeFiles 72
[ 68%] Building CXX object PlugIns/ParticleFX/CMakeFiles/Plugin_ParticleFX.dir/src/OgreRingEmitter.cpp.o
cd /Users/USERNAME/Documents/Programming/ogre/mybuild/PlugIns/ParticleFX && /usr/bin/c++   -DPlugin_ParticleFX_EXPORTS -DBOOST_ALL_NO_LIB -D_USRDLL -DOGRE_PARTICLEFXPLUGIN_EXPORTS -arch i386 -isysroot /Developer/SDKs/MacOSX10.6.sdk -mmacosx-version-min=10.6 -O2 -g -fPIC -I/Users/USERNAME/Documents/Programming/ogre/OgreMain/include -I/Users/USERNAME/Documents/Programming/ogre/mybuild/include -I/Users/USERNAME/Documents/Programming/ogre/OgreMain/include/OSX -I/Users/USERNAME/Documents/Programming/ogre/Dependencies/include -I/Users/USERNAME/Documents/Programming/ogre/Dependencies/include/OIS -I/Users/USERNAME/Documents/Programming/ogre/Dependencies/Cg.framework/Headers -F/Users/USERNAME/Documents/Programming/ogre/Dependencies -I/System/Library/Frameworks/Carbon.framework/Headers -I/System/Library/Frameworks/Cocoa.framework/Headers -I/opt/local/include/boost-1_35 -I/Users/USERNAME/Documents/Programming/ogre/PlugIns/ParticleFX/include   -msse -pthread -F/Users/USERNAME/Documents/Programming/ogre/mybuild  -DOGRE_GCC_VISIBILITY -fvisibility=hidden -fvisibility-inlines-hidden -o CMakeFiles/Plugin_ParticleFX.dir/src/OgreRingEmitter.cpp.o -c /Users/USERNAME/Documents/Programming/ogre/PlugIns/ParticleFX/src/OgreRingEmitter.cpp
"/Applications/CMake 2.8-0.app/Contents/bin/cmake" -E cmake_progress_report /Users/USERNAME/Documents/Programming/ogre/mybuild/CMakeFiles 
[ 68%] Building CXX object PlugIns/ParticleFX/CMakeFiles/Plugin_ParticleFX.dir/src/OgreRotationAffector.cpp.o
cd /Users/USERNAME/Documents/Programming/ogre/mybuild/PlugIns/ParticleFX && /usr/bin/c++   -DPlugin_ParticleFX_EXPORTS -DBOOST_ALL_NO_LIB -D_USRDLL -DOGRE_PARTICLEFXPLUGIN_EXPORTS -arch i386 -isysroot /Developer/SDKs/MacOSX10.6.sdk -mmacosx-version-min=10.6 -O2 -g -fPIC -I/Users/USERNAME/Documents/Programming/ogre/OgreMain/include -I/Users/USERNAME/Documents/Programming/ogre/mybuild/include -I/Users/USERNAME/Documents/Programming/ogre/OgreMain/include/OSX -I/Users/USERNAME/Documents/Programming/ogre/Dependencies/include -I/Users/USERNAME/Documents/Programming/ogre/Dependencies/include/OIS -I/Users/USERNAME/Documents/Programming/ogre/Dependencies/Cg.framework/Headers -F/Users/USERNAME/Documents/Programming/ogre/Dependencies -I/System/Library/Frameworks/Carbon.framework/Headers -I/System/Library/Frameworks/Cocoa.framework/Headers -I/opt/local/include/boost-1_35 -I/Users/USERNAME/Documents/Programming/ogre/PlugIns/ParticleFX/include   -msse -pthread -F/Users/USERNAME/Documents/Programming/ogre/mybuild  -DOGRE_GCC_VISIBILITY -fvisibility=hidden -fvisibility-inlines-hidden -o CMakeFiles/Plugin_ParticleFX.dir/src/OgreRotationAffector.cpp.o -c /Users/USERNAME/Documents/Programming/ogre/PlugIns/ParticleFX/src/OgreRotationAffector.cpp
"/Applications/CMake 2.8-0.app/Contents/bin/cmake" -E cmake_progress_report /Users/USERNAME/Documents/Programming/ogre/mybuild/CMakeFiles 
[ 68%] Building CXX object PlugIns/ParticleFX/CMakeFiles/Plugin_ParticleFX.dir/src/OgreScaleAffector.cpp.o
cd /Users/USERNAME/Documents/Programming/ogre/mybuild/PlugIns/ParticleFX && /usr/bin/c++   -DPlugin_ParticleFX_EXPORTS -DBOOST_ALL_NO_LIB -D_USRDLL -DOGRE_PARTICLEFXPLUGIN_EXPORTS -arch i386 -isysroot /Developer/SDKs/MacOSX10.6.sdk -mmacosx-version-min=10.6 -O2 -g -fPIC -I/Users/USERNAME/Documents/Programming/ogre/OgreMain/include -I/Users/USERNAME/Documents/Programming/ogre/mybuild/include -I/Users/USERNAME/Documents/Programming/ogre/OgreMain/include/OSX -I/Users/USERNAME/Documents/Programming/ogre/Dependencies/include -I/Users/USERNAME/Documents/Programming/ogre/Dependencies/include/OIS -I/Users/USERNAME/Documents/Programming/ogre/Dependencies/Cg.framework/Headers -F/Users/USERNAME/Documents/Programming/ogre/Dependencies -I/System/Library/Frameworks/Carbon.framework/Headers -I/System/Library/Frameworks/Cocoa.framework/Headers -I/opt/local/include/boost-1_35 -I/Users/USERNAME/Documents/Programming/ogre/PlugIns/ParticleFX/include   -msse -pthread -F/Users/USERNAME/Documents/Programming/ogre/mybuild  -DOGRE_GCC_VISIBILITY -fvisibility=hidden -fvisibility-inlines-hidden -o CMakeFiles/Plugin_ParticleFX.dir/src/OgreScaleAffector.cpp.o -c /Users/USERNAME/Documents/Programming/ogre/PlugIns/ParticleFX/src/OgreScaleAffector.cpp
Linking CXX shared library ../../lib/Plugin_ParticleFX.dylib
cd /Users/USERNAME/Documents/Programming/ogre/mybuild/PlugIns/ParticleFX && "/Applications/CMake 2.8-0.app/Contents/bin/cmake" -E cmake_link_script CMakeFiles/Plugin_ParticleFX.dir/link.txt --verbose=1
/usr/bin/c++   -arch i386 -isysroot /Developer/SDKs/MacOSX10.6.sdk -mmacosx-version-min=10.6 -O2 -g -dynamiclib -headerpad_max_install_names  -o ../../lib/Plugin_ParticleFX.dylib -install_name /Users/USERNAME/Documents/Programming/ogre/mybuild/lib/Plugin_ParticleFX.dylib CMakeFiles/Plugin_ParticleFX.dir/src/OgreAreaEmitter.cpp.o CMakeFiles/Plugin_ParticleFX.dir/src/OgreBoxEmitter.cpp.o CMakeFiles/Plugin_ParticleFX.dir/src/OgreColourFaderAffector2.cpp.o CMakeFiles/Plugin_ParticleFX.dir/src/OgreColourFaderAffector.cpp.o CMakeFiles/Plugin_ParticleFX.dir/src/OgreColourImageAffector.cpp.o CMakeFiles/Plugin_ParticleFX.dir/src/OgreColourInterpolatorAffector.cpp.o CMakeFiles/Plugin_ParticleFX.dir/src/OgreCylinderEmitter.cpp.o CMakeFiles/Plugin_ParticleFX.dir/src/OgreDeflectorPlaneAffector.cpp.o CMakeFiles/Plugin_ParticleFX.dir/src/OgreDirectionRandomiserAffector.cpp.o CMakeFiles/Plugin_ParticleFX.dir/src/OgreEllipsoidEmitter.cpp.o CMakeFiles/Plugin_ParticleFX.dir/src/OgreHollowEllipsoidEmitter.cpp.o CMakeFiles/Plugin_ParticleFX.dir/src/OgreLinearForceAffector.cpp.o CMakeFiles/Plugin_ParticleFX.dir/src/OgreParticleFX.cpp.o CMakeFiles/Plugin_ParticleFX.dir/src/OgreParticleFXPlugin.cpp.o CMakeFiles/Plugin_ParticleFX.dir/src/OgrePointEmitter.cpp.o CMakeFiles/Plugin_ParticleFX.dir/src/OgreRingEmitter.cpp.o CMakeFiles/Plugin_ParticleFX.dir/src/OgreRotationAffector.cpp.o CMakeFiles/Plugin_ParticleFX.dir/src/OgreScaleAffector.cpp.o -L/opt/local/lib ../../lib/Ogre.framework/Versions/1.7.0/Ogre /usr/lib/libz.dylib ../../../Dependencies/lib/release/libzzip.a ../../../Dependencies/lib/release/libfreeimage.a ../../../Dependencies/lib/release/libfreetype.a -framework Carbon -framework Cocoa /opt/local/lib/libboost_thread-mt-1_35.dylib /opt/local/lib/libboost_date_time-mt-1_35.dylib 
"/Applications/CMake 2.8-0.app/Contents/bin/cmake" -E cmake_progress_report /Users/USERNAME/Documents/Programming/ogre/mybuild/CMakeFiles  69 70 71 72
[ 68%] Built target Plugin_ParticleFX
Mancobian
Gnoblar
Posts: 5
Joined: Tue Dec 01, 2009 4:14 pm
Location: Georgia (USA)

Re: CMake falls into infinite loop when building trunk on Mac

Post by Mancobian »

After a little more research, I'm confident that the previous solution should work with one minor amendment.

Rather than moving the entire block of code that detects the iPhone/Apple platforms and sets the compiler accordingly, I've excised just the conditional setting of compilers to place it just before the project(...) command is issued. The root CMakeLists.txt should now look like this:

Code: Select all

#-------------------------------------------------------------------
# This file is part of the CMake build system for OGRE
#     (Object-oriented Graphics Rendering Engine)
# For the latest info, see http://www.ogre3d.org/
#
# The contents of this file are placed in the public domain. Feel
# free to make use of it in any way you like.
#-------------------------------------------------------------------

######################################################################
# OGRE BUILD SYSTEM
# Welcome to the CMake build system for OGRE.
# This is the main file where we prepare the general build environment
# and provide build configuration options.
######################################################################

cmake_minimum_required(VERSION 2.6)
set(CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS TRUE)
cmake_policy(SET CMP0003 NEW)

# Assign compiler for Mac OS X-based systems
# NOTE: This logic is order-dependent and must occur here because the 
# configuration phase of CMake projects will fall into an infinite loop
# if compiler assignments are modified after issuing a project(...) command.
#
if (OGRE_BUILD_PLATFORM_IPHONE)
  # Force gcc <= 4.2 on iPhone
  include(CMakeForceCompiler)
  CMAKE_FORCE_C_COMPILER(gcc-4.2 GNU)
  CMAKE_FORCE_CXX_COMPILER(gcc-4.2 GNU)
elseif (APPLE AND NOT OGRE_BUILD_PLATFORM_IPHONE)
  # Force gcc <= 4.0 on Mac OS X because 4.2 is not supported prior to Mac OS X 10.5
  include(CMakeForceCompiler)
  CMAKE_FORCE_C_COMPILER(gcc-4.0 GNU)
  CMAKE_FORCE_CXX_COMPILER(gcc-4.0 GNU)
endif ()

project(OGRE)

# Include necessary submodules
set(CMAKE_MODULE_PATH 
  "${OGRE_SOURCE_DIR}/CMake"
  "${OGRE_SOURCE_DIR}/CMake/Utils" 
  "${OGRE_SOURCE_DIR}/CMake/Packages"
)
include(CMakeDependentOption)
include(CheckCXXCompilerFlag)
include(MacroLogFeature)
include(OgreConfigTargets)
include(PreprocessorUtils)
set(OGRE_TEMPLATES_DIR "${OGRE_SOURCE_DIR}/CMake/Templates")
set(OGRE_WORK_DIR ${OGRE_BINARY_DIR})


#####################################################################
# Set up the basic build environment
#####################################################################

if (CMAKE_BUILD_TYPE STREQUAL "")
  # CMake defaults to leaving CMAKE_BUILD_TYPE empty. This screws up
  # differentiation between debug and release builds.
  set(CMAKE_BUILD_TYPE "RelWithDebInfo" CACHE STRING "Choose the type of build, options are: None (CMAKE_CXX_FLAGS or CMAKE_C_FLAGS used) Debug Release RelWithDebInfo MinSizeRel." FORCE)
endif ()

# determine Ogre version numbers
include(OgreGetVersion)
ogre_get_version(${OGRE_SOURCE_DIR}/OgreMain/include/OgrePrerequisites.h)
message(STATUS "Configuring OGRE ${OGRE_VERSION}")

if (NOT APPLE)
  # Create debug libraries with _d postfix
  set(CMAKE_DEBUG_POSTFIX "_d")
endif ()

# Set compiler specific build flags
if (CMAKE_COMPILER_IS_GNUCXX)
  check_cxx_compiler_flag(-msse OGRE_GCC_HAS_SSE)
  if (OGRE_GCC_HAS_SSE)
    add_definitions(-msse)
  endif ()
endif ()
if (MSVC)
  add_definitions(/fp:fast)
endif ()

if (CMAKE_COMPILER_IS_GNUCXX)
  # Test for GCC visibility
  include(CheckCXXCompilerFlag)
  check_cxx_compiler_flag(-fvisibility=hidden OGRE_GCC_VISIBILITY)
  if (OGRE_GCC_VISIBILITY)
    # determine gcc version
    execute_process(COMMAND ${CMAKE_CXX_COMPILER} -dumpversion 
      OUTPUT_VARIABLE OGRE_GCC_VERSION)
    message(STATUS "Detected g++ ${OGRE_GCC_VERSION}")
    message(STATUS "Enabling GCC visibility flags")
    set(OGRE_GCC_VISIBILITY_FLAGS "-DOGRE_GCC_VISIBILITY -fvisibility=hidden")
  
    # check if we can safely add -fvisibility-inlines-hidden
    string(TOLOWER "${CMAKE_BUILD_TYPE}" OGRE_BUILD_TYPE)
    if (OGRE_BUILD_TYPE STREQUAL "debug" AND OGRE_GCC_VERSION VERSION_LESS "4.2")
      message(STATUS "Skipping -fvisibility-inlines-hidden due to possible bug in g++ < 4.2")
    else ()
      set(OGRE_GCC_VISIBILITY_FLAGS "${OGRE_GCC_VISIBILITY_FLAGS} -fvisibility-inlines-hidden")
    endif ()
  endif (OGRE_GCC_VISIBILITY)
  
  # Fix x64 issues on Linux
  if("${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "x86_64" AND NOT APPLE)
    add_definitions(-fPIC)
  endif()  
endif (CMAKE_COMPILER_IS_GNUCXX)

# determine system endianess
include(TestBigEndian)
test_big_endian(OGRE_TEST_BIG_ENDIAN)

# Add OgreMain include path
include_directories("${OGRE_SOURCE_DIR}/OgreMain/include")
include_directories("${OGRE_BINARY_DIR}/include")
if (APPLE)
  if (OGRE_BUILD_PLATFORM_IPHONE)
    include_directories("${OGRE_SOURCE_DIR}/OgreMain/include/iPhone")
  else ()
    include_directories("${OGRE_SOURCE_DIR}/OgreMain/include/OSX")
  endif ()
endif (APPLE)

# Find dependencies
include(Dependencies)
# definitions for samples
set(OGRE_LIBRARIES OgreMain) 
set(OGRE_Paging_LIBRARIES OgrePaging)
set(OGRE_Terrain_LIBRARIES OgreTerrain)
set(OGRE_Plugin_PCZSceneManager_LIBRARIES Plugin_PCZSceneManager)
set(OGRE_Plugin_OctreeZone_LIBRARIES Plugin_OctreeZone)

# Specify build paths
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY "${OGRE_BINARY_DIR}/lib")
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${OGRE_BINARY_DIR}/lib")
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${OGRE_BINARY_DIR}/bin")
if (WIN32 OR APPLE)
  if (CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
    # We don't want to install in default system location, install is really for the SDK, so call it that
    set(CMAKE_INSTALL_PREFIX
	  "${OGRE_BINARY_DIR}/sdk" CACHE PATH "OGRE install prefix" FORCE
    )
  endif (CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
endif(WIN32 OR APPLE)

# Set up iPhone overrides.
if (OGRE_BUILD_PLATFORM_IPHONE)
  include_directories("${OGRE_SOURCE_DIR}/OgreMain/include/iPhone")

  # Set build variables
  set(CMAKE_OSX_SYSROOT iphoneos3.0)
  set(CMAKE_OSX_DEPLOYMENT_TARGET "")
  set(CMAKE_OSX_ARCHITECTURES "$(ARCHS_UNIVERSAL_IPHONE_OS)")
  set(CMAKE_EXE_LINKER_FLAGS "-framework Foundation -framework CoreGraphics -framework QuartzCore -framework UIKit ${OGRE_SOURCE_DIR}/iPhoneDependencies/lib/release/libboost_date_time.a ${OGRE_SOURCE_DIR}/iPhoneDependencies/lib/release/libboost_thread.a")
  set(XCODE_ATTRIBUTE_SDKROOT iphoneos3.0)
  set(OGRE_BUILD_RENDERSYSTEM_GLES TRUE CACHE BOOL "Forcing OpenGL ES RenderSystem for iPhone" FORCE)
  set(OGRE_STATIC TRUE CACHE BOOL "Forcing static build for iPhone" FORCE)
  set(OGRE_SET_USE_BOOST TRUE CACHE BOOL "Forcing use of Boost libraries for iPhone" FORCE)
  set(OGRE_USE_BOOST TRUE CACHE BOOL "Forcing use of Boost libraries for iPhone" FORCE)
  set(Boost_FOUND TRUE CACHE BOOL "Forcing use of Boost libraries for iPhone" FORCE)
  set(MACOSX_BUNDLE_GUI_IDENTIFIER "com.yourcompany.\${PRODUCT_NAME:rfc1034identifier}")
  set(OGRE_CONFIG_DISABLE_VIEWPORT_ORIENTATIONMODE FALSE CACHE BOOL "Forcing viewport orientation support for iPhone" FORCE)

  add_definitions(-fno-regmove)
  remove_definitions(-msse)
elseif (APPLE AND NOT OGRE_BUILD_PLATFORM_IPHONE)
  # Set 10.4 as the base SDK by default
  set(XCODE_ATTRIBUTE_SDKROOT macosx10.4)

  # 10.6 sets x86_64 as the default architecture.
  # Because Carbon isn't supported on 64-bit and we still need it, force the architectures to ppc and i386
  if(CMAKE_OSX_DEPLOYMENT_TARGET STREQUAL "10.6")
	  set(CMAKE_OSX_ARCHITECTURES "ppc i386")
  endif()

  # Make sure that the OpenGL render system is selected for non-iPhone Apple builds
  set(OGRE_BUILD_RENDERSYSTEM_GL TRUE)
  set(OGRE_BUILD_RENDERSYSTEM_GLES FALSE)
endif ()

# Enable the PVRTC codec if OpenGL ES is being built
if(OGRE_BUILD_RENDERSYSTEM_GLES)
  set(OGRE_CONFIG_DISABLE_PVRTC FALSE CACHE BOOL "Forcing PVRTC codec for OpenGL ES" FORCE)
endif()

######################################################################
# Provide user options to customise the build process
######################################################################

# Customise what to build
option(OGRE_STATIC "Static build" FALSE)
cmake_dependent_option(OGRE_BUILD_RENDERSYSTEM_D3D9 "Build Direct3D9 RenderSystem" TRUE "WIN32;DirectX_FOUND" FALSE)
cmake_dependent_option(OGRE_BUILD_RENDERSYSTEM_D3D10 "Build Direct3D10 RenderSystem" TRUE "WIN32;DirectX_D3D10_FOUND" FALSE)
cmake_dependent_option(OGRE_BUILD_RENDERSYSTEM_D3D11 "Build Direct3D11 RenderSystem" TRUE "WIN32;DirectX_D3D11_FOUND" FALSE)
cmake_dependent_option(OGRE_BUILD_RENDERSYSTEM_GL "Build OpenGL RenderSystem" TRUE "OPENGL_FOUND;NOT OGRE_BUILD_PLATFORM_IPHONE" FALSE)
cmake_dependent_option(OGRE_BUILD_RENDERSYSTEM_GLES "Build OpenGL ES RenderSystem" FALSE "OPENGLES_FOUND" FALSE)
cmake_dependent_option(OGRE_BUILD_PLATFORM_IPHONE "Build Ogre for iPhone OS" FALSE "iPhoneSDK_FOUND;OPENGLES_FOUND" FALSE)
option(OGRE_BUILD_PLUGIN_BSP "Build BSP SceneManager plugin" TRUE)
option(OGRE_BUILD_PLUGIN_OCTREE "Build Octree SceneManager plugin" TRUE)
option(OGRE_BUILD_PLUGIN_PCZ "Build PCZ SceneManager plugin" TRUE)
option(OGRE_BUILD_PLUGIN_PFX "Build ParticleFX plugin" TRUE)
option(OGRE_BUILD_COMPONENT_PAGING "Build Paging component" TRUE)
option(OGRE_BUILD_COMPONENT_TERRAIN "Build Terrain component" TRUE)
cmake_dependent_option(OGRE_BUILD_COMPONENT_PROPERTY "Build Property component" TRUE "Boost_FOUND;NOT OGRE_BUILD_PLATFORM_IPHONE" FALSE)
cmake_dependent_option(OGRE_BUILD_PLUGIN_CG "Build Cg plugin" TRUE "Cg_FOUND;NOT OGRE_BUILD_PLATFORM_IPHONE" FALSE)
option(OGRE_BUILD_COMPONENT_RTSHADERSYSTEM "Build RTShader System component" TRUE)
option(OGRE_BUILD_RTSHADERSYSTEM_CORE_SHADERS "Build RTShader System FFP core shaders" TRUE)
option(OGRE_BUILD_RTSHADERSYSTEM_EXT_SHADERS "Build RTShader System extensions shaders" TRUE)

option(OGRE_BUILD_SAMPLES "Build Ogre demos" TRUE)
cmake_dependent_option(OGRE_BUILD_TOOLS "Build the command-line tools" TRUE "NOT OGRE_BUILD_PLATFORM_IPHONE" FALSE)
option(OGRE_BUILD_TESTS "Build the unit tests & PlayPen" FALSE)
# Configure the build
#option(OGRE_CONFIG_PROFILING "Enable Ogre profiling code" FALSE)
#set(OGRE_CONFIG_ASSERTMODE 0 CACHE STRING 
#"Set Ogre assertion mode. Possible values:
#  0 - Regular asserts in debug, none in release
#  1 - Regular asserts in debug, exceptions in release
#  2 - Exceptions in debug and release"
#)
option(OGRE_CONFIG_DOUBLE "Use doubles instead of floats in Ogre" FALSE)
set(OGRE_CONFIG_ALLOCATOR 4 CACHE STRING
"Specify the memory allocator to use. Possible values:
  1 - Standard allocator
  2 - nedmalloc
  3 - User-provided allocator
  4 - nedmalloc with pooling"
)
option(OGRE_CONFIG_CONTAINERS_USE_CUSTOM_ALLOCATOR "STL containers in Ogre use the custom allocator" TRUE)
option(OGRE_CONFIG_STRING_USE_CUSTOM_ALLOCATOR "Ogre String uses the custom allocator" FALSE)
option(OGRE_CONFIG_MEMTRACK_DEBUG "Enable Ogre's memory tracker in debug mode" FALSE)
option(OGRE_CONFIG_MEMTRACK_RELEASE "Enable Ogre's memory tracker in release mode" FALSE)
# determine threading options
include(PrepareThreadingOptions)
cmake_dependent_option(OGRE_CONFIG_DISABLE_FREEIMAGE "Don't build FreeImage codec. If you use this option, you need to provide your own image handling codecs." FALSE "FreeImage_FOUND" TRUE)
option(OGRE_CONFIG_DISABLE_DDS "Don't build DDS codec." FALSE)
option(OGRE_CONFIG_DISABLE_PVRTC "Don't build PVRTC codec." TRUE)
cmake_dependent_option(OGRE_CONFIG_DISABLE_ZIP "Don't build ZIP archive support. If you use this option, you cannot use ZIP archives resource locations. The samples won't work." FALSE "ZZip_FOUND" TRUE)
option(OGRE_CONFIG_DISABLE_VIEWPORT_ORIENTATIONMODE "Don't include Viewport orientation mode support." TRUE)
option(OGRE_CONFIG_NEW_COMPILERS "Use the new script compilers." TRUE)
cmake_dependent_option(OGRE_USE_BOOST "Use Boost extensions" TRUE "Boost_FOUND" FALSE)
# Customise what to install
option(OGRE_INSTALL_PLUGINS_HEADERS "Install header files for Ogre plugins." FALSE)
option(OGRE_INSTALL_SAMPLES "Install Ogre demos." FALSE)
option(OGRE_INSTALL_TOOLS "Install Ogre tools." TRUE)
option(OGRE_INSTALL_DOCS "Install documentation." FALSE)
option(OGRE_INSTALL_MEDIA "Install media files." FALSE)
option(OGRE_INSTALL_SAMPLES_SOURCE "Install samples source files." FALSE)
cmake_dependent_option(OGRE_INSTALL_PDB "Install debug pdb files" FALSE "MSVC" FALSE)
option(OGRE_FULL_RPATH "Build executables with the full required RPATH to run from their install location." FALSE)
option(OGRE_STANDALONE_BUILD "Generate build files that do not reference CMake (e.g. source distro)" FALSE)

###################################################################
# configure global build settings based on selected build options
###################################################################
include(ConfigureBuild)


##################################################################
# Now setup targets
##################################################################

# install resource files
include(InstallResources)

# Setup OgreMain project
add_subdirectory(OgreMain)

# Setup RenderSystems
add_subdirectory(RenderSystems)

# Setup Plugins
add_subdirectory(PlugIns)

# Setup Components
add_subdirectory(Components)

# Setup samples
add_subdirectory(Samples) 

# Setup command-line tools
if (OGRE_BUILD_TOOLS)
  add_subdirectory(Tools)
endif ()

# Setup tests
if (OGRE_BUILD_TESTS)
  add_subdirectory(Tests)
endif ()

# Install documentation
add_subdirectory(Docs)

# Install media files
if (OGRE_INSTALL_MEDIA)
  add_subdirectory(Samples/Media)
endif ()

# Install CMake modules
add_subdirectory(CMake)

# Provide CPack packaging target
include(Packaging)


# Show feature summary
include(FeatureSummary)
I hope this helps!
Rivers
Gnoblar
Posts: 15
Joined: Fri Jan 01, 2010 1:52 am

Re: CMake falls into infinite loop when building trunk on Mac

Post by Rivers »

Yes Mancobian it helps a lot!!

Thanks to your very timely post I generated the Makefiles for the standard build.

Eight short cafffeines later I solved all my earlier problems building 1.7 on Snow Leopard! (Well, now when I type "make" with the generated Makefiles I get :

[ 0%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgreAlignedAllocator.cpp.o
powerpc-apple-darwin10-g++-4.2.1: i386: No such file or directory
make[2]: *** [OgreMain/CMakeFiles/OgreMain.dir/src/OgreAlignedAllocator.cpp.o] Error 1

... next nut to crack.

Cheers!
User avatar
Calder
Greenskin
Posts: 124
Joined: Mon Mar 02, 2009 11:04 pm
x 3

Re: CMake falls into infinite loop when building trunk on Mac

Post by Calder »

Brilliant, thanks Mancobian, it worked like a charm! Can this be committed to SVN masterfalcon?
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: CMake falls into infinite loop when building trunk on Mac

Post by masterfalcon »

It really would be best if it were submitted to the patch tracker. Some of those CMake files have changed a lot in the last month and I'm not seeing the changes at a quick glance.
User avatar
Calder
Greenskin
Posts: 124
Joined: Mon Mar 02, 2009 11:04 pm
x 3

Re: CMake falls into infinite loop when building trunk on Mac

Post by Calder »

Forget it, I spoke prematurely. The linker just went insane. Every single symbol defined by Ogre wasn't found...
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: CMake falls into infinite loop when building trunk on Mac

Post by masterfalcon »

I also see the same problem as Rivers.

[ 0%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgreAlignedAllocator.cpp.o
powerpc-apple-darwin10-g++-4.2.1: i386: No such file or directory
make[2]: *** [OgreMain/CMakeFiles/OgreMain.dir/src/OgreAlignedAllocator.cpp.o] Error 1

How did you guys overcome this?
Post Reply