CMake build system for Cthugha *looking for testers*

Discussion area about developing or extending OGRE, adding plugins for it or building applications on it. No newbie questions please, use the Help forum for that.
Locked
User avatar
jacmoe
OGRE Retired Moderator
OGRE Retired Moderator
Posts: 20570
Joined: Thu Jan 22, 2004 10:13 am
Location: Denmark
Contact:

Re: CMake build system for Cthugha *looking for testers*

Post by jacmoe » Thu Sep 17, 2009 5:24 pm

boyamer wrote:Well yes,i've installed Code::blocks with MingW?
Or i should install them separated?
There should be a CMake error log in your build directory - try and trawl through it looking for clues.
0 x
/* Less noise. More signal. */
Ogitor Scenebuilder - powered by Ogre, presented by Qt, fueled by Passion.
OgreAddons - the Ogre code suppository.

User avatar
jacmoe
OGRE Retired Moderator
OGRE Retired Moderator
Posts: 20570
Joined: Thu Jan 22, 2004 10:13 am
Location: Denmark
Contact:

Re: CMake build system for Cthugha *looking for testers*

Post by jacmoe » Thu Sep 17, 2009 5:31 pm

Is MinGW in your path?
0 x
/* Less noise. More signal. */
Ogitor Scenebuilder - powered by Ogre, presented by Qt, fueled by Passion.
OgreAddons - the Ogre code suppository.

User avatar
PsyCowboy
Halfling
Posts: 74
Joined: Fri Apr 24, 2009 8:01 am

Re: CMake build system for Cthugha *looking for testers*

Post by PsyCowboy » Tue Sep 29, 2009 3:53 pm

I don't know if I'm in the right place to post such kind of message but I have a suggestion for the developpers of the new cmake system, with my user point of view. It's about the dependencies. It would be very helpful to be able to define clearly how to link with the dependencies mainly in term of location of the library. It would be very helpful for example in order to define if one want to do a static or a dynamic link. It'd also allow to simplify the Ogre's building under windows using Msys. I mean, I'd prefer define something as:

Code: Select all

OGRE_CONFIG_FREEIMAGE_LIBS=/usr/lib/libfreeimage.a
or

Code: Select all

OGRE_CONFIG_FREEIMAGE_LIBS=-L/usr/lib -lfreeimage
rather than simply:

Code: Select all

OGRE_CONFIG_DISABLE_FREEIMAGE=FALSE
Does this make sense for someone?
0 x

CABAListic
OGRE Retired Team Member
OGRE Retired Team Member
Posts: 2903
Joined: Thu Jan 18, 2007 2:48 pm
Contact:

Re: CMake build system for Cthugha *looking for testers*

Post by CABAListic » Tue Sep 29, 2009 8:43 pm

You're mixing some things up. OGRE_CONFIG_DISABLE_FREEIMAGE is required to disable the corresponding pieces of code inside the Ogre source. The actual linking is controlled by the FREEIMAGE_* variables, which you can access and modify if you select the advanced (or grouped) view in the cmake gui.
0 x

User avatar
PsyCowboy
Halfling
Posts: 74
Joined: Fri Apr 24, 2009 8:01 am

Re: CMake build system for Cthugha *looking for testers*

Post by PsyCowboy » Wed Sep 30, 2009 8:11 am

great, I'm relived :wink:
0 x

reptor
Ogre Magi
Posts: 1120
Joined: Wed Nov 15, 2006 7:41 pm
Location: Finland

Re: CMake build system for Cthugha *looking for testers*

Post by reptor » Wed Oct 07, 2009 1:58 am

I get errors when I try to use cmake with ogre trunk r9147. The operating system is Debian GNU/Linux 5 (lenny) with latest updates.

Some information about the system:
$ gcc -v
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 4.3.2-1.1' --with-bugurl=file:///usr/share/doc/gcc-4.3/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --with-gxx-include-dir=/usr/include/c++/4.3 --program-suffix=-4.3 --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --enable-mpfr --enable-targets=all --enable-cld --enable-checking=release --build=i486-linux-gnu --host=i486-linux-gnu --target=i486-linux-gnu
Thread model: posix
gcc version 4.3.2 (Debian 4.3.2-1.1)
$ cmake --version
cmake version 2.6-patch 0


I have downloaded the ogre trunk r9147 by using svn into a folder called ogre-trunk. This is what I do after that:

$ cd ogre-trunk
$ mkdir build
$ cd build
$ cmake ..



OK, now the cmake starts its work. But there are some errors:

<snip>


-- Detected g++ 4.3.2

-- Enabling GCC visibility flags
CMake Error at CMakeLists.txt:79 (if):
if had incorrect arguments: OGRE_BUILD_TYPE STREQUAL "debug" AND
OGRE_GCC_VERSION VERSION_LESS "4.2" (Unknown arguments specified).


-- Skipping -fvisibility-inlines-hidden due to possible bug in g++ < 4.2
CMake Error at CMakeLists.txt:81 (else):
else An ELSE command was found outside of a proper IF ENDIF structure. Or
its arguments did not match the opening IF command.


CMake Error at CMakeLists.txt:83 (endif):
endif An ENDIF command was found outside of a proper IF ENDIF structure.
Or its arguments did not match the opening IF command.


<snip>


CMake Error at CMake/InstallResources.cmake:35 (if):
if had incorrect arguments: CMAKE_SYSTEM_VERSION VERSION_LESS "6.0"
(Unknown arguments specified).
Call Stack (most recent call first):
CMakeLists.txt:230 (include)


CMake Error at CMake/InstallResources.cmake:37 (endif):
endif An ENDIF command was found outside of a proper IF ENDIF structure.
Or its arguments did not match the opening IF command.
Call Stack (most recent call first):
CMakeLists.txt:230 (include)


<snip>


CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
Cg_INCLUDE_DIRS (ADVANCED)
used as include directory in directory /home/libs/ogre-trunk
used as include directory in directory /home/libs/ogre-trunk/OgreMain
used as include directory in directory /home/libs/ogre-trunk/RenderSystems
used as include directory in directory /home/libs/ogre-trunk/RenderSystems/GL
used as include directory in directory /home/libs/ogre-trunk/PlugIns
used as include directory in directory /home/libs/ogre-trunk/PlugIns/OctreeSceneManager
used as include directory in directory /home/libs/ogre-trunk/PlugIns/BSPSceneManager
used as include directory in directory /home/libs/ogre-trunk/PlugIns/ParticleFX
used as include directory in directory /home/libs/ogre-trunk/PlugIns/PCZSceneManager
used as include directory in directory /home/libs/ogre-trunk/PlugIns/OctreeZone
used as include directory in directory /home/libs/ogre-trunk/Components
used as include directory in directory /home/libs/ogre-trunk/Components/Paging
used as include directory in directory /home/libs/ogre-trunk/Components/Property
used as include directory in directory /home/libs/ogre-trunk/Components/Terrain
used as include directory in directory /home/libs/ogre-trunk/Samples
used as include directory in directory /home/libs/ogre-trunk/Samples/BezierPatch
used as include directory in directory /home/libs/ogre-trunk/Samples/BSP
used as include directory in directory /home/libs/ogre-trunk/Samples/CameraTrack
used as include directory in directory /home/libs/ogre-trunk/Samples/CubeMapping
used as include directory in directory /home/libs/ogre-trunk/Samples/DeferredShading
used as include directory in directory /home/libs/ogre-trunk/Samples/DynTex
used as include directory in directory /home/libs/ogre-trunk/Samples/EnvMapping
used as include directory in directory /home/libs/ogre-trunk/Samples/Grass
used as include directory in directory /home/libs/ogre-trunk/Samples/Lighting
used as include directory in directory /home/libs/ogre-trunk/Samples/Paging
used as include directory in directory /home/libs/ogre-trunk/Samples/ParticleFX
used as include directory in directory /home/libs/ogre-trunk/Samples/PCZTestApp
used as include directory in directory /home/libs/ogre-trunk/Samples/RenderToTexture
used as include directory in directory /home/libs/ogre-trunk/Samples/SkeletalAnimation
used as include directory in directory /home/libs/ogre-trunk/Samples/SkyBox
used as include directory in directory /home/libs/ogre-trunk/Samples/SkyDome
used as include directory in directory /home/libs/ogre-trunk/Samples/SkyPlane
used as include directory in directory /home/libs/ogre-trunk/Samples/Smoke
used as include directory in directory /home/libs/ogre-trunk/Samples/Terrain
used as include directory in directory /home/libs/ogre-trunk/Samples/TextureFX
used as include directory in directory /home/libs/ogre-trunk/Samples/Transpacency
used as include directory in directory /home/libs/ogre-trunk/Samples/CelShading
used as include directory in directory /home/libs/ogre-trunk/Samples/Dot3Bump
used as include directory in directory /home/libs/ogre-trunk/Samples/Fresnel
used as include directory in directory /home/libs/ogre-trunk/Samples/Isosurf
used as include directory in directory /home/libs/ogre-trunk/Samples/ParticleGS
used as include directory in directory /home/libs/ogre-trunk/Samples/VolumeTex
used as include directory in directory /home/libs/ogre-trunk/Samples/Water
used as include directory in directory /home/libs/ogre-trunk/Tools
used as include directory in directory /home/libs/ogre-trunk/Tools/XMLConverter
used as include directory in directory /home/libs/ogre-trunk/Tools/MeshUpgrader
used as include directory in directory /home/libs/ogre-trunk/Docs
used as include directory in directory /home/libs/ogre-trunk/CMake

