[Solved] Problem building with CMake

For help with general CEGUI usage:
- Questions about the usage of CEGUI and its features, if not explained in the documentation.
- Problems with the CMAKE configuration or problems occuring during the build process/compilation.
- Errors or unexpected behaviour.

Moderators: CEGUI MVP, CEGUI Team

User avatar
Ident
CEGUI Team
Posts: 1998
Joined: Sat Oct 31, 2009 13:57
Location: Austria

Re: Problem building with CMake

Postby Ident » Thu Jun 26, 2014 11:13

Can you download v0-8 from the bitbucket, because it contains the latest fixes, and try that instead?
https://bitbucket.org/cegui/cegui/branch/v0-8

If you dont wanna do that:
Like stated in the article, the boost find script doesnt work correctly. Setting the directy you are trying to set won't solve anyhting. You have to set ALL the library files as well as the include directory. The CMAke error clearly tells you which one is missing. At the moment: The systems library. Select Group and Advanced in Cmake (sometimes you need to click those twice so it refreshes correctly in older versions) and enter "boost" in the filter. You should see all variables there.
CrazyEddie: "I don't like GUIs"

Walta69
Not too shy to talk
Not too shy to talk
Posts: 31
Joined: Wed Jun 25, 2014 08:40

Re: Problem building with CMake

Postby Walta69 » Thu Jun 26, 2014 11:23

So I should set the location of Boost_PYTHON_LIBRARY_DEBUG etc etc?

Also, where exactly should I set Boost_DIR (seeing as though I am using the SDK). Do I just set it to the root of boost?

Walta69
Not too shy to talk
Not too shy to talk
Posts: 31
Joined: Wed Jun 25, 2014 08:40

Re: Problem building with CMake

Postby Walta69 » Thu Jun 26, 2014 11:26

Sorry, I didn't understand what you meant by all the library files. Not sure which boost env variables to edit from cMake.

User avatar
Ident
CEGUI Team
Posts: 1998
Joined: Sat Oct 31, 2009 13:57
Location: Austria

Re: Problem building with CMake

Postby Ident » Thu Jun 26, 2014 11:29

Walta69 wrote:So I should set the location of Boost_PYTHON_LIBRARY_DEBUG etc etc?

Also, where exactly should I set Boost_DIR (seeing as though I am using the SDK). Do I just set it to the root of boost?

Isnt relevant. You need to set all the others though.

Cmake doesnt edit any environment variables. You go to cmake, look for the BOOST_ Lib variables you need to set, and right of each of them you can enter the path IN CMAKE, also you can click at the button saying "..." and choose the file through the file explorer. this is all in cmake. no env variables needed at all.
CrazyEddie: "I don't like GUIs"

Walta69
Not too shy to talk
Not too shy to talk
Posts: 31
Joined: Wed Jun 25, 2014 08:40

Re: Problem building with CMake

Postby Walta69 » Thu Jun 26, 2014 11:54

within cMake I set the variables :

Boost_INCLUDE_DIR, Boost_SYSTEM_LIBRARY_DEBUG, Boost_SYSTEM_LIBRARY_RELEASE, Boost_THREAD_LIBRARY_DEBUG, Boost_THREAD_LIBRARY_RELEASE and ofcourse the Boost_DIR

The only one that it didn't revert back to "NOTFOUND" was the Boost_INCLUDE_DIR.

No idea why it isn't finding the files when I am showing it where they are...

User avatar
Ident
CEGUI Team
Posts: 1998
Joined: Sat Oct 31, 2009 13:57
Location: Austria

Re: Problem building with CMake

Postby Ident » Thu Jun 26, 2014 12:15

Do not set the Boost_Dir
CrazyEddie: "I don't like GUIs"

Walta69
Not too shy to talk
Not too shy to talk
Posts: 31
Joined: Wed Jun 25, 2014 08:40

Re: Problem building with CMake

Postby Walta69 » Thu Jun 26, 2014 12:58

So currently:

Boost_INCLUDE_DIR = FOUND
Boost_LIBRARY_DIR = FOUND
Boost_SYSTEM_LIBRARY_(DEBUG/RELEASE) = FOUND
Boost_THREAD_LIBRARY_(DEBUG/RELEASE) = FOUND

cMake Output From This: (After Configure and Generate)

Code: Select all

CMake Error at C:/Users/Michael/Downloads/cmake-2.8.12.2-win32-x86/share/cmake-2.8/Modules/FindBoost.cmake:646 (file):
  file STRINGS file
  "C:/Dev/OgreSDK_vc10_v1-9-0/boost/boost/boost/version.hpp" cannot be read.
