Svn compile error on Ubuntu

Gonsor

03-10-2008 16:21:08

Hi,
I can't get MyGUI's svn version to compile on Ubuntu 8.10. Here's the g++ error:
libtool: compile: g++ -DPACKAGE_NAME=\"MYGUI\" -DPACKAGE_TARNAME=\"mygui\" "-DPACKAGE_VERSION=\"2.2.0 \"" "-DPACKAGE_STRING=\"MYGUI 2.2.0 \"" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"MYGUI\" -DVERSION=\"2.2.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -I. -I/usr/include/freetype2 -DOGRE_GUI_gtk -DOGRE_CONFIG_LITTLE_ENDIAN -I/usr/local/include -I/usr/local/include/OGRE -I/usr/local/include/OIS -I/usr/local/include -I../../MyGUIEngine/include -MT MyGUI_ActionController.lo -MD -MP -MF .deps/MyGUI_ActionController.Tpo -c MyGUI_ActionController.cpp -fPIC -DPIC -o .libs/MyGUI_ActionController.o
In file included from /usr/include/c++/4.3/ext/hash_map:64,
from /usr/local/include/OGRE/OgreStdHeaders.h:38,
from /usr/local/include/OGRE/OgreMemoryManager.h:46,
from /usr/local/include/OGRE/OgrePrerequisites.h:87,
from /usr/local/include/OGRE/Ogre.h:32,
from ../../MyGUIEngine/include/MyGUI_Types.h:12,
from ../../MyGUIEngine/include/MyGUI_Common.h:14,
from ../../MyGUIEngine/include/MyGUI_ICroppedRectangle.h:11,
from ../../MyGUIEngine/include/MyGUI_Widget.h:12,
from MyGUI_ActionController.cpp:9:
/usr/include/c++/4.3/backward/backward_warning.h:33:2: warning: #warning This file includes at least one deprecated or antiquated header which may be removed without further notice at a future date. Please use a non-deprecated interface with equivalent functionality instead. For a listing of replacement headers and interfaces, consult the file backward_warning.h. To disable this warning use -Wno-deprecated.
In file included from ../../MyGUIEngine/include/MyGUI_ISubWidgetRect.h:11,
from ../../MyGUIEngine/include/MyGUI_Widget.h:13,
from MyGUI_ActionController.cpp:9:
../../MyGUIEngine/include/MyGUI_ISubWidget.h:33: error: expected ‘,’ or ‘...’ before ‘&’ token
../../MyGUIEngine/include/MyGUI_ISubWidget.h:33: error: ISO C++ forbids declaration of ‘type_info’ with no type
../../MyGUIEngine/include/MyGUI_ISubWidget.h: In member function ‘bool MyGUI::ISubWidget::isType() const’:
../../MyGUIEngine/include/MyGUI_ISubWidget.h:33: error: no matching function for call to ‘MyGUI::ISubWidget::isType(const std::type_info&) const’
../../MyGUIEngine/include/MyGUI_ISubWidget.h:33: note: candidates are: virtual bool MyGUI::ISubWidget::isType(int) const
In file included from ../../MyGUIEngine/include/MyGUI_Widget.h:13,
from MyGUI_ActionController.cpp:9:
../../MyGUIEngine/include/MyGUI_ISubWidgetRect.h: At global scope:
../../MyGUIEngine/include/MyGUI_ISubWidgetRect.h:18: error: expected ‘,’ or ‘...’ before ‘&’ token
../../MyGUIEngine/include/MyGUI_ISubWidgetRect.h:18: error: ISO C++ forbids declaration of ‘type_info’ with no type
In file included from ../../MyGUIEngine/include/MyGUI_Widget.h:14,
from MyGUI_ActionController.cpp:9:
../../MyGUIEngine/include/MyGUI_ISubWidgetText.h:18: error: expected ‘,’ or ‘...’ before ‘&’ token
../../MyGUIEngine/include/MyGUI_ISubWidgetText.h:18: error: ISO C++ forbids declaration of ‘type_info’ with no type
In file included from MyGUI_ActionController.cpp:9:
../../MyGUIEngine/include/MyGUI_Widget.h:31: error: expected ‘,’ or ‘...’ before ‘&’ token
../../MyGUIEngine/include/MyGUI_Widget.h:31: error: ISO C++ forbids declaration of ‘type_info’ with no type
../../MyGUIEngine/include/MyGUI_Widget.h: In member function ‘bool MyGUI::Widget::isType() const’:
../../MyGUIEngine/include/MyGUI_Widget.h:31: error: no matching function for call to ‘MyGUI::Widget::isType(const std::type_info&) const’
../../MyGUIEngine/include/MyGUI_Widget.h:31: note: candidates are: virtual bool MyGUI::Widget::isType(int) const

And I can't figure out, why. Did anyone encounter a similar problem? If you need additional info, please tell me.
Please help me, MyGUI is so awesome. :)

Gonsor

Altren

03-10-2008 16:33:50

I know about it... Still can't solve.
I think it will be fixed next few days.

Altren

09-10-2008 19:33:44

I fixed all gcc compile errors and some warnings today and updated Makefiles. Pleasy try latest revision. It works on my Debian with gcc 4.3 now.

Gonsor

10-10-2008 15:05:48

Wow, really great support here, thanks.

However, I think there's a Makefile missing now:


sh bootstrap
libtoolize: putting auxiliary files in `.'.
libtoolize: copying file `./ltmain.sh'
libtoolize: Consider adding `AC_CONFIG_MACRO_DIR([m4])' to configure.ac and
libtoolize: rerunning libtoolize, to keep the correct libtool macros in-tree.
libtoolize: Consider adding `-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
configure.ac:16: installing `./compile'
configure.ac:6: installing `./config.guess'
configure.ac:6: installing `./config.sub'
configure.ac:7: installing `./install-sh'
configure.ac:7: installing `./missing'
Demos/Demo_Console/Makefile.am: installing `./depcomp'
configure.ac:27: required file `Demos/Demo_Colour/Makefile.in' not found
configure.ac:27: required file `Demos/Demo_Font/Makefile.in' not found
configure.ac:27: required file `Demos/Demo_StaticImage/Makefile.in' not found


"./configure" is failing then because of this.

Altren

10-10-2008 15:17:37

Oh, I forgot to add two Makefile.am.

Gonsor

10-10-2008 15:47:36

I updated svn, but there's still one missing :(

configure.ac:27: required file `Demos/Demo_StaticImage/Makefile.in' not found

Altren

10-10-2008 15:55:09

Sorry :oops: Fixed now.

Gonsor

10-10-2008 16:15:01

Yay compiles fine now, thanks. :D

Note for other Ubuntu users: you have to install uuid-dev first.