-- Configuring done
As you can see, there are quite many errors. If I try to do the ccmake .. as instructed in the BuildWithCMake.txt file, it will give some errors when I press 'c'. I then press 'e' to exit Help. After that pressing 'g' has apparently no effect at all. And when I quit ccmake I notice there are no makefiles. So obviously this is pretty much a complete failure as I cannot compile Ogre3D and that is one of the most horrible things I can imagine :)
0 x

User avatar
jacmoe
OGRE Retired Moderator
OGRE Retired Moderator
Posts: 20570
Joined: Thu Jan 22, 2004 10:13 am
Location: Denmark
Contact:

Re: CMake build system for Cthugha *looking for testers*

Post by jacmoe » Wed Oct 07, 2009 2:29 am

Maybe I'm wrong, but I think you need CMake 2.6.4 :)
0 x
/* Less noise. More signal. */
Ogitor Scenebuilder - powered by Ogre, presented by Qt, fueled by Passion.
OgreAddons - the Ogre code suppository.

CABAListic
OGRE Retired Team Member
OGRE Retired Team Member
Posts: 2903
Joined: Thu Jan 18, 2007 2:48 pm
Contact:

Re: CMake build system for Cthugha *looking for testers*

Post by CABAListic » Wed Oct 07, 2009 10:31 am

It appears as if your version of cmake does not understand VERSION_LESS, or at least that's my guess. So yes, upgrading the cmake version couldn't hurt. I know that cmake 2.6.2 and anything above works fine.
0 x

reptor
Ogre Magi
Posts: 1120
Joined: Wed Nov 15, 2006 7:41 pm
Location: Finland

Re: CMake build system for Cthugha *looking for testers*

Post by reptor » Wed Oct 07, 2009 2:32 pm

But, but, it's the cmake that comes with Debian Lenny. Not new-enough, you say? Oh well, I will try to use a newer one, then :)

Fingers crossed it will work, because it's a bit of a hassle... need to remove the Debian version of cmake and compile it from source... not going to start mixing Debian versions.
0 x

reptor
Ogre Magi
Posts: 1120
Joined: Wed Nov 15, 2006 7:41 pm
Location: Finland

Re: CMake build system for Cthugha *looking for testers*

Post by reptor » Wed Oct 07, 2009 3:56 pm

I have cmake 2.6.4 installed now.

It still fails:

$ cmake ..

Full output:

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

-- 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'
--   package 'zzip-zlib-config' not found
-- Found ZLIB: optimized;/usr/lib/libz.so;debug;/usr/lib/libz.so
-- Looking for ZZip...
-- checking for module 'zziplib'
--   package 'zziplib' not found
-- Could not locate ZZip
-- Looking for FreeImage...
-- checking for module 'freeimage'
--   package 'freeimage' not found
-- Could not locate FreeImage
-- Looking for FREETYPE...
-- checking for module 'freetype2'
--   found freetype2, version 9.20.3
-- Found FREETYPE: optimized;/usr/local/lib/libfreetype.a;debug;/usr/local/lib/libfreetype.a
-- Looking for XOpenDisplay in /usr/lib/libX11.so;/usr/lib/libXext.so
-- Looking for XOpenDisplay in /usr/lib/libX11.so;/usr/lib/libXext.so - 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/lib/libX11.so
-- Looking for POCO...
-- checking for module 'POCO'
--   package 'POCO' not found
-- Could not locate POCO
-- Looking for TBB...
-- Could not locate TBB
-- Looking for CEGUI...
-- CEGUI_PREFIX_PATH changed.
-- checking for module 'CEGUI'
--   package 'CEGUI' not found
-- Could not locate CEGUI
-- Looking for OIS...
-- OIS_PREFIX_PATH changed.
-- checking for module 'OIS'
--   found OIS, version 1.2.0
-- Found OIS: optimized;/usr/local/lib/libOIS.a;debug;/usr/local/lib/libOIS.a
-- Found Doxygen: /usr/bin/doxygen
-- 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
+ freetype
+ X11
+ Xt
+ Xaw
+ OpenGL
+ boost
+ boost-thread
+ boost-date_time
+ OIS
+ Doxygen
-----------------------------------------------------------------------------
-- The following OPTIONAL packages could NOT be located on your system.
-- Consider installing them to enable more features from this software.
+ zziplib: Extract data from zip archives <http://zziplib.sourceforge.net>
+ freeimage: Support for commonly used graphics image formats <http://freeimage.sourceforge.net>
+ OpenGL ES: Support for the OpenGL ES 1.x render system <http://www.khronos.org/opengles/>
+ cg: C for graphics shader language <http://developer.nvidia.com/object/cg_toolkit.html>
+ POCO: POCO framework <http://pocoproject.org/>
+ tbb: Threading Building Blocks <http://www.threadingbuildingblocks.org/>
+ CEGUI: GUI system used for some of the samples <http://www.cegui.org.uk>
+ CppUnit: Library for performing unit tests <http://cppunit.sourceforge.net>
-----------------------------------------------------------------------------

-- Could not find dependency: CEGUI
-- Skipping GUI samples build
--
----------------------------------------------------------------------------
  FEATURE SUMMARY
----------------------------------------------------------------------------

Building components:
  + Paging
  + Property
  + Terrain
Building plugins:
  + BSP scene manager
  + Octree scene manager
  + Portal connected zone scene manager
  + Particle FX
Building rendersystems:
  + OpenGL
Building executables:
  + Samples
  + Tools
Building core features:
  + DDS image codec

Build type:                      dynamic
Threading support:               background (boost)
Use double precision:            disabled
Allocator type:                  nedmalloc
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

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

CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
Cg_INCLUDE_DIRS (ADVANCED)
   used as include directory in directory /home/libs/ogre-trunk
   used as include directory in directory /home/libs/ogre-trunk/OgreMain
   used as include directory in directory /home/libs/ogre-trunk/RenderSystems
   used as include directory in directory /home/libs/ogre-trunk/RenderSystems/GL
   used as include directory in directory /home/libs/ogre-trunk/PlugIns
   used as include directory in directory /home/libs/ogre-trunk/PlugIns/OctreeSceneManager
   used as include directory in directory /home/libs/ogre-trunk/PlugIns/BSPSceneManager
   used as include directory in directory /home/libs/ogre-trunk/PlugIns/ParticleFX
   used as include directory in directory /home/libs/ogre-trunk/PlugIns/PCZSceneManager
   used as include directory in directory /home/libs/ogre-trunk/PlugIns/OctreeZone
   used as include directory in directory /home/libs/ogre-trunk/Components
   used as include directory in directory /home/libs/ogre-trunk/Components/Paging
   used as include directory in directory /home/libs/ogre-trunk/Components/Property
   used as include directory in directory /home/libs/ogre-trunk/Components/Terrain
   used as include directory in directory /home/libs/ogre-trunk/Samples
   used as include directory in directory /home/libs/ogre-trunk/Samples/BezierPatch
   used as include directory in directory /home/libs/ogre-trunk/Samples/BSP
   used as include directory in directory /home/libs/ogre-trunk/Samples/CameraTrack
   used as include directory in directory /home/libs/ogre-trunk/Samples/CubeMapping
   used as include directory in directory /home/libs/ogre-trunk/Samples/DeferredShading
   used as include directory in directory /home/libs/ogre-trunk/Samples/DynTex
   used as include directory in directory /home/libs/ogre-trunk/Samples/EnvMapping
   used as include directory in directory /home/libs/ogre-trunk/Samples/Grass
   used as include directory in directory /home/libs/ogre-trunk/Samples/Lighting
   used as include directory in directory /home/libs/ogre-trunk/Samples/Paging
   used as include directory in directory /home/libs/ogre-trunk/Samples/ParticleFX
   used as include directory in directory /home/libs/ogre-trunk/Samples/PCZTestApp
   used as include directory in directory /home/libs/ogre-trunk/Samples/RenderToTexture
   used as include directory in directory /home/libs/ogre-trunk/Samples/SkeletalAnimation
   used as include directory in directory /home/libs/ogre-trunk/Samples/SkyBox
   used as include directory in directory /home/libs/ogre-trunk/Samples/SkyDome
   used as include directory in directory /home/libs/ogre-trunk/Samples/SkyPlane
   used as include directory in directory /home/libs/ogre-trunk/Samples/Smoke
   used as include directory in directory /home/libs/ogre-trunk/Samples/Terrain
   used as include directory in directory /home/libs/ogre-trunk/Samples/TextureFX
   used as include directory in directory /home/libs/ogre-trunk/Samples/Transpacency
   used as include directory in directory /home/libs/ogre-trunk/Samples/CelShading
   used as include directory in directory /home/libs/ogre-trunk/Samples/Dot3Bump
   used as include directory in directory /home/libs/ogre-trunk/Samples/Fresnel
   used as include directory in directory /home/libs/ogre-trunk/Samples/Isosurf
   used as include directory in directory /home/libs/ogre-trunk/Samples/ParticleGS
   used as include directory in directory /home/libs/ogre-trunk/Samples/VolumeTex
   used as include directory in directory /home/libs/ogre-trunk/Samples/Water
   used as include directory in directory /home/libs/ogre-trunk/Tools
   used as include directory in directory /home/libs/ogre-trunk/Tools/XMLConverter
   used as include directory in directory /home/libs/ogre-trunk/Tools/MeshUpgrader
   used as include directory in directory /home/libs/ogre-trunk/Docs
   used as include directory in directory /home/libs/ogre-trunk/CMake

-- Configuring incomplete, errors occurred!
There is now only one error left, at the end. So something was fixed by updating the version of cmake from 2.6.0 to 2.6.4. Here is the remaining error:

CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
Cg_INCLUDE_DIRS (ADVANCED) <snip>


Does it fail because I don't have Cg installed? It is an optional component so that would certainly be an error on Ogre3D's part.
0 x

reptor
Ogre Magi
Posts: 1120
Joined: Wed Nov 15, 2006 7:41 pm
Location: Finland

Re: CMake build system for Cthugha *looking for testers*

Post by reptor » Wed Oct 07, 2009 5:57 pm

reptor wrote:Here is the remaining error:

CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
Cg_INCLUDE_DIRS (ADVANCED) <snip>


Does it fail because I don't have Cg installed? It is an optional component so that would certainly be an error on Ogre3D's part.

You were right, buddy - the remaining error went away when I installed nvidia-cg-toolkit.

So there is some fixing to do in the Ogre3D cmake files - it fails on Debian GNU/Linux 5 with cmake 2.6.4 when Cg isn't installed.


I started the compilation now - I got past the configuration stage without errors. It required me to remove the Debian version of cmake, to install cmake 2.6.4, to install Debian package libncurses5-dev (required for ccmake) and to install Debian package nvidia-cg-toolkit.
0 x

CABAListic
OGRE Retired Team Member
OGRE Retired Team Member
Posts: 2903
Joined: Thu Jan 18, 2007 2:48 pm
Contact:

Re: CMake build system for Cthugha *looking for testers*

Post by CABAListic » Wed Oct 07, 2009 6:27 pm

Hm, seems like include directories need to be set conditionally. That's actually inconvenient, bad choice on the CMake side, imho.
0 x

reptor
Ogre Magi
Posts: 1120
Joined: Wed Nov 15, 2006 7:41 pm
Location: Finland

Re: CMake build system for Cthugha *looking for testers*

Post by reptor » Wed Oct 07, 2009 6:57 pm

The compilation finished.

I had to fix one more thing - glew.cpp did not compile. It was looking for file GL/glu.h.
Scanning dependencies of target RenderSystem_GL
[ 53%] Building CXX object RenderSystems/GL/CMakeFiles/RenderSystem_GL.dir/src/glew.cpp.o
In file included from /home/libs/ogre-trunk/RenderSystems/GL/include/OgreGLPrerequisites.h:62,
from /home/libs/ogre-trunk/RenderSystems/GL/include/OgreGLSupport.h:31,
from /home/libs/ogre-trunk/RenderSystems/GL/src/glew.cpp:33:
/home/libs/ogre-trunk/RenderSystems/GL/include/GL/glew.h:1128:20: error: GL/glu.h: Tiedostoa tai hakemistoa ei ole
make[2]: *** [RenderSystems/GL/CMakeFiles/RenderSystem_GL.dir/src/glew.cpp.o] Virhe 1
make[1]: *** [RenderSystems/GL/CMakeFiles/RenderSystem_GL.dir/all] Virhe 2
make: *** [all] Virhe 2
I fixed it by installing libglew-dev.
0 x

reptor
Ogre Magi
Posts: 1120
Joined: Wed Nov 15, 2006 7:41 pm
Location: Finland

Re: CMake build system for Cthugha *looking for testers*

Post by reptor » Sun Oct 11, 2009 8:38 pm

Look at what I have in /usr/local/include/OGRE/:

Code: Select all

