Re: [wxPython-dev] Phoenix - unable to compile - ubuntu 13.04 - x64

5 views
Skip to first unread message

Robin Dunn

unread,
May 1, 2013, 8:21:14 PM5/1/13
to wxPyth...@googlegroups.com
sandb...@gmail.com wrote:
> Hello,
>
> I have some trouble when I compile the last version of wxPython (ubuntu
> - x64 - python 3.3)
> I also try an older one and I have the same result.
> During the compilation process I have always the same error message.
>
> Can you please help me ?

As mentioned in my reply on wxPython-users it's because you are building
for wxGTK3 and I have a fix coming soon. There hasn't been much testing
for wxGTK3 yet so I expect that there could be some more problems. If
you run in to anything else you could install the -dev packages for
libgtk2 and related packages and then wx's configure should choose to
use it by default instead.


--
Robin Dunn
Software Craftsman
http://wxPython.org

sandb...@gmail.com

unread,
May 2, 2013, 12:34:28 PM5/2/13
to wxPyth...@googlegroups.com
Hello Robin,

Thanks for your help.

Vincent.

sandb...@gmail.com

unread,
May 2, 2013, 1:49:38 PM5/2/13
to wxPyth...@googlegroups.com
Sorry Robin, I fix the previous issue with libgtk2 (-dev) but have got one other error during the build process.
What's wrong ?
Thanks again for your help.
Vincent.

