Compiling issues wxPython3.0.0

Hi all,

I am trying to compile wxPython3.0.0 with a pre-installed wxWidgets which is from the same source tar.

Attached is my wxWidgets configure command ( minimalistic GUI ) and wxPython config.

When I try to compile wxPython I get this error message:

python2.7 build-wxpython.py --no_config --no_wxbuild

old_options = set(['--no_wxbuild', '--no_config'])

sys.argv = ['--no_config', '--no_wxbuild']

wxWidgets directory is: /tmp/wxPython-src-3.0.0.0

Skipping wxWidgets build, assuming it is already done.

**** /usr/bin/python2.7 -u ./setup.py build_ext --inplace UNICODE=1

BUILD_BASE=build WX_CONFIG=/usr/local/bin/wx-config

WARNING: WXWIN not set in environment. Assuming '..'

Preparing CORE...

running build_ext

running build_ext

building '_core_' extension

gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall

-Wstrict-prototypes -fPIC -DSWIG_TYPE_TABLE=wxPython_table
-DSWIG_PYTHON_OUTPUT_TUPLE -DWXP_USE_THREAD=1 -D_FILE_OFFSET_BITS=64
-DwxDEBUG_LEVEL=0 -DWXUSINGDLL -D__WXGTK
_ -Iinclude -Isrc
-I/usr/local/lib/wx/include/gtk2-unicode-3.0
-I/usr/local/include/wx-3.0 -I/usr/include/gtk-2.0
-I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0
-I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0
-I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/
-I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
-I/usr/include/pixman-1 -I/usr/include/freetype2
-I/usr/include/libpng12 -I/usr/include/python2.7 -c src/helpers.cpp
-o build/temp.linux-x86_64-2.7/src/helpers.o -pthread -O3 -pthread

cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid

for C/ObjC but not for C++ [enabled by default]

In file included from include/wx/wxPython/wxPython_int.h:62:0,

                 from src/helpers.cpp:17:

/usr/local/include/wx-3.0/wx/htmllbox.h:35:68: error: expected

class-name before ‘,’ token

/usr/local/include/wx-3.0/wx/htmllbox.h:37:1: error: expected

class-name before ‘{’ token

/usr/local/include/wx-3.0/wx/htmllbox.h:118:48: error:

‘wxHtmlLinkInfo’ does not name a type

/usr/local/include/wx-3.0/wx/htmllbox.h:118:64: error: ISO C++

forbids declaration of ‘link’ with no type [-fpermissive]

/usr/local/include/wx-3.0/wx/htmllbox.h:135:42: error:

‘wxHtmlLinkInfo’ does not name a type

/usr/local/include/wx-3.0/wx/htmllbox.h:135:58: error: ISO C++

forbids declaration of ‘link’ with no type [-fpermissive]

/usr/local/include/wx-3.0/wx/htmllbox.h:136:13: error:

‘wxHtmlOpeningStatus’ does not name a type

/usr/local/include/wx-3.0/wx/htmllbox.h:146:36: error: ‘HTMLCursor’

has not been declared

src/helpers.cpp: In member function ‘void wxPyApp::_BootstrapApp()’:

error: command 'gcc' failed with exit status 1

ERROR: failed building wxPython.

Pretty much obvious my build must fail since I did not compile wxWidgets with HTML stuff.
The point is why wxPython does not properly use wxWidgets’ setup.h to exclude those libs that are not part of my wxWidgets configuration?
Am I missing something, is this a bug or is there a workaround?

Thanks in advance,

Philipp

config.py (43.6 KB)

wxWidgets.configure.minimal-gui (563 Bytes)