[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: GTK question



Mark Roach wrote:
On Sun, 2003-10-05 at 22:14, Roberto Sanchez wrote:

Just out of curiousity ... is it possible to force GTK2 to render GTK/GTK+ apps? I hask because I have a few apps (Audacity and a wxWindows based app that I am developing) that use GTK+, but would look lots better if rendered with GTK2.


There is a gtk2 port of wxwindows. If you download the source package, I
believe you can just modify the debian/rules and add --enable-gtk2 to
the configure options.


OK. I did that.

I edited the debian/rules file and added --enable-gtk2 and
--enable-unicode for each entry that contained a --with-gtk option.

Below I have listed the packages I have and the error message I
received.  Also, I retrieved the package with 'apt-get source
wxwindows2.4'.  The error below references not finding gdk/gdk.h.  But,
it is there:

$ locate gdk/gdk.h
/usr/include/gtk-2.0/gdk/gdk.h

I have also carefully looked over the parts previous to where I receive the error and many of them contain the -I/usr/include/gtk-2.0/ switch,
so I think there is some problem with the debian configuration scripts
(only I don't know how to fix it).

I also uninstalled all the wxwindows packages from my system and
downloaded the source tarball from wxwindows.org, and built it with
--enable-gtk2 and --enable-unicode. It seemed to work OK with the sample applications, but my program generated tons of errors that were not there with the Debian packages of wxwindows. I would really like to build the packages the Debian way, but this is rather frustrating. Any ideas?

-Roberto

These are the relevant -dev packages I have installed:

libatk1.0-dev/testing uptodate 1.2.4-1
libesd0-dev/testing uptodate 0.2.29-1
libfreetype6-dev/testing uptodate 2.1.5-2
libgtk2.0-dev/unstable uptodate 2.2.4-1
libaudiofile-dev/testing uptodate 0.2.3-4
libpng12-dev/testing uptodate 1.2.5.0-4
libtiff3g-dev/testing uptodate 3.5.7-2
libglib2.0-dev/testing uptodate 2.2.3-1
libpango1.0-dev/testing uptodate 1.2.5-1
libjpeg62-dev/unstable uptodate 6b-9

Part way into the build I get this error:

gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -DSWIG_GLOBAL -DHAVE_CONFIG_H -DWXP_USE_THREAD=1 -UNDEBUG -Isrc -I/usr/include/python2.3 -c src/helpers.cpp -o build/temp.linux-i686-2.3/src/helpers.o -I/usr/src/wxwindows2.4-2.4.1.2/objs_gtk_sh/lib/wx/include/gtk2u-2.4 -I/usr/src/wxwindows2.4-2.4.1.2/include -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES
src/helpers.cpp:26:21: gtk/gtk.h: No such file or directory
src/helpers.cpp:27:28: gdk/gdkprivate.h: No such file or directory
In file included from src/helpers.cpp:28:
/usr/src/wxwindows2.4-2.4.1.2/include/wx/gtk/win_gtk.h:18:21: gdk/gdk.h: No such file or directory /usr/src/wxwindows2.4-2.4.1.2/include/wx/gtk/win_gtk.h:19:22: gdk/gdkx.h: No such file or directory /usr/src/wxwindows2.4-2.4.1.2/include/wx/gtk/win_gtk.h:20:30: gtk/gtkcontainer.h: No such file or directory /usr/src/wxwindows2.4-2.4.1.2/include/wx/gtk/win_gtk.h:21:31: gtk/gtkadjustment.h: No such file or directory
In file included from src/helpers.cpp:28:
/usr/src/wxwindows2.4-2.4.1.2/include/wx/gtk/win_gtk.h:54: error: 'GtkContainer
   ' is used as a type, but is not defined as a type.
/usr/src/wxwindows2.4-2.4.1.2/include/wx/gtk/win_gtk.h:55: error: syntax error
   before `*' token
/usr/src/wxwindows2.4-2.4.1.2/include/wx/gtk/win_gtk.h:66: error: '
   GdkVisibilityState' is used as a type, but is not defined as a type.
/usr/src/wxwindows2.4-2.4.1.2/include/wx/gtk/win_gtk.h:71: error: 'gboolean' is
   used as a type, but is not defined as a type.
/usr/src/wxwindows2.4-2.4.1.2/include/wx/gtk/win_gtk.h:72: error: 'gboolean' is
   used as a type, but is not defined as a type.
/usr/src/wxwindows2.4-2.4.1.2/include/wx/gtk/win_gtk.h:73: error: 'gboolean' is
   used as a type, but is not defined as a type.
/usr/src/wxwindows2.4-2.4.1.2/include/wx/gtk/win_gtk.h:78: error: '
   GtkContainerClass' is used as a type, but is not defined as a type.
/usr/src/wxwindows2.4-2.4.1.2/include/wx/gtk/win_gtk.h:92: error: type
   specifier omitted for parameter `gboolean'
/usr/src/wxwindows2.4-2.4.1.2/include/wx/gtk/win_gtk.h:92: error: syntax error
   before `)' token
/usr/src/wxwindows2.4-2.4.1.2/include/wx/gtk/win_gtk.h:95: error: type
   specifier omitted for parameter `gboolean'
/usr/src/wxwindows2.4-2.4.1.2/include/wx/gtk/win_gtk.h:95: error: syntax error
   before `)' token
/usr/src/wxwindows2.4-2.4.1.2/include/wx/gtk/win_gtk.h:98: error: type
   specifier omitted for parameter `gboolean'
/usr/src/wxwindows2.4-2.4.1.2/include/wx/gtk/win_gtk.h:98: error: syntax error
   before `)' token
src/helpers.cpp: In function `long int wxPyGetWinHandle(wxWindow*)':
src/helpers.cpp:1596: error: syntax error before `)' token
src/helpers.cpp:1596: error: `GTK_CHECK_CAST' undeclared (first use this
   function)
src/helpers.cpp:1596: error: (Each undeclared identifier is reported only once
   for each function it appears in.)
src/helpers.cpp:1596: error: `GDK_WINDOW_XWINDOW' undeclared (first use this
   function)
error: command 'gcc' failed with exit status 1
make: *** [build-gtk-py-stamp] Error 1

Attachment: pgp1gsZI2x_Ye.pgp
Description: PGP signature


Reply to: