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.
[1.9] No package 'OGRE' found
-
- Halfling
- Posts: 83
- Joined: Sun Feb 21, 2010 4:58 pm
- x 28
Re: [1.9] No package 'OGRE' found
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.
Last edited by xissburg on Sat Dec 10, 2016 5:27 pm, edited 1 time in total.
-
- Orc Shaman
- Posts: 737
- Joined: Fri May 31, 2013 2:28 am
- x 65
Re: [1.9] No package 'OGRE' found
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...
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...
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
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
-
- Halfling
- Posts: 83
- Joined: Sun Feb 21, 2010 4:58 pm
- x 28
Re: [1.9] No package 'OGRE' found
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...
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...
-
- Orc Shaman
- Posts: 737
- Joined: Fri May 31, 2013 2:28 am
- x 65
Re: [1.9] No package 'OGRE' found
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
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
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
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