Page 1 of 1
MyGUI EXCEPTION : root widget name '_Main'
Posted: 18 Oct 2015, 17:23
by Jyby
I'm doing some exploratory learning and trying to create a new window that is displayed when the player right clicks (goes into gui mode for inventory, just like stats window or spell window). In fact I took those as examples and created a new window thats bare bones.
I'm receiving this exception:
Code: Select all
ERROR: MyGUI EXCEPTION : root widget name '_Main' in layout 'openmw_loading_screen.layout' not found.
I've added the components on the C++ side and its pretty barebones just to get the window up.
The layout I created is named: openmw_my_window.layout
I'm using MyGui 3.2.1 from the brew repos on Mac OS X Yosemite
I was able to get it past that error once by clearing my build folder and all of the config files in my config path.
I got this error:
Code: Select all
ERROR: MyGUI EXCEPTION : root widget name '_Main' in layout 'openmw_my_window.layout' not found.
Any idea?
EDIT: CMake output
-
Spoiler: Show
Code: Select all
host-233-163:build jyby$ cmake -DCMAKE_C_COMPILER=$(xcrun -find clang) -DCMAKE_CXX_COMPILER=$(xcrun -find clang++) -DCMAKE_CXX_FLAGS="-stdlib=libstdc++" -DCMAKE_EXE_LINKER_FLAGS="-stdlib=libstdc++" -DCMAKE_OSX_SYSROOT="macosx10.10" -DCMAKE_OSX_ARCHITECTURES="x86_64" -DCMAKE_OSX_DEPLOYMENT_TARGET="10.6" -DCMAKE_FRAMEWORK_PATH="/usr/local/lib/release" -DCMAKE_EXE_LINKER_FLAGS="-F/usr/local/lib/release" -DMAKE_BUILD_TYPE=Debug -DBUILD_MYGUI_PLUGIN=OFF -G"Unix Makefiles" ../
-- The C compiler identification is AppleClang 6.1.0.6020053
-- The CXX compiler identification is AppleClang 6.1.0.6020053
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring OpenMW...
-- Found Git: /usr/bin/git (found version "2.3.2 (Apple Git-55)")
-- Found PkgConfig: /usr/local/bin/pkg-config (found version "0.28")
-- checking for module 'libavcodec'
-- found libavcodec, version 56.60.100
-- checking for module 'libavformat'
-- found libavformat, version 56.40.101
-- checking for module 'libavdevice'
-- found libavdevice, version 56.4.100
-- checking for module 'libavutil'
-- found libavutil, version 54.31.100
-- checking for module 'libswscale'
-- found libswscale, version 3.1.101
-- checking for module 'libpostproc'
-- found libpostproc, version 53.3.100
-- checking for module 'libswresample'
-- found libswresample, version 1.2.101
-- checking for module 'libavresample'
-- found libavresample, version 2.1.0
-- Found FFmpeg: /usr/local/lib/libavcodec.dylib;/usr/local/lib/libavformat.dylib;/usr/local/lib/libavutil.dylib;/usr/local/lib/libswscale.dylib
-- Using Qt4
-- Looking for Q_WS_X11
-- Looking for Q_WS_X11 - not found
-- Looking for Q_WS_WIN
-- Looking for Q_WS_WIN - not found
-- Looking for Q_WS_QWS
-- Looking for Q_WS_QWS - not found
-- Looking for Q_WS_MAC
-- Looking for Q_WS_MAC - found
-- Looking for QT_MAC_USE_COCOA
-- Looking for QT_MAC_USE_COCOA - found
-- Found Qt4: /usr/local/bin/qmake (found version "4.8.7")
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for C++ include unordered_map
-- Looking for C++ include unordered_map - not found
-- Found osgDB: /usr/local/lib/libosgDB.dylib
-- Found osgViewer: /usr/local/lib/libosgViewer.dylib
-- Found osgText: /usr/local/lib/libosgText.dylib
-- Found osgGA: /usr/local/lib/libosgGA.dylib
-- Found osgAnimation: /usr/local/lib/libosgAnimation.dylib
-- Found osgParticle: /usr/local/lib/libosgParticle.dylib
-- Found osgQt: /usr/local/lib/libosgQt.dylib
-- Found osgUtil: /usr/local/lib/libosgUtil.dylib
-- Found osgFX: /usr/local/lib/libosgFX.dylib
-- Found osg: /usr/local/lib/libosg.dylib
-- Found OpenThreads: /usr/local/lib/libOpenThreads.dylib
-- Found OpenSceneGraph: /usr/local/lib/libosgDB.dylib;/usr/local/lib/libosgViewer.dylib;/usr/local/lib/libosgText.dylib;/usr/local/lib/libosgGA.dylib;/usr/local/lib/libosgAnimation.dylib;/usr/local/lib/libosgParticle.dylib;/usr/local/lib/libosgQt.dylib;/usr/local/lib/libosgUtil.dylib;/usr/local/lib/libosgFX.dylib;/usr/local/lib/libosg.dylib;/usr/local/lib/libOpenThreads.dylib (found suitable version "3.2.0", minimum required is "3.2.0")
-- checking for one of the modules 'MYGUI;MyGUI'
-- libraries : MyGUIEngine from /usr/local/Cellar/openmw-mygui/3.2.1/lib
-- includes : /usr/local/Cellar/openmw-mygui/3.2.1/include;/usr/local/Cellar/openmw-mygui/3.2.1/include/MYGUI
-- MyGUI version: 3.2.1
-- Found MyGUI: /usr/local/Cellar/openmw-mygui/3.2.1/include;/usr/local/Cellar/openmw-mygui/3.2.1/include/MYGUI
-- Boost version: 1.55.0
-- Found the following Boost libraries:
-- system
-- filesystem
-- program_options
-- thread
-- Found SDL2: /usr/local/lib/libSDL2main.a;/usr/local/lib/libSDL2.dylib;-framework Cocoa
-- Found OpenAL: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/System/Library/Frameworks/OpenAL.framework
-- Found Bullet: /usr/local/lib/libBulletCollision.a
-- Found OpenGL: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/System/Library/Frameworks/OpenGL.framework
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
-- Configuring done
-- Generating done
CMake Warning:
Manually-specified variables were not used by the project:
MAKE_BUILD_TYPE
-- Build files have been written to: /Users/jyby/Documents/openmw/build
host-233-163:build jyby$