Thrive Game Development
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Thrive Game Development

Development of the evolution game Thrive.
 
HomeHome  PortalPortal  Latest imagesLatest images  SearchSearch  RegisterRegister  Log inLog in  
Welcome new and returning members!
If you're new, read around a bit before you post: the odds are we've already covered your suggestion.
If you want to join the development team, sign up and tell us why.
ADMIN is pleased to note that this marquee has finally been updated.
ADMIN reminds you that the Devblog is REQUIRED reading.
Currently: The Microbe Stage GUI is under heavy development
Log in
Username:
Password:
Log in automatically: 
:: I forgot my password
Quick Links
Website
/r/thrive
GitHub
FAQs
Wiki
New Posts
Search
 
 

Display results as :
 
Rechercher Advanced Search
Statistics
We have 1675 registered users
The newest registered user is dejo123

Our users have posted a total of 30851 messages in 1411 subjects
Who is online?
In total there are 10 users online :: 0 Registered, 0 Hidden and 10 Guests

None

Most users ever online was 443 on Sun Mar 17, 2013 5:41 pm
Latest topics
» THIS FORUM IS NOW OBSOLETE
Trouble with Cmake and cegui Emptyby NickTheNick Sat Sep 26, 2015 10:26 pm

» To all the people who come here looking for thrive.
Trouble with Cmake and cegui Emptyby NickTheNick Sat Sep 26, 2015 10:22 pm

» Build Error Code::Blocks / CMake
Trouble with Cmake and cegui Emptyby crovea Tue Jul 28, 2015 5:28 pm

» Hello! I can translate in japanese
Trouble with Cmake and cegui Emptyby tjwhale Thu Jul 02, 2015 7:23 pm

» On Leave (Offline thread)
Trouble with Cmake and cegui Emptyby NickTheNick Wed Jul 01, 2015 12:20 am

» Devblog #14: A Brave New Forum
Trouble with Cmake and cegui Emptyby NickTheNick Mon Jun 29, 2015 4:49 am

» Application for Programmer
Trouble with Cmake and cegui Emptyby crovea Fri Jun 26, 2015 11:14 am

» Re-Reapplication
Trouble with Cmake and cegui Emptyby The Creator Thu Jun 25, 2015 10:57 pm

» Application (programming)
Trouble with Cmake and cegui Emptyby crovea Tue Jun 23, 2015 8:00 am

» Achieving Sapience
Trouble with Cmake and cegui Emptyby MitochondriaBox Sun Jun 21, 2015 7:03 pm

» Microbe Stage GDD
Trouble with Cmake and cegui Emptyby tjwhale Sat Jun 20, 2015 3:44 pm

» Application for Programmer/ Theorist
Trouble with Cmake and cegui Emptyby tjwhale Wed Jun 17, 2015 9:56 am

» Application for a 3D Modeler.
Trouble with Cmake and cegui Emptyby Kaiju4u Wed Jun 10, 2015 11:16 am

» Presentation
Trouble with Cmake and cegui Emptyby Othithu Tue Jun 02, 2015 10:38 am

» Application of Sorts
Trouble with Cmake and cegui Emptyby crovea Sun May 31, 2015 5:06 pm

» want to contribute
Trouble with Cmake and cegui Emptyby Renzope Sun May 31, 2015 12:58 pm

» Music List Thread (Post New Themes Here)
Trouble with Cmake and cegui Emptyby Oliveriver Thu May 28, 2015 1:06 pm

» Application: English-Spanish translator
Trouble with Cmake and cegui Emptyby Renzope Tue May 26, 2015 1:53 pm

» Want to be promoter or project manager
Trouble with Cmake and cegui Emptyby TheBudderBros Sun May 24, 2015 9:00 pm

» A new round of Forum Revamps!
Trouble with Cmake and cegui Emptyby Oliveriver Wed May 20, 2015 11:32 am


 

 Trouble with Cmake and cegui

Go down 
2 posters
AuthorMessage
timlyo
Newcomer
timlyo


Posts : 19
Reputation : 0
Join date : 2013-09-04
Age : 29
Location : England

Trouble with Cmake and cegui Empty
PostSubject: Trouble with Cmake and cegui   Trouble with Cmake and cegui EmptySat 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.
Back to top Go down
crovea
Programming Team lead
crovea


Posts : 310
Reputation : 59
Join date : 2013-10-07
Age : 34
Location : Denmark

Trouble with Cmake and cegui Empty
PostSubject: Re: Trouble with Cmake and cegui   Trouble with Cmake and cegui EmptySat 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#29879
However 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.
Back to top Go down
timlyo
Newcomer
timlyo


Posts : 19
Reputation : 0
Join date : 2013-09-04
Age : 29
Location : England

Trouble with Cmake and cegui Empty
PostSubject: Re: Trouble with Cmake and cegui   Trouble with Cmake and cegui EmptySat 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
Back to top Go down
crovea
Programming Team lead
crovea


Posts : 310
Reputation : 59
Join date : 2013-10-07
Age : 34
Location : Denmark

Trouble with Cmake and cegui Empty
PostSubject: Re: Trouble with Cmake and cegui   Trouble with Cmake and cegui EmptySat May 17, 2014 1:28 pm