file:///usr/local/include/OGRE/GLX
file:///usr/local/include/OGRE/Paging
file:///usr/local/include/OGRE/Plugins
file:///usr/local/include/OGRE/Property
file:///usr/local/include/OGRE/Terrain
file:///usr/local/include/OGRE/Threading
file:///usr/local/include/OGRE/asm_math.h
file:///usr/local/include/OGRE/buildsettings.h
file:///usr/local/include/OGRE/OgreAlignedAllocator.h
file:///usr/local/include/OGRE/OgreAnimable.h
file:///usr/local/include/OGRE/OgreAnimation.h
file:///usr/local/include/OGRE/OgreAnimationState.h
file:///usr/local/include/OGRE/OgreAnimationTrack.h
file:///usr/local/include/OGRE/OgreAny.h
file:///usr/local/include/OGRE/OgreArchiveFactory.h
file:///usr/local/include/OGRE/OgreArchive.h
file:///usr/local/include/OGRE/OgreArchiveManager.h
file:///usr/local/include/OGRE/OgreAtomicWrappers.h
file:///usr/local/include/OGRE/OgreAutoParamDataSource.h
file:///usr/local/include/OGRE/OgreAxisAlignedBox.h
file:///usr/local/include/OGRE/OgreBillboardChain.h
file:///usr/local/include/OGRE/OgreBillboard.h
file:///usr/local/include/OGRE/OgreBillboardParticleRenderer.h
file:///usr/local/include/OGRE/OgreBillboardSet.h
file:///usr/local/include/OGRE/OgreBitwise.h
file:///usr/local/include/OGRE/OgreBlendMode.h
file:///usr/local/include/OGRE/OgreBone.h
file:///usr/local/include/OGRE/OgreBorderPanelOverlayElement.h
file:///usr/local/include/OGRE/OgreCamera.h
file:///usr/local/include/OGRE/OgreCodec.h
file:///usr/local/include/OGRE/OgreColourValue.h
file:///usr/local/include/OGRE/OgreCommon.h
file:///usr/local/include/OGRE/OgreCompiler2Pass.h
file:///usr/local/include/OGRE/OgreCompositionPass.h
file:///usr/local/include/OGRE/OgreCompositionTargetPass.h
file:///usr/local/include/OGRE/OgreCompositionTechnique.h
file:///usr/local/include/OGRE/OgreCompositorChain.h
file:///usr/local/include/OGRE/OgreCompositor.h
file:///usr/local/include/OGRE/OgreCompositorInstance.h
file:///usr/local/include/OGRE/OgreCompositorManager.h
file:///usr/local/include/OGRE/OgreCompositorScriptCompiler2.h
file:///usr/local/include/OGRE/OgreCompositorScriptCompiler.h
file:///usr/local/include/OGRE/OgreCompositorSerializer.h
file:///usr/local/include/OGRE/OgreConfigDialog.h
file:///usr/local/include/OGRE/OgreConfigFile.h
file:///usr/local/include/OGRE/OgreConfig.h
file:///usr/local/include/OGRE/OgreConfigOptionMap.h
file:///usr/local/include/OGRE/OgreController.h
file:///usr/local/include/OGRE/OgreControllerManager.h
file:///usr/local/include/OGRE/OgreConvexBody.h
file:///usr/local/include/OGRE/OgreDataStream.h
file:///usr/local/include/OGRE/OgreDDSCodec.h
file:///usr/local/include/OGRE/OgreDefaultHardwareBufferManager.h
file:///usr/local/include/OGRE/OgreDistanceLodStrategy.h
file:///usr/local/include/OGRE/OgreDynLib.h
file:///usr/local/include/OGRE/OgreDynLibManager.h
file:///usr/local/include/OGRE/OgreEdgeListBuilder.h
file:///usr/local/include/OGRE/OgreEntity.h
file:///usr/local/include/OGRE/OgreErrorDialog.h
file:///usr/local/include/OGRE/OgreException.h
file:///usr/local/include/OGRE/OgreExternalTextureSource.h
file:///usr/local/include/OGRE/OgreExternalTextureSourceManager.h
file:///usr/local/include/OGRE/OgreFactoryObj.h
file:///usr/local/include/OGRE/OgreFileSystem.h
file:///usr/local/include/OGRE/OgreFont.h
file:///usr/local/include/OGRE/OgreFontManager.h
file:///usr/local/include/OGRE/OgreFrameListener.h
file:///usr/local/include/OGRE/OgreFrustum.h
file:///usr/local/include/OGRE/OgreGpuProgram.h
file:///usr/local/include/OGRE/OgreGpuProgramManager.h
file:///usr/local/include/OGRE/OgreGpuProgramParams.h
file:///usr/local/include/OGRE/OgreGpuProgramUsage.h
file:///usr/local/include/OGRE/Ogre.h
file:///usr/local/include/OGRE/OgreHardwareBuffer.h
file:///usr/local/include/OGRE/OgreHardwareBufferManager.h
file:///usr/local/include/OGRE/OgreHardwareIndexBuffer.h
file:///usr/local/include/OGRE/OgreHardwareOcclusionQuery.h
file:///usr/local/include/OGRE/OgreHardwarePixelBuffer.h
file:///usr/local/include/OGRE/OgreHardwareVertexBuffer.h
file:///usr/local/include/OGRE/OgreHighLevelGpuProgram.h
file:///usr/local/include/OGRE/OgreHighLevelGpuProgramManager.h
file:///usr/local/include/OGRE/OgreImageCodec.h
file:///usr/local/include/OGRE/OgreImage.h
file:///usr/local/include/OGRE/OgreInstancedGeometry.h
file:///usr/local/include/OGRE/OgreIteratorRange.h
file:///usr/local/include/OGRE/OgreIteratorWrapper.h
file:///usr/local/include/OGRE/OgreIteratorWrappers.h
file:///usr/local/include/OGRE/OgreKeyFrame.h
file:///usr/local/include/OGRE/OgreLight.h
file:///usr/local/include/OGRE/OgreLodListener.h
file:///usr/local/include/OGRE/OgreLodStrategy.h
file:///usr/local/include/OGRE/OgreLodStrategyManager.h
file:///usr/local/include/OGRE/OgreLog.h
file:///usr/local/include/OGRE/OgreLogManager.h
file:///usr/local/include/OGRE/OgreManualObject.h
file:///usr/local/include/OGRE/OgreMaterial.h
file:///usr/local/include/OGRE/OgreMaterialManager.h
file:///usr/local/include/OGRE/OgreMaterialSerializer.h
file:///usr/local/include/OGRE/OgreMath.h
file:///usr/local/include/OGRE/OgreMatrix3.h
file:///usr/local/include/OGRE/OgreMatrix4.h
file:///usr/local/include/OGRE/OgreMemoryAllocatedObject.h
file:///usr/local/include/OGRE/OgreMemoryAllocatorConfig.h
file:///usr/local/include/OGRE/OgreMemoryNedAlloc.h
file:///usr/local/include/OGRE/OgreMemoryStdAlloc.h
file:///usr/local/include/OGRE/OgreMemorySTLAllocator.h
file:///usr/local/include/OGRE/OgreMemoryTracker.h
file:///usr/local/include/OGRE/OgreMeshFileFormat.h
file:///usr/local/include/OGRE/OgreMesh.h
file:///usr/local/include/OGRE/OgreMeshManager.h
file:///usr/local/include/OGRE/OgreMeshSerializer.h
file:///usr/local/include/OGRE/OgreMeshSerializerImpl.h
file:///usr/local/include/OGRE/OgreMovableObject.h
file:///usr/local/include/OGRE/OgreMovablePlane.h
file:///usr/local/include/OGRE/OgreNode.h
file:///usr/local/include/OGRE/OgreNumerics.h
file:///usr/local/include/OGRE/OgreOptimisedUtil.h
file:///usr/local/include/OGRE/OgreOverlayContainer.h
file:///usr/local/include/OGRE/OgreOverlayElementCommands.h
file:///usr/local/include/OGRE/OgreOverlayElementFactory.h
file:///usr/local/include/OGRE/OgreOverlayElement.h
file:///usr/local/include/OGRE/OgreOverlay.h
file:///usr/local/include/OGRE/OgreOverlayManager.h
file:///usr/local/include/OGRE/OgrePanelOverlayElement.h
file:///usr/local/include/OGRE/OgreParticleAffectorFactory.h
file:///usr/local/include/OGRE/OgreParticleAffector.h
file:///usr/local/include/OGRE/OgreParticleEmitterCommands.h
file:///usr/local/include/OGRE/OgreParticleEmitterFactory.h
file:///usr/local/include/OGRE/OgreParticleEmitter.h
file:///usr/local/include/OGRE/OgreParticle.h
file:///usr/local/include/OGRE/OgreParticleIterator.h
file:///usr/local/include/OGRE/OgreParticleScriptCompiler.h
file:///usr/local/include/OGRE/OgreParticleSystem.h
file:///usr/local/include/OGRE/OgreParticleSystemManager.h
file:///usr/local/include/OGRE/OgreParticleSystemRenderer.h
file:///usr/local/include/OGRE/OgrePass.h
file:///usr/local/include/OGRE/OgrePatchMesh.h
file:///usr/local/include/OGRE/OgrePatchSurface.h
file:///usr/local/include/OGRE/OgrePixelCountLodStrategy.h
file:///usr/local/include/OGRE/OgrePixelFormat.h
file:///usr/local/include/OGRE/OgrePlaneBoundedVolume.h
file:///usr/local/include/OGRE/OgrePlane.h
file:///usr/local/include/OGRE/OgrePlatform.h
file:///usr/local/include/OGRE/OgrePlatformInformation.h
file:///usr/local/include/OGRE/OgrePlugin.h
file:///usr/local/include/OGRE/OgrePolygon.h
file:///usr/local/include/OGRE/OgrePose.h
file:///usr/local/include/OGRE/OgrePredefinedControllers.h
file:///usr/local/include/OGRE/OgrePrefabFactory.h
file:///usr/local/include/OGRE/OgrePrerequisites.h
file:///usr/local/include/OGRE/OgreProfiler.h
file:///usr/local/include/OGRE/OgreProgressiveMesh.h
file:///usr/local/include/OGRE/OgreQuaternion.h
file:///usr/local/include/OGRE/OgreRadixSort.h
file:///usr/local/include/OGRE/OgreRay.h
file:///usr/local/include/OGRE/OgreRectangle2D.h
file:///usr/local/include/OGRE/OgreRectangle.h
file:///usr/local/include/OGRE/OgreRenderable.h
file:///usr/local/include/OGRE/OgreRenderObjectListener.h
file:///usr/local/include/OGRE/OgreRenderOperation.h
file:///usr/local/include/OGRE/OgreRenderQueue.h
file:///usr/local/include/OGRE/OgreRenderQueueInvocation.h
file:///usr/local/include/OGRE/OgreRenderQueueListener.h
file:///usr/local/include/OGRE/OgreRenderQueueSortingGrouping.h
file:///usr/local/include/OGRE/OgreRenderSystemCapabilities.h
file:///usr/local/include/OGRE/OgreRenderSystemCapabilitiesManager.h
file:///usr/local/include/OGRE/OgreRenderSystemCapabilitiesSerializer.h
file:///usr/local/include/OGRE/OgreRenderSystem.h
file:///usr/local/include/OGRE/OgreRenderTarget.h
file:///usr/local/include/OGRE/OgreRenderTargetListener.h
file:///usr/local/include/OGRE/OgreRenderTexture.h
file:///usr/local/include/OGRE/OgreRenderToVertexBuffer.h
file:///usr/local/include/OGRE/OgreRenderWindow.h
file:///usr/local/include/OGRE/OgreResourceBackgroundQueue.h
file:///usr/local/include/OGRE/OgreResourceGroupManager.h
file:///usr/local/include/OGRE/OgreResource.h
file:///usr/local/include/OGRE/OgreResourceManager.h
file:///usr/local/include/OGRE/OgreRibbonTrail.h
file:///usr/local/include/OGRE/OgreRoot.h
file:///usr/local/include/OGRE/OgreRotationalSpline.h
file:///usr/local/include/OGRE/OgreSceneManagerEnumerator.h
file:///usr/local/include/OGRE/OgreSceneManager.h
file:///usr/local/include/OGRE/OgreSceneNode.h
file:///usr/local/include/OGRE/OgreSceneQuery.h
file:///usr/local/include/OGRE/OgreScriptCompiler.h
file:///usr/local/include/OGRE/OgreScriptLexer.h
file:///usr/local/include/OGRE/OgreScriptLoader.h
file:///usr/local/include/OGRE/OgreScriptParser.h
file:///usr/local/include/OGRE/OgreScriptTranslator.h
file:///usr/local/include/OGRE/OgreSearchOps.h
file:///usr/local/include/OGRE/OgreSerializer.h
file:///usr/local/include/OGRE/OgreShadowCameraSetupFocused.h
file:///usr/local/include/OGRE/OgreShadowCameraSetup.h
file:///usr/local/include/OGRE/OgreShadowCameraSetupLiSPSM.h
file:///usr/local/include/OGRE/OgreShadowCameraSetupPlaneOptimal.h
file:///usr/local/include/OGRE/OgreShadowCameraSetupPSSM.h
file:///usr/local/include/OGRE/OgreShadowCaster.h
file:///usr/local/include/OGRE/OgreShadowTextureManager.h
file:///usr/local/include/OGRE/OgreShadowVolumeExtrudeProgram.h
file:///usr/local/include/OGRE/OgreSharedPtr.h
file:///usr/local/include/OGRE/OgreSimpleRenderable.h
file:///usr/local/include/OGRE/OgreSimpleSpline.h
file:///usr/local/include/OGRE/OgreSingleton.h
file:///usr/local/include/OGRE/OgreSkeletonFileFormat.h
file:///usr/local/include/OGRE/OgreSkeleton.h
file:///usr/local/include/OGRE/OgreSkeletonInstance.h
file:///usr/local/include/OGRE/OgreSkeletonManager.h
file:///usr/local/include/OGRE/OgreSkeletonSerializer.h
file:///usr/local/include/OGRE/OgreSphere.h
file:///usr/local/include/OGRE/OgreSpotShadowFadePng.h
file:///usr/local/include/OGRE/OgreStableHeaders.h
file:///usr/local/include/OGRE/OgreStaticFaceGroup.h
file:///usr/local/include/OGRE/OgreStaticGeometry.h
file:///usr/local/include/OGRE/OgreStdHeaders.h
file:///usr/local/include/OGRE/OgreStreamSerialiser.h
file:///usr/local/include/OGRE/OgreStringConverter.h
file:///usr/local/include/OGRE/OgreString.h
file:///usr/local/include/OGRE/OgreStringInterface.h
file:///usr/local/include/OGRE/OgreStringVector.h
file:///usr/local/include/OGRE/OgreSubEntity.h
file:///usr/local/include/OGRE/OgreSubMesh.h
file:///usr/local/include/OGRE/OgreTagPoint.h
file:///usr/local/include/OGRE/OgreTangentSpaceCalc.h
file:///usr/local/include/OGRE/OgreTechnique.h
file:///usr/local/include/OGRE/OgreTextAreaOverlayElement.h
file:///usr/local/include/OGRE/OgreTexture.h
file:///usr/local/include/OGRE/OgreTextureManager.h
file:///usr/local/include/OGRE/OgreTextureUnitState.h
file:///usr/local/include/OGRE/OgreTimer.h
file:///usr/local/include/OGRE/OgreUnifiedHighLevelGpuProgram.h
file:///usr/local/include/OGRE/OgreUserDefinedObject.h
file:///usr/local/include/OGRE/OgreUTFString.h
file:///usr/local/include/OGRE/OgreVector2.h
file:///usr/local/include/OGRE/OgreVector3.h
file:///usr/local/include/OGRE/OgreVector4.h
file:///usr/local/include/OGRE/OgreVertexBoneAssignment.h
file:///usr/local/include/OGRE/OgreVertexIndexData.h
file:///usr/local/include/OGRE/OgreViewport.h
file:///usr/local/include/OGRE/OgreWindowEventUtilities.h
file:///usr/local/include/OGRE/OgreWireBoundingBox.h
file:///usr/local/include/OGRE/OgreWorkQueue.h


