[Solved] Problem building with CMake
Moderators: CEGUI MVP, CEGUI Team
Re: Problem building with CMake
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.
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"
Re: Problem building with CMake
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?
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?
Re: Problem building with CMake
Sorry, I didn't understand what you meant by all the library files. Not sure which boost env variables to edit from cMake.
Re: Problem building with CMake
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"
Re: Problem building with CMake
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...
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...
Re: Problem building with CMake
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)
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 :/
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 :/
Re: Problem building with CMake
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?
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?
- Nickenstein79
- Quite a regular
- Posts: 93
- Joined: Thu May 09, 2013 06:19
Re: Problem building with CMake
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.
Re: Problem building with CMake
But can you ever have enough "boost" in your path?
CrazyEddie: "I don't like GUIs"
- Nickenstein79
- Quite a regular
- Posts: 93
- Joined: Thu May 09, 2013 06:19
Re: Problem building with CMake
It's like go-faster stripes, for code! 

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

Re: Problem building with CMake
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"
- Nickenstein79
- Quite a regular
- Posts: 93
- Joined: Thu May 09, 2013 06:19
Re: Problem building with CMake
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.
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.
- Nickenstein79
- Quite a regular
- Posts: 93
- Joined: Thu May 09, 2013 06:19
Re: Problem building with CMake
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.

EDIT: I've just noticed you said this yesterday:
Simply delete that last '/boost' from the end of that path and you should be good to go.

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.

Who is online
Users browsing this forum: No registered users and 12 guests