[SOLVED] Building OD, cmake not finding cegui

[SOLVED] Building OD, cmake not finding cegui

Postby MCMic » 01 Feb 2015, 17:05

I don’t get the problem, my cegui is in /usr/include/cegui-0/CEGUI/ but it’s not found by cmake:
{l Code}: {l Select All Code}
-- Linux (OIS): x11_keyboard_grab = false
-- CMake CXX Flags: -std=c++11   -std=c++11 -Wall -Wunused -Wno-deprecated -fno-strict-aliasing -DOD_LINUX_NO_KEYBOARD_GRAB -DOD_VERSION=\"0.5.0\" -DOD_DATA_PATH=\"/usr/local/share/games/opendungeons\"
-- Looking for OIS...
-- Found OIS: optimized;/usr/lib/libOIS.so;debug;/usr/lib/libOIS.so
-- Looking for OGRE...
-- Found Ogre Ghadamon (1.9.0)
-- Found OGRE: optimized;/usr/lib/libOgreMain.so;debug;/usr/lib/libOgreMain.so
-- Looking for OGRE_Paging...
-- Found OGRE_Paging: optimized;/usr/lib/libOgrePaging.so;debug;/usr/lib/libOgrePaging.so
-- Looking for OGRE_Terrain...
-- Found OGRE_Terrain: optimized;/usr/lib/libOgreTerrain.so;debug;/usr/lib/libOgreTerrain.so
-- Looking for OGRE_Property...
-- Found OGRE_Property: optimized;/usr/lib/libOgreProperty.so;debug;/usr/lib/libOgreProperty.so
-- Looking for OGRE_RTShaderSystem...
-- Found OGRE_RTShaderSystem: optimized;/usr/lib/libOgreRTShaderSystem.so;debug;/usr/lib/libOgreRTShaderSystem.so
-- Looking for OGRE_Volume...
-- Found OGRE_Volume: optimized;/usr/lib/libOgreVolume.so;debug;/usr/lib/libOgreVolume.so
-- Looking for OGRE_Overlay...
-- Found OGRE_Overlay: optimized;/usr/lib/libOgreOverlay.so;debug;/usr/lib/libOgreOverlay.so
-- Looking for CEGUI...
CMake Error at cmake/modules/FindCEGUI.cmake:453 (file):
  file failed to open for reading (No such file or directory):

    /usr/include/cegui-0/Version.h
Call Stack (most recent call first):
  CMakeLists.txt:355 (find_package)


CMake Error at cmake/modules/FindCEGUI.cmake:464 (message):
  Can't found CEGUI version !
Call Stack (most recent call first):
  CMakeLists.txt:355 (find_package)


-- Found CEGUI: /usr/lib/libCEGUIBase-0.so
-- Looking for CEGUI_FalagardWRBase...
-- Could not locate CEGUI_FalagardWRBase
-- Looking for CEGUI_Direct3D9Renderer...
-- Could not locate CEGUI_Direct3D9Renderer
-- Looking for CEGUI_Direct3D10Renderer...
-- Could not locate CEGUI_Direct3D10Renderer
-- Looking for CEGUI_Direct3D11Renderer...
-- Could not locate CEGUI_Direct3D11Renderer
-- Looking for CEGUI_DirectFBRenderer...
-- Could not locate CEGUI_DirectFBRenderer
-- Looking for CEGUI_IrrlichtRenderer...
-- Could not locate CEGUI_IrrlichtRenderer
-- Looking for CEGUI_NullRenderer...
-- Could not locate CEGUI_NullRenderer
-- Looking for CEGUI_OgreRenderer...
-- Could not locate CEGUI_OgreRenderer
-- Looking for CEGUI_OpenGLRenderer...
-- Could not locate CEGUI_OpenGLRenderer
-- Looking for CEGUI_CoronaImageCodec...
-- Could not locate CEGUI_CoronaImageCodec
-- Looking for CEGUI_DevILImageCodec...
-- Could not locate CEGUI_DevILImageCodec
-- Looking for CEGUI_FreeImageImageCodec...
-- Could not locate CEGUI_FreeImageImageCodec
-- Looking for CEGUI_SILLYImageCodec...
-- Could not locate CEGUI_SILLYImageCodec
-- Looking for CEGUI_STBImageCodec...
-- Could not locate CEGUI_STBImageCodec
-- Looking for CEGUI_TGAImageCodec...
-- Could not locate CEGUI_TGAImageCodec
-- Looking for CEGUI_ExpatParser...
-- Could not locate CEGUI_ExpatParser
-- Looking for CEGUI_LibxmlParser...
-- Could not locate CEGUI_LibxmlParser
-- Looking for CEGUI_RapidXMLParser...
-- Could not locate CEGUI_RapidXMLParser
-- Looking for CEGUI_TinyXMLParser...
-- Could not locate CEGUI_TinyXMLParser
-- Looking for CEGUI_XercesParser...
-- Could not locate CEGUI_XercesParser
-- Looking for CEGUI_LuaScriptModule...
-- Could not locate CEGUI_LuaScriptModule
-- Looking for CEGUI_toluapp...
-- Could not locate CEGUI_toluapp
-- Found SFML 2.2 in /usr/include
CMake Error at CMakeLists.txt:363 (message):
  CEGUI version >= 0.8.0 required


-- Configuring incomplete, errors occurred!
See also "/home/mcmic/dev/opendungeons/CMakeFiles/CMakeOutput.log".
See also "/home/mcmic/dev/opendungeons/CMakeFiles/CMakeError.log".


When I look into the FindCEGUI.cmake it seems fine to me though:
{l Code}: {l Select All Code}
find_path(CEGUI_INCLUDE_DIR NAMES CEGUI.h HINTS ${CEGUI_INC_SEARCH_PATH} ${CEGUI_FRAMEWORK_INCLUDES} ${CEGUI_PKGC_INCLUDE_DIRS} PATH_SUFFIXES CEGUI cegui cegui-${CEGUI_VERSION_MAJOR_DEFAULT} cegui-${CEGUI_VERSION_MAJOR_DEFAULT}/CEGUI)

It should find the last suffix, cegui-${CEGUI_VERSION_MAJOR_DEFAULT}/CEGUI, as ${CEGUI_VERSION_MAJOR_DEFAULT} should be 0.
Last edited by MCMic on 01 Feb 2015, 20:22, edited 1 time in total.
User avatar
MCMic
 
Posts: 723
Joined: 05 Jan 2010, 17:40

Re: Building OD, cmake not finding cegui

Postby oln » 01 Feb 2015, 17:42

Have you dried deleting the cmake cache? We updated the findCEGUI.cmake script at one point, and I remember having to delete the cache to make it work. Bertram25 also had an issue where this file was not found, though in that case he was using the include folder from a locally built source package, which didn't contain Version.h as it was autogenerated by the build/install script.
User avatar
oln
 
Posts: 1020
Joined: 26 Oct 2010, 22:16
Location: Norway

Re: [SOLVED] Building OD, cmake not finding cegui

Postby MCMic » 01 Feb 2015, 20:22

Thank you, this was indeed the solution, I did not thought about the cache :-)
User avatar
MCMic
 
Posts: 723
Joined: 05 Jan 2010, 17:40

Who is online

Users browsing this forum: No registered users and 1 guest