file:///usr/local/include/OGRE/Plugins/OctreeZone
file:///usr/local/include/OGRE/Plugins/PCZSceneManager




There are no RenderSystems/GL/ headers installed.

Why?

It is an install performed by 'make install' after a succesfull compilation.


I have

# include "RenderSystems/GL/OgreGLPlugin.h"

in my code as I have linked the plugins statically and the loading of them is different in that case and then I need to include that header.


Did I miss something or is there an error in the Ogre3D scripts? I can't believe I should manually tell something to install the GL RenderSystem headers.
0 x

CABAListic
OGRE Retired Team Member
OGRE Retired Team Member
Posts: 2903
Joined: Thu Jan 18, 2007 2:48 pm
Contact:

Re: CMake build system for Cthugha *looking for testers*

Post by CABAListic » Sun Oct 11, 2009 9:00 pm

Did you enable the CMake option OGRE_INSTALL_PLUGINS_HEADERS? Otherwise, no plugin/rendersystem include files are being installed.
If you did enable that, then I don't know - the files are marked for install in RenderSystems/GL/CMakeLists.txt.
0 x

reptor
Ogre Magi
Posts: 1120
Joined: Wed Nov 15, 2006 7:41 pm
Location: Finland

Re: CMake build system for Cthugha *looking for testers*

