cegui 0.8.7 and ogre 1.10: problems on android

For help with general CEGUI usage:
- Questions about the usage of CEGUI and its features, if not explained in the documentation.
- Problems with the CMAKE configuration or problems occuring during the build process/compilation.
- Errors or unexpected behaviour.

Moderators: CEGUI MVP, CEGUI Team

andrew_vorobey
Just popping in
Just popping in
Posts: 1
Joined: Tue Nov 01, 2016 12:00

cegui 0.8.7 and ogre 1.10: problems on android

Postby andrew_vorobey » Tue Nov 01, 2016 12:34

I've successfully built CEGUI for android with ogre render system and embedded it to my application without COMPILE errors. But when I try to run it, the code failed with errors:

Code: Select all

E/OGRE: OGRE EXCEPTION(2:InvalidParametersException): Named constants have not been initialised, perhaps a compile error. in GpuProgramParameters::_findNamedConstantDefinition at /path/to/ogre/OgreMain/src/OgreGpuProgramParams.cpp (line 2196)
A/libc: Fatal signal 6 (SIGABRT), code -6 in tid 6229


I've used following cmake command to build CEGUI:

Code: Select all

cmake -DCMAKE_TOOLCHAIN_FILE="../../AndroidBuildToolchain/android.toolchain.cmake"  -DCEGUI_BUILD_STATIC_FACTORY_MODULE=TRUE  -DCEGUI_STATIC=TRUE -DANDROID_ABI=x86  -DANDROID_NATIVE_API_LEVEL=12 -DANDROID_TOOLCHAIN_NAME=x86-4.9  ../..


This is CEGUI part of my code:

Code: Select all

    mRenderer = &CEGUI::OgreRenderer::bootstrapSystem(*(mOgreRoot->getRenderTarget("customWindowName")));
    mRenderer->setRenderingEnabled(true);

    CEGUI::ImageManager::setImagesetDefaultResourceGroup("Imagesets");
    CEGUI::Font::setDefaultResourceGroup("Fonts");
    CEGUI::Scheme::setDefaultResourceGroup("Schemes");
    CEGUI::WidgetLookManager::setDefaultResourceGroup("LookNFeel");
    CEGUI::WindowManager::setDefaultResourceGroup("Layouts");
    CEGUI::SchemeManager::getSingleton().createFromFile("OgreTray.scheme");

    CEGUI::WindowManager &wmgr = CEGUI::WindowManager::getSingleton();
    CEGUI::Window *sheet = wmgr.createWindow("DefaultWindow", "CEGUIDemo/Sheet");
    CEGUI::FrameWindow *quit = static_cast<CEGUI::FrameWindow*>(wmgr.createWindow("OgreTray/Button", "CEGUIDemo/QuitButton"));

    quit->setText("Quit");
    quit->setSize(CEGUI::USize(CEGUI::UDim(0.15, 0), CEGUI::UDim(0.05, 0)));

    sheet->addChild(quit);
    CEGUI::System::getSingleton().getDefaultGUIContext().setRootWindow(sheet);


And when i'm removing the last line it works without exceptions, and without result.
So, my I've got a question: why does this error can be? What i'm doing wrong?

YaronCT
CEGUI Team
Posts: 448
Joined: Fri Jun 19, 2015 12:18
Location: Kiryat-Bialik, Israel

Re: cegui 0.8.7 and ogre 1.10: problems on android

Postby YaronCT » Sat Nov 05, 2016 17:05

@andrew_vorobey: R u able to successfully build and run a program that uses Ogre 1.10 on android that doesn't use cegui?


Return to “Help”

Who is online

Users browsing this forum: No registered users and 26 guests