libolt
25-08-2007 23:12:38
Hi,
I decided to take a shot at building QuickGUI on linux. I've noticed there are no Makefiles or build system for it, so I decided to whip up my own CMake based system. However it got as far as compiling the first file, QuickGUIButton.cpp and barfed with the following:
Hopefully someone can give me a tip on how to fix this. I would love to try QuickGUI out and possibly integrate it into my project.
Thanks,
Mike
I decided to take a shot at building QuickGUI on linux. I've noticed there are no Makefiles or build system for it, so I decided to whip up my own CMake based system. However it got as far as compiling the first file, QuickGUIButton.cpp and barfed with the following:
/home/libolt/Projects/quickgui/QuickGUI/src/../include/QuickGUIPoint.h:10: error: expected initializer before ‘Point’
/home/libolt/Projects/quickgui/QuickGUI/src/../include/QuickGUIEventArgs.h:30: error: expected initializer before ‘EventArgs’
/home/libolt/Projects/quickgui/QuickGUI/src/../include/QuickGUIEventArgs.h:55: error: expected initializer before ‘WidgetEventArgs’
/home/libolt/Projects/quickgui/QuickGUI/src/../include/QuickGUIEventArgs.h:69: error: expected initializer before ‘MouseEventArgs’
/home/libolt/Projects/quickgui/QuickGUI/src/../include/QuickGUIEventArgs.h:89: error: expected initializer before ‘KeyEventArgs’
/home/libolt/Projects/quickgui/QuickGUI/src/../include/QuickGUIEventArgs.h:105: error: expected initializer before ‘ButtonStateEventArgs’
/home/libolt/Projects/quickgui/QuickGUI/src/../include/QuickGUIMemberFunctionPointer.h:19: error: expected initializer before ‘MemberFunctionSlot’
/home/libolt/Projects/quickgui/QuickGUI/src/../include/QuickGUIMemberFunctionPointer.h:29: error: expected class-name before ‘{’ token
/home/libolt/Projects/quickgui/QuickGUI/src/../include/QuickGUIMemberFunctionPointer.h:31: error: expected ‘,’ or ‘...’ before ‘&’ token
/home/libolt/Projects/quickgui/QuickGUI/src/../include/QuickGUIMemberFunctionPointer.h:31: error: ISO C++ forbids declaration of ‘EventArgs’ with no type
/home/libolt/Projects/quickgui/QuickGUI/src/../include/QuickGUIMemberFunctionPointer.h:43: error: expected ‘,’ or ‘...’ before ‘&’ token
/home/libolt/Projects/quickgui/QuickGUI/src/../include/QuickGUIMemberFunctionPointer.h:43: error: ISO C++ forbids declaration of ‘EventArgs’ with no type
/home/libolt/Projects/quickgui/QuickGUI/src/../include/QuickGUIMemberFunctionPointer.h: In member function ‘virtual bool QuickGUI::MemberFunctionPointer<T>::execute(int)’:
/home/libolt/Projects/quickgui/QuickGUI/src/../include/QuickGUIMemberFunctionPointer.h:45: error: ‘args’ was not declared in this scope
/home/libolt/Projects/quickgui/QuickGUI/src/../include/QuickGUISize.h: At global scope:
/home/libolt/Projects/quickgui/QuickGUI/src/../include/QuickGUISize.h:10: error: expected initializer before ‘Size’
/home/libolt/Projects/quickgui/QuickGUI/src/../include/QuickGUIRect.h:12: error: expected initializer before ‘Rect’
/home/libolt/Projects/quickgui/QuickGUI/src/../include/QuickGUIVertex.h:14: error: expected initializer before ‘Vertex’
/home/libolt/Projects/quickgui/QuickGUI/src/../include/QuickGUIRenderObject.h:19: error: expected initializer before ‘RenderObject’
/home/libolt/Projects/quickgui/QuickGUI/src/../include/QuickGUIQuad.h:17: error: expected initializer before ‘Quad’
/home/libolt/Projects/quickgui/QuickGUI/src/../include/QuickGUIVertexBuffer.h:21: error: expected initializer before ‘VertexBuffer’
/home/libolt/Projects/quickgui/QuickGUI/src/../include/QuickGUIRenderObjectGroup.h:23: error: expected initializer before ‘RenderObjectGroup’
/home/libolt/Projects/quickgui/QuickGUI/src/../include/QuickGUIWidget.h:63: error: expected initializer before ‘Widget’
/home/libolt/Projects/quickgui/QuickGUI/src/../include/QuickGUIImage.h:14: error: expected initializer before ‘Image’
/home/libolt/Projects/quickgui/QuickGUI/src/../include/QuickGUIText.h:24: error: expected initializer before ‘Text’
/home/libolt/Projects/quickgui/QuickGUI/src/../include/QuickGUILabel.h:16: error: expected initializer before ‘Label’
/home/libolt/Projects/quickgui/QuickGUI/src/../include/QuickGUIButton.h:22: error: expected initializer before ‘Button’
/home/libolt/Projects/quickgui/QuickGUI/src/../include/QuickGUISkinSet.h:21: error: expected initializer before ‘SkinSet’
/home/libolt/Projects/quickgui/QuickGUI/src/../include/QuickGUIMouseCursor.h:23: error: expected initializer before ‘MouseCursor’
/home/libolt/Projects/quickgui/QuickGUI/src/../include/QuickGUINStateButton.h:21: error: expected initializer before ‘NStateButton’
/home/libolt/Projects/quickgui/QuickGUI/src/../include/QuickGUIListItem.h:16: error: expected initializer before ‘ListItem’
/home/libolt/Projects/quickgui/QuickGUI/src/../include/QuickGUIList.h:20: error: expected initializer before ‘List’
/home/libolt/Projects/quickgui/QuickGUI/src/../include/QuickGUIComboBox.h:26: error: expected initializer before ‘ComboBox’
/home/libolt/Projects/quickgui/QuickGUI/src/../include/QuickGUIMenuList.h:18: error: expected initializer before ‘MenuList’
/home/libolt/Projects/quickgui/QuickGUI/src/../include/QuickGUIMenu.h:21: error: expected initializer before ‘Menu’
/home/libolt/Projects/quickgui/QuickGUI/src/../include/QuickGUIProgressBar.h:19: error: expected initializer before ‘ProgressBar’
/home/libolt/Projects/quickgui/QuickGUI/src/../include/QuickGUITextBox.h:21: error: expected initializer before ‘TextBox’
/home/libolt/Projects/quickgui/QuickGUI/src/../include/QuickGUITrackBar.h:17: error: expected initializer before ‘TrackBar’
/home/libolt/Projects/quickgui/QuickGUI/src/../include/QuickGUIPanel.h:31: error: expected initializer before ‘Panel’
/home/libolt/Projects/quickgui/QuickGUI/src/../include/QuickGUITitleBar.h:28: error: expected initializer before ‘TitleBar’
/home/libolt/Projects/quickgui/QuickGUI/src/../include/QuickGUIWindow.h:25: error: expected initializer before ‘Window’
/home/libolt/Projects/quickgui/QuickGUI/src/../include/QuickGUISheet.h:17: error: expected initializer before ‘Sheet’
/home/libolt/Projects/quickgui/QuickGUI/src/../include/QuickGUIManager.h:41: error: expected initializer before ‘GUIManager’
/home/libolt/Projects/quickgui/QuickGUI/src/QuickGUIButton.cpp:8: error: ‘Button’ has not been declared
/home/libolt/Projects/quickgui/QuickGUI/src/QuickGUIButton.cpp:8: error: expected ‘,’ or ‘...’ before ‘&’ token
/home/libolt/Projects/quickgui/QuickGUI/src/QuickGUIButton.cpp:8: error: ISO C++ forbids declaration of ‘Button’ with no type
/home/libolt/Projects/quickgui/QuickGUI/src/QuickGUIButton.cpp:8: error: ISO C++ forbids declaration of ‘Rect’ with no type
/home/libolt/Projects/quickgui/QuickGUI/src/QuickGUIButton.cpp: In function ‘int QuickGUI::Button(const Ogre::String&, int)’:
/home/libolt/Projects/quickgui/QuickGUI/src/QuickGUIButton.cpp:8: error: only constructors take base initializers
/home/libolt/Projects/quickgui/QuickGUI/src/QuickGUIButton.cpp:9: error: ‘dimensions’ was not declared in this scope
/home/libolt/Projects/quickgui/QuickGUI/src/QuickGUIButton.cpp:9: error: ‘positionMode’ was not declared in this scope
/home/libolt/Projects/quickgui/QuickGUI/src/QuickGUIButton.cpp:9: error: ‘sizeMode’ was not declared in this scope
/home/libolt/Projects/quickgui/QuickGUI/src/QuickGUIButton.cpp:9: error: ‘texture’ was not declared in this scope
/home/libolt/Projects/quickgui/QuickGUI/src/QuickGUIButton.cpp:9: error: ‘group’ was not declared in this scope
/home/libolt/Projects/quickgui/QuickGUI/src/QuickGUIButton.cpp:9: error: ‘ParentWidget’ was not declared in this scope
/home/libolt/Projects/quickgui/QuickGUI/src/QuickGUIButton.cpp:11: error: ‘mWidgetType’ was not declared in this scope
/home/libolt/Projects/quickgui/QuickGUI/src/QuickGUIButton.cpp:11: error: incomplete type ‘QuickGUI::Widget’ used in nested name specifier
/home/libolt/Projects/quickgui/QuickGUI/src/QuickGUIButton.cpp:12: error: ‘mRenderObject’ was not declared in this scope
/home/libolt/Projects/quickgui/QuickGUI/src/QuickGUIButton.cpp:12: error: ‘RenderObject’ has not been declared
/home/libolt/Projects/quickgui/QuickGUI/src/QuickGUIButton.cpp: At global scope:
/home/libolt/Projects/quickgui/QuickGUI/src/QuickGUIButton.cpp:15: error: expected constructor, destructor, or type conversion before ‘::’ token
/home/libolt/Projects/quickgui/QuickGUI/src/QuickGUIButton.cpp:19: error: ‘Button’ is not a class or namespace
/home/libolt/Projects/quickgui/QuickGUI/src/QuickGUIButton.cpp: In function ‘void QuickGUI::applyButtonDownTexture()’:
/home/libolt/Projects/quickgui/QuickGUI/src/QuickGUIButton.cpp:22: error: ‘mDefaultTexture’ was not declared in this scope
/home/libolt/Projects/quickgui/QuickGUI/src/QuickGUIButton.cpp:22: error: ‘mTextureExtension’ was not declared in this scope
/home/libolt/Projects/quickgui/QuickGUI/src/QuickGUIButton.cpp:23: error: ‘mGUIManager’ was not declared in this scope
/home/libolt/Projects/quickgui/QuickGUI/src/QuickGUIButton.cpp:24: error: ‘setTexture’ was not declared in this scope
/home/libolt/Projects/quickgui/QuickGUI/src/QuickGUIButton.cpp: At global scope:
/home/libolt/Projects/quickgui/QuickGUI/src/QuickGUIButton.cpp:27: error: ‘Button’ is not a class or namespace
/home/libolt/Projects/quickgui/QuickGUI/src/QuickGUIButton.cpp: In function ‘void QuickGUI::applyDefaultTexture()’:
/home/libolt/Projects/quickgui/QuickGUI/src/QuickGUIButton.cpp:29: error: ‘mDefaultTexture’ was not declared in this scope
/home/libolt/Projects/quickgui/QuickGUI/src/QuickGUIButton.cpp:29: error: ‘mTextureExtension’ was not declared in this scope
/home/libolt/Projects/quickgui/QuickGUI/src/QuickGUIButton.cpp:29: error: ‘setTexture’ was not declared in this scope
/home/libolt/Projects/quickgui/QuickGUI/src/QuickGUIButton.cpp: At global scope:
/home/libolt/Projects/quickgui/QuickGUI/src/QuickGUIButton.cpp:32: error: ‘Button’ is not a class or namespace
/home/libolt/Projects/quickgui/QuickGUI/src/QuickGUIButton.cpp:32: error: ‘MouseEventArgs’ was not declared in this scope
/home/libolt/Projects/quickgui/QuickGUI/src/QuickGUIButton.cpp:32: error: ‘e’ was not declared in this scope
/home/libolt/Projects/quickgui/QuickGUI/src/QuickGUIButton.cpp:33: error: expected ‘,’ or ‘;’ before ‘{’ token
/home/libolt/Projects/quickgui/QuickGUI/src/QuickGUIButton.cpp:42: error: ‘Button’ is not a class or namespace
/home/libolt/Projects/quickgui/QuickGUI/src/QuickGUIButton.cpp:42: error: ‘MouseEventArgs’ was not declared in this scope
/home/libolt/Projects/quickgui/QuickGUI/src/QuickGUIButton.cpp:42: error: ‘e’ was not declared in this scope
/home/libolt/Projects/quickgui/QuickGUI/src/QuickGUIButton.cpp:43: error: expected ‘,’ or ‘;’ before ‘{’ token
/home/libolt/Projects/quickgui/QuickGUI/src/QuickGUIButton.cpp:54: error: ‘Button’ is not a class or namespace
/home/libolt/Projects/quickgui/QuickGUI/src/QuickGUIButton.cpp:54: error: ‘MouseEventArgs’ was not declared in this scope
/home/libolt/Projects/quickgui/QuickGUI/src/QuickGUIButton.cpp:54: error: ‘e’ was not declared in this scope
/home/libolt/Projects/quickgui/QuickGUI/src/QuickGUIButton.cpp:55: error: expected ‘,’ or ‘;’ before ‘{’ token
/home/libolt/Projects/quickgui/QuickGUI/src/QuickGUIButton.cpp:71: error: ‘Button’ is not a class or namespace
/home/libolt/Projects/quickgui/QuickGUI/src/QuickGUIButton.cpp:71: error: ‘MouseEventArgs’ was not declared in this scope
/home/libolt/Projects/quickgui/QuickGUI/src/QuickGUIButton.cpp:71: error: ‘e’ was not declared in this scope
/home/libolt/Projects/quickgui/QuickGUI/src/QuickGUIButton.cpp:72: error: expected ‘,’ or ‘;’ before ‘{’ token
make[2]: *** [QuickGUI/src/CMakeFiles/quickgui.dir/QuickGUIButton.o] Error 1
make[1]: *** [QuickGUI/src/CMakeFiles/quickgui.dir/all] Error 2
make: *** [all] Error 2
Hopefully someone can give me a tip on how to fix this. I would love to try QuickGUI out and possibly integrate it into my project.
Thanks,
Mike