Post by reptor » Sun Oct 11, 2009 9:34 pm

Well, I didn't enable it.

Although this raises the question why there are

file:///usr/local/include/OGRE/Plugins/OctreeZone
file:///usr/local/include/OGRE/Plugins/PCZSceneManager

headers installed?


This is the ccmake settings I have:
CMAKE_BUILD_TYPE Release
CMAKE_INSTALL_PREFIX /usr/local
OGRE_BUILD_COMPONENT_PAGING ON
OGRE_BUILD_COMPONENT_PROPERTY ON
OGRE_BUILD_COMPONENT_RTSHADERS OFF
OGRE_BUILD_COMPONENT_TERRAIN ON
OGRE_BUILD_PLUGIN_BSP ON
OGRE_BUILD_PLUGIN_CG ON
OGRE_BUILD_PLUGIN_OCTREE ON
OGRE_BUILD_PLUGIN_PCZ ON
OGRE_BUILD_PLUGIN_PFX ON
OGRE_BUILD_RENDERSYSTEM_GL ON
OGRE_BUILD_SAMPLES OFF
OGRE_BUILD_TESTS OFF
OGRE_BUILD_TOOLS ON
OGRE_CONFIG_ALLOCATOR 2
OGRE_CONFIG_CONTAINERS_USE_CUS ON
OGRE_CONFIG_DISABLE_DDS OFF
OGRE_CONFIG_DOUBLE OFF
OGRE_CONFIG_MEMTRACK_DEBUG OFF
OGRE_CONFIG_MEMTRACK_RELEASE ON
OGRE_CONFIG_NEW_COMPILERS ON
OGRE_CONFIG_STRING_USE_CUSTOM_ OFF
OGRE_CONFIG_THREADS 2
OGRE_CONFIG_THREAD_PROVIDER boost
OGRE_DEPENDENCIES_DIR
OGRE_FULL_RPATH OFF
OGRE_INSTALL_DOCS ON
OGRE_INSTALL_MEDIA OFF
OGRE_INSTALL_PLUGINS_HEADERS OFF
OGRE_INSTALL_SAMPLES OFF
OGRE_INSTALL_SAMPLES_SOURCE OFF
OGRE_INSTALL_TOOLS ON
OGRE_STANDALONE_BUILD OFF
OGRE_STATIC ON
OGRE_USE_BOOST ON

I am thinking shouldn't it install headers for all plugins that are enabled without requiring me to explicitly tell it to do so? And why it installed the OctreeZone and PCZSceneManager headers when OGRE_INSTALL_PLUGINS_HEADERS = OFF ? And why it only installed headers for those plugins but not for the others, when all were enabled?

Lot's of questions :) I'm sorry to bother you with this! I just hope I can help to improve the system.
0 x

Rhynedahll
Halfling
Posts: 77
Joined: Thu Jan 08, 2009 2:03 am

Re: CMake build system for Cthugha *looking for testers*

Post by Rhynedahll » Sun Oct 11, 2009 9:42 pm

I have extremely limited experience with Cmake and Ogre, but I would like to build the latest version on XP/2008 Express.

I was hoping the SVN would run through Cmake OutOfTheBox, but apparently not in my case.

I have an up to date copy of the SVN but when I run Cmake, I get "Configuring incomplete, errors occurred!"

My first question is: Are all -- meaning all -- necessary files for Cmake to work properly in the SVN?

Second question: Is there a step by step set of instructions for building 1.7 using Cmake? The Wiki is of no help to me since it assumes no errors in the configuring process.

I get numerous errors:
CMake Error: File H:/Ogre SVN/Dependencies/../Samples/Common/bin/debug/CEGUIBase_d.dll does not exist.

Is it necessary to complile the CEGUI files separely?

and,

Code: Select all

Looking for ZLIB...
Could not locate ZLIB
Looking for FreeImage...
Could not locate FreeImage
Looking for FREETYPE...
Could not locate FREETYPE
Looking for DirectX...
DirectX_PREFIX_PATH changed.
Found DirectX: H:/Microsoft DirectX SDK (August 2009)/Lib/x86/d3d9.lib
DX lib dir: H:/Microsoft DirectX SDK (August 2009)/Lib/x86
Looking for POCO...
Could not locate POCO
Looking for TBB...
Could not locate TBB
Looking for CEGUI...
Could not locate CEGUI
Looking for OIS...
Could not locate OIS
Could NOT find Doxygen  (missing:  DOXYGEN_EXECUTABLE)
Looking for CppUnit...
Could not locate CppUnit
0 x
The Key to Magic -- Book One: ORPHAN
An epic fantasy by H. Jonas Rhynedahll available on Kindle.
The Key to Magic

reptor
Ogre Magi
Posts: 1120
Joined: Wed Nov 15, 2006 7:41 pm
Location: Finland

Re: CMake build system for Cthugha *looking for testers*

Post by reptor » Sun Oct 11, 2009 9:43 pm

OGRE_INSTALL_PLUGINS_HEADERS ON indeed helps...

The questions I presented in the previous post still stand, though.
0 x

CABAListic
OGRE Retired Team Member
OGRE Retired Team Member
Posts: 2903
Joined: Thu Jan 18, 2007 2:48 pm
Contact:

Re: CMake build system for Cthugha *looking for testers*

Post by CABAListic » Sun Oct 11, 2009 9:46 pm

@reptor: Because I designed the steps with dynamic linking in mind. In that case, you normally do not need the plugin headers, except for the PCZ SceneManager, which doesn't work without. Therefore the default is to only install those.

@Rhynedahll: Please post the complete CMake log. Out of the blue, I suspect you are not using the precompiled dependencies for Ogre? In that case, you probably need to delete the Dependencies folder. There is a file in there which is ultimately supposed to ship with the precompiled dependencies instead of Ogre source, but for the moment I had no other place to put it.
0 x

