failed to compile wx.mod

BlitzMax Modules Forums/Brucey's Modules/failed to compile wx.mod

So, svn loves me and always gives me a "tried to create folder but blah blah it already exists", so I just deleted wx.mod and svn'd it all over again to get the latest.

Now, on a completely fresh svn checkout, I keep getting this when I try to compile:

Building Modules
Compiling:wxglue.cpp
In file included from C:/blitzmax/mod/wx.mod/wx.mod/wxglue.cpp:23:
C:/blitzmax/mod/wx.mod/wx.mod/wxglue.h:26:19: wx/wx.h: No such file or directory
C:/blitzmax/mod/wx.mod/wx.mod/wxglue.h:27:24: wx/evtloop.h: No such file or directory
C:/blitzmax/mod/wx.mod/wx.mod/wxglue.h:28:25: wx/aboutdlg.h: No such file or directory
C:/blitzmax/mod/wx.mod/wx.mod/wxglue.h:29:24: wx/artprov.h: No such file or directory
C:/blitzmax/mod/wx.mod/wx.mod/wxglue.h:30:24: wx/fontmap.h: No such file or directory
C:/blitzmax/mod/wx.mod/wx.mod/wxglue.h:31:22: wx/timer.h: No such file or directory
C:/blitzmax/mod/wx.mod/wx.mod/wxglue.h:32:25: wx/ptr_scpd.h: No such file or directory
C:/blitzmax/mod/wx.mod/wx.mod/wxglue.h:33:24: wx/txtstrm.h: No such file or directory
C:/blitzmax/mod/wx.mod/wx.mod/wxglue.h:34:25: wx/wfstream.h: No such file or directory
C:/blitzmax/mod/wx.mod/wx.mod/wxglue.h:35:22: wx/power.h: No such file or directory
In file included from C:/blitzmax/mod/wx.mod/wx.mod/wxglue.cpp:23:
C:/blitzmax/mod/wx.mod/wx.mod/wxglue.h:56: error: variable or field `_wx_wx_TEventHandler_eventCallback' declared void
C:/blitzmax/mod/wx.mod/wx.mod/wxglue.h:56: error: `wxEvent' was not declared in this scope
C:/blitzmax/mod/wx.mod/wx.mod/wxglue.h:56: error: expected primary-expression before ',' token
C:/blitzmax/mod/wx.mod/wx.mod/wxglue.h:56: error: expected primary-expression before "void"
C:/blitzmax/mod/wx.mod/wx.mod/wxglue.h:56: error: initializer expression list treated as compound expression
C:/blitzmax/mod/wx.mod/wx.mod/wxglue.h:58: error: expected constructor, destructor, or type conversion before '*' token
C:/blitzmax/mod/wx.mod/wx.mod/wxglue.h:61: error: expected `,' or `...' before '&' token
C:/blitzmax/mod/wx.mod/wx.mod/wxglue.h:61: error: ISO C++ forbids declaration of `wxString' with no type
C:/blitzmax/mod/wx.mod/wx.mod/wxglue.h:62: error: `wxString' does not name a type
C:/blitzmax/mod/wx.mod/wx.mod/wxglue.h:63: error: `wxArrayString' does not name a type
C:/blitzmax/mod/wx.mod/wx.mod/wxglue.h:64: error: `wxArrayString' was not declared in this scope
C:/blitzmax/mod/wx.mod/wx.mod/wxglue.h:65: error: `wxArrayInt' does not name a type
C:/blitzmax/mod/wx.mod/wx.mod/wxglue.h:66: error: `wxArrayInt' was not declared in this scope
C:/blitzmax/mod/wx.mod/wx.mod/wxglue.h:67: error: `wxArrayDouble' was not declared in this scope
C:/blitzmax/mod/wx.mod/wx.mod/wxglue.h:68: error: `wxArrayDouble' does not name a type
C:/blitzmax/mod/wx.mod/wx.mod/wxglue.h:69: error: variable or field `wxbind' declared void
C:/blitzmax/mod/wx.mod/wx.mod/wxglue.h:69: error: `wxObject' was not declared in this scope
C:/blitzmax/mod/wx.mod/wx.mod/wxglue.h:69: error: `obj' was not declared in this scope
C:/blitzmax/mod/wx.mod/wx.mod/wxglue.h:69: error: expected primary-expression before '*' token
C:/blitzmax/mod/wx.mod/wx.mod/wxglue.h:69: error: `peer' was not declared in this scope
C:/blitzmax/mod/wx.mod/wx.mod/wxglue.h:69: error: initializer expression list treated as compound expression
C:/blitzmax/mod/wx.mod/wx.mod/wxglue.h:70: error: variable or field `wxunbind' declared void
C:/blitzmax/mod/wx.mod/wx.mod/wxglue.h:70: error: `wxObject' was not declared in this scope
C:/blitzmax/mod/wx.mod/wx.mod/wxglue.h:70: error: `obj' was not declared in this scope
C:/blitzmax/mod/wx.mod/wx.mod/wxglue.h:71: error: `wxObject' was not declared in this scope
C:/blitzmax/mod/wx.mod/wx.mod/wxglue.h:71: error: `obj' was not declared in this scope
C:/blitzmax/mod/wx.mod/wx.mod/wxglue.h:77: error: variable or field `bmx_wxapp_settopwindow' declared void
C:/blitzmax/mod/wx.mod/wx.mod/wxglue.h:77: error: `wxWindow' was not 

.....


C:/blitzmax/mod/wx.mod/wx.mod/wxglue.cpp:1867: error: `s' was not declared in this scope
C:/blitzmax/mod/wx.mod/wx.mod/wxglue.cpp:1867: error: expected primary-expression before '*' token
C:/blitzmax/mod/wx.mod/wx.mod/wxglue.cpp:1867: error: `value' was not declared in this scope
C:/blitzmax/mod/wx.mod/wx.mod/wxglue.cpp:1871: error: variable or field `bmx_wxtextoutputstream_delete' declared void
C:/blitzmax/mod/wx.mod/wx.mod/wxglue.cpp:1871: error: redefinition of `int bmx_wxtextoutputstream_delete'
C:/blitzmax/mod/wx.mod/wx.mod/wxglue.h:371: error: `int bmx_wxtextoutputstream_delete' previously defined here
C:/blitzmax/mod/wx.mod/wx.mod/wxglue.cpp:1871: error: `wxTextOutputStream' was not declared in this scope
C:/blitzmax/mod/wx.mod/wx.mod/wxglue.cpp:1871: error: `s' was not declared in this scope
C:/blitzmax/mod/wx.mod/wx.mod/wxglue.cpp:1883: error: variable or field `bmx_wxpowerevent_veto' declared void
C:/blitzmax/mod/wx.mod/wx.mod/wxglue.cpp:1883: error: redefinition of `int bmx_wxpowerevent_veto'
C:/blitzmax/mod/wx.mod/wx.mod/wxglue.h:376: error: `int bmx_wxpowerevent_veto' previously defined here
C:/blitzmax/mod/wx.mod/wx.mod/wxglue.cpp:1883: error: `wxEvent' was not declared in this scope
C:/blitzmax/mod/wx.mod/wx.mod/wxglue.cpp:1883: error: `event' was not declared in this scope
C:/blitzmax/mod/wx.mod/wx.mod/wxglue.cpp:1883: error: `WXUNUSED' was not declared in this scope
Build Error: failed to compile C:/blitzmax/mod/wx.mod/wx.mod/wxglue.cpp
Process complete


edit: wow, forum cut half my post off.



Every time I svn wx.mod from scratch I run into this issue. What's the problem here?

You need the headers and libs too?

http://code.google.com/p/wxmax/downloads/list

Brucey: Maybe it would be a good idea to add those to the SVN, or even just have a seperate SVN checkout for them if you don't want to include it to the standard WX one.

There's been similar issues in the past when you switched to a newer version of the headers and things broke, because there is no obvious way to see that anything changed in that area if you 'just' do the SVN sync without actually seeing the website.

Maybe it would be a good idea to add those to the SVN

I don't really want to... but maybe it's easier for everyone in the long run... there's just so much more of it then.

or even just have a seperate SVN checkout for them

The problem there is that you have essentially the same thing... just that instead of being in a zip, they are in a different folder... I would really need to be part of the main archive, I imagine.

You need the headers and libs too?


Ahh...blah i'm sorry, I thought the libraries were installed in blitzmax/lib so I wouldn't have to do that part again...it has been a while since I setup wxmax.

And I agree with xlsior, a one-step solution would make things a lot simpler if they had just been on svn. I realise it's not 'that' complicated, but this mod is too great to for any short difficulties that might prevent a couple people from using it.

there's just so much more of it then


True, but then what's the point in even using the svn? By that I mean if we are going to download seperate zips, then it defeats the purpose of the svn, because you could always just throw each update in an archived package as well on that argument.

By having it on the svn, it'll save you from a lot of 'these' posts of ignorance, and less confusion for everyone.

It's not a life or death deal, but please consider it.

By that I mean if we are going to download seperate zips, then it defeats the purpose of the svn, because you could always just throw each update in an archived package as well on that argument.
There is limited space on Google code for downloads (I believe it is like 100mb?)

I believe it is like 100mb

I kept pestering them... I got it up'd to 1 gb :-)

I kept pestering them... I got it up'd to 1 gb :-)
Brucey done it again! :P

lol nice.

please consider it.

Okay... I've "bit the bullet", as they say...

I've added the headers, and mac x86 and win32 libs.
I can't add Linux libs for now, as there are currently two build environments (gcc 3.3 and gcc 4.x), so until the next release of BlitzMax (which should be gcc 4.x friendly) they'll be installing the libs separately.

I can't add Linux libs for now, as there are currently two build environments (gcc 3.3 and gcc 4.x), so until the next release of BlitzMax (which should be gcc 4.x friendly) they'll be installing the libs separately.
AFAIK we Linux users are used to handling this stuff hehe.

so until the next release of BlitzMax (which should be gcc 4.x friendly)
Oh will it? Great!

Awesome, thank you Brucey!