Could not locate OIS using CMake and Makefiles

Problems building or running the engine, queries about how to use features etc.
vinz243
Gnoblar
Posts: 15
Joined: Mon Dec 01, 2014 6:55 pm

Re: Could not locate OIS using CMake and Makefiles

Post by vinz243 »

Well, it's what get called just before compilation and that executes things suchas #ifdef blabla
So I should set like this in main cpp file?

Code: Select all

#define BOOST_LIB_DIAGNOSTIC=??? 
User avatar
HackerManiac
Halfling
Posts: 50
Joined: Thu Oct 30, 2014 9:46 am
x 3

Re: Could not locate OIS using CMake and Makefiles

Post by HackerManiac »

At the top of your main.cpp just write

Code: Select all

#define BOOST_LIB_DIAGNOSTIC
nothing else needs to be added. This works, because then #ifdef BOOST_LIB_DIAGNOSTIC returns true in the program.

Or you can add it to the project preprocessor definitions in your IDE.
vinz243
Gnoblar
Posts: 15
Joined: Mon Dec 01, 2014 6:55 pm

Re: Could not locate OIS using CMake and Makefiles

Post by vinz243 »

Thank you ver much for your help, rebuilding everything includiong ogre and booost resolved the problem. See SO post for more info
Post Reply