On 7/24/12 3:26 AM, Sanjit wrote:
>
> I am trying with latest release wxPython 2.9.4.0 and getting error as
> follows.
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
> DESTDIR:
> PREFIX: /usr/local
> wxlocation: /usr/local
> wxcfg: /usr/local/bin/wx-config
> wxcfgsrc: /usr/local/lib/wx/config/gtk2-unicode-2.9
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
> **** /usr/bin/python -u ./setup.py build UNICODE=1 BUILD_BASE=build
> WX_CONFIG="/usr/local/bin/wx-config --prefix=/usr/local"
> WARNING: WXWIN not set in environment. Assuming '..'
> Preparing CORE...
> Preparing STC...
> Preparing GLCANVAS...
> Preparing GIZMOS...
> running build
> running build_py
> running build
> running build_py
> copying wx/__version__.py -> build/lib.linux-i686-2.6/wx
> copying wx/build/build_options.py -> build/lib.linux-i686-2.6/wx/build
> package init file 'wx/lib/pubsub/pubsub2/__init__.py' not found (or not
> a regular file)
> package init file 'wx/tools/XRCed/plugins/__init__.py' not found (or not
> a regular file)
> package init file 'wx/lib/pubsub/pubsub2/__init__.py' not found (or not
> a regular file)
> package init file 'wx/tools/XRCed/plugins/__init__.py' not found (or not
> a regular file)
> running build_ext
> building '_core_' extension
> gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall
> -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
> --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom
> -fasynchronous-unwind-tables -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g
> -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
> --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom
> -fasynchronous-unwind-tables -D_GNU_SOURCE -fPIC -fwrapv -fPIC
> -DSWIG_TYPE_TABLE=_wxPython_table -DSWIG_PYTHON_OUTPUT_TUPLE
> -DWXP_USE_THREAD=1 -UNDEBUG -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL
> -D__WXGTK__ -Iinclude -Isrc -I/usr/local/lib/wx/include/gtk2-unicode-2.9
> -I/usr/local/include/wx-2.9 -I/usr/include/gtk-2.0
> -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo
> -I/usr/include/pango-1.0 -I/usr/include/glib-2.0
> -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1
> -I/usr/include/freetype2 -I/usr/include/libpng12
> -I/usr/include/python2.6 -c src/helpers.cpp -o
> build/temp.linux-i686-2.6/src/helpers.o -pthread -O3
> src/helpers.cpp:32:36: error: wx/gtk/private/win_gtk.h: No such file or
> directory
>
> Can anybody help me to install wxPython on CentOS6.
Hmmm... It looks like wx/gtk/private/win_gtk.h was removed from the list
of files to be installed, although it is still there in the source tree.
A quick workaround for you would be to manually copy that file into the
appropriate destination folder, and also wx/gtk/dc.h which is also
missing, and then run build-wxpython.py again.
I'll look into doing a permanent fix and perhaps a .1 release...
--
Robin Dunn
Software Craftsman
http://wxPython.org