I have just tried to compile wxPython with GTK3 following the steps from a wxWidgets ticket [1] using build-wxpython.py script. wxWidgets seem to compile however then I get this error:
**** /usr/bin/python -u ./setup.py build_ext --inplace UNICODE=1 BUILD_BASE=build WX_CONFIG=/home/anna/dev/wx/wxWidgets/wxPython/wxpy-bld/wx-config
WARNING: WXWIN not set in environment. Assuming ‘…’
Package gtk±2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gtk±2.0.pc’
to the PKG_CONFIG_PATH environment variable
No package ‘gtk±2.0’ found
Preparing CORE…
Preparing STC…
Preparing GLCANVAS…
Preparing GIZMOS…
running build_ext
running build_ext
building ‘core’ extension
creating build
creating build/temp.linux-i686-2.7
creating build/temp.linux-i686-2.7/src
creating build/temp.linux-i686-2.7/src/gtk
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 -UNDEBUG -DwxDEBUG_LEVEL=2 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK_ -Iinclude -Isrc -I/home/anna/dev/wx/wxWidgets/wxPython/wxpy-bld/lib/wx/include/gtk3-unicode-2.9 -I/home/anna/dev/wx/wxWidgets/include -I/usr/include/python2.7 -c src/helpers.cpp -o build/temp.linux-i686-2.7/src/helpers.o -pthread -O3
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for Ada/C/ObjC but not for C++ [enabled by default]
src/helpers.cpp:29:21: fatal error: gtk/gtk.h: No such file or directory
compilation terminated.
error: command ‘gcc’ failed with exit status 1
ERROR: failed building wxPython.
Strangely, it still complains about the gtk±2.0 package. Unfortunately I am not experienced enough to figure it myself. Thanks for any help.
Anna
[1] http://trac.wxwidgets.org/ticket/14469
···
On Monday, April 8, 2013 10:06:55 PM UTC+2, Robin Dunn wrote:
annakrat wrote:
Hi,
recent improvements in the GTK+ Broadway [1] made me wonder if or when
it will be possible to run wxPython applications on server with a HTML5
interface in a web browser. Now it is possible to run GTK apps like
gedit with broadway backend on Ubuntu 12 using PPA [2].
Has anyone experimented in this area?
I looked at it a couple years ago when Broadway was still fairly new and
when the wx support for GTK was still very new. But I didn’t get very
far. Since then wxGTK3 has progressed and become more capable, and has
also been made less dependent on the assumption that the back-end is
X11. So it might be doable now, but will likely still take some work.
–
Robin Dunn
Software Craftsman
http://wxPython.org