Yep! It seems Moopli has moved the discussion here instead: https://thrivegame.canadaboard.net/t999p75-development-troubleshooting

EDIT: 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.
Back to top Go down
timlyo
Newcomer
timlyo


Posts : 19
Reputation : 0
Join date : 2013-09-04
Age : 29
Location : England

Trouble with Cmake and cegui Empty
PostSubject: Re: Trouble with Cmake and cegui   Trouble with Cmake and cegui EmptySat May 17, 2014 1:45 pm

I'll try building it from source and let you know
Back to top Go down
timlyo
Newcomer
timlyo


Posts : 19
Reputation : 0
Join date : 2013-09-04
Age : 29
Location : England

Trouble with Cmake and cegui Empty
PostSubject: Re: Trouble with Cmake and cegui   Trouble with Cmake and cegui EmptySat 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")
Back to top Go down
crovea
Programming Team lead
crovea


Posts : 310
Reputation : 59
Join date : 2013-10-07
Age : 34
Location : Denmark

Trouble with Cmake and cegui Empty
PostSubject: Re: Trouble with Cmake and cegui   Trouble with Cmake and cegui EmptySat May 17, 2014 3:24 pm

Ah very well. We can probably adapt that one fairly easily to work on windows.
Back to top Go down
timlyo
Newcomer
timlyo


Posts : 19
Reputation : 0
Join date : 2013-09-04
Age : 29
Location : England

Trouble with Cmake and cegui Empty
PostSubject: Re: Trouble with Cmake and cegui   Trouble with Cmake and cegui EmptySat May 17, 2014 3:30 pm

Now I just have to deal with the compilation errors  :roll: 
Back to top Go down
crovea
Programming Team lead
crovea


Posts : 310
Reputation : 59
Join date : 2013-10-07
Age : 34
Location : Denmark

Trouble with Cmake and cegui Empty
PostSubject: Re: Trouble with Cmake and cegui   Trouble with Cmake and cegui EmptySat May 17, 2014 3:51 pm

Feel free to post them here if you want help!
Back to top Go down
crovea
Programming Team lead
crovea


Posts : 310
Reputation : 59
Join date : 2013-10-07
Age : 34
Location : Denmark

Trouble with Cmake and cegui Empty
PostSubject: Re: Trouble with Cmake and cegui   Trouble with Cmake and cegui EmptySat 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?
Back to top Go down
timlyo
Newcomer
timlyo


Posts : 19
Reputation : 0
Join date : 2013-09-04
Age : 29
Location : England

Trouble with Cmake and cegui Empty
PostSubject: Re: Trouble with Cmake and cegui   Trouble with Cmake and cegui EmptySun 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.
Back to top Go down
crovea
Programming Team lead
crovea


Posts : 310
Reputation : 59
Join date : 2013-10-07
Age : 34
Location : Denmark

Trouble with Cmake and cegui Empty
PostSubject: Re: Trouble with Cmake and cegui   Trouble with Cmake and cegui EmptySun 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?
Back to top Go down
timlyo
Newcomer
timlyo


Posts : 19
Reputation : 0
Join date : 2013-09-04
Age : 29
Location : England

Trouble with Cmake and cegui Empty
PostSubject: Re: Trouble with Cmake and cegui   Trouble with Cmake and cegui EmptySun 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.
Back to top Go down
timlyo
Newcomer
timlyo


Posts : 19
Reputation : 0
Join date : 2013-09-04
Age : 29
Location : England

Trouble with Cmake and cegui Empty
PostSubject: Re: Trouble with Cmake and cegui   Trouble with Cmake and cegui EmptySun 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?
Back to top Go down
crovea
Programming Team lead
crovea


Posts : 310
Reputation : 59
Join date : 2013-10-07
Age : 34
Location : Denmark

Trouble with Cmake and cegui Empty
PostSubject: Re: Trouble with Cmake and cegui   Trouble with Cmake and cegui EmptySun 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
Back to top Go down
timlyo
Newcomer
timlyo


Posts : 19
Reputation : 0
Join date : 2013-09-04
Age : 29
Location : England

Trouble with Cmake and cegui Empty
PostSubject: Re: Trouble with Cmake and cegui   Trouble with Cmake and cegui EmptySun 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)
Back to top Go down
crovea
Programming Team lead
crovea


Posts : 310
Reputation : 59
Join date : 2013-10-07
Age : 34
Location : Denmark

Trouble with Cmake and cegui Empty
PostSubject: Re: Trouble with Cmake and cegui   Trouble with Cmake and cegui EmptySun 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.
Back to top Go down
Sponsored content





Trouble with Cmake and cegui Empty
PostSubject: Re: Trouble with Cmake and cegui   Trouble with Cmake and cegui Empty

Back to top Go down
 
Trouble with Cmake and cegui
Back to top 
Page 1 of 1
 Similar topics
-
» Thrive GUI tutorial - CEGUI from image to script!
» Development troubleshooting
» Build Error Code::Blocks / CMake

Permissions in this forum:You cannot reply to topics in this forum
Thrive Game Development :: Development :: Programming-
Jump to: