[pygtk] Compiling 1.99.14 with MinGW

2003-01-06 Thread Rene Olsthoorn
Dear readers,

I'm trying to compile the new 1.99.14 version for windows with minGW32, see 
http://www.mingw.org/

The configure file complaints: 
*** A new enough version of pkg-config was not found..

Did anyone of you succeed in compiling pygtk 1.99.14 for windows?
And perhaps also using MinGW32?

Greets and best whishes,
Rene Olsthoorn.

-- 
__
Sign-up for your own FREE Personalized E-mail at Mail.com
http://www.mail.com/?sr=signup

Meet Singles
http://corp.mail.com/lavalife

___
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/



Re: [pygtk] OpenGL in PyGTK2

2003-01-06 Thread Iñigo Serna
Hi,

Last versions of pygtk2 works with gtkglarea-1.99.0.tar.gz [1]
Try to compile it and the pygtk2 [2] from sources and then check the
examples in pygtk.

It seems gtkglext is better than gtkglarea for gtk v2, but as far as I
know there aren't python wrappers for gtkglext. In fact I've been
thinking in coding it myself, but it's too hard for me ;-)

[1]http://ftp.gnome.org/pub/GNOME/sources/gtkglarea/1.99/gtkglarea-1.99.0.tar.gz
[2]http://ftp.gnome.org/pub/GNOME/sources/pygtk/1.99/pygtk-1.99.14.tar.gz

Best regards,
Iñigo Serna


El jue, 02-01-2003 a las 19:25, Viktor Hornak escribió:
 Hello,
 
 does anyone know if it's possible to use an OpenGL widget in PyGTK? I'am
 using pygtk2-1.99 (RedHat 8.0). I need to draw thousands of lines/points
 and gtk.DrawingArea is very slow for that. I am rather confused about
 the status of gtkglarea and gtkGLext (would they both work with
 pygtk2?). Are there bindings for any of the two? How would I make calls
 to OpenGL?
 I'd appreciate any insights into where these things are, it's kind of
 difficult to figure it out from google search...
 
 Thanks,
 -Viktor





signature.asc
Description: Esta parte del mensaje esta firmada digitalmente


Re: [pygtk] Compiling PyGTK2

2003-01-06 Thread Christian Reis
On Fri, Jan 03, 2003 at 06:03:45PM -0500, joehill wrote:
 Many thanks for the reply.
 
 There were several errors, but one major one which was similar to what 
 appeared in the output of the ./configure command. I have pasted in the 
 smaller ones first.

This is the problem that is stopping you from compiling it. It *seems*
to be a problem with xft and freetype. Is freetype installed? Why wasn't
libpangoxft linked against it properly, as it should have been? Did you
compile it yourself?

 configure:8827: checking for GTK+ - version = 2.0.0
 configure:8943: gcc -o conftest -g -O2  -I/usr/include/gtk-2.0 
 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 
 -I/usr/include/pango-1.0 -I/usr/X11R6/include -I/usr/include/freety$
 /usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.2/../../../libpangoxft-1.0.so: 
 undefined reference to `FT_Seek_Stream'
 /usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.2/../../../libpangoxft-1.0.so: 
 undefined reference to `FT_Get_Short'
 /usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.2/../../../libpangoxft-1.0.so: 
 undefined reference to `FT_Forget_Frame'
 /usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.2/../../../libpangoxft-1.0.so: 
 undefined reference to `FT_Access_Frame'
 /usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.2/../../../libpangoxft-1.0.so: 
 undefined reference to `FT_Get_Long'
 collect2: ld returned 1 exit status
 configure:8946: $? = 1
 configure: program exited with status 1
 configure: failed program was:
 | #line 8862 configure
 | /* confdefs.h.  */
 
 | #include gtk/gtk.h
 | #include stdio.h
 | #include stdlib.h
 |
 | int
 | main ()
 | {
 |   int major, minor, micro;
 |   char *tmp_version;
 |
 |   system (touch conf.gtktest);
 |
 |   /* HP/UX 9 (%@#!) writes to sscanf strings */
 |   tmp_version = g_strdup(2.0.0);
 |   if (sscanf(tmp_version, %d.%d.%d, major, minor, micro) != 3) {
 |  printf(%s, bad version string\n, 2.0.0);
 |  exit(1);
 |}
 |
 |   if ((gtk_major_version != 2) ||
 |   (gtk_minor_version != 0) ||
 |   (gtk_micro_version != 6))
 | {
 |   printf(\n*** 'pkg-config --modversion gtk+-2.0' returned 
 %d.%d.%d, but GTK+ (%d.%d.%d)\n,
 |  2, 0, 6, 
 |  gtk_major_version, gtk_minor_version, gtk_micro_version);
 |   printf (*** was found! If pkg-config was correct, then it is 
 best\n);
 |   printf (*** to remove the old version of GTK+. You may also be 
 able to fix the error\n);
 |   printf(*** by modifying your LD_LIBRARY_PATH enviroment 
 variable, or by editing\n);
 |   printf(*** /etc/ld.so.conf. Make sure you have run ldconfig if 
 that is\n);
 |   printf(*** required on your system.\n);
 |   printf(*** If pkg-config was wrong, set the environment 
 variable PKG_CONFIG_PATH\n);
 |   printf(*** to point to the correct configuration files\n);
 | }
 |   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
 |  (gtk_minor_version != GTK_MINOR_VERSION) ||
 |(gtk_micro_version != GTK_MICRO_VERSION))
 | { 
 |   printf(*** GTK+ header files (version %d.%d.%d) do not match\n,
 |GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
 |   printf(*** library (version %d.%d.%d)\n,
 |gtk_major_version, gtk_minor_version, gtk_micro_version);
 | }
 |   else
 | {
 |   if ((gtk_major_version  major) ||
 | ((gtk_major_version == major)  (gtk_minor_version  minor)) ||
 | ((gtk_major_version == major)  (gtk_minor_version == minor) 
  (gtk_micro_version = micro)))
 |   {
 | return 0;
 |}
 |  else
 |   {
 | printf(\n*** An old version of GTK+ (%d.%d.%d) was found.\n,
 |gtk_major_version, gtk_minor_version, gtk_micro_version);
 | printf(*** You need a version of GTK+ newer than %d.%d.%d. 
 The latest version of\n,
 |  major, minor, micro);
 | printf(*** GTK+ is always available from ftp://ftp.gtk.org.\n;);
 | printf(***\n);
 | printf(*** If you have already installed a sufficiently new 
 version, this error\n);
 | printf(*** probably means that the wrong copy of the 
 pkg-config shell script is\n);
 | printf(*** being found. The easiest way to fix this is to 
 remove the old version\n);
 | printf(*** of GTK+, but you can also set the PKG_CONFIG 
 environment to point to the\n);
 | printf(*** correct copy of pkg-config. (In this case, you 
 will have to\n);
 | printf(*** modify your LD_LIBRARY_PATH enviroment variable, 
 or edit /etc/ld.so.conf\n);
 | printf(*** so that the correct libraries are found at 
 run-time))\n);
 |   }
 | }
 |   return 1;
 | }

Take care,
--
Christian Reis, Senior Engineer, Async Open Source, Brazil.
http://async.com.br/~kiko/ | [+55 16] 261 2331 | NMFL
___
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/



Re: [pygtk] Re: GDK_2BUTTON_PRESS event type definition

2003-01-06 Thread Florin Iucha
On Sun, Jan 05, 2003 at 10:56:12AM -0600, Florin Iucha wrote:
 Could you please add this to the FAQ:
http://www.async.com.br/faq/pygtk/index.py?req=showfile=faq02.002.htp

I have updated this myself.

 and correct entries like:
http://www.async.com.br/faq/pygtk/index.py?req=showfile=faq03.002.htp
http://www.async.com.br/faq/pygtk/index.py?req=showfile=faq05.004.htp

And I was about to update these too, but a bug in the CGI script stopped
me.

Now the question is: should I leave the code examples intact and add a
note about the new world order, or should I change the code to reflect
the PyGtk-2 reality and add a note about how it used to work in PyGtk-0?

Thanks,
florin
-- 

NT is to UNIX what a doughnut is to a particle accelerator.



msg05150/pgp0.pgp
Description: PGP signature


Re: [pygtk] Re: GDK_2BUTTON_PRESS event type definition

2003-01-06 Thread Christian Reis
On Mon, Jan 06, 2003 at 08:00:13AM -0600, Florin Iucha wrote:
 Now the question is: should I leave the code examples intact and add a
 note about the new world order, or should I change the code to reflect
 the PyGtk-2 reality and add a note about how it used to work in PyGtk-0?

For now, just add a note explaining differences that exist in PyGTK2
usage. When PyGTK-0 finally goes away for good (01/2004 in my
expectations) we can go through the hard task of updating everything for
gtk2.

Take care,
--
Christian Reis, Senior Engineer, Async Open Source, Brazil.
http://async.com.br/~kiko/ | [+55 16] 261 2331 | NMFL
___
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/



Re: [pygtk] Python does not find PyGtk

2003-01-06 Thread Martijn Brouwer
On Mon, 06 Jan 2003 10:54:12 +0800
James Henstridge [EMAIL PROTECTED] wrote:

 Martijn Brouwer wrote:
 
 That was what I understood from the faq too, however it seems that 1.99 requires 
importation of pygtk before gtk even when only one version of pygtk is installed.
 I have python 2.2 with gnome-python 1.99.13. On my system (debian testing) 
gnome-python 1.4 based on pygtk 0.69.3 is installed in combination with python 2.1. 
(in python2.1/site-packages)
   
 
 This might be an artefact of the debian packaging.  It works fine 
 compiled from tarballs (and on other distros).

PyGtk 199.13 is from a tarball. But it works now, I am exploring the possibilities, so 
I do not complain anymore. Perhaps it is an idea to make things a little more 
transparent, as already suggested by other people on this list.

Bye,

Martijn
___
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/



Re: [pygtk] Compiling PyGTK2

2003-01-06 Thread joehill
Christian Reis wrote:


On Fri, Jan 03, 2003 at 06:03:45PM -0500, joehill wrote:
 

Many thanks for the reply.

There were several errors, but one major one which was similar to what 
appeared in the output of the ./configure command. I have pasted in the 
smaller ones first.
   


This is the problem that is stopping you from compiling it. It *seems*
to be a problem with xft and freetype. Is freetype installed? Why wasn't
libpangoxft linked against it properly, as it should have been? Did you
compile it yourself?
 

Thanks very much, that was it exactly. I was barking up the wrong tree, 
I thought it just didn't like my install of GTK+. I had installed some 
custom versions of freetype and xft. Once I upgraded my pango packages 
(libpango, libpango-devel, and of course pango) from the same source, 
all was well.

I got the custom packages from Texstar, who seems to be quite the wizard 
with rpms.

Thanks for your help, I'll now go ahead and install the software that 
needed this pygtk2 package...as soon as I remember what that was.

I tell ya, there's not a lot of things as fun as watching source code 
compile.

 

configure:8827: checking for GTK+ - version = 2.0.0
configure:8943: gcc -o conftest -g -O2  -I/usr/include/gtk-2.0 
-I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 
-I/usr/include/pango-1.0 -I/usr/X11R6/include -I/usr/include/freety$
/usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.2/../../../libpangoxft-1.0.so: 
undefined reference to `FT_Seek_Stream'
/usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.2/../../../libpangoxft-1.0.so: 
undefined reference to `FT_Get_Short'
/usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.2/../../../libpangoxft-1.0.so: 
undefined reference to `FT_Forget_Frame'
/usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.2/../../../libpangoxft-1.0.so: 
undefined reference to `FT_Access_Frame'
/usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.2/../../../libpangoxft-1.0.so: 
undefined reference to `FT_Get_Long'
collect2: ld returned 1 exit status
configure:8946: $? = 1
configure: program exited with status 1
configure: failed program was:
| #line 8862 configure
| /* confdefs.h.  */

