[wxPython] how to compile wxPython 2.1.4 ?

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[wxPython] how to compile wxPython 2.1.4 ?

Ralf Canis
Hi,

I've just seen wxPython under Windows NT and tried to compile this for my Linux box, but :(

GTK+ 1.2.5, wxGTK 2.1.0-9 compile ok¸ checked some of the demos
wxPython 2.1.4 doesn't compile due to several errors:

src/gtk contains a symbolic link from top
helpers.cpp -> /home/rd/wx/utils/wxPython/src/helpers.cpp  !! damn
this should be ../helpers.cpp

several undefs in gtk/wx.cpp
gtk/wx.cpp:2263: `wxNB_LEFT' undeclared (first use this function)
gtk/wx.cpp:2264: `wxNB_RIGHT' undeclared (first use this function)
gtk/wx.cpp:2265: `wxNB_BOTTOM' undeclared (first use this function)

and another one
gtk/gdi.cpp:139: syntax error before `('
gtk/gdi.cpp:143: `wxFontEncoding' was not declared in this scope

wxFontEncoding is not declared, resulting in several compiler errors

Searching for this I found wxFontEncoding in gdi.i, but touching *.i and
rebuilding with SWIG (1.1p5) doesn't work either.


What can I do?

Sincerely
  Ralf

attachment0 (301 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: [wxPython] how to compile wxPython 2.1.4 ?

Robin Dunn
> I've just seen wxPython under Windows NT and tried to compile
> this for my Linux box, but :(
>
> GTK+ 1.2.5, wxGTK 2.1.0-9 compile ok¸ checked some of the demos
> wxPython 2.1.4 doesn't compile due to several errors:
>
> src/gtk contains a symbolic link from top
> helpers.cpp -> /home/rd/wx/utils/wxPython/src/helpers.cpp  !! damn
> this should be ../helpers.cpp
>

Oops, my tgz builder was supposed to delete this link.  The makefile relinks
it correctly.

> several undefs in gtk/wx.cpp
> gtk/wx.cpp:2263: `wxNB_LEFT' undeclared (first use this function)
> gtk/wx.cpp:2264: `wxNB_RIGHT' undeclared (first use this function)
> gtk/wx.cpp:2265: `wxNB_BOTTOM' undeclared (first use this function)
>
> and another one
> gtk/gdi.cpp:139: syntax error before `('
> gtk/gdi.cpp:143: `wxFontEncoding' was not declared in this scope
>
> wxFontEncoding is not declared, resulting in several compiler errors
>

My guess from these is that you used the released wxGTK-2.1.0-9 instead of
the interim release wxGTK-2.1.0-9rd from the wxPython site.  (You didn't
read the *Please read:* note before downloading, did you?) This release of
wxPython is not syncronized with any snapshot release of wxWindows so I
packaged up the sources as they exist on my machine.

--
Robin Dunn
Software Craftsman
[hidden email]
http://AllDunn.com/robin/
http://AllDunn.com/wxPython/  Check it out!



_______________________________________________
wxPython-users maillist  -  [hidden email]
http://starship.python.net/mailman/listinfo/wxpython-users



Reply | Threaded
Open this post in threaded view
|

Re: [wxPython] how to compile wxPython 2.1.4 ?

Robin Dunn
>
> My guess from these is that you used the released wxGTK-2.1.0-9 instead of
> the interim release wxGTK-2.1.0-9rd from the wxPython site.  (You didn't
> read the *Please read:* note before downloading, did you?) This release of
> wxPython is not syncronized with any snapshot release of wxWindows so I
> packaged up the sources as they exist on my machine.
>

Also, if you want the release that IS syncronized with wxGTK-2.1.0-9 then
you can get it from http://alldunn.com/wxPython/dist/

--
Robin Dunn
Software Craftsman
[hidden email]
http://AllDunn.com/robin/
http://AllDunn.com/wxPython/  Check it out!



_______________________________________________
wxPython-users maillist  -  [hidden email]
http://starship.python.net/mailman/listinfo/wxpython-users