Building Ogre under CentOS 5.4 64-bit

Problems building or running the engine, queries about how to use features etc.
Post Reply
User avatar
jesko
Gnoblar
Posts: 22
Joined: Thu Apr 29, 2010 2:43 pm

Building Ogre under CentOS 5.4 64-bit

Post by jesko »

Hello,

now I'm on CentOS 5.4 64-bit ...

I DL graphic card driver from nvidia, ogre src, boost (rpm package), cmake, freetype, freeimage zlib, zziplib and build them ... so far so good.

When I go into the ogre src directory and call cmake on it, there are still a few important dependencies not fulfilled (X11, Xt, Xaw). Furthermore there are optional dependencies not fulfilled (OpenGL ES, cg, boost, boost-thread, boost-date_time, POCO(?), tbb OIS, CppUnit).
:roll:

:?: :?: :?:
1st) Can anybody please tell me in clear words(!) how to install boost that cmake can find it - or how to configure cmake that it can find boost ?
2nd) What package(s) should I install to fulfill the X-requirements (is there a way to install them without crashing current installation?) ?
:cry:

ANY help appreciated!

Thanks in advance.
Last edited by jesko on Wed May 19, 2010 6:22 pm, edited 1 time in total.
A ship is safest in the harbor, but that is not what ships are built for.
User avatar
jesko
Gnoblar
Posts: 22
Joined: Thu Apr 29, 2010 2:43 pm

Re: Dependencies for OGRE 1.7 (Now with support for VS 2010)

Post by jesko »

After neverending searches I have found how the packages for x-support under CentOS 5.4 64-bit are named and how to install:

Code: Select all

yum install libXt-devel libXaw-devel libX11-devel
Hope this helps somebody.

Now cmake doesn't complain anymore about missing important dependencies, but

Code: Select all

[root@localhost ogre_src_v1-7-1]# cmake .
-- Configuring OGRE 1.7.1
-- Detected g++ 4.1.2

-- Enabling GCC visibility flags
-- Search path: /usr/local/src/ogre_src_v1-7-1/Dependencies;/usr/local/src/ogre_src_v1-7-1/Dependencies;/usr/local/src/ogre_src_v1-7-1/../Dependencies;/usr/local/src/ogre_src_v1-7-1/../Dependencies
-- Looking for ZLIB...
-- checking for module 'zzip-zlib-config'
--   package 'zzip-zlib-config' not found
-- Found ZLIB: optimized;/usr/lib64/libz.so;debug;/usr/lib64/libz.so
-- Looking for ZZip...
-- checking for module 'zziplib'
--   package 'zziplib' not found
-- Found ZZip: optimized;/usr/local/lib/libzzip.so;debug;/usr/local/lib/libzzip.so
-- Looking for FreeImage...
-- checking for module 'freeimage'
--   package 'freeimage' not found
-- Found FreeImage: optimized;/usr/lib/libfreeimage.a;debug;/usr/lib/libfreeimage.a
-- Looking for FREETYPE...
-- checking for module 'freetype2'
--   package 'freetype2' not found
-- CMAKE_PREFIX_PATH: /usr/local/src/ogre_src_v1-7-1/Dependencies;/usr/local/src/ogre_src_v1-7-1/Dependencies;/usr/local/src/ogre_src_v1-7-1/../Dependencies;/usr/local/src/ogre_src_v1-7-1/../Dependencies;/usr/local
-- Found FREETYPE: optimized;/usr/lib64/libfreetype.a;debug;/usr/lib64/libfreetype.a
-- Looking for XOpenDisplay in /usr/lib/libX11.so
-- Looking for XOpenDisplay in /usr/lib/libX11.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
-- Found X11: /usr/lib/libX11.so
-- Looking for Cg...
-- checking for module 'Cg'
--   package 'Cg' not found
-- Could not locate 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...
-- checking for module 'OIS'
--   package 'OIS' not found
-- Could not locate OIS
-- Looking for CppUnit...
-- checking for module 'cppunit'
--   package 'cppunit' not found
-- Found CppUnit: optimized;/usr/local/lib/libcppunit.so;debug;/usr/local/lib/libcppunit.so
-- 
-----------------------------------------------------------------------------
-- 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
+ Doxygen
+ CppUnit
-----------------------------------------------------------------------------
-- The following OPTIONAL packages could NOT be located on your system.
-- Consider installing them to enable more features from this software.
+ 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>
+ boost: Boost (general) <http://boost.org>
+ boost-thread: Used for threading support <http://boost.org>
+ boost-date_time: Used for threading support <http://boost.org>
+ POCO: POCO framework <http://pocoproject.org/>
+ tbb: Threading Building Blocks <http://www.threadingbuildingblocks.org/>
+ OIS: Input library needed for the samples <http://sourceforge.net/projects/wgois>
-----------------------------------------------------------------------------

-- Could not find dependency: OIS
-- Skipping samples build
-- 
----------------------------------------------------------------------------
  FEATURE SUMMARY
----------------------------------------------------------------------------

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

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

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

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:
X11_Xrandr_LIB (ADVANCED)
    linked by target "RenderSystem_GL" in directory /usr/local/src/ogre_src_v1-7-1/RenderSystems/GL

-- Configuring incomplete, errors occurred!
So it has still errors ...
Does someone know what to do now ? :?
A ship is safest in the harbor, but that is not what ships are built for.
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: Dependencies for OGRE 1.7 (Now with support for VS 2010)

Post by jacmoe »

package 'Cg' not found
package 'OIS' not found
package 'zziplib' not found
etc.

Here's a list of dependencies:
http://www.ogre3d.org/wiki/index.php/Bu ... 2F_Kubuntu
/* Less noise. More signal. */
Ogitor Scenebuilder - powered by Ogre, presented by Qt, fueled by Passion.
OgreAddons - the Ogre code suppository.
User avatar
jesko
Gnoblar
Posts: 22
Joined: Thu Apr 29, 2010 2:43 pm

Re: Dependencies for OGRE 1.7 (Now with support for VS 2010)

Post by jesko »

Hello jacmoe,

this dependencies are only optional ... which means I don't need it to get it compiled - or am I wrong here ?

After having installed

Code: Select all

yum install libXrandr-devel
I got 'cmake' running fine ... ok so far, but now doing a 'make' I get (after 50% of compile)

Code: Select all

make
Linking CXX shared library ../lib/libOgreMain.so
/usr/bin/ld: /usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/libfreetype.a(ftinit.o): relocation R_X86_64_32 against `tt_driver_class' can not be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/libfreetype.a: could not read symbols: Bad value
collect2: ld gab 1 als Ende-Status zurück
make[2]: *** [lib/libOgreMain.so.1.7.1] Fehler 1
make[1]: *** [OgreMain/CMakeFiles/OgreMain.dir/all] Fehler 2
make: *** [all] Fehler 2
does anybody know ?

I find it difficult to resolve all dependencies on CentOS, because I have installed most of the 'optional' packages but they are simply not recognized ...

Does anybody have suggestions to use a different linux distribution (still 64 bit) which works better ?
Or is there a reason why binary packages for 64 bit linux is not provided ?

[To explain the 64bit thing: We want to store and handle models of 40-500M triangles within OGRE; currently we have a machine here with 16GB memory, a nVidia GTX480 and 2 quadcore processors; with carefully chosen LOD levels it should be possible to render those models at very high frame rates on 640x480 or 1920x1080]
A ship is safest in the harbor, but that is not what ships are built for.
Post Reply