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?