| #include gtk/gtk.h
| #include stdio.h
| #include stdlib.h
|
| int
| main ()
| {
|   int major, minor, micro;
|   char *tmp_version;
|
|   system (touch conf.gtktest);
|
|   /* HP/UX 9 (%@#!) writes to sscanf strings */
|   tmp_version = g_strdup(2.0.0);
|   if (sscanf(tmp_version, %d.%d.%d, major, minor, micro) != 3) {
|  printf(%s, bad version string\n, 2.0.0);
|  exit(1);
|}
|
|   if ((gtk_major_version != 2) ||
|   (gtk_minor_version != 0) ||
|   (gtk_micro_version != 6))
| {
|   printf(\n*** 'pkg-config --modversion gtk+-2.0' returned 
%d.%d.%d, but GTK+ (%d.%d.%d)\n,
|  2, 0, 6, 
|  gtk_major_version, gtk_minor_version, gtk_micro_version);
|   printf (*** was found! If pkg-config was correct, then it is 
best\n);
|   printf (*** to remove the old version of GTK+. You may also be 
able to fix the error\n);
|   printf(*** by modifying your LD_LIBRARY_PATH enviroment 
variable, or by editing\n);
|   printf(*** /etc/ld.so.conf. Make sure you have run ldconfig if 
that is\n);
|   printf(*** required on your system.\n);
|   printf(*** If pkg-config was wrong, set the environment 
variable PKG_CONFIG_PATH\n);
|   printf(*** to point to the correct configuration files\n);
| }
|   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
|  (gtk_minor_version != GTK_MINOR_VERSION) ||
|(gtk_micro_version != GTK_MICRO_VERSION))
| { 
|   printf(*** GTK+ header files (version %d.%d.%d) do not match\n,
|GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
|   printf(*** library (version %d.%d.%d)\n,
|gtk_major_version, gtk_minor_version, gtk_micro_version);
| }
|   else
| {
|   if ((gtk_major_version  major) ||
| ((gtk_major_version == major)  (gtk_minor_version  minor)) ||
| ((gtk_major_version == major)  (gtk_minor_version == minor) 
 (gtk_micro_version = micro)))
|   {
| return 0;
|}
|  else
|   {
| printf(\n*** An old version of GTK+ (%d.%d.%d) was found.\n,
|gtk_major_version, gtk_minor_version, gtk_micro_version);
| printf(*** You need a version of GTK+ newer than %d.%d.%d. 
The latest version of\n,
|  major, minor, micro);
| printf(*** GTK+ is always available from ftp://ftp.gtk.org.\n;);
| printf(***\n);
| printf(*** If you have already installed a sufficiently new 
version, this error\n);
| printf(*** probably means that the wrong copy of the 
pkg-config shell script is\n);
| printf(*** being found. The easiest way to fix this is to 
remove the old version\n);
| printf(*** of GTK+, but you can also set the PKG_CONFIG 
environment to point to the\n);
| printf(*** correct copy of pkg-config. (In this case, you 
will have to\n);
|