reptor
Ogre Magi
Posts: 1120
Joined: Wed Nov 15, 2006 7:41 pm
Location: Finland

Re: CMake build system for Cthugha *looking for testers*

Post by reptor » Sun Oct 11, 2009 9:55 pm

A-ha! :) Thanks for the quick reply.

Well, I am just thinking, are you sure that's a good way to do it? The installation of the plugin headers is not going to hurt anyone even if they have no use for them. If you just make it to install them all every time, or when a plugin is enabled for compilation, it will make it less likely that people will end up wondering what went wrong, where are the headers.

I am sure there will be other people as well who will be confused as to why some plugin headers are installed and some are not. It makes people think the system is broken. Then you have to explain that bit about the dynamic vs. static linking every time when someone comes up and whines about it.

Just giving you some food for thought as so to speak. I can live with the current solution, but see chances for improvement :)




To summarise:

One way to make it more robust would be to drop the OGRE_INSTALL_PLUGINS_HEADERS setting completely, and to either:

- install all plugin headers every time

or

- install headers for all of the plugins that were enabled for compilation.


Something to consider. Thank you for your work, by the way.
0 x

CABAListic
OGRE Retired Team Member
OGRE Retired Team Member
Posts: 2903
Joined: Thu Jan 18, 2007 2:48 pm
Contact:

Re: CMake build system for Cthugha *looking for testers*

Post by CABAListic » Sun Oct 11, 2009 10:11 pm

Well, I didn't consider the static linking case, so I suppose for static linking the headers of all enabled plugins should be installed.

However, in case of dynamic linking, imho the plugin headers should never be needed, because if they are, that means you need to link the plugin, which means that the plugin does not actually work as a plugin. In that regard, imho the PCZ should not be a plugin, but a component, and perhaps it will ultimately become one. Therefore, in case of dynamic linking the headers are unnecessary unless you are doing some kind of hack, therefore I really don't think they should be installed by default.
0 x

reptor
Ogre Magi
Posts: 1120
Joined: Wed Nov 15, 2006 7:41 pm
Location: Finland

Re: CMake build system for Cthugha *looking for testers*

Post by reptor » Sun Oct 11, 2009 10:28 pm

I understand your reasoning with the dynamic linking. That makes sense.

But the aim here is to create as less room for user error as possible by economical means available.

My recommendation: get the system to install plugin headers automatically if static build is enabled.

It will affect negatively (which is positive!) the number of people coming here and asking the same questions that I just asked. Of course it is possible no-one will ever ask about it again, but it would be better to eliminate the possibility as far as you possibly can :)


OK. Gute Nacht, it's getting late here. Thanks again for your replies and for your work.
0 x

Rhynedahll
Halfling
Posts: 77
Joined: Thu Jan 08, 2009 2:03 am

Re: CMake build system for Cthugha *looking for testers*

Post by Rhynedahll » Sun Oct 11, 2009 10:53 pm

Don't know where to look for the log file. This is the text from the Cmake gui bottom window:

Code: Select all

Configuring OGRE 1.7.0
CMake Error: File H:/Ogre SVN/Dependencies/../Samples/Common/bin/debug/CEGUIBase_d.dll does not exist.
CMake Error at Dependencies/OgreInstallDependencies.cmake:87 (configure_file):
  configure_file Problem configuring file
Call Stack (most recent call first):
  CMake/Dependencies.cmake:53 (include)
  CMakeLists.txt:99 (include)


CMake Error: File H:/Ogre SVN/Dependencies/../Samples/Common/bin/debug/CEGUIExpatParser_d.dll does not exist.
CMake Error at Dependencies/OgreInstallDependencies.cmake:88 (configure_file):
  configure_file Problem configuring file
Call Stack (most recent call first):
  CMake/Dependencies.cmake:53 (include)
  CMakeLists.txt:99 (include)


CMake Error: File H:/Ogre SVN/Dependencies/../Samples/Common/bin/debug/CEGUIFalagardWRBase_d.dll does not exist.
CMake Error at Dependencies/OgreInstallDependencies.cmake:89 (configure_file):
  configure_file Problem configuring file
Call Stack (most recent call first):
  CMake/Dependencies.cmake:53 (include)
  CMakeLists.txt:99 (include)


CMake Error: File H:/Ogre SVN/Dependencies/../Samples/Common/bin/debug/cg.dll does not exist.
CMake Error at Dependencies/OgreInstallDependencies.cmake:90 (configure_file):
  configure_file Problem configuring file
Call Stack (most recent call first):
  CMake/Dependencies.cmake:53 (include)
  CMakeLists.txt:99 (include)


CMake Error: File H:/Ogre SVN/Dependencies/../Samples/Common/bin/debug/OIS_d.dll does not exist.
CMake Error at Dependencies/OgreInstallDependencies.cmake:91 (configure_file):
  configure_file Problem configuring file
Call Stack (most recent call first):
  CMake/Dependencies.cmake:53 (include)
  CMakeLists.txt:99 (include)


CMake Error: File H:/Ogre SVN/Dependencies/../Samples/Common/bin/release/CEGUIBase.dll does not exist.
CMake Error at Dependencies/OgreInstallDependencies.cmake:93 (configure_file):
  configure_file Problem configuring file
Call Stack (most recent call first):
  CMake/Dependencies.cmake:53 (include)
  CMakeLists.txt:99 (include)


CMake Error: File H:/Ogre SVN/Dependencies/../Samples/Common/bin/release/CEGUIExpatParser.dll does not exist.
CMake Error at Dependencies/OgreInstallDependencies.cmake:94 (configure_file):
  configure_file Problem configuring file
Call Stack (most recent call first):
  CMake/Dependencies.cmake:53 (include)
  CMakeLists.txt:99 (include)


CMake Error: File H:/Ogre SVN/Dependencies/../Samples/Common/bin/release/CEGUIFalagardWRBase.dll does not exist.
CMake Error at Dependencies/OgreInstallDependencies.cmake:95 (configure_file):
  configure_file Problem configuring file
Call Stack (most recent call first):
  CMake/Dependencies.cmake:53 (include)
  CMakeLists.txt:99 (include)


CMake Error: File H:/Ogre SVN/Dependencies/../Samples/Common/bin/release/cg.dll does not exist.
CMake Error at Dependencies/OgreInstallDependencies.cmake:96 (configure_file):
  configure_file Problem configuring file
Call Stack (most recent call first):
  CMake/Dependencies.cmake:53 (include)
  CMakeLists.txt:99 (include)


CMake Error: File H:/Ogre SVN/Dependencies/../Samples/Common/bin/release/OIS.dll does not exist.
CMake Error at Dependencies/OgreInstallDependencies.cmake:97 (configure_file):
  configure_file Problem configuring file
Call Stack (most recent call first):
  CMake/Dependencies.cmake:53 (include)
  CMakeLists.txt:99 (include)


CMake Error: File H:/Ogre SVN/Dependencies/../Samples/Common/bin/release/CEGUIBase.dll does not exist.
CMake Error at Dependencies/OgreInstallDependencies.cmake:99 (configure_file):
  configure_file Problem configuring file
Call Stack (most recent call first):
  CMake/Dependencies.cmake:53 (include)
  CMakeLists.txt:99 (include)


CMake Error: File H:/Ogre SVN/Dependencies/../Samples/Common/bin/release/CEGUIExpatParser.dll does not exist.
CMake Error at Dependencies/OgreInstallDependencies.cmake:100 (configure_file):
  configure_file Problem configuring file
Call Stack (most recent call first):
  CMake/Dependencies.cmake:53 (include)
  CMakeLists.txt:99 (include)