Call Stack (most recent call first):
  CMakeLists.txt:106 (find_package)

Could NOT find Boost
Some or all of the gtk libraries were not found. (missing:  GTK2_GTK_LIBRARY GTK2_GTK_INCLUDE_DIR GTK2_GDK_INCLUDE_DIR GTK2_GDKCONFIG_INCLUDE_DIR GTK2_GDK_LIBRARY GTK2_GLIB_INCLUDE_DIR GTK2_GLIBCONFIG_INCLUDE_DIR GTK2_GLIB_LIBRARY)
Configuring incomplete, errors occurred!


CMakeOutput.log reports no errors and no warning. No .sln file is generated. All it generates is the samples and other folders as well as CPackConfig.cmake, CMakeCache.txt and CPackSourceConfig.cmake.

I am stumped :/

User avatar
Kulik
CEGUI Team
Posts: 1382
Joined: Mon Jul 26, 2010 18:47
Location: Czech Republic
Contact:

Re: Problem building with CMake

Postby Kulik » Thu Jun 26, 2014 13:13

Have you fiddled with any of the CEGUI options in cmake? Could be that you have configured samples to run with some renderer that you then disabled.

Make sure you understand what all the cmake steps do.

"C:/Dev/OgreSDK_vc10_v1-9-0/boost/boost/boost/version.hpp" cannot be read."

Is the file accessible?

User avatar
Nickenstein79
Quite a regular
Quite a regular
Posts: 93
Joined: Thu May 09, 2013 06:19

Re: Problem building with CMake

Postby Nickenstein79 » Thu Jun 26, 2014 14:25

Kulik wrote:"C:/Dev/OgreSDK_vc10_v1-9-0/boost/boost/boost/version.hpp" cannot be read."


Looks like you have a path defined with one too many 'boost/' in it.

User avatar
Ident
CEGUI Team
Posts: 1998
Joined: Sat Oct 31, 2009 13:57
Location: Austria

Re: Problem building with CMake

Postby Ident » Thu Jun 26, 2014 14:50

But can you ever have enough "boost" in your path?
CrazyEddie: "I don't like GUIs"

User avatar
Nickenstein79
Quite a regular
Quite a regular
Posts: 93
Joined: Thu May 09, 2013 06:19

Re: Problem building with CMake

Postby Nickenstein79 » Thu Jun 26, 2014 14:51

It's like go-faster stripes, for code! ;)

Walta69
Not too shy to talk
Not too shy to talk
Posts: 31
Joined: Wed Jun 25, 2014 08:40

Re: Problem building with CMake

Postby Walta69 » Thu Jun 26, 2014 14:53

I haven't fiddled with anything :P literally I downloaded the precompiled ogre SDK and followed all your steps on the guide :/

User avatar
Ident
CEGUI Team
Posts: 1998
Joined: Sat Oct 31, 2009 13:57
Location: Austria

Re: Problem building with CMake

Postby Ident » Thu Jun 26, 2014 14:55

So did you try what Nickenstein said? your include dir seems to be wrong (one folder too deep in the folder structure)
CrazyEddie: "I don't like GUIs"

User avatar
Nickenstein79
Quite a regular
Quite a regular
Posts: 93
Joined: Thu May 09, 2013 06:19

Re: Problem building with CMake

Postby Nickenstein79 » Thu Jun 26, 2014 15:00

With a pre-built OgreSDK the directory path for that header file would typically be:

OgreSDK_vc10_v1-9-0/boost/boost/version.hpp

not

OgreSDK_vc10_v1-9-0/boost/boost/boost/version.hpp

So, either one of the paths you have set in cmake has one too many instances of 'boost/' in it, or you have a window's environment variable with one too many instances of 'boost/' in it.

User avatar
Nickenstein79
Quite a regular
Quite a regular
Posts: 93
Joined: Thu May 09, 2013 06:19

Re: Problem building with CMake

Postby Nickenstein79 » Thu Jun 26, 2014 15:22

This is how it looks on my screen (note, I've built my own Ogre and my own boost, so my setup is different to yours, but you can see that one more instance of 'boost/' is automatically appended onto the Boost_INCLUDE_DIR path when cmake looks for version.hpp.

Image




EDIT: I've just noticed you said this yesterday:

Walta69 wrote:I also changed Boost_INCLUDE_DIR from within cMake to = C:/Dev/OgreSDK_vc10_v1-9-0/boost/boost


Simply delete that last '/boost' from the end of that path and you should be good to go. ;)


Return to “Help”

Who is online

Users browsing this forum: No registered users and 12 guests