Compiling test example

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

shi_no_ka
Just popping in
Just popping in
Posts: 2
Joined: Wed Jul 15, 2015 19:49

Compiling test example

Postby shi_no_ka » Wed Jul 15, 2015 20:02

Hi.
I'am started to learn CeGUI some week ago so some things about I can just dont know.
Try to compile simple program with GCC but have only errors in include files. CEGUI installed with "pkg_add" include path is correct. So errors:

Scanning dependencies of target Test
[100%] Building CXX object CMakeFiles/Test.dir/test.cpp.o
In file included from /usr/local/include/cegui-0/CEGUI/falagard/./WidgetLookFeel.h:34,
from /usr/local/include/cegui-0/CEGUI/falagard/WidgetLookManager.h:33,
from /usr/local/include/cegui-0/CEGUI/CEGUI.h:129,
from /home/shizennokaze/cegui_freak/test.cpp:3:
/usr/local/include/cegui-0/CEGUI/falagard/PropertyDefinitionBase.h: In member function 'void CEGUI::PropertyDefinition<T>::writeDefinitionXMLAdditionalAttributes(CEGUI::XMLSerializer&) const':
/usr/local/include/cegui-0/CEGUI/falagard/PropertyDefinitionBase.h:113: error: object missing in reference to 'CEGUI::PropertyDefinitionBase::d_helpString'
/usr/local/include/cegui-0/CEGUI/falagard/././PropertyDefinition.h:129: error: from this location
/usr/local/include/cegui-0/CEGUI/falagard/PropertyDefinitionBase.h:113: error: object missing in reference to 'CEGUI::PropertyDefinitionBase::d_helpString'
/usr/local/include/cegui-0/CEGUI/falagard/././PropertyDefinition.h:129: error: from this location
/usr/local/include/cegui-0/CEGUI/falagard/PropertyDefinitionBase.h:113: error: object missing in reference to 'CEGUI::PropertyDefinitionBase::d_helpString'
/usr/local/include/cegui-0/CEGUI/falagard/././PropertyDefinition.h:130: error: from this location
In file included from /usr/local/include/cegui-0/CEGUI/falagard/./WidgetLookFeel.h:35,
from /usr/local/include/cegui-0/CEGUI/falagard/WidgetLookManager.h:33,
from /usr/local/include/cegui-0/CEGUI/CEGUI.h:129,
from /home/shizennokaze/cegui_freak/test.cpp:3:
/usr/local/include/cegui-0/CEGUI/falagard/PropertyDefinitionBase.h: In member function 'void CEGUI::PropertyLinkDefinition<T>::writeDefinitionXMLAdditionalAttributes(CEGUI::XMLSerializer&) const':
/usr/local/include/cegui-0/CEGUI/falagard/PropertyDefinitionBase.h:113: error: object missing in reference to 'CEGUI::PropertyDefinitionBase::d_helpString'
/usr/local/include/cegui-0/CEGUI/falagard/././PropertyLinkDefinition.h:177: error: from this location
/usr/local/include/cegui-0/CEGUI/falagard/PropertyDefinitionBase.h:113: error: object missing in reference to 'CEGUI::PropertyDefinitionBase::d_helpString'
/usr/local/include/cegui-0/CEGUI/falagard/././PropertyLinkDefinition.h:177: error: from this location
/usr/local/include/cegui-0/CEGUI/falagard/PropertyDefinitionBase.h:113: error: object missing in reference to 'CEGUI::PropertyDefinitionBase::d_helpString'
/usr/local/include/cegui-0/CEGUI/falagard/././PropertyLinkDefinition.h:178: error: from this location
/home/shizennokaze/cegui_freak/test.cpp: In function 'int main()':
/home/shizennokaze/cegui_freak/test.cpp:12: error: 'OpenGLRenderer' is not a member of 'CEGUI'
/home/shizennokaze/cegui_freak/test.cpp:12: error: 'myRenderer' was not declared in this scope
/home/shizennokaze/cegui_freak/test.cpp:12: error: 'CEGUI::OpenGLRenderer' has not been declared
/home/shizennokaze/cegui_freak/test.cpp:14: error: expected nested-name-specifier before 'namespase'
/home/shizennokaze/cegui_freak/test.cpp:14: error: 'namespase' has not been declared
/home/shizennokaze/cegui_freak/test.cpp:14: error: expected `;' before 'CEGUI'
/home/shizennokaze/cegui_freak/test.cpp:14: error: expected primary-expression before ';' token
/home/shizennokaze/cegui_freak/test.cpp:16: error: 'WindowManager' was not declared in this scope
/home/shizennokaze/cegui_freak/test.cpp:16: error: 'wmgr' was not declared in this scope
/home/shizennokaze/cegui_freak/test.cpp:16: error: 'WindowManager' is not a class or namespace
/home/shizennokaze/cegui_freak/test.cpp:17: error: 'Window' was not declared in this scope
/home/shizennokaze/cegui_freak/test.cpp:17: error: 'myRoot' was not declared in this scope
/home/shizennokaze/cegui_freak/test.cpp:18: error: 'System' has not been declared
/home/shizennokaze/cegui_freak/test.cpp:19: error: 'FrameWindow' was not declared in this scope
/home/shizennokaze/cegui_freak/test.cpp:19: error: 'fWnd' was not declared in this scope
/home/shizennokaze/cegui_freak/test.cpp:19: error: expected type-specifier before 'FrameWindow'
/home/shizennokaze/cegui_freak/test.cpp:19: error: expected `>' before 'FrameWindow'
/home/shizennokaze/cegui_freak/test.cpp:19: error: expected `(' before 'FrameWindow'
/home/shizennokaze/cegui_freak/test.cpp:19: error: expected primary-expression before '>' token
/home/shizennokaze/cegui_freak/test.cpp:20: error: expected `)' before ';' token
/home/shizennokaze/cegui_freak/test.cpp:23: error: 'UDim' was not declared in this scope
/home/shizennokaze/cegui_freak/test.cpp:23: error: 'UVector2' was not declared in this scope
/home/shizennokaze/cegui_freak/test.cpp:25: error: 'USize' was not declared in this scope
*** Error 1 in . (CMakeFiles/Test.dir/build.make:56 'CMakeFiles/Test.dir/test.cpp.o': /usr/bin/c++ -I/usr/local/include/cegui-0 -o CMa...)
*** Error 1 in . (CMakeFiles/Makefile2:61 'CMakeFiles/Test.dir/all')
*** Error 1 in /home/shizennokaze/cegui_freak (Makefile:77 'all')


