Compiling on Redhat

Problems building or running the engine, queries about how to use features etc.
Post Reply
zr2b
Gnoblar
Posts: 7
Joined: Fri Sep 15, 2017 9:17 am

Compiling on Redhat

Post by zr2b »

Hi,

I want to compile ogre on Redhat 6.5.

I downloaded ogre and ogredep and I try to compile but I get error with boost lib :
- Found FreeImage: /usr/lib64/libfreeimage.so
-- Looking for FREETYPE...
-- CMAKE_PREFIX_PATH: /data_local/ogre-1.10.8/build/Dependencies;/data_local/ogre-1.10.8/Dependencies;/data_local/ogre-1.10.8/build/../Dependencies;/data_local/ogre-1.10.8/../Dependencies;/usr/local;/usr/lib/x86_64-linux-gnu
-- CMAKE_PREFIX_PATH: /data_local/ogre-1.10.8/build/Dependencies;/data_local/ogre-1.10.8/Dependencies;/data_local/ogre-1.10.8/build/../Dependencies;/data_local/ogre-1.10.8/../Dependencies;/usr/local;/usr/lib/x86_64-linux-gnu
-- Found FREETYPE: /data_local/ogre-1.10.8/build/Dependencies/lib/libfreetype.a
-- Looking for Cg...
-- checking for module 'Cg'
-- package 'Cg' not found
-- Could not locate Cg
CMake Error at /usr/lib64/boost/Boost.cmake:536 (message):
The imported target "boost_date_time-static" references the file

"/usr/lib64/lib64/libboost_date_time.a"

but this file does not exist. Possible reasons include:

* The file was deleted, renamed, or moved to another location.

* An install or uninstall procedure did not complete successfully.

* The installation package was faulty and contained

"/usr/lib64/boost/Boost.cmake"

but not all the files it references.

Call Stack (most recent call first):
/usr/lib64/boost/BoostConfig.cmake:28 (include)
/usr/share/cmake/Modules/FindBoost.cmake:177 (find_package)
CMake/Dependencies.cmake:283 (find_package)
CMakeLists.txt:352 (include)

Anyone can include boost lib in ogredep ? Thanks.

I downloaded Boost and compiled it. How can I include it when compoiling ogre ? I tryed cmake -DBOOST_ROOT=... but it seems to doesn't work... new path isn't took into consideration.
paroj
OGRE Team Member
OGRE Team Member
Posts: 1995
Joined: Sun Mar 30, 2014 2:51 pm
x 1075
Contact:

Re: Compiling on Redhat

Post by paroj »

in CMake set:
OGRE_THREAD_DEFAULT_PROVIDER=none
OGRE_THREAD_TYPE=0
zr2b
Gnoblar
Posts: 7
Joined: Fri Sep 15, 2017 9:17 am

Re: Compiling on Redhat

Post by zr2b »

Doesn't work, same error message, is it correct ?
cmake -DOGRE_THREAD_DEFAULT_PROVIDER=NONE -DOGRE_THREAD_TYPE=0 -DBOOST_ROOT=../../boost_1_65_0/ -DBOOST_LIBRARY_DIRS=../../boost_1_65_0/lib/ ..
Thanks.
paroj
OGRE Team Member
OGRE Team Member
Posts: 1995
Joined: Sun Mar 30, 2014 2:51 pm
x 1075
Contact:

Re: Compiling on Redhat

Post by paroj »

just do

Code: Select all

cmake -DOGRE_THREAD_DEFAULT_PROVIDER=NONE -DOGRE_THREAD_TYPE=0 ..
this will disable boost which you probably do not want anyway: https://github.com/OGRECave/ogre/issues/454
zr2b
Gnoblar
Posts: 7
Joined: Fri Sep 15, 2017 9:17 am

Re: Compiling on Redhat

Post by zr2b »

It does nothing I get the same error...
I cleaned my build before cmake
zr2b
Gnoblar
Posts: 7
Joined: Fri Sep 15, 2017 9:17 am

Re: Compiling on Redhat

Post by zr2b »

If i try with :
-DBoost_NO_BOOST_CMAKE=TRUE
cmake works but make fails :
Scanning dependencies of target OgreMain
[ 0%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgreRoot.cpp.o
In file included from /data_local/ogre-1.10.8/OgreMain/include/Threading/OgreThreadHeaders.h:34,
from /data_local/ogre-1.10.8/OgreMain/include/OgreStringInterface.h:34,
from /data_local/ogre-1.10.8/OgreMain/include/OgreResource.h:33,
from /data_local/ogre-1.10.8/OgreMain/include/OgreGpuProgram.h:33,
from /data_local/ogre-1.10.8/OgreMain/include/OgreRenderable.h:34,
from /data_local/ogre-1.10.8/OgreMain/include/OgreShadowCaster.h:32,
from /data_local/ogre-1.10.8/OgreMain/include/OgreMovableObject.h:36,
from /data_local/ogre-1.10.8/OgreMain/include/OgreFrustum.h:32,
from /data_local/ogre-1.10.8/OgreMain/include/OgreCamera.h:36,
from /data_local/ogre-1.10.8/OgreMain/include/OgreStableHeaders.h:45,
from /data_local/ogre-1.10.8/OgreMain/src/OgreRoot.cpp:29:
/data_local/ogre-1.10.8/OgreMain/include/Threading/OgreThreadHeadersBoost.h:30: warning: expected [error|warning|ignored] after ‘#pragma GCC diagnostic’
^Cmake[2]: *** [OgreMain/CMakeFiles/OgreMain.dir/src/OgreRoot.cpp.o] Interrupt
make[1]: *** [OgreMain/CMakeFiles/OgreMain.dir/all] Interrupt
make: *** [all] Interrupt
paroj
OGRE Team Member
OGRE Team Member
Posts: 1995
Joined: Sun Mar 30, 2014 2:51 pm
x 1075
Contact:

Re: Compiling on Redhat

Post by paroj »

sorry it should be

Code: Select all

-DOGRE_CONFIG_THREADS=0
zr2b
Gnoblar
Posts: 7
Joined: Fri Sep 15, 2017 9:17 am

Re: Compiling on Redhat

Post by zr2b »

Same error :-(
paroj
OGRE Team Member
OGRE Team Member
Posts: 1995
Joined: Sun Mar 30, 2014 2:51 pm
x 1075
Contact:

Re: Compiling on Redhat

Post by paroj »

the above command did not work, see: https://github.com/OGRECave/ogre/blob/m ... .h#L33-L35
zr2b
Gnoblar
Posts: 7
Joined: Fri Sep 15, 2017 9:17 am

Re: Compiling on Redhat

Post by zr2b »

Not working
zr2b
Gnoblar
Posts: 7
Joined: Fri Sep 15, 2017 9:17 am

Re: Compiling on Redhat

Post by zr2b »

any idea ? why it doesn't work ? thanks.
Post Reply