Ogre3D not working on Ubuntu 14.10

Problems building or running the engine, queries about how to use features etc.
Post Reply
leotrotsky
Gnoblar
Posts: 3
Joined: Sun Mar 08, 2015 1:50 pm

Ogre3D not working on Ubuntu 14.10

Post by leotrotsky »

Hello,
I'm trying to build my first Ogre Application on Ubuntu 14.10 but I fail and I don't know if it's me or Ogre ;).
First I tried to install Ogre via Terminal (sudo apt-get install libogre-1.9-dev) afterwards I downloaded the Clean-Ogre-Cmake-Project 1.9 (http://www.ogre3d.org/tikiwiki/tiki-dow ... download=y).

When I try to configure the Project I get following error:

Code: Select all

CMake Warning (dev) in CMakeLists.txt:
  A logical block opening on the line

    /home/daniel/Schreibtisch/clean_ogre_cmake_project_1.9/CMakeLists.txt:29 (if)

  closes on the line

    /home/daniel/Schreibtisch/clean_ogre_cmake_project_1.9/CMakeLists.txt:41 (endif)

  with mis-matching arguments.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Error at CMakeLists.txt:40 (message):
  Failed to find module path.


CMake Error at CMakeLists.txt:54 (find_package):
  By not providing "FindOGRE.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "OGRE", but
  CMake did not find one.

  Could not find a package configuration file provided by "OGRE" with any of
  the following names:

    OGREConfig.cmake
    ogre-config.cmake

  Add the installation prefix of "OGRE" to CMAKE_PREFIX_PATH or set
  "OGRE_DIR" to a directory containing one of the above files.  If "OGRE"
  provides a separate development package or SDK, be sure it has been
  installed.


Configuring incomplete, errors occurred!
See also "/home/daniel/Schreibtisch/ogretest/CMakeFiles/CMakeOutput.log".

Therefore I tried to find one of the mentioned .cmake files, but they are not here, so I tried to build OGRE from source on my own. I downloaded the source from bitbucket (sinbad-ogre-dd30349ea667) and followed these instructions: http://www.ogre3d.org/tikiwiki/tiki-ind ... sion=Linux
Everything seemed to be fine.

Code: Select all

Configuration and Generation of the project (with Cmake) works now too, but when I open the project with CodeBlocks and Build it (first "all" then "install") and try to run it, nothing happens. Console says:
-------------- Run: OgreApp in OgreApp (compiler: GNU GCC Compiler)---------------

Checking for existence: /home/daniel/Schreibtisch/ogretest/dist/bin/OgreApp
Executing: /home/daniel/Schreibtisch/ogretest/dist/bin/OgreApp  (in /home/daniel/Schreibtisch/ogretest/dist/bin)
Process terminated with status 0 (0 minute(s), 0 second(s))

However, when I start the Application in the Console, I get following error:

Code: Select all

Loading library /usr/local/lib/OGRE/Plugin_CgProgramManager
An exception has occured: OGRE EXCEPTION(7:InternalErrorException): Could not load dynamic library /usr/local/lib/OGRE/Plugin_CgProgramManager.  System Error: /usr/local/lib/OGRE/Plugin_CgProgramManager.so.1.9.0: cannot open shared object file: No such file or directory in DynLib::load at /home/daniel/Schreibtisch/sinbad-ogre-dd30349ea667/OgreMain/src/OgreDynLib.cpp (line 109)
I tried to find this problem on the internet which led me to the hint that I have to install nvidia-cg-toolkit. So I installed it (sudo apt-get install nvidia-cg-toolkit libois-dev libboost-thread-dev), cleaned and build the project again, but I still get the same error. Does anybody know how to fix this?
frostbyte
Orc Shaman
Posts: 737
Joined: Fri May 31, 2013 2:28 am
x 65

Re: Ogre3D not working on Ubuntu 14.10

Post by frostbyte »

just locate plugins.cfg that your project is using( usualy in the folder from which you run the project )
you can disable ogre plugins by adding # before it...

plugins.cfg
....
# Plugin=Plugin_CgProgramManager
....

if you want to build and use cgPlugin( why would you? ) :
open cmake-gui and put a V in "use cg..." option( don't remember the real option name )
hit configure...generate...make...make install...
you can also enable cmake options directly from command-line but i only use cmake-gui so you'll need to google it out...
Last edited by frostbyte on Sun Mar 08, 2015 2:45 pm, edited 2 times in total.
the woods are lovely dark and deep
but i have promises to keep
and miles to code before i sleep
and miles to code before i sleep..

coolest videos link( two minutes paper )...
https://www.youtube.com/user/keeroyz/videos
leotrotsky
Gnoblar
Posts: 3
Joined: Sun Mar 08, 2015 1:50 pm

Re: Ogre3D not working on Ubuntu 14.10

Post by leotrotsky »

I found the solution:
I had to rebuild and reinstall OGRE (http://www.ogre3d.org/tikiwiki/tiki-ind ... sion=Linux) (from src) after installing nvidia-cg-toolkit. Now everything works like a charm.
Post Reply