Build on gentoo fails. Fixing the configure-problem was
easy, but make fails with this error.
make[4]: Entering directory `/root/main/src/AgALag/gui'
if g++ -DHAVE_CONFIG_H -I. -I. -I../../..
-I../../.. -O3 -Wall -fomit-frame-pointer -ffast-math
-fexpensive-optimizations
-I/usr/local/lib/wx/include/base-ansi-release-2.6
-I/usr/local/include/wx-2.6 -DwxUSE_GUI=0
-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES
-D_LARGEFILE_SOURCE=1
-D'BIN_INSTALL_DIR="/usr/local/Axoris/VirtuAL3101/bin"'
-MT AL3101EditProperties.o -MD -MP -MF
".deps/AL3101EditProperties.Tpo" -c -o
AL3101EditProperties.o AL3101EditProperties.cpp; \
then mv -f ".deps/AL3101EditProperties.Tpo"
".deps/AL3101EditProperties.Po"; else rm -f
".deps/AL3101EditProperties.Tpo"; exit 1; fi
In file included from AL3101EditProperties.cpp:10:
AL3101EditProperties.h:29: error: expected class-name
before '{' token
AL3101EditProperties.h:38: error: ISO C++ forbids
declaration of `wxButton' with no type
AL3101EditProperties.h:38: error: expected `;' before
'*' token
AL3101EditProperties.h:39: error: ISO C++ forbids
declaration of `wxStaticText' with no type
AL3101EditProperties.h:39: error: expected `;' before
'*' token
AL3101EditProperties.h:40: error: ISO C++ forbids
declaration of `wxTextCtrl' with no type
AL3101EditProperties.h:40: error: expected `;' before
'*' token
AL3101EditProperties.cpp: In constructor
`CProperties::CProperties(wxWindow*, wxWindowID,
TModuleProperty*, int)':
AL3101EditProperties.cpp:24: error: class `CProperties'
does not have any field named `wxDialog'
AL3101EditProperties.cpp:24: error: `wxDefaultPosition'
undeclared (first use this function)
AL3101EditProperties.cpp:24: error: (Each undeclared
identifier is reported only once for each function it
appears in.)
AL3101EditProperties.cpp:24: error: `wxSize' undeclared
(first use this function)
AL3101EditProperties.cpp:24: error:
`wxDEFAULT_DIALOG_STYLE' undeclared (first use this
function)
AL3101EditProperties.cpp:31: error: `TxtIntro'
undeclared (first use this function)
AL3101EditProperties.cpp:31: error: `wxStaticText' has
not been declared
AL3101EditProperties.cpp:33: error: invalid use of
undefined type `struct wxPoint'
/usr/local/include/wx-2.6/wx/utils.h:55: error: forward
declaration of `struct wxPoint'
AL3101EditProperties.cpp:35: error: `TxtProp'
undeclared (first use this function)
AL3101EditProperties.cpp:35: error: `wxStaticText' has
not been declared
AL3101EditProperties.cpp:36: error: `EdtProp'
undeclared (first use this function)
AL3101EditProperties.cpp:36: error: `wxTextCtrl' has
not been declared
AL3101EditProperties.cpp:40: error: `wxStaticText' has
not been declared
AL3101EditProperties.cpp:41: error: invalid use of
undefined type `struct wxPoint'
/usr/local/include/wx-2.6/wx/utils.h:55: error: forward
declaration of `struct wxPoint'
AL3101EditProperties.cpp:43: error: `wxTextCtrl' has
not been declared
AL3101EditProperties.cpp:44: error: invalid use of
undefined type `struct wxPoint'
/usr/local/include/wx-2.6/wx/utils.h:55: error: forward
declaration of `struct wxPoint'
AL3101EditProperties.cpp:45: error: `wxFILTER_ASCII'
undeclared (first use this function)
AL3101EditProperties.cpp:45: error: `wxTextValidator'
undeclared (first use this function)
AL3101EditProperties.cpp:52: error: `BtnOk' undeclared
(first use this function)
AL3101EditProperties.cpp:52: error: `wxButton' has not
been declared
AL3101EditProperties.cpp:53: error: invalid use of
undefined type `struct wxPoint'
/usr/local/include/wx-2.6/wx/utils.h:55: error: forward
declaration of `struct wxPoint'
AL3101EditProperties.cpp:54: error: `BtnCancel'
undeclared (first use this function)
AL3101EditProperties.cpp:54: error: `wxButton' has not
been declared
AL3101EditProperties.cpp:55: error: invalid use of
undefined type `struct wxPoint'
/usr/local/include/wx-2.6/wx/utils.h:55: error: forward
declaration of `struct wxPoint'
AL3101EditProperties.cpp:57: error: `SetClientSize'
undeclared (first use this function)
make[4]: *** [AL3101EditProperties.o] Error 1
make[4]: Leaving directory `/root/main/src/AgALag/gui'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/root/main/src/AgALag'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/root/main/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/main'
make: *** [all] Error 2
With both i686-pc-linux-gnu-3.3.6 and
i686-pc-linux-gnu-3.4.4. Since i am not the gcc expert
maybe you could give me a clue how to fix? Downgrade
the compiler or maybe add a compilerswitch for relaxed
compiler behaviour.
Logged In: YES
user_id=636997
This seems quite strange an error message !
At first sight, it looks like a problem with wx headers
which are not included properly. Maybe you can try to
uncomment the line
#include <wx/wxprec.h>
and re-run "make"
This method of including wx headers is certainly not the
cleanest one so thank you for your post, I'll add this
point to my TODO list !!
I have several question/comments to add to this:
- you're talking about a "configure problem". Can you give
me more details so I can try to fix this on the cvs
repository ?
- I'm afraid you won't be able to compile the CVS version
of Virtual3101 against wx2.6. The part of AgALag which
interfaces Miss Parker projects is under heavy
reconstruction and I planned to move to wx2.6 in the same
time. This takes longer than I initially expected which is
the reason why no wx2.6 support is available yet. I'll try
to make a branch on the main cvs tree to support this
temporarily.
Logged In: NO
configure (from VirtuAL3101-1.4.tar.bz2) detects wxbase by
looking for wxbase-2.3-config or wxbase-2.4-config in the
search path. Gentoo is a little strange with the handling
and creates only a wx-config file. Intresting enough, a
separate build build of the wxbase-26 package places only a
wx_config file under /usr/local/bin. Adding a symlink fixes
the at least the problem wirh configure.
The compilation problem persist also after uncommenting
wx/wxprec.h in AL3101DealProperties.h. The same problem for
the version fron CVS
Logged In: NO
OK, i think the problem was due to the manual installation
of wxbase 2.6 under /usr/local. I removed the /usr/local/bin
partition, rerun configure and make. But unfortunately make
doesnt finish sucessfully
the error is
g++ -I../../.. -O3 -Wall -fomit-frame-pointer -ffast-math
-fexpensive-optimizations -I/usr/lib/wx/include/gtk2-2.4
-DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64
-D_LARGE_FILES
-DBIN_INSTALL_DIR=\"/usr/local/Axoris/VirtuAL3101/bin\" -o
AgALag AL3101DealProperties.o AL3101EditProperties.o
Config.o fileio.o about.o directories.o theme.o projopt.o
ProjectInfo.o simulate.o mpproject.o mpprojectfile.o
listmodules.o link.o glmodule.o glmodulelist.o glstruct.o
print.o frame.o main.o -pthread -lwx_gtk2-2.4
/usr/lib/libpangox-1.0.so ../libguineeds.a -lpthread -lm
/usr/lib/gcc/i686-pc-linux-gnu/3.4.4/../../../../i686-pc-linux-gnu/bin/ld:
warning: libstdc++.so.5, needed by
/usr/lib/gcc/i686-pc-linux-gnu/3.4.4/../../../libwx_gtk2-2.4.so,
may conflict with libstdc++.so.6
/usr/lib/gcc/i686-pc-linux-gnu/3.4.4/../../../libwx_gtk2-2.4.so:
undefined reference to `vtable for wxFileProto'
collect2: ld returned 1 exit status
make[4]: *** [AgALag] Error 1
make[4]: Leaving directory
`/root/VirtuAL3101-1.4/src/AgALag/gui'
make[3]: *** [all-recursive] Error 1
seems to me that the /usr/lib/libwx_base-2.4.so* files are
missen. /usr/lib/libwx_base-2.6.so* is there ...
Logged In: YES
user_id=636997
Hi again!
actually, this last error message seems to be a wxwindows
problem. I never used wx2.4 with gtk2 myself but some
googling with the keywords "wxFileProto vtable undefined"
suggests that this must be some compiler vs. wx problem
although I was unable to catch the proper way to fix this.
I have just checked out the CVS version of VirtuAL3101
which I'll try to accomodate with wx2.6. I'm afraid that's
the best thing I can do for the moment.
VirtuAL3101-2.0 is not far away from being available so
keep an eye on this...
Logged In: YES
user_id=636997
Originator: NO
Hi!
Because of major modifications in the MissParker project support in AgALag (and the few free time I had to deal with it), the upgrade has taken more time than initially expected.
The actual CVS version of VirtuAL3101 is expected to compile properly with wx2.6 and wx2.8. It should work at least as well as the latest stable release. It adds a couple of new features that still need beta-test against small bugs but are mainly working.
We plan to produce a new release of Virtual3101 (v2.0) and of the MissParker software in a near future. In the meantime, we strongly advise to update to the CVS version. All comments or bug-reports are welcome...