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)