CMake Noob Problem

kungfoomasta

30-03-2009 03:28:58

I'm trying to compile the latest ETL code from SVN and I can't get CMake to work correctly. Can anybody help me out?



In particular:

1. What is the path to the source code?
2. Where should I build the binaries?
3. What entries do I need?

I somehow managed to get CMake to work before, but this time around I'm clueless. The "Where is the path to the source code" is very ambiguous, since files are usually in several folders...

Halp!

Zero23

30-03-2009 07:44:43

May you should define the Ogre include Path!?
I dont compiled that with cmake self^^ I created a VS project with cmake and compiled them^^

Zero

kungfoomasta

30-03-2009 08:38:33

I created a VS project with cmake and compiled them

How is this done?

Originally I had a lot of entries, all red, and I filled in some, but somewhere along the line they all went away.. am I to assume that "OGRE_CONFIG_INCLUDE_DIR" is the path to Ogre? No offense to whoever created the names for the entries, but that is really badly worded, if that is the case. (Its the "CONFIG" that makes things confusing)

I'm getting this when trying to set the value:

CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
D:/VC9_BuiltFromSource/etl/OGRE_CONFIG_INCLUDE_DIR
used as include directory in directory D:/VC9_BuiltFromSource/etl
used as include directory in directory D:/VC9_BuiltFromSource/etl/EditableTerrain
OGRE_CONFIG_INCLUDE_DIR (ADVANCED)
used as include directory in directory D:/VC9_BuiltFromSource/etl
used as include directory in directory D:/VC9_BuiltFromSource/etl/EditableTerrain


This is where ogre include files are: D:\VC9_Gaia_Dependencies\include\ogre

CABAListic

30-03-2009 10:33:07

Sorry, you need to have a little patience with me; the CMake build is potentially broken in earlier SVN revisions (whereas the later ones are broken in C++ code), so getting ETL to compile at the moment is rather difficult. If you really want to, you might try to use revision 50, but pull in the FindOGRE etc. scripts from the latest revision.

Zero23

30-03-2009 13:34:58

Use the revision 50 like Cabalistic say.

Then I delete #find_package(OGRE REQUIRED)
#find_package(CEGUI)
#find_package(OIS)
#include_directories(${OGRE_INCLUDE_DIRS} ${CEGUI_INCLUDE_DIRS} ${OIS_INCLUDE_DIRS})
from the Cmakelist.txt.

and then call "cmake -G "Visual Studio 2008"" nad now cmake create an VS-project file.

Zero