How to build CEGUI (v0-8 branch) against OGRE 1.10 for Android?
Posted: Wed Jul 20, 2016 18:41
Hello forum.
I'm trying to build CEGUI for Android under Linux (with OGRE Renderer). I already managed to build Ogre 1.10 for Android and have bunch of static libs. If only OgreRenderer is going to be built then there is no need for Epoxy or other libs (just TinyXML for config reading and OIS for input). I want to build CEGUI as a static lib for later use. I've noticed that in project root there's an 'android' directory - with some shell scripts and configs - I didn't find any README on the matter so I'm trying to build CEGUI from command line instead.
I'm also setting environment variable OGRE_HOME/SDK so it points to the location where Ogre libs and include files are installed (the CMake script in cmake/FindOGRE.cmake uses it). But configuration process still couldn't find Ogre.h or OgreBuildSettings.h. I already knew that something is off because file $OGRE_HOME/include/OGRE/Ogre.h exists! So cmake function find_path should find it...
Anyway I still tried to run make in the build folder because I was curious...
I just don't know what to try next.
How to build CEGUI for Android? With or without OGRE. Is there a manual? I couldn't find any specific info. BTW, I'm using Arch Linux, Android NDK r11c and cmake 3.5.2. Thanks in advance for any info on the matter.
I'm trying to build CEGUI for Android under Linux (with OGRE Renderer). I already managed to build Ogre 1.10 for Android and have bunch of static libs. If only OgreRenderer is going to be built then there is no need for Epoxy or other libs (just TinyXML for config reading and OIS for input). I want to build CEGUI as a static lib for later use. I've noticed that in project root there's an 'android' directory - with some shell scripts and configs - I didn't find any README on the matter so I'm trying to build CEGUI from command line instead.
Code: Select all
mkdir build-android-release
cd build-android-release
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=../android/android.toolchain.cmake__orig -DANDROID_ABI=armeabi-v7a -DANDROID_NATIVE_API_LEVEL=10 -DANDROID_TOOLCHAIN_NAME=arm-linux-androideabi-4.9 -DCEGUI_SAMPLES_ENABLED=ON -DCEGUI_BUILD_RENDERER_OPENGL=OFF -DCEGUI_BUILD_RENDERER_OPENGL3=OFF -DCEGUI_BUILD_RENDERER_OGRE=YES -DCEGUI_USE_GLEW=OFF -DCEGUI_USE_EPOXY=OFF -DCEGUI_USE_MINIBIDI=OFF -DCEGUI_USE_FRIBIDI=OFF ..
I'm also setting environment variable OGRE_HOME/SDK so it points to the location where Ogre libs and include files are installed (the CMake script in cmake/FindOGRE.cmake uses it). But configuration process still couldn't find Ogre.h or OgreBuildSettings.h. I already knew that something is off because file $OGRE_HOME/include/OGRE/Ogre.h exists! So cmake function find_path should find it...
Anyway I still tried to run make in the build folder because I was curious...
Code: Select all
Building CXX object cegui/src/CMakeFiles/CEGUIBase-0.dir/IconvStringTranscoder.cpp.o
/home/***/Downloads/Repositories.Develop/cegui-v0-repo/cegui/src/IconvStringTranscoder.cpp:30:19: fatal error: iconv.h: No such file or directory
#include <iconv.h>
^
compilation terminated.
make[2]: *** [cegui/src/CMakeFiles/CEGUIBase-0.dir/build.make:1071: cegui/src/CMakeFiles/CEGUIBase-0.dir/IconvStringTranscoder.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:86: cegui/src/CMakeFiles/CEGUIBase-0.dir/all] Error 2
make: *** [Makefile:150: all] Error 2
I just don't know what to try next.
How to build CEGUI for Android? With or without OGRE. Is there a manual? I couldn't find any specific info. BTW, I'm using Arch Linux, Android NDK r11c and cmake 3.5.2. Thanks in advance for any info on the matter.