Rebuilding wxPythonGTK source rpm under RH8

Hello list folks,

I tried to rebuild wxPythonGTK 2.4.0.2 source RPM under Redhat 8.0. I've
changed the spec file to enable unicode support through the %define
unicode tag.

I'm getting the following errors:

gcc -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -DSWIG_GLOBAL
-DHAVE_CONFIG_H -DWXP_USE_THREAD=1 -UNDEBUG -Isrc
-I/usr/include/python2.2 -c src/helpers.cpp
-o build/temp.linux-i686-2.2/src/helpers.o
-I/home/najib/redhat/BUILD/wxPythonSrc-2.4.0.2/build/lib/wx/include/gtk2ud-2.4
-I/home/najib/redhat/BUILD/wxPythonSrc-2.4.0.2/include -D__WXDEBUG__
-D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -I/usr/include/gtk-1.2
-I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include

In file included from /usr/include/gtk-1.2/gdk/gdk.h:31,
                 from /usr/include/gtk-1.2/gtk/gtk.h:31,
                 from src/helpers.cpp:26:
/usr/include/gtk-1.2/gdk/gdktypes.h:52: conflicting types for `typedef gulong
   GdkAtom'
/home/najib/redhat/BUILD/wxPythonSrc-2.4.0.2/include/wx/defs.h:2050: previous
   declaration as `typedef struct _GdkAtom*GdkAtom'
/usr/include/gtk-1.2/gdk/gdktypes.h:57: conflicting types for `typedef struct
   _GdkWindow GdkWindow'
/home/najib/redhat/BUILD/wxPythonSrc-2.4.0.2/include/wx/defs.h:2051: previous
   declaration as `typedef struct _GdkDrawable GdkWindow'
/usr/include/gtk-1.2/gdk/gdktypes.h:58: conflicting types for `typedef struct
   _GdkWindow GdkPixmap'
/home/najib/redhat/BUILD/wxPythonSrc-2.4.0.2/include/wx/defs.h:2053: previous
   declaration as `typedef struct _GdkDrawable GdkPixmap'
/usr/include/gtk-1.2/gdk/gdktypes.h:59: conflicting types for `typedef struct
   _GdkWindow GdkBitmap'
/home/najib/redhat/BUILD/wxPythonSrc-2.4.0.2/include/wx/defs.h:2052: previous
   declaration as `typedef struct _GdkDrawable GdkBitmap'

Any tips will be greatly appreciated. Thanks in advance.

Regards,

···

--
Najib Ninaba
---
http://www.remorseful.org/
PGP fingerprint
3BA1 3A8C BA85 6CD8 9BD2 E0E2 6B7E 4151 C473 90A7
--
127.0.0.1 Because home is where the localhost is.

Hello,

In answer to my own question, I need to specify 'gtk2' for WXPORT in
setup.py. I've also set the UNICODE value to 1 but unicode doesnt seem
to work. But I do get much nicer fonts under GTK2 for my wxPython apps
now. :wink:

I'm thinking maybe I should do Redhat 8.0 RPMS for wxPythonGTK2 also.

-najib

* Najib Ninaba <najib@remorseful.org> [2003-01-26 09:57:28 +0800]:

···

Hello list folks,

I tried to rebuild wxPythonGTK 2.4.0.2 source RPM under Redhat 8.0. I've
changed the spec file to enable unicode support through the %define
unicode tag.

I'm getting the following errors:

gcc -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -DSWIG_GLOBAL
-DHAVE_CONFIG_H -DWXP_USE_THREAD=1 -UNDEBUG -Isrc
-I/usr/include/python2.2 -c src/helpers.cpp
-o build/temp.linux-i686-2.2/src/helpers.o
-I/home/najib/redhat/BUILD/wxPythonSrc-2.4.0.2/build/lib/wx/include/gtk2ud-2.4
-I/home/najib/redhat/BUILD/wxPythonSrc-2.4.0.2/include -D__WXDEBUG__
-D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -I/usr/include/gtk-1.2
-I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include

In file included from /usr/include/gtk-1.2/gdk/gdk.h:31,
                 from /usr/include/gtk-1.2/gtk/gtk.h:31,
                 from src/helpers.cpp:26:
/usr/include/gtk-1.2/gdk/gdktypes.h:52: conflicting types for `typedef gulong
   GdkAtom'
/home/najib/redhat/BUILD/wxPythonSrc-2.4.0.2/include/wx/defs.h:2050: previous
   declaration as `typedef struct _GdkAtom*GdkAtom'
/usr/include/gtk-1.2/gdk/gdktypes.h:57: conflicting types for `typedef struct
   _GdkWindow GdkWindow'
/home/najib/redhat/BUILD/wxPythonSrc-2.4.0.2/include/wx/defs.h:2051: previous
   declaration as `typedef struct _GdkDrawable GdkWindow'
/usr/include/gtk-1.2/gdk/gdktypes.h:58: conflicting types for `typedef struct
   _GdkWindow GdkPixmap'
/home/najib/redhat/BUILD/wxPythonSrc-2.4.0.2/include/wx/defs.h:2053: previous
   declaration as `typedef struct _GdkDrawable GdkPixmap'
/usr/include/gtk-1.2/gdk/gdktypes.h:59: conflicting types for `typedef struct
   _GdkWindow GdkBitmap'
/home/najib/redhat/BUILD/wxPythonSrc-2.4.0.2/include/wx/defs.h:2052: previous
   declaration as `typedef struct _GdkDrawable GdkBitmap'

Any tips will be greatly appreciated. Thanks in advance.

Regards,
--
Najib Ninaba
---
http://www.remorseful.org/
PGP fingerprint
3BA1 3A8C BA85 6CD8 9BD2 E0E2 6B7E 4151 C473 90A7
--
127.0.0.1 Because home is where the localhost is.

---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwindows.org
For additional commands, e-mail: wxPython-users-help@lists.wxwindows.org

--
- -- ---- ----------------------------------------- --- -- - -
Najib Ninaba clustermonkey::packagemangler::codecutter
email: najib@remorseful.org
web: www.remorseful.org
- - -- ---- -------- -----------------------------------------

Najib Ninaba wrote:

Hello,

In answer to my own question, I need to specify 'gtk2' for WXPORT in
setup.py. I've also set the UNICODE value to 1 but unicode doesnt seem
to work. But I do get much nicer fonts under GTK2 for my wxPython apps
now. :wink:

There are a couple values (port and lcport) at the top of the spec file that you should set, I think that the rest should be automatic. Oops, you're right, I need to add a UNICODE=%{unicode} to the setup.py commands in the .spec, *then* it should be automatic. <wink>

I'm thinking maybe I should do Redhat 8.0 RPMS for wxPythonGTK2 also.

There are still a few problems with the wxGTK2 port, which is why I havn't done binaries for it yet, but they should be fixed by 2.4.1.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!