[1.9] No package 'OGRE' found

Problems building or running the engine, queries about how to use features etc.
Post Reply
xissburg
Halfling
Posts: 72
Joined: Sun Feb 21, 2010 4:58 pm
x 15

[1.9] No package 'OGRE' found

Post by xissburg » Sat Dec 10, 2016 11:02 am

I am trying to setup a project using the clean-project (https://github.com/ogre3d/clean-project) but I am stuck. I am on macOS, trying to output a project with unix makefiles.

First of all, the common.cmake file (https://github.com/ogre3d/clean-project ... mmon.cmake) is missing stuff in the CMAKE_MODULE_PATH... you also have to include ogre/CMake/Utils and ogre/CMake/Packages.

I have put the ogre folder at /usr/local/lib/ogre. When I run _configure_ in CMake gui I get these errors:

Looking for OGRE...
Checking for module 'OGRE'
No package 'OGRE' found
Could not locate OGRE
CMake Error at /usr/local/lib/OGRE/cmake/Utils/FindPkgMacros.cmake:122 (message):
Required library OGRE not found! Install the library (including dev
packages) and try again. If the library is already installed, set the
missing variables manually in cmake.
Call Stack (most recent call first):
/usr/local/lib/OGRE/cmake/Packages/FindOGRE.cmake:248 (findpkg_finish)
CMakeLists.txt:53 (find_package)

I even looked into FindOGRE.cmake and FindPkgMacros.cmake but it's not clear why it's not finding anything.
0 x

xissburg
Halfling
Posts: 72
Joined: Sun Feb 21, 2010 4:58 pm
x 15

Re: [1.9] No package 'OGRE' found

Post by xissburg » Sat Dec 10, 2016 1:12 pm

This is really sad. I've been trying this for a few days and I just can't succeed. I just don't know what else to do. What a bad (re)start. :cry:
Last edited by xissburg on Sat Dec 10, 2016 5:27 pm, edited 1 time in total.
0 x

frostbyte
Orc Shaman
Posts: 737
Joined: Fri May 31, 2013 2:28 am
x 14

Re: [1.9] No package 'OGRE' found

Post by frostbyte » Sat Dec 10, 2016 2:50 pm

damm ancient cmake...
don't know how to solve this( for 5 years now... )
happens for some project for others not...( version problem??? )
what i do is just get rig of the findOgre command and use hard coded path
it's better to save this paths to a .txt file for future use...
0 x
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

xissburg
Halfling
Posts: 72
Joined: Sun Feb 21, 2010 4:58 pm
x 15

Re: [1.9] No package 'OGRE' found

Post by xissburg » Sat Dec 10, 2016 6:03 pm

How do you specify the paths yourself? It looks like there's a lot to be specified.

I made a change in FindOGRE.cmake to actually set OGRE_FOUND to TRUE (it's weird how it's not setting it, or maybe it's supposed to set it somewhere) because it actually finds it but then bails out saying it wasn't found.. with this change the process moves forwards but it then doesn't find the components, etc...
0 x

frostbyte
Orc Shaman
Posts: 737
Joined: Fri May 31, 2013 2:28 am
x 14

Re: [1.9] No package 'OGRE' found

Post by frostbyte » Sun Dec 11, 2016 6:06 am

hi, sorry for the poor description...
i actually do it in a very primative way, i just remove the findOGRE command from the cmake script( usually by just adding # before findOGRE )
then the project configures and builds without error messages but without any ogre related paths
then after, i open the project( in my case with visual studio ) and manually add the projects include paths, library paths and add OgreMain.lib OgreOverlay.lib and any other ogre related lib which is required by the project
it takes about 2 minutes...easier for me than figuring out a proper solution

edit: i don't know how it is with xcode...but with VS i think that my problem is that i did'nt do "make install" since i did'nt configure Ogre to be build as a nmake project( VS equivalent of make ) but as a visual-studio solution( which i think does'nt have an installation option )

never used xcode but maybe this can give you some direction for a proper ogre installation...
http://stackoverflow.com/questions/2658 ... from-xcode
and any way if you configure ogre to be build using make file then don't forget to do a "make install" after "make"
good luck
0 x
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

Post Reply