[597/632] cxx: sip/cpp/sip_html2wxWebViewEvent.cpp -> build/waf/3.3/sip/cpp/sip_html2wxWebViewEvent.cpp.17.o
../../../sip/cpp/sip_html2cmodule.cpp:219:1: erreur: ‘wxWebView’ does not name a type
../../../sip/cpp/sip_html2cmodule.cpp:229:1: erreur: ‘wxWebView’ does not name a type
../../../sip/cpp/sip_html2cmodule.cpp:258:38: erreur: ‘wxWEBVIEW_FIND_BACKWARDS’ was not declared in this scope
../../../sip/cpp/sip_html2cmodule.cpp:259:36: erreur: ‘wxWEBVIEW_FIND_DEFAULT’ was not declared in this scope
../../../sip/cpp/sip_html2cmodule.cpp:260:40: erreur: ‘wxWEBVIEW_FIND_ENTIRE_WORD’ was not declared in this scope
../../../sip/cpp/sip_html2cmodule.cpp:261:45: erreur: ‘wxWEBVIEW_FIND_HIGHLIGHT_RESULT’ was not declared in this scope
../../../sip/cpp/sip_html2cmodule.cpp:262:39: erreur: ‘wxWEBVIEW_FIND_MATCH_CASE’ was not declared in this scope
../../../sip/cpp/sip_html2cmodule.cpp:263:33: erreur: ‘wxWEBVIEW_FIND_WRAP’ was not declared in this scope
../../../sip/cpp/sip_html2cmodule.cpp:264:36: erreur: ‘wxWEBVIEW_NAV_ERR_AUTH’ was not declared in this scope
../../../sip/cpp/sip_html2cmodule.cpp:265:43: erreur: ‘wxWEBVIEW_NAV_ERR_CERTIFICATE’ was not declared in this scope
../../../sip/cpp/sip_html2cmodule.cpp:266:42: erreur: ‘wxWEBVIEW_NAV_ERR_CONNECTION’ was not declared in this scope
../../../sip/cpp/sip_html2cmodule.cpp:267:41: erreur: ‘wxWEBVIEW_NAV_ERR_NOT_FOUND’ was not declared in this scope
../../../sip/cpp/sip_html2cmodule.cpp:268:37: erreur: ‘wxWEBVIEW_NAV_ERR_OTHER’ was not declared in this scope
../../../sip/cpp/sip_html2cmodule.cpp:269:39: erreur: ‘wxWEBVIEW_NAV_ERR_REQUEST’ was not declared in this scope
../../../sip/cpp/sip_html2cmodule.cpp:270:40: erreur: ‘wxWEBVIEW_NAV_ERR_SECURITY’ was not declared in this scope
../../../sip/cpp/sip_html2cmodule.cpp:271:46: erreur: ‘wxWEBVIEW_NAV_ERR_USER_CANCELLED’ was not declared in this scope
../../../sip/cpp/sip_html2cmodule.cpp:272:38: erreur: ‘wxWEBVIEW_RELOAD_DEFAULT’ was not declared in this scope
../../../sip/cpp/sip_html2cmodule.cpp:273:39: erreur: ‘wxWEBVIEW_RELOAD_NO_CACHE’ was not declared in this scope
../../../sip/cpp/sip_html2cmodule.cpp:274:34: erreur: ‘wxWEBVIEW_ZOOM_LARGE’ was not declared in this scope
../../../sip/cpp/sip_html2cmodule.cpp:275:36: erreur: ‘wxWEBVIEW_ZOOM_LARGEST’ was not declared in this scope
../../../sip/cpp/sip_html2cmodule.cpp:276:35: erreur: ‘wxWEBVIEW_ZOOM_MEDIUM’ was not declared in this scope
../../../sip/cpp/sip_html2cmodule.cpp:277:34: erreur: ‘wxWEBVIEW_ZOOM_SMALL’ was not declared in this scope
../../../sip/cpp/sip_html2cmodule.cpp:278:33: erreur: ‘wxWEBVIEW_ZOOM_TINY’ was not declared in this scope
../../../sip/cpp/sip_html2cmodule.cpp:279:40: erreur: ‘wxWEBVIEW_ZOOM_TYPE_LAYOUT’ was not declared in this scope
../../../sip/cpp/sip_html2cmodule.cpp:280:38: erreur: ‘wxWEBVIEW_ZOOM_TYPE_TEXT’ was not declared in this scope
../../../sip/cpp/sip_html2cmodule.cpp:308:25: erreur: ‘sipVH__html2_0’ was not declared in this scope
../../../sip/cpp/sip_html2cmodule.cpp:309:25: erreur: ‘sipVH__html2_1’ was not declared in this scope
../../../sip/cpp/sip_html2cmodule.cpp:323:37: erreur: ‘wxWebViewBackendDefault’ was not declared in this scope
../../../sip/cpp/sip_html2cmodule.cpp:324:32: erreur: ‘wxWebViewBackendIE’ was not declared in this scope
../../../sip/cpp/sip_html2cmodule.cpp:325:36: erreur: ‘wxWebViewBackendWebKit’ was not declared in this scope
../../../sip/cpp/sip_html2cmodule.cpp:326:36: erreur: ‘wxWebViewDefaultURLStr’ was not declared in this scope
../../../sip/cpp/sip_html2cmodule.cpp:327:30: erreur: ‘wxWebViewNameStr’ was not declared in this scope
../../../sip/cpp/sip_html2cmodule.cpp:334:35: erreur: ‘wxEVT_WEBVIEW_ERROR’ was not declared in this scope
../../../sip/cpp/sip_html2cmodule.cpp:335:36: erreur: ‘wxEVT_WEBVIEW_LOADED’ was not declared in this scope
../../../sip/cpp/sip_html2cmodule.cpp:336:39: erreur: ‘wxEVT_WEBVIEW_NAVIGATED’ was not declared in this scope
../../../sip/cpp/sip_html2cmodule.cpp:337:40: erreur: ‘wxEVT_WEBVIEW_NAVIGATING’ was not declared in this scope
../../../sip/cpp/sip_html2cmodule.cpp:338:39: erreur: ‘wxEVT_WEBVIEW_NEWWINDOW’ was not declared in this scope
../../../sip/cpp/sip_html2cmodule.cpp:339:43: erreur: ‘wxEVT_WEBVIEW_TITLE_CHANGED’ was not declared in this scope
../../../sip/cpp/sip_html2wxWebView.cpp:46:45: erreur: ‘wxWebView’ was not declared in this scope
../../../sip/cpp/sip_html2wxWebView.cpp:46:56: erreur: ‘self’ was not declared in this scope
../../../sip/cpp/sip_html2wxWebView.cpp:47:5: erreur: expected ‘,’ or ‘;’ before ‘{’ token
../../../sip/cpp/sip_html2wxWebViewEvent.cpp:20:1: erreur: expected class-name before ‘{’ token
../../../sip/cpp/sip_html2wxWebViewEvent.cpp:24:29: erreur: ‘wxWebViewEvent’ does not name a type
../../../sip/cpp/sip_html2wxWebViewEvent.cpp:24:43: erreur: ISO C++ forbids declaration of ‘parameter’ with no type [-fpermissive]
../../../sip/cpp/sip_html2wxWebViewEvent.cpp: In constructor ‘sipwxWebViewEvent::sipwxWebViewEvent()’:
../../../sip/cpp/sip_html2wxWebViewEvent.cpp:45:41: erreur: class ‘sipwxWebViewEvent’ does not have any field named ‘wxWebViewEvent’
../../../sip/cpp/sip_html2wxWebViewEvent.cpp: In constructor ‘sipwxWebViewEvent::sipwxWebViewEvent(wxEventType, int, wxString, wxString)’:
../../../sip/cpp/sip_html2wxWebViewEvent.cpp:50:106: erreur: class ‘sipwxWebViewEvent’ does not have any field named ‘wxWebViewEvent’
../../../sip/cpp/sip_html2wxWebViewEvent.cpp: At global scope:
../../../sip/cpp/sip_html2wxWebViewEvent.cpp:55:44: erreur: ‘wxWebViewEvent’ does not name a type
../../../sip/cpp/sip_html2wxWebViewEvent.cpp:55:60: erreur: ISO C++ forbids declaration of ‘a0’ with no type [-fpermissive]
../../../sip/cpp/sip_html2wxWebViewEvent.cpp: In constructor ‘sipwxWebViewEvent::sipwxWebViewEvent(const int&)’:
../../../sip/cpp/sip_html2wxWebViewEvent.cpp:55:65: erreur: class ‘sipwxWebViewEvent’ does not have any field named ‘wxWebViewEvent’
../../../sip/cpp/sip_html2wxWebViewEvent.cpp: In member function ‘wxEvent* sipwxWebViewEvent::Clone() const’:
../../../sip/cpp/sip_html2wxWebViewEvent.cpp:73:16: erreur: ‘wxWebViewEvent’ has not been declared
../../../sip/cpp/sip_html2wxWebViewEvent.cpp: In member function ‘wxEventCategory sipwxWebViewEvent::GetEventCategory() const’:
../../../sip/cpp/sip_html2wxWebViewEvent.cpp:88:42: erreur: cannot call member function ‘virtual wxEventCategory wxEvent::GetEventCategory() const’ without object
../../../sip/cpp/sip_html2wxWebViewEvent.cpp: In function ‘PyObject* meth_wxWebViewEvent_GetTarget(PyObject*, PyObject*)’:
../../../sip/cpp/sip_html2wxWebViewEvent.cpp:107:15: erreur: ‘wxWebViewEvent’ does not name a type
../../../sip/cpp/sip_html2wxWebViewEvent.cpp:109:89: erreur: ‘sipCpp’ was not declared in this scope
../../../sip/cpp/sip_html2wxWebViewEvent.cpp: In function ‘PyObject* meth_wxWebViewEvent_GetURL(PyObject*, PyObject*)’:
../../../sip/cpp/sip_html2wxWebViewEvent.cpp:143:15: erreur: ‘wxWebViewEvent’ does not name a type
../../../sip/cpp/sip_html2wxWebViewEvent.cpp:145:89: erreur: ‘sipCpp’ was not declared in this scope
../../../sip/cpp/sip_html2wxWebViewEvent.cpp: In function ‘PyObject* meth_wxWebViewEvent_Clone(PyObject*, PyObject*)’:
../../../sip/cpp/sip_html2wxWebViewEvent.cpp:178:15: erreur: ‘wxWebViewEvent’ does not name a type
../../../sip/cpp/sip_html2wxWebViewEvent.cpp:180:89: erreur: ‘sipCpp’ was not declared in this scope
../../../sip/cpp/sip_html2wxWebViewEvent.cpp:187:47: erreur: ‘wxWebViewEvent’ has not been declared
../../../sip/cpp/sip_html2wxWebViewEvent.cpp: In function ‘void* cast_wxWebViewEvent(void*, const sipTypeDef*)’:
../../../sip/cpp/sip_html2wxWebViewEvent.cpp:213:93: erreur: ‘wxWebViewEvent’ was not declared in this scope
../../../sip/cpp/sip_html2wxWebViewEvent.cpp:213:109: erreur: expected primary-expression before ‘)’ token
../../../sip/cpp/sip_html2wxWebViewEvent.cpp: In function ‘void release_wxWebViewEvent(void*, int)’:
../../../sip/cpp/sip_html2wxWebViewEvent.cpp:229:33: erreur: expected type-specifier before ‘wxWebViewEvent’
../../../sip/cpp/sip_html2wxWebViewEvent.cpp:229:33: erreur: expected ‘>’ before ‘wxWebViewEvent’
../../../sip/cpp/sip_html2wxWebViewEvent.cpp:229:33: erreur: expected ‘(’ before ‘wxWebViewEvent’
../../../sip/cpp/sip_html2wxWebViewEvent.cpp:229:33: erreur: ‘wxWebViewEvent’ was not declared in this scope
../../../sip/cpp/sip_html2wxWebViewEvent.cpp:229:49: erreur: expected primary-expression before ‘>’ token
../../../sip/cpp/sip_html2wxWebViewEvent.cpp:229:59: erreur: expected ‘)’ before ‘;’ token
../../../sip/cpp/sip_html2wxWebViewEvent.cpp: In function ‘void* init_wxWebViewEvent(sipSimpleWrapper*, PyObject*, PyObject*, PyObject**, PyObject**, PyObject**)’:
../../../sip/cpp/sip_html2wxWebViewEvent.cpp:312:15: erreur: ‘wxWebViewEvent’ does not name a type
../../../sip/cpp/sip_html2wxWebViewEvent.cpp:314:108: erreur: ‘a0’ was not declared in this scope
../../../sip/cpp/sip_html2wxWebViewArchiveHandler.cpp:18:1: erreur: expected class-name before ‘{’ token
../../../sip/cpp/sip_html2wxWebViewArchiveHandler.cpp:21:38: erreur: ‘wxWebViewArchiveHandler’ does not name a type
../../../sip/cpp/sip_html2wxWebViewArchiveHandler.cpp:21:61: erreur: ISO C++ forbids declaration of ‘parameter’ with no type [-fpermissive]
../../../sip/cpp/sip_html2wxWebViewArchiveHandler.cpp: In constructor ‘sipwxWebViewArchiveHandler::sipwxWebViewArchiveHandler(const wxString&)’:
../../../sip/cpp/sip_html2wxWebViewArchiveHandler.cpp:42:81: erreur: class ‘sipwxWebViewArchiveHandler’ does not have any field named ‘wxWebViewArchiveHandler’
../../../sip/cpp/sip_html2wxWebViewArchiveHandler.cpp: At global scope:
../../../sip/cpp/sip_html2wxWebViewArchiveHandler.cpp:47:62: erreur: ‘wxWebViewArchiveHandler’ does not name a type
../../../sip/cpp/sip_html2wxWebViewArchiveHandler.cpp:47:87: erreur: ISO C++ forbids declaration of ‘a0’ with no type [-fpermissive]
../../../sip/cpp/sip_html2wxWebViewArchiveHandler.cpp: In constructor ‘sipwxWebViewArchiveHandler::sipwxWebViewArchiveHandler(const int&)’:
../../../sip/cpp/sip_html2wxWebViewArchiveHandler.cpp:47:92: erreur: class ‘sipwxWebViewArchiveHandler’ does not have any field named ‘wxWebViewArchiveHandler’
../../../sip/cpp/sip_html2wxWebViewArchiveHandler.cpp: In member function ‘wxFSFile* sipwxWebViewArchiveHandler::GetFile(const wxString&)’:
../../../sip/cpp/sip_html2wxWebViewArchiveHandler.cpp:65:16: erreur: ‘wxWebViewArchiveHandler’ has not been declared
../../../sip/cpp/sip_html2wxWebViewArchiveHandler.cpp: In member function ‘wxString sipwxWebViewArchiveHandler::GetName() const’:
../../../sip/cpp/sip_html2wxWebViewArchiveHandler.cpp:80:16: erreur: ‘wxWebViewHandler’ has not been declared
../../../sip/cpp/sip_html2wxWebViewArchiveHandler.cpp: In function ‘PyObject* meth_wxWebViewArchiveHandler_GetFile(PyObject*, PyObject*, PyObject*)’:
../../../sip/cpp/sip_html2wxWebViewArchiveHandler.cpp:99:9: erreur: ‘wxWebViewArchiveHandler’ was not declared in this scope
../../../sip/cpp/sip_html2wxWebViewArchiveHandler.cpp:99:34: erreur: ‘sipCpp’ was not declared in this scope
../../../sip/cpp/sip_html2wxWebViewArchiveHandler.cpp:112:47: erreur: ‘wxWebViewArchiveHandler’ is not a class or namespace
../../../sip/cpp/sip_html2wxWebViewArchiveHandler.cpp: In function ‘void* cast_wxWebViewArchiveHandler(void*, const sipTypeDef*)’:
../../../sip/cpp/sip_html2wxWebViewArchiveHandler.cpp:139:79: erreur: ‘wxWebViewHandler’ was not declared in this scope
../../../sip/cpp/sip_html2wxWebViewArchiveHandler.cpp:139:97: erreur: expected primary-expression before ‘)’ token
../../../sip/cpp/sip_html2wxWebViewArchiveHandler.cpp:139:99: erreur: ‘wxWebViewArchiveHandler’ was not declared in this scope
../../../sip/cpp/sip_html2wxWebViewArchiveHandler.cpp:139:124: erreur: expected primary-expression before ‘)’ token
../../../sip/cpp/sip_html2wxWebViewArchiveHandler.cpp: In function ‘void release_wxWebViewArchiveHandler(void*, int)’:
../../../sip/cpp/sip_html2wxWebViewArchiveHandler.cpp:155:33: erreur: expected type-specifier before ‘wxWebViewArchiveHandler’
../../../sip/cpp/sip_html2wxWebViewArchiveHandler.cpp:155:33: erreur: expected ‘>’ before ‘wxWebViewArchiveHandler’
../../../sip/cpp/sip_html2wxWebViewArchiveHandler.cpp:155:33: erreur: expected ‘(’ before ‘wxWebViewArchiveHandler’
../../../sip/cpp/sip_html2wxWebViewArchiveHandler.cpp:155:33: erreur: ‘wxWebViewArchiveHandler’ was not declared in this scope
../../../sip/cpp/sip_html2wxWebViewArchiveHandler.cpp:155:58: erreur: expected primary-expression before ‘>’ token
../../../sip/cpp/sip_html2wxWebViewArchiveHandler.cpp:155:68: erreur: expected ‘)’ before ‘;’ token
../../../sip/cpp/sip_html2wxWebViewArchiveHandler.cpp: In function ‘void* init_wxWebViewArchiveHandler(sipSimpleWrapper*, PyObject*, PyObject*, PyObject**, PyObject**, PyObject**)’:
../../../sip/cpp/sip_html2wxWebViewArchiveHandler.cpp:209:15: erreur: ‘wxWebViewArchiveHandler’ does not name a type
../../../sip/cpp/sip_html2wxWebViewArchiveHandler.cpp:211:117: erreur: ‘a0’ was not declared in this scope
Waf: Leaving directory `/home/arcole/bin/wxPython_Phoenix-2.9.5.81-r73883-src/build/waf/3.3'
Build failed
 -> task in '_html2' failed (exit status 1):
    {task 139638568542480: cxx sip_html2cmodule.cpp -> sip_html2cmodule.cpp.17.o}
['/usr/bin/g++', '-fPIC', '-pthread', '-pthread', '-UNDEBUG', '-g', '-pthread', '-fwrapv', '-fstack-protector', '-fwrapv', '-fstack-protector', '-fno-strict-aliasing', '-I/home/arcole/bin/wxPython_Phoenix-2.9.5.81-r73883-src/build/wxbld/lib/wx/include/gtk2-unicode-2.9', '-I/home/arcole/bin/wxPython_Phoenix-2.9.5.81-r73883-src/wxWidgets/include', '-I/home/arcole/bin/wxPython_Phoenix-2.9.5.81-r73883-src/build/waf/3.3/sip/siplib', '-I/home/arcole/bin/wxPython_Phoenix-2.9.5.81-r73883-src/sip/siplib', '-I/home/arcole/bin/wxPython_Phoenix-2.9.5.81-r73883-src/build/waf/3.3/src', '-I/home/arcole/bin/wxPython_Phoenix-2.9.5.81-r73883-src/src', '-I/usr/include/python3.3m', '-I/usr/include/x86_64-linux-gnu/python3.3m', '-DPYTHONDIR="/usr/local/lib/python3/dist-packages"', '-DPYTHONARCHDIR="/usr/local/lib/python3/dist-packages"', '-DHAVE_PYTHON_H=1', '-DHAVE_WX=1', '-DHAVE_WXADV=1', '-DHAVE_WXSTC=1', '-DHAVE_WXHTML=1', '-DHAVE_WXGL=1', '-DHAVE_WXWEBVIEW=1', '-DHAVE_WXXML=1', '-DHAVE_WXXRC=1', '-D_FILE_OFFSET_BITS=64', '-DWXUSINGDLL', '-D__WXGTK__', '-DNDEBUG', '../../../sip/cpp/sip_html2cmodule.cpp', '-c', '-o', 'sip/cpp/sip_html2cmodule.cpp.17.o']
 -> task in '_html2' failed (exit status 1):
    {task 139638568542672: cxx sip_html2wxWebView.cpp -> sip_html2wxWebView.cpp.17.o}
['/usr/bin/g++', '-fPIC', '-pthread', '-pthread', '-UNDEBUG', '-g', '-pthread', '-fwrapv', '-fstack-protector', '-fwrapv', '-fstack-protector', '-fno-strict-aliasing', '-I/home/arcole/bin/wxPython_Phoenix-2.9.5.81-r73883-src/build/wxbld/lib/wx/include/gtk2-unicode-2.9', '-I/home/arcole/bin/wxPython_Phoenix-2.9.5.81-r73883-src/wxWidgets/include', '-I/home/arcole/bin/wxPython_Phoenix-2.9.5.81-r73883-src/build/waf/3.3/sip/siplib', '-I/home/arcole/bin/wxPython_Phoenix-2.9.5.81-r73883-src/sip/siplib', '-I/home/arcole/bin/wxPython_Phoenix-2.9.5.81-r73883-src/build/waf/3.3/src', '-I/home/arcole/bin/wxPython_Phoenix-2.9.5.81-r73883-src/src', '-I/usr/include/python3.3m', '-I/usr/include/x86_64-linux-gnu/python3.3m', '-DPYTHONDIR="/usr/local/lib/python3/dist-packages"', '-DPYTHONARCHDIR="/usr/local/lib/python3/dist-packages"', '-DHAVE_PYTHON_H=1', '-DHAVE_WX=1', '-DHAVE_WXADV=1', '-DHAVE_WXSTC=1', '-DHAVE_WXHTML=1', '-DHAVE_WXGL=1', '-DHAVE_WXWEBVIEW=1', '-DHAVE_WXXML=1', '-DHAVE_WXXRC=1', '-D_FILE_OFFSET_BITS=64', '-DWXUSINGDLL', '-D__WXGTK__', '-DNDEBUG', '../../../sip/cpp/sip_html2wxWebView.cpp', '-c', '-o', 'sip/cpp/sip_html2wxWebView.cpp.17.o']
 -> task in '_html2' failed (exit status 1):
    {task 139638568542928: cxx sip_html2wxWebViewEvent.cpp -> sip_html2wxWebViewEvent.cpp.17.o}
['/usr/bin/g++', '-fPIC', '-pthread', '-pthread', '-UNDEBUG', '-g', '-pthread', '-fwrapv', '-fstack-protector', '-fwrapv', '-fstack-protector', '-fno-strict-aliasing', '-I/home/arcole/bin/wxPython_Phoenix-2.9.5.81-r73883-src/build/wxbld/lib/wx/include/gtk2-unicode-2.9', '-I/home/arcole/bin/wxPython_Phoenix-2.9.5.81-r73883-src/wxWidgets/include', '-I/home/arcole/bin/wxPython_Phoenix-2.9.5.81-r73883-src/build/waf/3.3/sip/siplib', '-I/home/arcole/bin/wxPython_Phoenix-2.9.5.81-r73883-src/sip/siplib', '-I/home/arcole/bin/wxPython_Phoenix-2.9.5.81-r73883-src/build/waf/3.3/src', '-I/home/arcole/bin/wxPython_Phoenix-2.9.5.81-r73883-src/src', '-I/usr/include/python3.3m', '-I/usr/include/x86_64-linux-gnu/python3.3m', '-DPYTHONDIR="/usr/local/lib/python3/dist-packages"', '-DPYTHONARCHDIR="/usr/local/lib/python3/dist-packages"', '-DHAVE_PYTHON_H=1', '-DHAVE_WX=1', '-DHAVE_WXADV=1', '-DHAVE_WXSTC=1', '-DHAVE_WXHTML=1', '-DHAVE_WXGL=1', '-DHAVE_WXWEBVIEW=1', '-DHAVE_WXXML=1', '-DHAVE_WXXRC=1', '-D_FILE_OFFSET_BITS=64', '-DWXUSINGDLL', '-D__WXGTK__', '-DNDEBUG', '../../../sip/cpp/sip_html2wxWebViewEvent.cpp', '-c', '-o', 'sip/cpp/sip_html2wxWebViewEvent.cpp.17.o']
 -> task in '_html2' failed (exit status 1):
    {task 139638568542800: cxx sip_html2wxWebViewArchiveHandler.cpp -> sip_html2wxWebViewArchiveHandler.cpp.17.o}
['/usr/bin/g++', '-fPIC', '-pthread', '-pthread', '-UNDEBUG', '-g', '-pthread', '-fwrapv', '-fstack-protector', '-fwrapv', '-fstack-protector', '-fno-strict-aliasing', '-I/home/arcole/bin/wxPython_Phoenix-2.9.5.81-r73883-src/build/wxbld/lib/wx/include/gtk2-unicode-2.9', '-I/home/arcole/bin/wxPython_Phoenix-2.9.5.81-r73883-src/wxWidgets/include', '-I/home/arcole/bin/wxPython_Phoenix-2.9.5.81-r73883-src/build/waf/3.3/sip/siplib', '-I/home/arcole/bin/wxPython_Phoenix-2.9.5.81-r73883-src/sip/siplib', '-I/home/arcole/bin/wxPython_Phoenix-2.9.5.81-r73883-src/build/waf/3.3/src', '-I/home/arcole/bin/wxPython_Phoenix-2.9.5.81-r73883-src/src', '-I/usr/include/python3.3m', '-I/usr/include/x86_64-linux-gnu/python3.3m', '-DPYTHONDIR="/usr/local/lib/python3/dist-packages"', '-DPYTHONARCHDIR="/usr/local/lib/python3/dist-packages"', '-DHAVE_PYTHON_H=1', '-DHAVE_WX=1', '-DHAVE_WXADV=1', '-DHAVE_WXSTC=1', '-DHAVE_WXHTML=1', '-DHAVE_WXGL=1', '-DHAVE_WXWEBVIEW=1', '-DHAVE_WXXML=1', '-DHAVE_WXXRC=1', '-D_FILE_OFFSET_BITS=64', '-DWXUSINGDLL', '-D__WXGTK__', '-DNDEBUG', '../../../sip/cpp/sip_html2wxWebViewArchiveHandler.cpp', '-c', '-o', 'sip/cpp/sip_html2wxWebViewArchiveHandler.cpp.17.o']
Command '/usr/bin/python3.3 /home/arcole/bin/wxPython_Phoenix-2.9.5.81-r73883-src/bin/waf-1.7.10 --wx_config=/home/arcole/bin/wxPython_Phoenix-2.9.5.81-r73883-src/build/wxbld/wx-config --python=/usr/bin/python3.3 --out=build/waf/3.3 configure build ' failed with exit code 1.
Finished command: build_py (29m11.896s)
Finished command: build (43m36.398s)

Robin Dunn

unread,
May 2, 2013, 8:02:35 PM5/2/13
to wxPyth...@googlegroups.com
sandb...@gmail.com wrote:
> Sorry Robin, I fix the previous issue with libgtk2 (-dev) but have got
> one other error during the build process.
> What's wrong ?
> Thanks again for your help.
> Vincent.
>
> [597/632] cxx: sip/cpp/sip_html2wxWebViewEvent.cpp ->
> build/waf/3.3/sip/cpp/sip_html2wxWebViewEvent.cpp.17.o
> ../../../sip/cpp/sip_html2cmodule.cpp:219:1: erreur: �wxWebView� does
> not name a type

You need to install libwebkit-dev

David Lozano Ruiz

unread,
Sep 6, 2013, 9:41:41 PM9/6/13
to wxpyth...@lists.wxwidgets.org
Robin Dunn <robin <at> alldunn.com> writes:

>
> sandboxarc <at> gmail.com wrote:
> > Sorry Robin, I fix the previous issue with libgtk2 (-dev) but have got
> > one other error during the build process.
> > What's wrong ?
> > Thanks again for your help.
> > Vincent.
> >
> > [597/632] cxx: sip/cpp/sip_html2wxWebViewEvent.cpp ->
> > build/waf/3.3/sip/cpp/sip_html2wxWebViewEvent.cpp.17.o
> > ../../../sip/cpp/sip_html2cmodule.cpp:219:1: erreur: ‘wxWebView’ does
> > not name a type
>
> You need to install libwebkit-dev
>


Hi Robin,

I had exactly the same problem, but after installing libwebkit-dev I'm still
getting the same error :(

[614/711] cxx: sip/cpp/sip_html2wxWebView.cpp ->
build/waf/3.2/sip/cpp/sip_html2wxWebView.cpp.17.o
../../../sip/cpp/sip_html2wxWebView.cpp:46:45: error: ‘wxWebView’ was not
declared in this scope
../../../sip/cpp/sip_html2wxWebView.cpp:46:56: error: ‘self’ was not
declared in this scope
../../../sip/cpp/sip_html2wxWebView.cpp:47:5: error: expected ‘,’ or ‘;’
before ‘{’ token
../../../sip/cpp/sip_html2cmodule.cpp:220:1: error: ‘wxWebView’ does not
name a type
../../../sip/cpp/sip_html2cmodule.cpp:230:1: error: ‘wxWebView’ does not
name a type


Any clue of what can be the problem? Is there any data I can attach to help
with the problem?

Thanks!

David

German Larrain

unread,
Oct 5, 2013, 7:31:09 PM10/5/13
to wxPyth...@googlegroups.com, wxpyth...@lists.wxwidgets.org, david.lo...@gmail.com
I can't build wxPython-src-2.9.5.0. I'm using Debian 7 x64. With the exact same configuration I can build wxPython-src-2.9.4.0 (wxPython-src-2.9.4.1.patch applied) with no problem.

src/gtk/html2_wrap.cpp: At global scope:
src/gtk/html2_wrap.cpp:2773:13: error: ‘wxWebView’ does not name a type
src/gtk/html2_wrap.cpp:2775:13: error: ‘wxWebView’ does not name a type
src/gtk/html2_wrap.cpp:2789:23: error: expected ‘;’ at end of member declaration
src/gtk/html2_wrap.cpp:2789:75: error: ISO C++ forbids declaration of ‘wxWebViewBackend’ with no type [-fpermissive]
src/gtk/html2_wrap.cpp:2789:75: warning: non-static data member initializers only available with -std=c++11 or -std=gnu++11 [enabled by default]
src/gtk/html2_wrap.cpp:2789:75: error: expected ‘;’ at end of member declaration
src/gtk/html2_wrap.cpp:2792:74: error: ‘static wxWebView* wxWebView::New(wxWindow*, wxWindowID, const wxString&, const wxPoint&, const wxSize&, const wxString&, long int, const wxString&)’ conflicts with a previous declaration
src/gtk/html2_wrap.cpp:2789:43: note: previous declaration ‘wxWebView* wxWebView::New’
src/gtk/html2_wrap.cpp:2789:45: warning: extended initializer lists only available with -std=c++11 or -std=gnu++11 [enabled by default]
src/gtk/html2_wrap.cpp:2789:60: error: expected ‘}’ before ‘;’ token
src/gtk/html2_wrap.cpp:2789:60: warning: extended initializer lists only available with -std=c++11 or -std=gnu++11 [enabled by default]
src/gtk/html2_wrap.cpp:2789:60: error: cannot convert ‘<brace-enclosed initializer list>’ to ‘int’ in initialization
src/gtk/html2_wrap.cpp:2789:60: error: expected ‘;’ before ‘;’ token
src/gtk/html2_wrap.cpp: In member function ‘const wxString& wxWebViewEvent::GetTarget() const’:
src/gtk/html2_wrap.cpp:2848:48: warning: returning reference to temporary [enabled by default]
src/gtk/html2_wrap.cpp: In member function ‘const wxString& wxWebViewEvent::GetURL() const’:
src/gtk/html2_wrap.cpp:2849:45: warning: returning reference to temporary [enabled by default]
src/gtk/html2_wrap.cpp: In function ‘PyObject* _wrap_WebViewFactory_Create__SWIG_0(PyObject*, int, PyObject**)’:
src/gtk/html2_wrap.cpp:3231:35: error: ‘class wxWebViewFactory’ has no member named ‘Create’
src/gtk/html2_wrap.cpp: In function ‘PyObject* _wrap_WebViewFactory_Create__SWIG_1(PyObject*, int, PyObject**)’:
src/gtk/html2_wrap.cpp:3321:35: error: ‘class wxWebViewFactory’ has no member named ‘Create’
src/gtk/html2_wrap.cpp: In function ‘PyObject* _wrap_WebView_PreNew(PyObject*, PyObject*, PyObject*)’:
src/gtk/html2_wrap.cpp:3516:65: error: no matching function for call to ‘wxWebView::New(const wxString&)’
src/gtk/html2_wrap.cpp:3516:65: note: candidate is:
src/gtk/html2_wrap.cpp:2790:23: note: static wxWebView* wxWebView::New(wxWindow*, wxWindowID, const wxString&, const wxPoint&, const wxSize&, const wxString&, long int, const wxString&)
src/gtk/html2_wrap.cpp:2790:23: note:   candidate expects 8 arguments, 1 provided
In file included from src/gtk/html2_wrap.cpp:2683:0:
/opt/wxPython-src-2.9.5.0/include/wx/sharedptr.h: In instantiation of ‘void wxSharedPtr<T>::Release() [with T = wxWebViewHandler]’:
/opt/wxPython-src-2.9.5.0/include/wx/sharedptr.h:34:48:   required from ‘wxSharedPtr<T>::~wxSharedPtr() [with T = wxWebViewHandler]’
src/gtk/html2_wrap.cpp:3962:39:   required from here
/opt/wxPython-src-2.9.5.0/include/wx/sharedptr.h:120:17: warning: deleting object of polymorphic class type ‘wxWebViewHandler’ which has non-virtual destructor might cause undefined behaviour [-Wdelete-non-virtual-dtor]
error: command 'gcc' failed with exit status 1
ERROR: failed building wxPython.

amine choukir

unread,
Oct 6, 2013, 5:28:46 AM10/6/13
to wxPyth...@googlegroups.com, wxpyth...@lists.wxwidgets.org, david.lo...@gmail.com
Hi Robin,

I am encountering the same issue after installing libwebkit-dev. Do you have any other suggestion.

Thanks

Amine

[613/711] cxx: sip/cpp/sip_html2cmodule.cpp -> build/waf/2.7/sip/cpp/sip_html2cmodule.cpp.17.o
../../../sip/cpp/sip_html2cmodule.cpp:220:1: error: ‘wxWebView’ does not name a type
../../../sip/cpp/sip_html2cmodule.cpp:230:1: error: ‘wxWebView’ does not name a type
../../../sip/cpp/sip_html2cmodule.cpp:259:38: error: ‘wxWEBVIEW_FIND_BACKWARDS’ was not declared in this scope
../../../sip/cpp/sip_html2cmodule.cpp:260:36: error: ‘wxWEBVIEW_FIND_DEFAULT’ was not declared in this scope
../../../sip/cpp/sip_html2cmodule.cpp:261:40: error: ‘wxWEBVIEW_FIND_ENTIRE_WORD’ was not declared in this scope
../../../sip/cpp/sip_html2cmodule.cpp:262:45: error: ‘wxWEBVIEW_FIND_HIGHLIGHT_RESULT’ was not declared in this scope
../../../sip/cpp/sip_html2cmodule.cpp:263:39: error: ‘wxWEBVIEW_FIND_MATCH_CASE’ was not declared in this scope
../../../sip/cpp/sip_html2cmodule.cpp:264:33: error: ‘wxWEBVIEW_FIND_WRAP’ was not declared in this scope
../../../sip/cpp/sip_html2cmodule.cpp:265:36: error: ‘wxWEBVIEW_NAV_ERR_AUTH’ was not declared in this scope
../../../sip/cpp/sip_html2cmodule.cpp:266:43: error: ‘wxWEBVIEW_NAV_ERR_CERTIFICATE’ was not declared in this scope
../../../sip/cpp/sip_html2cmodule.cpp:267:42: error: ‘wxWEBVIEW_NAV_ERR_CONNECTION’ was not declared in this scope
../../../sip/cpp/sip_html2cmodule.cpp:268:41: error: ‘wxWEBVIEW_NAV_ERR_NOT_FOUND’ was not declared in this scope
../../../sip/cpp/sip_html2cmodule.cpp:269:37: error: ‘wxWEBVIEW_NAV_ERR_OTHER’ was not declared in this scope
../../../sip/cpp/sip_html2cmodule.cpp:270:39: error: ‘wxWEBVIEW_NAV_ERR_REQUEST’ was not declared in this scope
../../../sip/cpp/sip_html2cmodule.cpp:271:40: error: ‘wxWEBVIEW_NAV_ERR_SECURITY’ was not declared in this scope
../../../sip/cpp/sip_html2cmodule.cpp:272:46: error: ‘wxWEBVIEW_NAV_ERR_USER_CANCELLED’ was not declared in this scope
../../../sip/cpp/sip_html2cmodule.cpp:273:38: error: ‘wxWEBVIEW_RELOAD_DEFAULT’ was not declared in this scope
../../../sip/cpp/sip_html2cmodule.cpp:274:39: error: ‘wxWEBVIEW_RELOAD_NO_CACHE’ was not declared in this scope
../../../sip/cpp/sip_html2cmodule.cpp:275:34: error: ‘wxWEBVIEW_ZOOM_LARGE’ was not declared in this scope
../../../sip/cpp/sip_html2cmodule.cpp:276:36: error: ‘wxWEBVIEW_ZOOM_LARGEST’ was not declared in this scope
../../../sip/cpp/sip_html2cmodule.cpp:277:35: error: ‘wxWEBVIEW_ZOOM_MEDIUM’ was not declared in this scope
../../../sip/cpp/sip_html2cmodule.cpp:278:34: error: ‘wxWEBVIEW_ZOOM_SMALL’ was not declared in this scope
../../../sip/cpp/sip_html2cmodule.cpp:279:33: error: ‘wxWEBVIEW_ZOOM_TINY’ was not declared in this scope
../../../sip/cpp/sip_html2cmodule.cpp:280:40: error: ‘wxWEBVIEW_ZOOM_TYPE_LAYOUT’ was not declared in this scope
../../../sip/cpp/sip_html2cmodule.cpp:281:38: error: ‘wxWEBVIEW_ZOOM_TYPE_TEXT’ was not declared in this scope
../../../sip/cpp/sip_html2cmodule.cpp:309:25: error: ‘sipVH__html2_0’ was not declared in this scope
../../../sip/cpp/sip_html2cmodule.cpp:310:25: error: ‘sipVH__html2_1’ was not declared in this scope
../../../sip/cpp/sip_html2cmodule.cpp:324:37: error: ‘wxWebViewBackendDefault’ was not declared in this scope
../../../sip/cpp/sip_html2cmodule.cpp:325:32: error: ‘wxWebViewBackendIE’ was not declared in this scope
../../../sip/cpp/sip_html2cmodule.cpp:326:36: error: ‘wxWebViewBackendWebKit’ was not declared in this scope
../../../sip/cpp/sip_html2cmodule.cpp:327:36: error: ‘wxWebViewDefaultURLStr’ was not declared in this scope
../../../sip/cpp/sip_html2cmodule.cpp:328:30: error: ‘wxWebViewNameStr’ was not declared in this scope
../../../sip/cpp/sip_html2cmodule.cpp:335:35: error: ‘wxEVT_WEBVIEW_ERROR’ was not declared in this scope
../../../sip/cpp/sip_html2cmodule.cpp:336:36: error: ‘wxEVT_WEBVIEW_LOADED’ was not declared in this scope
../../../sip/cpp/sip_html2cmodule.cpp:337:39: error: ‘wxEVT_WEBVIEW_NAVIGATED’ was not declared in this scope
../../../sip/cpp/sip_html2cmodule.cpp:338:40: error: ‘wxEVT_WEBVIEW_NAVIGATING’ was not declared in this scope
../../../sip/cpp/sip_html2cmodule.cpp:339:39: error: ‘wxEVT_WEBVIEW_NEWWINDOW’ was not declared in this scope
../../../sip/cpp/sip_html2cmodule.cpp:340:43: error: ‘wxEVT_WEBVIEW_TITLE_CHANGED’ was not declared in this scope
Waf: Leaving directory `/home/amchoukir/Downloads/wxPython_Phoenix-3.0.0.0-r74865-src/build/waf/2.7'
Build failed
 -> task in '_html2' failed (exit status 1): 
{task 160930764: cxx sip_html2cmodule.cpp -> sip_html2cmodule.cpp.17.o}
['/usr/bin/g++', '-fPIC', '-pthread', '-pthread', '-UNDEBUG', '-g', '-pthread', '-fno-strict-aliasing', '-fwrapv', '-fstack-protector', '-fno-strict-aliasing', '-I/home/amchoukir/Downloads/wxPython_Phoenix-3.0.0.0-r74865-src/build/wxbld/lib/wx/include/gtk2-unicode-3.0', '-I/home/amchoukir/Downloads/wxPython_Phoenix-3.0.0.0-r74865-src/wxWidgets/include', '-I/home/amchoukir/Downloads/wxPython_Phoenix-3.0.0.0-r74865-src/build/waf/2.7/sip/siplib', '-I/home/amchoukir/Downloads/wxPython_Phoenix-3.0.0.0-r74865-src/sip/siplib', '-I/home/amchoukir/Downloads/wxPython_Phoenix-3.0.0.0-r74865-src/build/waf/2.7/src', '-I/home/amchoukir/Downloads/wxPython_Phoenix-3.0.0.0-r74865-src/src', '-I/usr/include/python2.7', '-DPYTHONDIR="/usr/local/lib/python2.7/dist-packages"', '-DPYTHONARCHDIR="/usr/local/lib/python2.7/dist-packages"', '-DHAVE_PYTHON_H=1', '-DHAVE_WX=1', '-DHAVE_WXADV=1', '-DHAVE_WXSTC=1', '-DHAVE_WXHTML=1', '-DHAVE_WXGL=1', '-DHAVE_WXWEBVIEW=1', '-DHAVE_WXXML=1', '-DHAVE_WXXRC=1', '-DHAVE_WXRICHTEXT=1', '-D_FILE_OFFSET_BITS=64', '-DWXUSINGDLL', '-D__WXGTK__', '../../../sip/cpp/sip_html2cmodule.cpp', '-c', '-o', 'sip/cpp/sip_html2cmodule.cpp.17.o']

