[Solved] Linux CMake can't find CEGUI, no matter what I try
Posted: Fri Apr 17, 2015 21:04
Hello,
I wanted to use CEGUI with my ogre-based program, but I could not get CMake to find it. I have found several solutions via google on these forums and also elsewhere, but neither of them worked, CMake was still failing to find it (the errors varied).
The one that was closest to success was at axelschumacher.fr/218/link-ogre-with-cegui-ogre-basic-tutorial-7-using-cmake , but it was still throwing the following error:
I don't know why does that happen, I tried to remove CEGUI_LIBRARY_OPTIMIZED from the targets list, but it started complaining about being unable to find CEGUIOGRE and I found no haphazard trick to get over it. I remember that I got some 0.7.something version of CEGUI working about 1.5 years ago using exactly those scripts, but I was doing it just for an Ogre tutorial and lost the files due in an accident. Maybe something changed since then
I am using Linux Ubuntu 14.10, Ogre was compiled from source and has all the CMake files there, compiles correctly, CEGUI was compiled without issues (default installation), the CEGUIOGRE based samples' framework runs. According to cegui.org.uk/forum/viewtopic.php?f=10&t=6693 , the way Ogre installed isn't good. I am quite sure that findCEGUI.cmake and other files were found, the error is different if I remove them.
I have CEGUI installed in /usr/local/lib/cegui-0.8 and /usr/local/include/cegui-0/CEGUI (default location when compiling), to be sure that it's not just misplaced I placed links on these folders into /usr/lib/ and /usr/include but it did not help.
I also tried the script on cegui.org.uk/forum/viewtopic.php?f=3&t=5732 , but it generated a large number of errors and failed to find it anyway (I can post these too if necessary).
Any idea what am I doing wrong? CEGUI looks like a pretty cool library and I would like to be able to use it.
I wanted to use CEGUI with my ogre-based program, but I could not get CMake to find it. I have found several solutions via google on these forums and also elsewhere, but neither of them worked, CMake was still failing to find it (the errors varied).
The one that was closest to success was at axelschumacher.fr/218/link-ogre-with-cegui-ogre-basic-tutorial-7-using-cmake , but it was still throwing the following error:
Code: Select all
CMake Error at /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:108 (message):
Could NOT find CEGUI (version requirements: at least ) (missing:
CEGUI_LIBRARY_OPTIMIZED)
Call Stack (most recent call first):
/usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:315 (_FPHSA_FAILURE_MESSAGE)
/usr/local/lib/cegui-0.8/cmake/FindPackageHandleAdvancedArgs.cmake:44 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
/usr/local/lib/cegui-0.8/cmake/FindCEGUI.cmake:59 (FIND_PACKAGE_HANDLE_ADVANCED_ARGS)
CMakeLists.txt:111 (find_package)
I don't know why does that happen, I tried to remove CEGUI_LIBRARY_OPTIMIZED from the targets list, but it started complaining about being unable to find CEGUIOGRE and I found no haphazard trick to get over it. I remember that I got some 0.7.something version of CEGUI working about 1.5 years ago using exactly those scripts, but I was doing it just for an Ogre tutorial and lost the files due in an accident. Maybe something changed since then
I am using Linux Ubuntu 14.10, Ogre was compiled from source and has all the CMake files there, compiles correctly, CEGUI was compiled without issues (default installation), the CEGUIOGRE based samples' framework runs. According to cegui.org.uk/forum/viewtopic.php?f=10&t=6693 , the way Ogre installed isn't good. I am quite sure that findCEGUI.cmake and other files were found, the error is different if I remove them.
I have CEGUI installed in /usr/local/lib/cegui-0.8 and /usr/local/include/cegui-0/CEGUI (default location when compiling), to be sure that it's not just misplaced I placed links on these folders into /usr/lib/ and /usr/include but it did not help.
I also tried the script on cegui.org.uk/forum/viewtopic.php?f=3&t=5732 , but it generated a large number of errors and failed to find it anyway (I can post these too if necessary).
Any idea what am I doing wrong? CEGUI looks like a pretty cool library and I would like to be able to use it.