Working on OpenBSD, Dependences installed.
When i'm trying to compile source, errors almost the same.
Will TNX every help... :)

User avatar
Ident
CEGUI Team
Posts: 1998
Joined: Sat Oct 31, 2009 13:57
Location: Austria

Re: Compiling test example

Postby Ident » Thu Jul 16, 2015 14:11

Please always post logs, code etc in the appropriate Code tags. Please read this: viewtopic.php?f=10&t=3351

Did you try to build the SampleBrowser and the Samples? I dont know what this "test" is that you are building and also you didnt tell us which CEGUI version this is etc. Please read above link and provide us with more information
CrazyEddie: "I don't like GUIs"

shi_no_ka
Just popping in
Just popping in
Posts: 2
Joined: Wed Jul 15, 2015 19:49

Re: Compiling test example

Postby shi_no_ka » Thu Jul 30, 2015 15:25

OK, I delete cegui ("sudo pkg_delete cegui") and trying to compile it from the source (CEGUI 0.8.4) and have next errors (same as at the top)

Code: Select all

[  1%] Building CXX object cegui/src/CMakeFiles/CEGUIBase-0.dir/System.cpp.o
In file included from /home/shizennokaze/Downloads/cegui-0.8.4/cegui/include/CEGUI/falagard/./WidgetLookFeel.h:34,
                 from /home/shizennokaze/Downloads/cegui-0.8.4/cegui/include/CEGUI/falagard/WidgetLookManager.h:33,
                 from /home/shizennokaze/Downloads/cegui-0.8.4/cegui/src/System.cpp:47:
/home/shizennokaze/Downloads/cegui-0.8.4/cegui/include/CEGUI/falagard/PropertyDefinitionBase.h: In member function 'void CEGUI::PropertyDefinition<T>::writeDefinitionXMLAdditionalAttributes(CEGUI::XMLSerializer&) const':
/home/shizennokaze/Downloads/cegui-0.8.4/cegui/include/CEGUI/falagard/PropertyDefinitionBase.h:113: error: object missing in reference to 'CEGUI::PropertyDefinitionBase::d_helpString'
/home/shizennokaze/Downloads/cegui-0.8.4/cegui/include/CEGUI/falagard/././PropertyDefinition.h:129: error: from this location
/home/shizennokaze/Downloads/cegui-0.8.4/cegui/include/CEGUI/falagard/PropertyDefinitionBase.h:113: error: object missing in reference to 'CEGUI::PropertyDefinitionBase::d_helpString'
/home/shizennokaze/Downloads/cegui-0.8.4/cegui/include/CEGUI/falagard/././PropertyDefinition.h:129: error: from this location
/home/shizennokaze/Downloads/cegui-0.8.4/cegui/include/CEGUI/falagard/PropertyDefinitionBase.h:113: error: object missing in reference to 'CEGUI::PropertyDefinitionBase::d_helpString'
/home/shizennokaze/Downloads/cegui-0.8.4/cegui/include/CEGUI/falagard/././PropertyDefinition.h:130: error: from this location
In file included from /home/shizennokaze/Downloads/cegui-0.8.4/cegui/include/CEGUI/falagard/./WidgetLookFeel.h:35,
                 from /home/shizennokaze/Downloads/cegui-0.8.4/cegui/include/CEGUI/falagard/WidgetLookManager.h:33,
                 from /home/shizennokaze/Downloads/cegui-0.8.4/cegui/src/System.cpp:47:
/home/shizennokaze/Downloads/cegui-0.8.4/cegui/include/CEGUI/falagard/PropertyDefinitionBase.h: In member function 'void CEGUI::PropertyLinkDefinition<T>::writeDefinitionXMLAdditionalAttributes(CEGUI::XMLSerializer&) const':
/home/shizennokaze/Downloads/cegui-0.8.4/cegui/include/CEGUI/falagard/PropertyDefinitionBase.h:113: error: object missing in reference to 'CEGUI::PropertyDefinitionBase::d_helpString'
/home/shizennokaze/Downloads/cegui-0.8.4/cegui/include/CEGUI/falagard/././PropertyLinkDefinition.h:177: error: from this location
/home/shizennokaze/Downloads/cegui-0.8.4/cegui/include/CEGUI/falagard/PropertyDefinitionBase.h:113: error: object missing in reference to 'CEGUI::PropertyDefinitionBase::d_helpString'
/home/shizennokaze/Downloads/cegui-0.8.4/cegui/include/CEGUI/falagard/././PropertyLinkDefinition.h:177: error: from this location
/home/shizennokaze/Downloads/cegui-0.8.4/cegui/include/CEGUI/falagard/PropertyDefinitionBase.h:113: error: object missing in reference to 'CEGUI::PropertyDefinitionBase::d_helpString'
/home/shizennokaze/Downloads/cegui-0.8.4/cegui/include/CEGUI/falagard/././PropertyLinkDefinition.h:178: error: from this location
*** Error 1 in . (cegui/src/CMakeFiles/CEGUIBase-0.dir/build.make:516 'cegui/src/CMakeFiles/CEGUIBase-0.dir/System.cpp.o': cd /home/shizenno...)
*** Error 1 in . (CMakeFiles/Makefile2:76 'cegui/src/CMakeFiles/CEGUIBase-0.dir/all')
*** Error 1 in /home/shizennokaze/Downloads/cegui-0.8.4 (Makefile:138 'all')


OS OpenBSD 5.7


Return to “Help”

Who is online

Users browsing this forum: No registered users and 20 guests