Springlobby Compilation Fails on Gentoo: Missing/Lost aui.h?

Springlobby Compilation Fails on Gentoo: Missing/Lost aui.h?

Discuss everything related to running Spring on your chosen distribution of Linux.

Moderator: Moderators

Post Reply
theluckyone17
Posts: 5
Joined: 16 Oct 2008, 05:26

Springlobby Compilation Fails on Gentoo: Missing/Lost aui.h?

Post by theluckyone17 »

Springlobby version 0.0.1.0729 works fine. Version 0.0.1.10363 fails to compile... along with all the versions inbetween, if I remember correctly from my attempts to mask the versions that won't compile.

Code: Select all

mv -f .deps/maintorrenttab.Tpo .deps/maintorrenttab.Po
i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I.  -I/usr/lib/wx/include/gtk2-ansi-release-2.6 -I/usr/include/wx-2.6 -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DNO_GCC_PRAGMA -I/usr/include/libtorrent   -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DLOCALEDIR=\"/usr/share/locale\" -I./src   -Wall -Wno-strict-aliasing -DNDEBUG -O2 -march=nocona -pipe -MT battlelisttab.o -MD -MP -MF .deps/battlelisttab.Tpo -c -o battlelisttab.o `test -f 'src/battlelisttab.cpp' || echo './'`src/battlelisttab.cpp
In file included from src/battlelisttab.cpp:18:
src/aui/auimanager.h:4:24: error: wx/aui/aui.h: No such file or directory
mv -f .deps/springunitsynclib.Tpo .deps/springunitsynclib.Po
i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I.  -I/usr/lib/wx/include/gtk2-ansi-release-2.6 -I/usr/include/wx-2.6 -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DNO_GCC_PRAGMA -I/usr/include/libtorrent   -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DLOCALEDIR=\"/usr/share/locale\" -I./src   -Wall -Wno-strict-aliasing -DNDEBUG -O2 -march=nocona -pipe -MT battleroomlistctrl.o -MD -MP -MF .deps/battleroomlistctrl.Tpo -c -o battleroomlistctrl.o `test -f 'src/battleroomlistctrl.cpp' || echo './'`src/battleroomlistctrl.cpp
mv -f .deps/battlelist.Tpo .deps/battlelist.Po
i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I.  -I/usr/lib/wx/include/gtk2-ansi-release-2.6 -I/usr/include/wx-2.6 -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DNO_GCC_PRAGMA -I/usr/include/libtorrent   -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DLOCALEDIR=\"/usr/share/locale\" -I./src   -Wall -Wno-strict-aliasing -DNDEBUG -O2 -march=nocona -pipe -MT battlemaptab.o -MD -MP -MF .deps/battlemaptab.Tpo -c -o battlemaptab.o `test -f 'src/battlemaptab.cpp' || echo './'`src/battlemaptab.cpp
In file included from src/battlelisttab.cpp:18:
src/aui/auimanager.h:11: error: ISO C++ forbids declaration of 'wxAuiManager' with no type
src/aui/auimanager.h:11: error: expected ';' before '*' token
In file included from src/chatpanel.h:12,
                 from src/battlelisttab.cpp:25:
src/usermenu.h: In constructor 'SL_GENERIC::UserMenu<EventHandler_>::UserMenu(wxWindow*, const wxString&, long int)':
src/usermenu.h:29: error: there are no arguments to 'AppendSubMenu' that depend on a template parameter, so a declaration of 'AppendSubMenu' must be available
src/usermenu.h:29: error: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
make[2]: *** [battlelisttab.o] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from src/battleroomlistctrl.h:5,
                 from src/battleroomlistctrl.cpp:15:
src/usermenu.h: In constructor 'SL_GENERIC::UserMenu<EventHandler_>::UserMenu(wxWindow*, const wxString&, long int)':
src/usermenu.h:29: error: there are no arguments to 'AppendSubMenu' that depend on a template parameter, so a declaration of 'AppendSubMenu' must be available
src/usermenu.h:29: error: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
In file included from src/battleroomlistctrl.cpp:26:
src/mainwindow.h: At global scope:
src/mainwindow.h:91: error: 'wxNotebookEvent' has not been declared
src/usermenu.h: In constructor 'SL_GENERIC::UserMenu<EventHandler_>::UserMenu(wxWindow*, const wxString&, long int) [with EventHandler_ = BattleroomListCtrl]':
src/battleroomlistctrl.cpp:128:   instantiated from here
src/usermenu.h:29: error: 'AppendSubMenu' was not declared in this scope
make[2]: *** [battleroomlistctrl.o] Error 1
In file included from src/chatpanel.h:12,
                 from src/battlemaptab.cpp:28:
src/usermenu.h: In constructor 'SL_GENERIC::UserMenu<EventHandler_>::UserMenu(wxWindow*, const wxString&, long int)':
src/usermenu.h:29: error: there are no arguments to 'AppendSubMenu' that depend on a template parameter, so a declaration of 'AppendSubMenu' must be available
src/usermenu.h:29: error: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
make[2]: *** [battlemaptab.o] Error 1
mv -f .deps/battlelistfilter.Tpo .deps/battlelistfilter.Po
make[2]: Leaving directory `/var/tmp/portage/games-util/springlobby-0.0.1.10363/work/springlobby-0.0.1.10363'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/games-util/springlobby-0.0.1.10363/work/springlobby-0.0.1.10363'
make: *** [all] Error 2
 *
 * ERROR: games-util/springlobby-0.0.1.10363 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2083:  Called die
 * The specific snippet of code:
 *       emake || die "emake failed";
 *  The die message:
 *   emake failed
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/games-util/springlobby-0.0.1.10363/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/games-util/springlobby-0.0.1.10363/temp/environment'.
It seems to me that the problem starts at:

Code: Select all

In file included from src/battlelisttab.cpp:18:
src/aui/auimanager.h:4:24: error: wx/aui/aui.h: No such file or directory
aui.h exists, at /usr/include/wx-2.8/wx/aui/aui.h. This file belongs to x11-libs/wxGTK-2.8.7.1-r1. Upgrading to the latest non-masked version, 2.8.8.1, doesn't affect the problem. I had upgraded wxGTK immediately prior to attempting to update Springlobby, but downgraded upon running into the problem. Regardless of the version, aui.h stays in the same location.

I'm not much of a programmer. I wonder if the ebuild is including wxGTK at /usr/include/wx, though, instead of usr/include/wx-2.8... but I haven't a clue on how to validate that hunch.

Any ideas?
Auswaschbar
Spring Developer
Posts: 1254
Joined: 24 Jun 2007, 08:34

Re: Springlobby Compilation Fails on Gentoo: Missing/Lost aui.h?

Post by Auswaschbar »

You could take a look at the output of "eselect wxwidgets list" and check if it is set to the latest version of wx.
theluckyone17
Posts: 5
Joined: 16 Oct 2008, 05:26

Re: Springlobby Compilation Fails on Gentoo: Missing/Lost aui.h?

Post by theluckyone17 »

Thanks for the help! That solved the problem, easy as pie.

The wxwidgets profile was set to a 2.6 release. Changing it to a 2.8 release allowed Springlobby to compile.
Post Reply

Return to “Linux”