| Trouble with Cmake and cegui | |
|
|
Author | Message |
---|
timlyo Newcomer
Posts : 19 Reputation : 0 Join date : 2013-09-04 Age : 29 Location : England
| Subject: Trouble with Cmake and cegui Sat May 17, 2014 11:46 am | |
| I've been trying to compile the project on ArchLinux however I'm having some trouble. I've installed cegui form the Arch Repositories and it's in /usr/lib/cegui-0.8. However when I go to generate the files with Cmake it outputs the following: - Code:
-
-- Looking for OGRE... -- Found Ogre Ghadamon (1.9.0) -- Found OGRE: optimized;/usr/lib64/libOgreMain.so;debug;/usr/lib64/libOgreMain.so -- Looking for OGRE_Paging... -- Found OGRE_Paging: optimized;/usr/lib64/libOgrePaging.so;debug;/usr/lib64/libOgrePaging.so -- Looking for OGRE_Terrain... -- Found OGRE_Terrain: optimized;/usr/lib64/libOgreTerrain.so;debug;/usr/lib64/libOgreTerrain.so -- Looking for OGRE_Property... -- Found OGRE_Property: optimized;/usr/lib64/libOgreProperty.so;debug;/usr/lib64/libOgreProperty.so -- Looking for OGRE_RTShaderSystem... -- Found OGRE_RTShaderSystem: optimized;/usr/lib64/libOgreRTShaderSystem.so;debug;/usr/lib64/libOgreRTShaderSystem.so Could not located CEGUI.h Could not located Renderer.h Could not located CEGUIBase-0_d Could not located CEGUIOgreRenderer-0_d CMake Error at cmake_modules/FindCEGUI.cmake:159 (MESSAGE): Error(s) during CEGUI dedection! Call Stack (most recent call first): CMakeLists.txt:145 (find_package)
CMake Error at /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:108 (message): Could NOT find CEGUI (missing: CEGUI_LIBRARY) Call Stack (most recent call first): /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:315 (_FPHSA_FAILURE_MESSAGE) cmake_modules/FindCEGUI.cmake:163 (FIND_PACKAGE_HANDLE_STANDARD_ARGS) CMakeLists.txt:145 (find_package)
-- Configuring incomplete, errors occurred! I'm not sure how to fix this, any help is appreciated. | |
|
| |
crovea Programming Team lead
Posts : 310 Reputation : 59 Join date : 2013-10-07 Age : 34 Location : Denmark
| Subject: Re: Trouble with Cmake and cegui Sat May 17, 2014 12:22 pm | |
| I just so happens to be working on the same thing to help out moopli, you can see our discussion here: https://thrivegame.canadaboard.net/t1300p15-cue-introduction#29879However we are building CEGUI from source as we don't have a package for cegui 0.8 with aptitude. It looks like you did a pull within in the last few hours, as I fixed the naming of FindCEGUI.cmake, but could you confirm that you have done so? Can you confirm that you actually have the debug libraries somewhere? Also this is where the FindCEGUI cmake module looks for CEGUI headers (and similarly for libraries): - Code:
-
${CEGUI_ROOT}/include ${CEGUIDIR}/include ${CEGUIDIR}/cegui/include ~/Library/Frameworks /Library/Frameworks /usr/local/include /usr/include /sw/include # Fink /opt/local/include # DarwinPorts /opt/csw/include # Blastwave /opt/include But I'm not super experienced in linux, so I'm not sure if your package manager actually places the CEGUI libraries/headers in any of those locations. You could try moving them manually into any of those locations, while I look into it. | |
|
| |
timlyo Newcomer
Posts : 19 Reputation : 0 Join date : 2013-09-04 Age : 29 Location : England
| Subject: Re: Trouble with Cmake and cegui Sat May 17, 2014 1:05 pm | |
| Yes I did do a pull, that confused me actually. I was about to try and fix that. I'll join in with the other conversation | |
|
| |
crovea Programming Team lead
Posts : 310 Reputation : 59 Join date : 2013-10-07 Age : 34 Location : Denmark
| Subject: Re: Trouble with Cmake and cegui Sat May 17, 2014 1:28 pm | |
| Yep! It seems Moopli has moved the discussion here instead: https://thrivegame.canadaboard.net/t999p75-development-troubleshootingEDIT: From what I can tell from the arch package, it isn't a dev package and probably doesn't have the debug versions of the libraries, so you may need to build from source like moopli. That doesn't explain why it can't find your header files tho. | |
|
| |
timlyo Newcomer
Posts : 19 Reputation : 0 Join date : 2013-09-04 Age : 29 Location : England
| Subject: Re: Trouble with Cmake and cegui Sat May 17, 2014 1:45 pm | |
| I'll try building it from source and let you know | |
|
| |
timlyo Newcomer
Posts : 19 Reputation : 0 Join date : 2013-09-04 Age : 29 Location : England
| Subject: Re: Trouble with Cmake and cegui Sat May 17, 2014 2:25 pm | |
| I tried something else before building and it seems to have worked. This has the details: http://cegui.org.uk/forum/viewtopic.php?f=4&t=5732 I replaced the contents of FindCEGUI.cmake with this: - Code:
-
# construct search paths from environmental hints and # OS specific guesses if (WIN32) set(CEGUI_PREFIX_GUESSES ${ENV_PROGRAMFILES}/cegui ${ENV_PROGRAMFILES}/CEGUI C:/CEGUI-SDK C:/lib/cegui [HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Session\ Manager\\Environment;CEGUI_HOME] [HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Session\ Manager\\Environment;CEGUI_DIR] [HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Session\ Manager\\Environment;CEGUI_ROOT] ) elseif (UNIX) set(CEGUI_PREFIX_GUESSES /opt/cegui /opt/CEGUI /usr /usr/local $ENV{HOME}/cegui $ENV{HOME}/CEGUI ) endif () set(CEGUI_PREFIX_PATH $ENV{CEGUI_HOME} $ENV{CEGUI_DIR} $ENV{CEGUI_ROOT} ${CEGUI_PREFIX_GUESSES} ) create_search_paths(CEGUI) # redo search if any of the environmental hints changed set(CEGUI_WINDOWSRENDERER_COMPONENTS CoreWindowRendererSet ) set(CEGUI_RENDERER_COMPONENTS Direct3D9Renderer Direct3D10Renderer Direct3D11Renderer IrrlichtRenderer NullRenderer OgreRenderer OpenGLRenderer ) set(CEGUI_IMAGECODEC_COMPONENTS CoronaImageCodec DevILImageCodec FreeImageImageCodec SILLYImageCodec STBImageCodec TGAImageCodec ) set(CEGUI_PARSER_COMPONENTS ExpatParser LibXMLParser RapidXMLParser TinyXMLParser XercesParser ) set(CEGUI_SCRIPT_COMPONENTS LuaScriptModule ) set(CEGUI_COMPONENTS ${CEGUI_WINDOWSRENDERER_COMPONENTS} ${CEGUI_RENDERER_COMPONENTS} ${CEGUI_IMAGECODEC_COMPONENTS} ${CEGUI_PARSER_COMPONENTS} ${CEGUI_SCRIPT_COMPONENTS}) set(CEGUI_RESET_VARS CEGUI_CONFIG_INCLUDE_DIR CEGUI_INCLUDE_DIR CEGUI_LIBRARY_REL CEGUI_LIBRARY_DBG ) foreach (comp ${CEGUI_COMPONENTS}) set(CEGUI_RESET_VARS ${CEGUI_RESET_VARS} CEGUI_${comp}_INCLUDE_DIR CEGUI_${comp}_LIBRARY_FWK CEGUI_${comp}_LIBRARY_DBG CEGUI_${comp}_LIBRARY_REL ) endforeach (comp) set(CEGUI_PREFIX_WATCH ${CEGUI_PREFIX_PATH}) clear_if_changed(CEGUI_PREFIX_WATCH ${CEGUI_RESET_VARS}) # try to locate CEGUI via pkg-config use_pkgconfig(CEGUI_PKGC "CEGUI${CEGUI_LIB_SUFFIX}")
#message("CEGUI_INC_SEARCH_PATH:" ${CEGUI_INC_SEARCH_PATH}) #message("CEGUI_FRAMEWORK_INCLUDES:" ${CEGUI_FRAMEWORK_INCLUDES}) #message("CEGUI_PKGC_INCLUDE_DIRS:" ${CEGUI_PKGC_INCLUDE_DIRS}) # locate CEGUI include files find_path(CEGUI_CONFIG_INCLUDE_DIR NAMES Config.h HINTS ${CEGUI_INC_SEARCH_PATH} ${CEGUI_FRAMEWORK_INCLUDES} ${CEGUI_PKGC_INCLUDE_DIRS} PATH_SUFFIXES "" "CEGUI" "cegui-0/CEGUI")
find_path(CEGUI_INCLUDE_DIR NAMES CEGUI.h HINTS ${CEGUI_INC_SEARCH_PATH} ${CEGUI_FRAMEWORK_INCLUDES} ${CEGUI_PKGC_INCLUDE_DIRS} PATH_SUFFIXES "" "CEGUI" "cegui-0/CEGUI") set(CEGUI_INCOMPATIBLE FALSE)
if (CEGUI_INCLUDE_DIR) # determine CEGUI version file(READ ${CEGUI_INCLUDE_DIR}/Version.h CEGUI_TEMP_VERSION_CONTENT) get_preprocessor_entry(CEGUI_TEMP_VERSION_CONTENT CEGUI_VERSION_MAJOR CEGUI_VERSION_MAJOR) get_preprocessor_entry(CEGUI_TEMP_VERSION_CONTENT CEGUI_VERSION_MINOR CEGUI_VERSION_MINOR) get_preprocessor_entry(CEGUI_TEMP_VERSION_CONTENT CEGUI_VERSION_PATCH CEGUI_VERSION_PATCH) get_preprocessor_entry(CEGUI_TEMP_VERSION_CONTENT CEGUI_VERSION_NAME CEGUI_VERSION_NAME) set(CEGUI_VERSION "${CEGUI_VERSION_MAJOR}.${CEGUI_VERSION_MINOR}.${CEGUI_VERSION_PATCH}") pkg_message(CEGUI "Found CEGUI headers ${CEGUI_VERSION_NAME} (${CEGUI_VERSION})") pkg_message(CEGUI "Include dir: " ${CEGUI_INCLUDE_DIR}) #set(CEGUI_VERSION "0.7.9") if ((${CEGUI_VERSION} VERSION_GREATER "0.8.0") OR (${CEGUI_VERSION} VERSION_EQUAL "0.8.0")) set(CEGUI_LIBRARY_NAMES "CEGUIBase-${CEGUI_VERSION_MAJOR}${CEGUI_LIB_SUFFIX}") else() set(CEGUI_INCOMPATIBLE TRUE) message(FATAL_ERROR "CEGUI version 0.8.0 or greater required !") endif() # determine configuration settings set(CEGUI_CONFIG_HEADERS ${CEGUI_CONFIG_INCLUDE_DIR}/Config.h ) set(CEGUI_CONFIG_HEADER NOTFOUND) foreach(CFG_FILE ${CEGUI_CONFIG_HEADERS}) if (EXISTS ${CFG_FILE}) set(CEGUI_CONFIG_HEADER ${CFG_FILE}) # take the first config header from headers break() endif() endforeach()
#message("Config header:" ${CEGUI_CONFIG_HEADER}) if (CEGUI_CONFIG_HEADER) file(READ ${CEGUI_CONFIG_HEADER} CEGUI_TEMP_CONFIG_CONTENT) has_preprocessor_entry(CEGUI_TEMP_CONFIG_CONTENT CEGUI_STATIC_LIB CEGUI_CONFIG_STATIC) get_preprocessor_entry(CEGUI_TEMP_CONFIG_CONTENT CEGUI_THREAD_SUPPORT CEGUI_CONFIG_THREADS) get_preprocessor_entry(CEGUI_TEMP_CONFIG_CONTENT CEGUI_THREAD_PROVIDER CEGUI_CONFIG_THREAD_PROVIDER) get_preprocessor_entry(CEGUI_TEMP_CONFIG_CONTENT CEGUI_NO_FREEIMAGE CEGUI_CONFIG_FREEIMAGE) if (CEGUI_CONFIG_STATIC AND CEGUI_STATIC) elseif (CEGUI_CONFIG_STATIC OR CEGUI_STATIC) pkg_message(CEGUI "Build type (static, dynamic) does not match the requested one.") set(CEGUI_INCOMPATIBLE TRUE) endif () else () pkg_message(OGRE "Could not determine Ogre build configuration.") set(CEGUI_INCOMPATIBLE TRUE) endif () else () set(CEGUI_INCOMPATIBLE FALSE) endif ()
#message("Library names: " ${CEGUI_LIBRARY_NAMES}) #message("CEGUI_LIB_SEARCH_PATH: " ${CEGUI_LIB_SEARCH_PATH}) find_library(CEGUI_LIBRARY_REL NAMES ${CEGUI_LIBRARY_NAMES} HINTS ${CEGUI_LIB_SEARCH_PATH} ${CEGUI_PKGC_LIBRARY_DIRS} ${CEGUI_FRAMEWORK_SEARCH_PATH} PATH_SUFFIXES "" "release" "relwithdebinfo" "minsizerel")
find_library(CEGUI_LIBRARY_DBG NAMES ${CEGUI_LIBRARY_NAMES_DBG} HINTS ${CEGUI_LIB_SEARCH_PATH} ${CEGUI_PKGC_LIBRARY_DIRS} ${CEGUI_FRAMEWORK_SEARCH_PATH} PATH_SUFFIXES "" "debug")
#message("CEGUI_LIBRARY_REL : " ${CEGUI_LIBRARY_REL}) #message("CEGUI_FOUND : " ${CEGUI_FOUND}) make_library_set(CEGUI_LIBRARY) if (CEGUI_INCOMPATIBLE) set(CEGUI_LIBRARY "NOTFOUND") endif ()
#message("CEGUI_INCOMPATIBLE : " ${CEGUI_INCOMPATIBLE}) #message("CEGUI_LIBRARY : " ${CEGUI_LIBRARY}) set(CEGUI_INCLUDE_DIR ${CEGUI_CONFIG_INCLUDE_DIR} ${CEGUI_INCLUDE_DIR}) list(REMOVE_DUPLICATES CEGUI_INCLUDE_DIR) findpkg_finish(CEGUI) add_parent_dir(CEGUI_INCLUDE_DIRS CEGUI_INCLUDE_DIR) mark_as_advanced(CEGUI_CONFIG_INCLUDE_DIR) if (NOT CEGUI_FOUND) return() endif () get_filename_component(CEGUI_LIBRARY_DIR_REL "${CEGUI_LIBRARY_REL}" PATH) get_filename_component(CEGUI_LIBRARY_DIR_DBG "${CEGUI_LIBRARY_DBG}" PATH) set(CEGUI_LIBRARY_DIRS ${CEGUI_LIBRARY_DIR_REL} ${CEGUI_LIBRARY_DIR_DBG})
#message("lib dirs0:" ${CEGUI_LIBRARY_DIRS})
# find binaries WIN32 if (NOT CEGUI_STATIC) #message("not static" ${CEGUI_BIN_SEARCH_PATH}) if (WIN32) find_file(CEGUI_BINARY_REL NAMES "CEGUIBase-${CEGUI_VERSION_MAJOR}.dll" HINTS ${CEGUI_BIN_SEARCH_PATH} PATH_SUFFIXES "" release relwithdebinfo minsizerel) find_file(CEGUI_BINARY_DBG NAMES "CEGUIBase${CEGUI_VERSION_MAJOR}_d.dll" HINTS ${CEGUI_BIN_SEARCH_PATH} PATH_SUFFIXES "" debug )
get_filename_component(CEGUI_BINARY_DIR_REL "${CEGUI_BINARY_REL}" PATH) get_filename_component(CEGUI_BINARY_DIR_DBG "${CEGUI_BINARY_DBG}" PATH)
set(CEGUI_LIBRARY_DIRS ${CEGUI_BINARY_DIR_REL} ${CEGUI_BINARY_DIR_DBG}) else () # UNIX and APPLE set(CEGUI_BINARY_REL NOTFOUND) set(CEGUI_BINARY_DBG NOTFOUND) set(CEGUI_BINARY_DIR_REL NOTFOUND) set(CEGUI_BINARY_DIR_DBG NOTFOUND) endif() mark_as_advanced(CEGUI_BINARY_REL CEGUI_BINARY_DBG CEGUI_BINARY_DIR_REL CEGUI_BINARY_DIR_DBG) endif()
#message("lib dirs1:" ${CEGUI_LIBRARY_DIRS}) # look for CoreWindowRendererSet component findpkg_begin(CEGUI_CoreWindowRendererSet) find_path(CEGUI_Falagard_INCLUDE_DIR NAMES NamedArea.h HINTS ${CEGUI_INCLUDE_DIRS} PATH_SUFFIXES falagard CEGUI/falagard)
find_path(CEGUI_CoreWindowRendererSet_INCLUDE_DIR NAMES Module.h HINTS ${CEGUI_INCLUDE_DIRS} PATH_SUFFIXES WindowRendererSets/Core CEGUI/WindowRendererSets/Core)
set(CEGUI_CoreWindowRendererSet_INCLUDE_DIR ${CEGUI_CoreWindowRendererSet_INCLUDE_DIR} ${CEGUI_Falagard_INCLUDE_DIR}) set(CEGUI_CoreWindowRendererSet_LIBRARY_NAMES "CEGUICoreWindowRendererSet${CEGUI_LIB_SUFFIX}") get_debug_names(CEGUI_CoreWindowRendererSet_LIBRARY_NAMES) find_library(CEGUI_CoreWindowRendererSet_LIBRARY_REL NAMES ${CEGUI_CoreWindowRendererSet_LIBRARY_NAMES} HINTS ${CEGUI_LIBRARY_DIR_REL} ${CEGUI_LIBRARY_DIR_REL}/cegui-${CEGUI_VERSION_MAJOR}.${CEGUI_VERSION_MINOR} PATH_SUFFIXES "" "release" "relwithdebinfo" "minsizerel")
find_library(CEGUI_CoreWindowRendererSet_LIBRARY_DBG NAMES ${CEGUI_CoreWindowRendererSet_LIBRARY_NAMES_DBG} HINTS ${CEGUI_LIBRARY_DIR_DBG} ${CEGUI_LIBRARY_DIR_DBG}/cegui-${CEGUI_VERSION_MAJOR}.${CEGUI_VERSION_MINOR} PATH_SUFFIXES "" "debug") make_library_set(CEGUI_CoreWindowRendererSet_LIBRARY) findpkg_finish(CEGUI_CoreWindowRendererSet)
#PRINT_COMPONENT_INFO(CoreWindowRendererSet) #Search renderer components foreach (comp ${CEGUI_RENDERER_COMPONENTS}) findpkg_begin(CEGUI_${comp}) string(REPLACE "Renderer" "" compName ${comp}) #message("compName:" ${compName}) find_path(CEGUI_${comp}_INCLUDE_DIR NAMES Renderer.h HINTS ${CEGUI_INCLUDE_DIRS} PATH_SUFFIXES RendererModules/${compName} CEGUI/RendererModules/${compName})
#message("comp incl dir:" ${CEGUI_${comp}_INCLUDE_DIR}) set(CEGUI_${comp}_LIBRARY_NAMES "CEGUI${comp}-${CEGUI_VERSION_MAJOR}${CEGUI_LIB_SUFFIX}") get_debug_names(CEGUI_${comp}_LIBRARY_NAMES)
#message("renderer stuff:" ${CEGUI_${comp}_LIBRARY_NAMES} "|" ${CEGUI_LIBRARY_DIR_REL}) find_library(CEGUI_${comp}_LIBRARY_REL NAMES ${CEGUI_${comp}_LIBRARY_NAMES} HINTS ${CEGUI_LIBRARY_DIR_REL} PATH_SUFFIXES "" "release" "relwithdebinfo" "minsizerel")
find_library(CEGUI_${comp}_LIBRARY_DBG NAMES ${CEGUI_${comp}_LIBRARY_NAMES_DBG} HINTS ${CEGUI_LIBRARY_DIR_DBG} PATH_SUFFIXES "" "debug")
make_library_set(CEGUI_${comp}_LIBRARY) findpkg_finish(CEGUI_${comp}) #PRINT_COMPONENT_INFO(${comp}) endforeach (comp)
#Search image codec components foreach (comp ${CEGUI_IMAGECODEC_COMPONENTS}) findpkg_begin(CEGUI_${comp}) find_path(CEGUI_${comp}_INCLUDE_DIR NAMES ImageCodec.h HINTS ${CEGUI_INCLUDE_DIRS} PATH_SUFFIXES ImageCodecModules/${comp} CEGUI/ImageCodecModules/${comp})
set(CEGUI_${comp}_LIBRARY_NAMES "CEGUI${comp}${CEGUI_LIB_SUFFIX}") get_debug_names(CEGUI_${comp}_LIBRARY_NAMES)
#message("image codec stuff: " ${CEGUI_${comp}_LIBRARY_NAMES} ${CEGUI_LIBRARY_DIR_REL}) find_library(CEGUI_${comp}_LIBRARY_REL NAMES ${CEGUI_${comp}_LIBRARY_NAMES} HINTS ${CEGUI_LIBRARY_DIR_REL} ${CEGUI_LIBRARY_DIR_REL}/cegui-${CEGUI_VERSION_MAJOR}.${CEGUI_VERSION_MINOR} PATH_SUFFIXES "" "release" "relwithdebinfo" "minsizerel")
find_library(CEGUI_${comp}_LIBRARY_DBG NAMES ${CEGUI_${comp}_LIBRARY_NAMES_DBG} HINTS ${CEGUI_LIBRARY_DIR_DBG} ${CEGUI_LIBRARY_DIR_DBG}/cegui-${CEGUI_VERSION_MAJOR}.${CEGUI_VERSION_MINOR} PATH_SUFFIXES "" "debug")
make_library_set(CEGUI_${comp}_LIBRARY) findpkg_finish(CEGUI_${comp})
#PRINT_COMPONENT_INFO(${comp}) endforeach (comp)
#Search parser components foreach (comp ${CEGUI_PARSER_COMPONENTS}) findpkg_begin(CEGUI_${comp}) find_path(CEGUI_${comp}_INCLUDE_DIR NAMES XMLParser.h HINTS ${CEGUI_INCLUDE_DIRS} PATH_SUFFIXES XMLParserModules/${comp} CEGUI/XMLParserModules/${comp} ) set(CEGUI_${comp}_LIBRARY_NAMES "CEGUI${comp}${CEGUI_LIB_SUFFIX}") get_debug_names(CEGUI_${comp}_LIBRARY_NAMES)
#message("parser stuff: " ${CEGUI_${comp}_LIBRARY_NAMES} ) find_library(CEGUI_${comp}_LIBRARY_REL NAMES ${CEGUI_${comp}_LIBRARY_NAMES} HINTS ${CEGUI_LIBRARY_DIR_REL} ${CEGUI_LIBRARY_DIR_REL}/cegui-${CEGUI_VERSION_MAJOR}.${CEGUI_VERSION_MINOR} PATH_SUFFIXES "" "release" "relwithdebinfo" "minsizerel")
find_library(CEGUI_${comp}_LIBRARY_DBG NAMES ${CEGUI_${comp}_LIBRARY_NAMES_DBG} HINTS ${CEGUI_LIBRARY_DIR_DBG} ${CEGUI_LIBRARY_DIR_DBG}/cegui-${CEGUI_VERSION_MAJOR}.${CEGUI_VERSION_MINOR} PATH_SUFFIXES "" "debug")
make_library_set(CEGUI_${comp}_LIBRARY) findpkg_finish(CEGUI_${comp})
#PRINT_COMPONENT_INFO(${comp}) endforeach (comp) foreach (comp ${CEGUI_SCRIPT_COMPONENTS}) findpkg_begin(CEGUI_${comp}) string(REPLACE "ScriptModule" "" compName ${comp}) # message("comp: " ${comp}) # message("compName: " ${compName}) find_path(CEGUI_${comp}_INCLUDE_DIR NAMES ScriptModule.h HINTS ${CEGUI_INCLUDE_DIRS} PATH_SUFFIXES ScriptingModules/${compName} CEGUI/ScriptingModules/${compName})
set(CEGUI_${comp}_LIBRARY_NAMES "CEGUI${comp}-${CEGUI_VERSION_MAJOR}${CEGUI_LIB_SUFFIX}")
#message("script stuff: " ${CEGUI_${comp}_LIBRARY_NAMES} ) get_debug_names(CEGUI_${comp}_LIBRARY_NAMES) find_library(CEGUI_${comp}_LIBRARY_REL NAMES ${CEGUI_${comp}_LIBRARY_NAMES} HINTS ${CEGUI_LIBRARY_DIR_REL} PATH_SUFFIXES "" "release" "relwithdebinfo" "minsizerel")
find_library(CEGUI_${comp}_LIBRARY_DBG NAMES ${CEGUI_${comp}_LIBRARY_NAMES_DBG} HINTS ${CEGUI_LIBRARY_DIR_DBG} PATH_SUFFIXES "" "debug")
make_library_set(CEGUI_${comp}_LIBRARY) findpkg_finish(CEGUI_${comp})
#PRINT_COMPONENT_INFO(${comp}) endforeach (comp) clear_if_changed(CEGUI_PREFIX_WATCH)
#stop the build to debug FindCEGUI.cmake #message(FATAL_ERROR "Debug FindCEGUI") | |
|
| |
crovea Programming Team lead
Posts : 310 Reputation : 59 Join date : 2013-10-07 Age : 34 Location : Denmark
| Subject: Re: Trouble with Cmake and cegui Sat May 17, 2014 3:24 pm | |
| Ah very well. We can probably adapt that one fairly easily to work on windows. | |
|
| |
timlyo Newcomer
Posts : 19 Reputation : 0 Join date : 2013-09-04 Age : 29 Location : England
| Subject: Re: Trouble with Cmake and cegui Sat May 17, 2014 3:30 pm | |
| Now I just have to deal with the compilation errors :roll: | |
|
| |
crovea Programming Team lead
Posts : 310 Reputation : 59 Join date : 2013-10-07 Age : 34 Location : Denmark
| Subject: Re: Trouble with Cmake and cegui Sat May 17, 2014 3:51 pm | |
| Feel free to post them here if you want help! | |
|
| |
crovea Programming Team lead
Posts : 310 Reputation : 59 Join date : 2013-10-07 Age : 34 Location : Denmark
| Subject: Re: Trouble with Cmake and cegui Sat May 17, 2014 4:33 pm | |
| Perhaps you could help me a bit. I managed to solve my CEGUI issues but I get the following error from cmake: - Code:
-
CMake Error at CMakeLists.txt:541 (InstallFollowingSymlink): InstallFollowingSymlink Function invoked with incorrect arguments for function named: InstallFollowingSymlink
CMake Error at CMakeLists.txt:534 (InstallFollowingSymlink): InstallFollowingSymlink Function invoked with incorrect arguments for function named: InstallFollowingSymlink The referenced lines are: - Code:
-
foreach(OGRE_PLUGIN ${OGRE_PLUGINS}) SeparateLibrariesByBuildType( "${OGRE_${OGRE_PLUGIN}_LIBRARIES}" OGRE_PLUGIN_LIB_DBG OGRE_PLUGIN_LIB_REL ) # Release >>>534 InstallFollowingSymlink( ${OGRE_PLUGIN_LIB_REL} bin Release True ) # Debug >>>541 InstallFollowingSymlink( ${OGRE_PLUGIN_LIB_DBG} bin Debug True ) endforeach() Did you avoid these errors? | |
|
| |
timlyo Newcomer
Posts : 19 Reputation : 0 Join date : 2013-09-04 Age : 29 Location : England
| Subject: Re: Trouble with Cmake and cegui Sun May 18, 2014 5:58 am | |
| Mine generated the makefile fine without any errors from Cmake. Most of my other errors came from me having OGRE 1.9 installed, turns out they aren't backwards compatible after all. However I'm now getting: - Code:
-
[ 55%] Building CXX object CMakeFiles/ThriveLib.dir/src/engine/engine.cpp.o In file included from /home/tim/ThriveProject/Thrive/src/engine/engine.cpp:21:0: /usr/include/cegui-0/CEGUI/RendererModules/Ogre/Renderer.h:63:28: error: conflicting declaration ‘typedef class Ogre::SharedPtr<Ogre::Texture> Ogre::TexturePtr’ typedef SharedPtr<Texture> TexturePtr; ^ In file included from /opt/OGRE-1.8/include/OGRE/OgreColourValue.h:31:0, from /home/tim/ThriveProject/Thrive/src/engine/serialization.h:6, from /home/tim/ThriveProject/Thrive/src/engine/engine.cpp:8: /opt/OGRE-1.8/include/OGRE/OgrePrerequisites.h:304:11: note: previous declaration as ‘class Ogre::TexturePtr’ class TexturePtr;
Edit: I've commented out line 63 in CEGUI/RendererModules/Ogre/Renderer.h. It seems to have fixed it although I'm not sure how well. | |
|
| |
crovea Programming Team lead
Posts : 310 Reputation : 59 Join date : 2013-10-07 Age : 34 Location : Denmark
| Subject: Re: Trouble with Cmake and cegui Sun May 18, 2014 8:04 am | |
| The lines are: - Code:
-
#if (CEGUI_OGRE_VERSION < ((1 << 16) | (9 << 8) | 0)) class TexturePtr; #else template<typename T> class SharedPtr; class Texture; typedef SharedPtr<Texture> TexturePtr; #endif And it's that preprocessor if that is causing problems I'll bet. If you just replace it with: - Code:
-
class TexturePtr; I bet it will work properly. I think the reason it is misreading your ogre version is that you compiled/installed CEGUI with ogre version 1.9 but is running it with 1.8, is that possibly what happened? | |
|
| |
timlyo Newcomer
Posts : 19 Reputation : 0 Join date : 2013-09-04 Age : 29 Location : England
| Subject: Re: Trouble with Cmake and cegui Sun May 18, 2014 8:11 am | |
| It's possible, I reinstalled cegui for the repository after I compiled ogre 1.8 everything seems to be compiling fine now. | |
|
| |
timlyo Newcomer
Posts : 19 Reputation : 0 Join date : 2013-09-04 Age : 29 Location : England
| Subject: Re: Trouble with Cmake and cegui Sun May 18, 2014 12:04 pm | |
| I'm getting a runtime error: - Code:
-
Thrive: /usr/include/cegui-0/CEGUI/Singleton.h:79: static T& CEGUI::Singleton<T>::getSingleton() [with T = CEGUI::WindowManager]: Assertion `ms_Singleton' failed. Aborted (core dumped) I've tracked it down to something similar to this http://cegui.org.uk/forum/viewtopic.php?f=10&t=6166 Although I'm not yet familiar enough with the codebase to work out how to solve this. Any ideas? | |
|
| |
crovea Programming Team lead
Posts : 310 Reputation : 59 Join date : 2013-10-07 Age : 34 Location : Denmark
| Subject: Re: Trouble with Cmake and cegui Sun May 18, 2014 1:01 pm | |
| I suspect the CEGUI::OgreRenderer::bootstrapSystem(); at engine.cpp:306 is failing for you. Could you check the cegui log for any helpful information | |
|
| |
timlyo Newcomer
Posts : 19 Reputation : 0 Join date : 2013-09-04 Age : 29 Location : England
| Subject: Re: Trouble with Cmake and cegui Sun May 18, 2014 2:34 pm | |
| Where will the cegui log be, I've checked the dist/bin folder where the executable is and I can't see it. Edit: If it helps at all I've just run the RunTests program and everything was ok except for this section - Code:
-
[ RUN ] EntityFilter.Record /home/tim/ThriveProject/Thrive/src/engine/tests/entity_filter.cpp:211: Failure Value of: filter.removedEntities().count(entityId) Actual: 0 Expected: 1 [ FAILED ] EntityFilter.Record (0 ms) [----------] 6 tests from EntityFilter (1 ms total)
| |
|
| |
crovea Programming Team lead
Posts : 310 Reputation : 59 Join date : 2013-10-07 Age : 34 Location : Denmark
| Subject: Re: Trouble with Cmake and cegui Sun May 18, 2014 3:46 pm | |
| There usually is a CEGUI.log in the bin directory, but I guess your CEGUI never got that far.
Did you compile with samples (If you compiled it yourself)? If so, could you check if those work.
I'll look into the failed test, but I guarantee it's not related. | |
|
| |
Sponsored content
| Subject: Re: Trouble with Cmake and cegui | |
| |
|
| |
| Trouble with Cmake and cegui | |
|