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.
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.
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.
I'm thinking maybe I should do Redhat 8.0 RPMS for wxPythonGTK2 also.
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.
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
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.
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!