Re: Build error installing wxPython 4.1.0
Scott Talbert <[email protected]>
| Newsgroups | gmane.comp.python.wxpython |
|---|---|
| Message-ID | <[email protected]> |
On Wed, 8 Jul 2020, Michael Eager wrote: > I'm installing wxPython using the following command: > $ pip3 install wxPython==4.1.0 -v > > As far as I know, I have all prerequisites installed. There are a couple > warnings in the build about missing packages, like tiff, but none seem > important. > > Without looking closer, it appears that there are issues with the wx > headers. There are no messages which mention missing headers. There are a > number of warning messages in other compiles. > > I get a number of failures building SIP. Here's the start of one of the > failures. > > [675/917] Compiling sip/cpp/sip_html2wxWebViewEvent.cpp > In file included from > ../../../../sip/cpp/sip_glcanvaswxGLAttributes.cpp:10: > ../../../../sip/cpp/sipAPI_glcanvas.h:682:23: error: aggregate > ‘wxGLAttributes _NullGLAttributes’ has incomplete type and cannot be defined > 682 | static wxGLAttributes _NullGLAttributes; > | ^~~~~~~~~~~~~~~~~ > ../../../../sip/cpp/sipAPI_glcanvas.h:683:25: error: aggregate > ‘wxGLContextAttrs _NULLGLContextAttrs’ has incomplete type and cannot be > defined > 683 | static wxGLContextAttrs _NULLGLContextAttrs; > | ^~~~~~~~~~~~~~~~~~~ > In file included from > ../../../../sip/cpp/sip_glcanvaswxGLAttributes.cpp:10: > ../../../../sip/cpp/sipAPI_glcanvas.h:865:198: error: ‘wxGLCanvasName’ > was not declared in this scope; did you mean ‘wxGLCanvas’? > 865 | wxGLCanvas(wxWindow *parent, const wxGLAttributes > &dispAttrs, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, > const wxSize &size=wxDefaultSize, long style=0, const wxString > &name=wxGLCanvasName, const wxPalette &palette=wxNullPalette) > | > > ^~~~~~~~~~~~~~ > | > > wxGLCanvas You're likely missing the OpenGL dependencies. Unfortunately the wxPython build doesn't currently handle the case where wxWidgets gets built without wxGLCanvas support. Scott -- You received this message because you are subscribed to the Google Groups "wxPython-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/wxpython-users/alpine.DEB.2.21.2007081153080.8537%40bear.techie.net.