Robin Dunn

unread,
Oct 9, 2013, 7:55:52 PM10/9/13
to wxPyth...@googlegroups.com
David Lozano Ruiz wrote:
> Robin Dunn<robin<at> alldunn.com> writes:
>
>> sandboxarc<at> gmail.com wrote:
>>> Sorry Robin, I fix the previous issue with libgtk2 (-dev) but have got
>>> one other error during the build process.
>>> What's wrong ?
>>> Thanks again for your help.
>>> Vincent.
>>>
>>> [597/632] cxx: sip/cpp/sip_html2wxWebViewEvent.cpp ->
>>> build/waf/3.3/sip/cpp/sip_html2wxWebViewEvent.cpp.17.o
>>> ../../../sip/cpp/sip_html2cmodule.cpp:219:1: erreur: �wxWebView� does
>>> not name a type
>> You need to install libwebkit-dev
>>
>
>
> Hi Robin,
>
> I had exactly the same problem, but after installing libwebkit-dev I'm still
> getting the same error :(
>
> [614/711] cxx: sip/cpp/sip_html2wxWebView.cpp ->
> build/waf/3.2/sip/cpp/sip_html2wxWebView.cpp.17.o
> ../../../sip/cpp/sip_html2wxWebView.cpp:46:45: error: �wxWebView� was not
> declared in this scope
> ../../../sip/cpp/sip_html2wxWebView.cpp:46:56: error: �self� was not
> declared in this scope
> ../../../sip/cpp/sip_html2wxWebView.cpp:47:5: error: expected �,� or �;�
> before �{� token
> ../../../sip/cpp/sip_html2cmodule.cpp:220:1: error: �wxWebView� does not
> name a type
> ../../../sip/cpp/sip_html2cmodule.cpp:230:1: error: �wxWebView� does not
> name a type
>
>
> Any clue of what can be the problem? Is there any data I can attach to help
> with the problem?

What version of libwebkit-dev was installed? Did you start with a clean
build folder so it will redo the wxWidgets configure step? Try doing
that and watching the output of the configure command to see if there
are any other clues as to why it is disabling the webview classes.

Robin Dunn

unread,
Oct 9, 2013, 7:56:23 PM10/9/13
to wxPyth...@googlegroups.com
German Larrain wrote:
> I can't build wxPython-src-2.9.5.0. I'm using Debian 7 x64. With the
> exact same configuration I can build wxPython-src-2.9.4.0
> (wxPython-src-2.9.4.1.patch applied) with no problem.
>

When the system doesn't have a new enough version of libwebkit-dev (or
whatever the package is named on your distro) then it will use some
empty stub classes that simply raise an exception if you try to use
them. In 2.9.5 there is a bug in that stub code, so you can either get
the necessary lib and devel packages installed so it can use the real
webview classes, or you can patch your code similar to what is going to
be done in wxPython. You'll need to make changes like the following,
except in src/gtk/html2_wrap.cpp instead of in the .i file:

https://github.com/RobinD42/wxPython/commit/c66144f07202a13b68248169e33a25d6e6d93dec

https://github.com/RobinD42/wxPython/commit/b2e582a196bc08e2388f7b64a81fe7bda76c4afd

Robin Dunn

unread,
Oct 9, 2013, 7:56:41 PM10/9/13
to wxPyth...@googlegroups.com
amine choukir wrote:
> Hi Robin,
>
> I am encountering the same issue after installing libwebkit-dev. Do you
> have any other suggestion.

What version was installed? Did you do a clean build so wxWidgets would
run configure again? Was there any clues in the output of configure
that would help us find out what is still missing?

Unfortunately I haven't yet come up with a way for Phoenix to do empty
stub classes like what is done in Classic for cases like this...
Reply all
Reply to author
Forward
0 new messages