Linux: compile of GG after OGRE and OGRE not found

Questions, problems and discussion about compiling FreeOrion.

Moderator: Oberlus

Message
Author
User avatar
RgnadKzin
Space Squid
Posts: 67
Joined: Sun Aug 15, 2010 2:25 am

Linux: compile of GG after OGRE and OGRE not found

#1 Post by RgnadKzin »

My trees in /usr/local/src/ look like this:

- freealut/
- - freealut-1.1.0/
- freeorion/
- - FreeOrion/
- - - GG/
- ogre/
- - ogre_src_v1-7-1/
- openal/
- - openal-soft-1.12.854/

I added /usr/local/lib to /etc/ld.so.conf.d/usrlib.conf
(that's where it appears to belong, as /etc/ld.so.conf contains an include of the /etc/ld.so.conf.d/*.conf items

I compiiled openal, then freealut, then ogre
after each, I did
sudo ldconfig
, which updates the load configuration, I presume.
I have attached the ogre make install
Everything appears to be OK, stuff gets installed to
/usr/local/include/OGRE/ and /usr/local/lib/OGRE/

Then I go to the /usr/local/src/freeorion/FreeOrion/GG/ directory and cmake:
[Sat Oct 16 - 08:54:47 /usr/local/src/freeorion/FreeOrion/GG]
[bradbva@localhost GG]$ sudo cmake .
Password:
-- Build platform: linux
-- Configuring GiGi
-- Configuring GiGiSDL
-- Configuring GiGiOgre
-- checking for one of the modules 'OGRE'
Warning: Ogre could not be found. Disabling the Ogre build.
-- Configuring Ogre OIS Input Plugin
-- checking for one of the modules 'OIS'
Warning: OIS could not be found. Disabling the OIS build.
-- Configuring Tutorials
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
Warning: Doxygen could not be found. Disabling the documentation build.
-- Configuring done
-- Generating done
-- Build files have been written to: /usr/local/src/freeorion/FreeOrion/GG
I am not worried about the IOS and Doxygen as they appear to be optional.

gcc and g++ versions are 4.4.1
I am on kernel 2.6.32.12
pcLinuxOS
KDE 4.5.2

What am I missing?
Attachments
orge.make.install.txt
the output from
>sudo make install
in the ogre/ogre_src_v1-7-1/ directory
(32.93 KiB) Downloaded 181 times

User avatar
OndrejR
Space Dragon
Posts: 339
Joined: Thu Oct 02, 2008 11:00 pm
Location: Slovakia

Re: Linux: compile of GG after OGRE and OGRE not found

#2 Post by OndrejR »

you did
sudo cmake .
which uses root environment. But for security reasons, this environment is not powerful as normal user. You have to change rights of GG back to normal users(because sudo cmake . generates files which owns root) and run again as normal user
cmake .
as wiki tells.

Ogre OIS is optional for GG, but not for FreeOrion(but if you compiled OGRE, you should have it). But oxygen is optional(for documentation).

User avatar
RgnadKzin
Space Squid
Posts: 67
Joined: Sun Aug 15, 2010 2:25 am

Re: Linux: compile of GG after OGRE yields OGRE not found

#3 Post by RgnadKzin »

Nope, that wasn't it.

I changed the permissions of the src tree to user=root and group=users
I added OIS and recompiled everything using
cmake .
make
sudo make install
sudo ldconfig
Excepting OIS itself, where I had to
./bootstrap
./configure
make
sudo make install
sudo ldconfig
Here is the cmake of GG:
[bradbva@localhost GG]$ cmake .
-- Build platform: linux
-- Configuring GiGi
-- Configuring GiGiSDL
-- Configuring GiGiOgre
-- checking for one of the modules 'OGRE'
Warning: Ogre could not be found. Disabling the Ogre build.
-- Configuring Ogre OIS Input Plugin
-- checking for one of the modules 'OIS'
Warning: OIS could not be found. Disabling the OIS build.
-- Configuring Tutorials
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
Warning: Doxygen could not be found. Disabling the documentation build.
-- Configuring done
-- Generating done
-- Build files have been written to: /usr/local/src/freeorion/FreeOrion/GG
What do I try next?

User avatar
OndrejR
Space Dragon
Posts: 339
Joined: Thu Oct 02, 2008 11:00 pm
Location: Slovakia

Re: Linux: compile of GG after OGRE and OGRE not found

#4 Post by OndrejR »

Try as normal user what says
whereis OGRE.pc
Also be sure to have FreeOrion requirements(from Ubuntu, pcLinuxOS may be something similar)
sudo apt-get install build-essential subversion pkg-config libltdl3-dev cmake
sudo apt-get install python2.6-dev libfreetype6-dev libsdl1.2-dev graphviz-dev libalut-dev libvorbis-dev libois-dev libtiff4-dev libopenal-dev

sudo apt-get install libboost-dev
especially pkg-config

Delete also file CMakeCache.txt and run cmake . again.

User avatar
RgnadKzin
Space Squid
Posts: 67
Joined: Sun Aug 15, 2010 2:25 am

Re: Linux: compile of GG after OGRE and OGRE not found

#5 Post by RgnadKzin »

As a normal user:
[bradbva@localhost GG]$ whereis OGRE.pc
OGRE: /usr/local/lib/OGRE
Although it does not find OIS.pc on a whereis (?!)
Also, looks like everything is properly configured:
[bradbva@localhost GG]$ ls -la /usr/local/lib/pkgconfig/
total 52
drwxr-xr-x 2 root root 4096 2010-10-16 17:27 ./
drwxr-xr-x 5 root root 4096 2010-10-16 21:00 ../
-rw-r--r-- 1 root root 270 2010-10-13 19:16 freealut.pc
-rw-r--r-- 1 root root 382 2010-10-13 23:37 GiGi.pc
-rw-r--r-- 1 root root 267 2010-10-14 23:35 GiGiSDL.pc
-rw-r--r-- 1 root root 278 2010-10-15 21:36 OGRE-Paging.pc
-rw-r--r-- 1 root root 318 2010-10-15 21:36 OGRE.pc
-rw-r--r-- 1 root root 327 2010-10-15 21:36 OGRE-PCZ.pc
-rw-r--r-- 1 root root 286 2010-10-15 21:36 OGRE-Property.pc
-rw-r--r-- 1 root root 307 2010-10-15 21:36 OGRE-RTShaderSystem.pc
-rw-r--r-- 1 root root 296 2010-10-15 21:36 OGRE-Terrain.pc
-rw-r--r-- 1 root root 237 2010-10-16 17:27 OIS.pc
-rw-r--r-- 1 root root 243 2010-10-13 19:15 openal.pc
After deleting CMakeCache.txt, here is the result:
[bradbva@localhost GG]$ rm CMakeCache.txt
rm: remove regular file `CMakeCache.txt'? y
[Sun Oct 17 - 09:41:16 /usr/local/src/freeorion/FreeOrion/GG]
[bradbva@localhost GG]$ cmake .
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/lib/ccache/bin/gcc
-- Check for working C compiler: /usr/lib/ccache/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/lib/ccache/bin/c++
-- Check for working CXX compiler: /usr/lib/ccache/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Build platform: linux
-- Boost version: 1.42.0
-- Found the following Boost libraries:
-- date_time
-- filesystem
-- signals
-- system
-- thread
-- Found JPEG: /usr/lib/libjpeg.so
-- Found ZLIB: /usr/lib/libz.so
-- Found PNG: /usr/lib/libpng.so
-- Found TIFF: /usr/lib/libtiff.so
-- 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
-- Found Freetype: /usr/lib/libfreetype.so
-- Configuring GiGi
-- Configuring GiGiSDL
-- Looking for include files CMAKE_HAVE_PTHREAD_H
-- Looking for include files CMAKE_HAVE_PTHREAD_H - found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Configuring GiGiOgre
-- checking for one of the modules 'OGRE'
Warning: Ogre could not be found. Disabling the Ogre build.
-- Configuring Ogre OIS Input Plugin
-- checking for one of the modules 'OIS'
Warning: OIS could not be found. Disabling the OIS build.
-- Configuring Tutorials
-- Boost version: 1.42.0
-- Found the following Boost libraries:
-- serialization
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
Warning: Doxygen could not be found. Disabling the documentation build.
-- Configuring done
-- Generating done
-- Build files have been written to: /usr/local/src/freeorion/FreeOrion/GG

User avatar
OndrejR
Space Dragon
Posts: 339
Joined: Thu Oct 02, 2008 11:00 pm
Location: Slovakia

Re: Linux: compile of GG after OGRE and OGRE not found

#6 Post by OndrejR »

My paths
$ whereis OIS.pc
OIS: /usr/include/OIS

$ whereis OGRE.pc
OGRE: /etc/OGRE /usr/lib/OGRE /usr/lib(64)/OGRE /usr/include/OGRE
You should have path /usr/local/...

If you have them in that directories, then something is wrong. In include directories should be files for development - C++ headers ending with extension .h

User avatar
RgnadKzin
Space Squid
Posts: 67
Joined: Sun Aug 15, 2010 2:25 am

Re: Linux: compile of GG after OGRE and OGRE not found

#7 Post by RgnadKzin »

Code: Select all

[bradbva@localhost src]$ ls /usr/local/include                                   
AL/  GG/  OGRE/  OIS/

Code: Select all

[bradbva@localhost src]$ ls /usr/local/include/OIS/                              
OISConfig.h  OISException.h       OIS.h              OISJoyStick.h  OISObject.h
OISEffect.h  OISFactoryCreator.h  OISInputManager.h  OISKeyboard.h  OISPrereqs.h
OISEvents.h  OISForceFeedback.h   OISInterface.h     OISMouse.h

Code: Select all

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

Code: Select all

[bradbva@localhost src]$ ls /usr/local/lib
libalut.a              libOgrePaging.so.1.7.1*          libOIS.la*
libalut.so@            libOgreProperty.so@              libOIS.so@
libalut.so.0@          libOgreProperty.so.1.7.1*        libopenal.so@
libalut.so.0.0.0*      libOgreRTShaderSystem.so@        libopenal.so.1@
libGiGiSDL.so*         libOgreRTShaderSystem.so.1.7.1*  libopenal.so.1.12.854*
libGiGi.so*            libOgreTerrain.so@               OGRE/
libOgreMain.so@        libOgreTerrain.so.1.7.1*         pkgconfig/
libOgreMain.so.1.7.1*  libOIS-1.2.0.so*                 printdriver/
libOgrePaging.so@      libOIS.a

Code: Select all

bradbva@localhost src]$ ls /usr/local/lib/OGRE/                                 
cmake/                         Plugin_OctreeZone.so*
Plugin_BSPSceneManager.so*     Plugin_ParticleFX.so*
Plugin_CgProgramManager.so*    Plugin_PCZSceneManager.so*
Plugin_OctreeSceneManager.so*  RenderSystem_GL.so*

Code: Select all

[bradbva@localhost src]$ ls /usr/local/lib/OGRE/cmake/                           
FindOGRE.cmake       OgreConfigTargets.cmake   PreprocessorUtils.cmake
FindOIS.cmake        OgreFindFrameworks.cmake
FindPkgMacros.cmake  OgreGetVersion.cmake

Code: Select all

[bradbva@localhost src]$ ls /usr/local/lib/pkgconfig/
freealut.pc  OGRE-Paging.pc  OGRE-Property.pc        OIS.pc
GiGi.pc      OGRE.pc         OGRE-RTShaderSystem.pc  openal.pc
GiGiSDL.pc   OGRE-PCZ.pc     OGRE-Terrain.pc

Code: Select all

[bradbva@localhost src]$ cat /usr/local/lib/pkgconfig/OIS.pc                     
prefix=/usr/local
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include

Name: OIS
Description: Crossplatform C++ Input Framework
Version: 1.2.0
Libs: -L${libdir} -lOIS
Cflags: -I${includedir}/OIS -I${includedir}

Code: Select all

[bradbva@localhost src]$ cat /usr/local/lib/pkgconfig/OGRE.pc                    
prefix=/usr/local
exec_prefix=${prefix}
libdir=${prefix}/lib
includedir=${prefix}/include
plugindir=${libdir}/OGRE

Name: OGRE
Description: Object-Oriented Graphics Rendering Engine
Version: 1.7.1
URL: http://www.ogre3d.org
Libs: -L${libdir} -lOgreMain  -lpthread
Cflags: -I${includedir} -I${includedir}/OGRE -pthread
It all looks configured properly to me. The list of packages that you provided above are not called the same in the pcLinuxOS environment, but I think everything that has to be installed IS installed.

Where can I look?

User avatar
OndrejR
Space Dragon
Posts: 339
Joined: Thu Oct 02, 2008 11:00 pm
Location: Slovakia

Re: Linux: compile of GG after OGRE and OGRE not found

#8 Post by OndrejR »

According this howto you need to tell GG/cmake/FindOGRE.cmake(but this file is automatically called from main cmake) or directly found path in cmake cache or somehow tell cmake what variable ${OGRE_INCLUDE_DIR} is. But I am not expert on cmake.

Probably something like this(you need first to delete CMakeCache.txt)
cmake -DOGRE_INCLUDE_DIR=/usr/local/include/OGRE -DOIS_INCLUDE_DIR=/usr/local/include/OIS .

User avatar
Geoff the Medio
Programming, Design, Admin
Posts: 13603
Joined: Wed Oct 08, 2003 1:33 am
Location: Munich

Re: Linux: compile of GG after OGRE and OGRE not found

#9 Post by Geoff the Medio »

I haven't read this thread carefully, so this might be irrelivant, but is it possible that FindOGRE.cmake is expecting a particular version of OGRE, and you're using a newer one that isn't recognized? It might just be a matter of updating a version number. This would be similar to issues some people have been having with Boost not being recognized by CMake's FindBoost.cmake, which has issues due to how Boost version numbering affects filenames of future versions in an unpredictable way.

User avatar
RgnadKzin
Space Squid
Posts: 67
Joined: Sun Aug 15, 2010 2:25 am

Re: Linux: compile of GG after OGRE and OGRE not found

#10 Post by RgnadKzin »

I have been trying to work thru this on my own. I have gotten to the point where I am ready to compile freeorion/FreeOrion/GG. The cmake . that I run provides a couple of errors:

After an rm -f CMakeCache.txt:

Code: Select all

. . .
-- Found Threads: TRUE
-- Configuring GiGiOgre
-- checking for one of the modules 'OGRE'
     Warning: Ogre could not be found.  Disabling the Ogre build.
-- Configuring Ogre OIS Input Plugin
-- checking for one of the modules 'OIS'
     Warning: OIS could not be found.  Disabling the OIS build.
-- Configuring Tutorials
-- Boost version: 1.42.0
-- Found the following Boost libraries:
--   serialization
-- Could NOT find Doxygen  (missing:  DOXYGEN_EXECUTABLE)
   Warning: Doxygen could not be found.  Disabling the documentation build.
-- Configuring done
-- Generating done
-- Build files have been written to: /usr/local/src/freeorion/FreeOrion/GG
I then edit the CMakeCache.txt file and add the following:

Code: Select all

/Single output directory for building all libraries.
LIBRARY_OUTPUT_PATH:PATH=

OGRE_INCLUDE_DIR:PATH=/usr/local/include/OGRE

OGRE_LIBRARIES:STRING=/usr/local/lib/libOgreMain.so

OGRE_LIB_DIR:PATH=/usr/local/lib

OIS_INCLUDE_DIR:PATH=/usr/local/include/IOS

OIS_LIBRARIES:STRING=/usr/local/lib/libOIS.so

OIS_LIB_DIR:PATH=/usr/local/lib
My question is what is the name of the Ogre library?
Above, you can see I used libOgreMain.so

User avatar
Geoff the Medio
Programming, Design, Admin
Posts: 13603
Joined: Wed Oct 08, 2003 1:33 am
Location: Munich

Re: Linux: compile of GG after OGRE and OGRE not found

#11 Post by Geoff the Medio »

RgnadKzin wrote:My question is what is the name of the Ogre library?
Have you tried using ccmake . to set the library and include directories, rather than editing CMakeCache.txt? It may not need to be told the specific library file name(s).

User avatar
RgnadKzin
Space Squid
Posts: 67
Joined: Sun Aug 15, 2010 2:25 am

Re: Linux: compile of GG after OGRE and OGRE not found

#12 Post by RgnadKzin »

I filled in /usr/local/include/OGRE and OIS for the missing includes and /usr/local/lib for the missing lib_dirs and libraries.

Code: Select all

BOOST_SIGNALS_NAMESPACE          signals                                      
 BUILD_DEBUG                      OFF                                          
 BUILD_DOCUMENTATION              ON                                           
 BUILD_EXPERIMENTAL_EVE_SUPPORT   OFF                                          
 BUILD_MULTI_THREADED             ON                                           
 BUILD_OGRE_DRIVER                ON                                           
 BUILD_OGRE_OIS_PLUGIN            ON                                           
 BUILD_PLATFORM                   linux                                        
 BUILD_SDL_DRIVER                 ON                                           
 BUILD_SHARED                     ON                                           
 BUILD_STATIC                     OFF                                          
 BUILD_TUTORIALS                  ON                                           
 CMAKE_BACKWARDS_COMPATIBILITY    2.4                                          
 CMAKE_BUILD_TYPE                 Release                                      
 CMAKE_INSTALL_PREFIX             /usr/local                                   
 DEBUG_COMPILE_FLAGS              -g                                           
 EXECUTABLE_OUTPUT_PATH                                                        
 LIBRARY_OUTPUT_PATH                                                           
 OGRE_INCLUDE_DIR                 /usr/local/include/OGRE #added                      
 OGRE_LIBRARIES                   /usr/local/lib  #added      
 OGRE_LIB_DIR                     /usr/local/lib  #added          
 OIS_INCLUDE_DIR                  /usr/local/include/OIS  #added
 OIS_LIBRARIES                    /usr/local/lib  #added      
 OIS_LIB_DIR                      /usr/local/lib  #added
 PACKAGE_TYPE                     NoPackage                                    
 RELEASE_COMPILE_FLAGS            -O3 -DNDEBUG
upon generate, I get

Code: Select all

WARNING: Target "GiGiOgre" requests linking to directory "/usr/local/lib".
 Targets may link only to libraries.  CMake is dropping the item.

 WARNING: Target "GiGiOgrePlugin_OIS" requests linking to directory
 "/usr/local/lib".  Targets may link only to libraries.  CMake is dropping the
 item.
It wants the name of an actual load library. For example, I know that I want libOIS.so, so I specify it for OIS_LIBRARIES.
When I configure again, I get no errors, but I have failed to point to an Ogre library.

That is what I think I am missing.

User avatar
Geoff the Medio
Programming, Design, Admin
Posts: 13603
Joined: Wed Oct 08, 2003 1:33 am
Location: Munich

Re: Linux: compile of GG after OGRE and OGRE not found

#13 Post by Geoff the Medio »

What happens if you just specify the libdirs and not any specific library files in ccmake?

User avatar
RgnadKzin
Space Squid
Posts: 67
Joined: Sun Aug 15, 2010 2:25 am

Re: Linux: compile of GG after OGRE and OGRE not found

#14 Post by RgnadKzin »

It drops the Ogre build.

Does it want the list of ogre related stuff in /lib?

User avatar
Geoff the Medio
Programming, Design, Admin
Posts: 13603
Joined: Wed Oct 08, 2003 1:33 am
Location: Munich

Re: Linux: compile of GG after OGRE and OGRE not found

#15 Post by Geoff the Medio »

I don't know; if I did, I'd have said so by now.

On Windows, it just seems to hve OgreMain.lib for OGRE_LIBRARIES in GiGi's CMakeCache.txt and OIS.lib for OIS_LIBRARIES.

I don't think you should need to specify this though... maybe it's expecting pkgconfig to be present, or for Ogre to be installed (not just built)? But, I don't really know what I'm taking about, so maybe you do.

Post Reply