CMake Error: File H:/Ogre SVN/Dependencies/../Samples/Common/bin/release/CEGUIFalagardWRBase.dll does not exist.
CMake Error at Dependencies/OgreInstallDependencies.cmake:101 (configure_file):
  configure_file Problem configuring file
Call Stack (most recent call first):
  CMake/Dependencies.cmake:53 (include)
  CMakeLists.txt:99 (include)


CMake Error: File H:/Ogre SVN/Dependencies/../Samples/Common/bin/release/cg.dll does not exist.
CMake Error at Dependencies/OgreInstallDependencies.cmake:102 (configure_file):
  configure_file Problem configuring file
Call Stack (most recent call first):
  CMake/Dependencies.cmake:53 (include)
  CMakeLists.txt:99 (include)


CMake Error: File H:/Ogre SVN/Dependencies/../Samples/Common/bin/release/OIS.dll does not exist.
CMake Error at Dependencies/OgreInstallDependencies.cmake:103 (configure_file):
  configure_file Problem configuring file
Call Stack (most recent call first):
  CMake/Dependencies.cmake:53 (include)
  CMakeLists.txt:99 (include)


CMake Error: File H:/Ogre SVN/Dependencies/../Samples/Common/bin/release/CEGUIBase.dll does not exist.
CMake Error at Dependencies/OgreInstallDependencies.cmake:105 (configure_file):
  configure_file Problem configuring file
Call Stack (most recent call first):
  CMake/Dependencies.cmake:53 (include)
  CMakeLists.txt:99 (include)


CMake Error: File H:/Ogre SVN/Dependencies/../Samples/Common/bin/release/CEGUIExpatParser.dll does not exist.
CMake Error at Dependencies/OgreInstallDependencies.cmake:106 (configure_file):
  configure_file Problem configuring file
Call Stack (most recent call first):
  CMake/Dependencies.cmake:53 (include)
  CMakeLists.txt:99 (include)


CMake Error: File H:/Ogre SVN/Dependencies/../Samples/Common/bin/release/CEGUIFalagardWRBase.dll does not exist.
CMake Error at Dependencies/OgreInstallDependencies.cmake:107 (configure_file):
  configure_file Problem configuring file
Call Stack (most recent call first):
  CMake/Dependencies.cmake:53 (include)
  CMakeLists.txt:99 (include)


CMake Error: File H:/Ogre SVN/Dependencies/../Samples/Common/bin/release/cg.dll does not exist.
CMake Error at Dependencies/OgreInstallDependencies.cmake:108 (configure_file):
  configure_file Problem configuring file
Call Stack (most recent call first):
  CMake/Dependencies.cmake:53 (include)
  CMakeLists.txt:99 (include)


CMake Error: File H:/Ogre SVN/Dependencies/../Samples/Common/bin/release/OIS.dll does not exist.
CMake Error at Dependencies/OgreInstallDependencies.cmake:109 (configure_file):
  configure_file Problem configuring file
Call Stack (most recent call first):
  CMake/Dependencies.cmake:53 (include)
  CMakeLists.txt:99 (include)


Looking for ZLIB...
Could not locate ZLIB
Looking for FreeImage...
Could not locate FreeImage
Looking for FREETYPE...
Could not locate FREETYPE
Looking for DirectX...
DirectX_PREFIX_PATH changed.
Found DirectX: H:/Microsoft DirectX SDK (August 2009)/Lib/x86/d3d9.lib
DX lib dir: H:/Microsoft DirectX SDK (August 2009)/Lib/x86
Looking for POCO...
Could not locate POCO
Looking for TBB...
Could not locate TBB
Looking for CEGUI...
Could not locate CEGUI
Looking for OIS...
Could not locate OIS
Could NOT find Doxygen  (missing:  DOXYGEN_EXECUTABLE)
Looking for CppUnit...
Could not locate CppUnit
CMake Error at CMake/Utils/MacroLogFeature.cmake:100 (MESSAGE):
  

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


  -- The following REQUIRED packages could NOT be located on your system.

  -- Please install them before continuing this software installation.

  -- If you are in Windows, try passing -DOGRE_DEPENDENCIES_DIR=<path to
  dependencies>

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


  + freetype: Portable font engine <http://www.freetype.org>

  
  -----------------------------------------------------------------------------
Call Stack (most recent call first):
  CMake/Dependencies.cmake:199 (MACRO_DISPLAY_FEATURE_LOG)
  CMakeLists.txt:99 (include)


Configuring incomplete, errors occurred!
0 x
The Key to Magic -- Book One: ORPHAN
An epic fantasy by H. Jonas Rhynedahll available on Kindle.
The Key to Magic

User avatar
jacmoe
OGRE Retired Moderator
OGRE Retired Moderator
Posts: 20570
Joined: Thu Jan 22, 2004 10:13 am
Location: Denmark
Contact:

Re: CMake build system for Cthugha *looking for testers*

Post by jacmoe » Sun Oct 11, 2009 10:58 pm

Did you download the dependencies? :)
If you did, looks like you need to tell the CMake script where you put them.
0 x
/* Less noise. More signal. */
Ogitor Scenebuilder - powered by Ogre, presented by Qt, fueled by Passion.
OgreAddons - the Ogre code suppository.

Rhynedahll
Halfling
Posts: 77
Joined: Thu Jan 08, 2009 2:03 am

Re: CMake build system for Cthugha *looking for testers*

Post by Rhynedahll » Mon Oct 12, 2009 12:28 am

jacmoe wrote:Did you download the dependencies? :)
If you did, looks like you need to tell the CMake script where you put them.
In Cmake I have OGRE_DEPENDENCIES_DIR set to the location of OgreDependencies_VC9_Eihort_20080203, which, when I downloaded it, I took to be the precompiled dependencies.

Is this not correct?

In any event, the errors are the same with or without that entry.

Deleting the Dependencies folder from the SVN main folder just generates a shorter set of errors.

Code: Select all

Configuring OGRE 1.7.0
CMake Error at CMake/Dependencies.cmake:53 (include):
  include could not find load file:

    H:/Ogre SVN/Dependencies/OgreInstallDependencies.cmake
Call Stack (most recent call first):
  CMakeLists.txt:99 (include)


Looking for ZLIB...
Could not locate ZLIB
Looking for FreeImage...
Could not locate FreeImage
Looking for FREETYPE...
Could not locate FREETYPE
Looking for DirectX...
DirectX_PREFIX_PATH changed.
Found DirectX: H:/Microsoft DirectX SDK (August 2009)/Lib/x86/d3d9.lib
DX lib dir: H:/Microsoft DirectX SDK (August 2009)/Lib/x86
Looking for POCO...
Could not locate POCO
Looking for TBB...
Could not locate TBB
Looking for CEGUI...
Could not locate CEGUI
Looking for OIS...
Could not locate OIS
Could NOT find Doxygen  (missing:  DOXYGEN_EXECUTABLE)
Looking for CppUnit...
Could not locate CppUnit
CMake Error at CMake/Utils/MacroLogFeature.cmake:100 (MESSAGE):
  

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


  -- The following REQUIRED packages could NOT be located on your system.

  -- Please install them before continuing this software installation.

  -- If you are in Windows, try passing -DOGRE_DEPENDENCIES_DIR=<path to
  dependencies>

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


  + freetype: Portable font engine <http://www.freetype.org>

  
  -----------------------------------------------------------------------------
Call Stack (most recent call first):
  CMake/Dependencies.cmake:199 (MACRO_DISPLAY_FEATURE_LOG)
  CMakeLists.txt:99 (include)

Also, there is a message at the bottom of the non-gui Cmake that says "Install dependencies needed for sample builds."
0 x
The Key to Magic -- Book One: ORPHAN
An epic fantasy by H. Jonas Rhynedahll available on Kindle.
The Key to Magic

Locked