* wxGTK-2.4.0
@ 2003-01-14 9:50 Wilbert Knol
2003-01-14 12:12 ` wxGTK-2.4.0 Aleksandar Ilic
2003-01-14 12:19 ` wxGTK-2.4.0 Tomi Manninen
0 siblings, 2 replies; 8+ messages in thread
From: Wilbert Knol @ 2003-01-14 9:50 UTC (permalink / raw)
To: linux-hams
Thanks for reading this.
I am trying to build LinWSJT.
For this to work, I must build wxGTK-2.4.0 (the wxWindows library)
from sources, which causes me some grief.
The ./configure script fails with the following message:
checking for GTK+ version...
checking for pkg-config... /usr/bin/pkg-config
checking for GTK+ - version >= 2.0.0... no
*** Could not run GTK+ test program, checking why...
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occured. This usually means GTK+ is incorrectly installed.
configure: error:
The config.log shows this:
configure:12357: checking for GTK+ - version >= 2.0.0
configure:12511: gcc -o conftest -D_FILE_OFFSET_BITS=64
-D_LARGE_FILES conftest.c 1>&5
configure:12503:21: gtk/gtk.h: No such file or directory
In fact, I have both GTK 1.2 _and_ 2.0 installed, including the
development files. The header files are there, but they are under
/usr/include/gtk-1.2/gtk
and
/usr/include/gtk-2.0/gtk
respectively. The compiler looks for:
/usr/include/gtk
and can't find them.
I can fix this with a bunch of symlinks... the ./configure
script then fails to find glib.h, or another include.
I am sure I must be doing something wrong. Is there a way to
specify paths to header files (like ld.so.conf)?
Any pointers appreciated.
Wilbert, ZL2BSJ
PS: GTK 1.2/2 were installed from RPMs, ex-distro.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: wxGTK-2.4.0
2003-01-14 9:50 wxGTK-2.4.0 Wilbert Knol
@ 2003-01-14 12:12 ` Aleksandar Ilic
2003-01-14 12:19 ` wxGTK-2.4.0 Tomi Manninen
1 sibling, 0 replies; 8+ messages in thread
From: Aleksandar Ilic @ 2003-01-14 12:12 UTC (permalink / raw)
To: linux-hams
On Tuesday 14 January 2003 10:50, Wilbert Knol wrote:
> I am trying to build LinWSJT.
> For this to work, I must build wxGTK-2.4.0 (the wxWindows library)
> from sources, which causes me some grief.
Maybe some help you will be, that I build wxGTK-2.3.4 without problems. No
experiences with 2.4.0.
--
73 de YU1IS -=- ailic at ptt dot yu -=- ICQ#:62419462
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: wxGTK-2.4.0
2003-01-14 9:50 wxGTK-2.4.0 Wilbert Knol
2003-01-14 12:12 ` wxGTK-2.4.0 Aleksandar Ilic
@ 2003-01-14 12:19 ` Tomi Manninen
2003-01-15 7:52 ` wxGTK-2.4.0 (2) Wilbert Knol
1 sibling, 1 reply; 8+ messages in thread
From: Tomi Manninen @ 2003-01-14 12:19 UTC (permalink / raw)
To: Wilbert Knol; +Cc: linux-hams
On Tue, 14 Jan 2003, Wilbert Knol wrote:
> configure:12357: checking for GTK+ - version >= 2.0.0
> configure:12511: gcc -o conftest -D_FILE_OFFSET_BITS=64
> -D_LARGE_FILES conftest.c 1>&5
> configure:12503:21: gtk/gtk.h: No such file or directory
I looks like maybe GTK really is incorrectly installed.
Does pkg-config give the correct cflags and libs? On my RH8 box it gives:
$ pkg-config --cflags gtk+-2.0
-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/include/Xft2 -I/usr/include/freetype2
-I/usr/X11R6/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
$ pkg-config --libs gtk+-2.0
-lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangoxft-1.0
-lpangox-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0
--
Tomi Manninen Internet: oh2bns@sral.fi
OH2BNS AX.25: oh2bns@oh2rbi.fin.eu
KP20ME04 Amprnet: oh2bns@oh2rbi.ampr.org
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: wxGTK-2.4.0 (2)
2003-01-14 12:19 ` wxGTK-2.4.0 Tomi Manninen
@ 2003-01-15 7:52 ` Wilbert Knol
2003-01-15 10:05 ` Tomi Manninen OH2BNS
0 siblings, 1 reply; 8+ messages in thread
From: Wilbert Knol @ 2003-01-15 7:52 UTC (permalink / raw)
To: Tomi Manninen; +Cc: linux-hams
> I looks like maybe GTK really is incorrectly installed.
>
> Does pkg-config give the correct cflags and libs? On my RH8 box it gives:
>
> $ pkg-config --cflags gtk+-2.0
> -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/include/Xft2 -I/usr/include/freetype2
> -I/usr/X11R6/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
My Mdk8.2 notebook:
# pkg-config --cflags gtk+-2.0
-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/freetype2 -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include
(Tomi's RH8:)
> $ pkg-config --libs gtk+-2.0
> -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangoxft-1.0
> -lpangox-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0
My Mdk8.2:
# pkg-config --libs gtk+-2.0
-Wl,--export-dynamic -L/usr/X11R6/lib -lgtk-x11-1.3 -lgdk-x11-1.3 -lXi
-latk -lgdk_pixbuf-1.3 -lm -lpangox -lpangoxft -lXft -lXrender -lXext
-lX11 -lfreetype -lpango -lgobject-1.3 -lgmodule-1.3 -ldl -lglib-1.3
Hmmm...looks OK.
The config.log error message was, that it couldn't find gtk/gtk.h :
configure:12357: checking for GTK+ - version >= 2.0.0
configure:12511: gcc -o conftest -D_FILE_OFFSET_BITS=64
-D_LARGE_FILES conftest.c 1>&5
configure:12503:21: gtk/gtk.h: No such file or directory
configure: failed program was:
#line 12501 "configure"
#include "confdefs.h"
#include <gtk/gtk.h>
#include <stdio.h>
...etc....
root@zl2bsj # slocate gtk.h
<snip>
/usr/include/gtk-1.2/gtk/gtk.h
/usr/include/gtk-2.0/gtk/gtk.h
Shouldn't the gcc statement have included something like:
-I/usr/include/gtk-2.0
for the pre-processor to find /usr/include/gtk-2.0/gtk.h ??
I upgraded pkg-config to 0.14 as suggested, which didn't help (but is
worth having for the bug fixes:-).
Wilbert, ZL2BSJ
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: wxGTK-2.4.0 (2)
2003-01-15 7:52 ` wxGTK-2.4.0 (2) Wilbert Knol
@ 2003-01-15 10:05 ` Tomi Manninen OH2BNS
0 siblings, 0 replies; 8+ messages in thread
From: Tomi Manninen OH2BNS @ 2003-01-15 10:05 UTC (permalink / raw)
To: Wilbert Knol; +Cc: linux-hams
On Wed, 15 Jan 2003, Wilbert Knol wrote:
> Hmmm...looks OK.
Yes, it does. Except maybe the --libs part which seems to point to a beta
version 1.3 of most of the libs...
> The config.log error message was, that it couldn't find gtk/gtk.h :
>
> configure:12357: checking for GTK+ - version >= 2.0.0
> configure:12511: gcc -o conftest -D_FILE_OFFSET_BITS=64
> -D_LARGE_FILES conftest.c 1>&5
> configure:12503:21: gtk/gtk.h: No such file or directory
Yeah. The real problem seems to be that the "configure" test compile
doesn't include the necessary flags so it's bound to fail. My guess was
that pkg-config wouldn't give the correct flags but it seems it does. So I
don't understand what is going on here...
> Shouldn't the gcc statement have included something like:
> -I/usr/include/gtk-2.0
Yes. And pkg-config was supposed to supply it.
> I upgraded pkg-config to 0.14 as suggested, which didn't help (but is
> worth having for the bug fixes:-).
The way I have understood it, it's the GTK2 installation that is
responsible for putting a file "gtk+-2.0.pc" or something like that in a
place where pkg-config finds it. That file has the knowledge about where
the headers and libs are located. So it's not pkg-config's fault if this
data is incorrect.
But like I said, I don't understand what happened as the pkg-config
output looks ok.
--
Tomi Manninen Internet: oh2bns@sral.fi
OH2BNS AX.25: oh2bns@oh2rbi.fin.eu
KP20ME04 Amprnet: oh2bns@oh2rbi.ampr.org
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: wxGTK-2.4.0
@ 2003-01-14 21:04 Jonathan Naylor
0 siblings, 0 replies; 8+ messages in thread
From: Jonathan Naylor @ 2003-01-14 21:04 UTC (permalink / raw)
To: Linux Hams
Hi Wilbert
I too am having the same fun !
My development is done with wxGTK-2.3.3 and it is perfectly happy with a
standard installation of GTK+ 1.2.10, but with the latest wxGTK you
need this pkg-config. So you can try downloading and building
pkg-config and seeing what happens, they claim that wxGTK-2.4.0 is
compatible with that version. Pkg-config is at
http://www.freedesktop.org/software/pkgconfig/ once I have installed
it, I found that it had identified my GTK+ 1.2.10 and had included it
in its list of packages.
I would not recommend trying LinWSJT (now at 0.4.2 BTW) with wxGTK 2.4.0
yet as there are some incompatibilities :-( Nothing too serious, just a
few hours of sorting some arguments out. I have gone the whole way and
installed GTK+ 2.2.0 and the rest of the libraries, something I
wouldn't recommend unless you have a few hours of free time. Try and
get hold of wxGTK 2.3.3 and use that to build LinWSJT. I will release a
wxGTK 2.4.0 compatible LinWSJT soon.
I have to say that I am not too happy in the way that they have moved to
pkg-config, I though the existing framework of gtk-config was perfectly
adequate.
Such is life.
Jonathan HB9DRD/G4KLX
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: wxGTK-2.4.0
@ 2003-01-15 21:12 Jonathan Naylor
0 siblings, 0 replies; 8+ messages in thread
From: Jonathan Naylor @ 2003-01-15 21:12 UTC (permalink / raw)
To: Linux Hams
Hi again
I've had a very enjoyable day building different version of wxGTK-2.4.0
and building LinWSJT and finding what does and doesn't work with it !
LinWSJT does work with wxGTK-2.4.0 but not with all build types:
It will work with wxGTK-2.4.0 built with GTK+ 1.x.y (in my case 1.2.10),
this is achieved by using "./configure --with-gtk" for wxGTK.
It will sort of work with wxGTK-2.4.0 and GTK+ 2 (in my case 2.2.0) but
without Unicode support by "./configure --with-gtk --enable-gtk2". When
I means "sort of works", I mean that the numbers on the spectrum graph
(the square graph on the right) do not appear, but otherwise FSK441
operates correctly, JT44 is perfectly OK.
The currently released LinWSJT will not build as Unicode, the next
release is Unicode compliant but suffers from the same problems as
above. I think this is a bug in wsGTK-2.4.0 and I will report it to the
bug tracking database. If I build wxGTK for debugging I get an
assertion failure when dealing with Pango.
So I recommend using wxGTK-2.4.0 with GTK+ 1.x.y and you should be fine,
of course you may have to install pkg-config to get it to build in the
first place.
Jonathan HB9DRD/G4KLX
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: wxGTK-2.4.0
@ 2003-01-23 12:05 Jonathan Naylor
0 siblings, 0 replies; 8+ messages in thread
From: Jonathan Naylor @ 2003-01-23 12:05 UTC (permalink / raw)
To: Linux Hams
Hi Folks
I can confirm that there is a problem in wxGTK 2.4.0 and GTK2. Some code
hasn't been implemented yet and so I'm in the process of adding it to
wxGTK and sending the patch off to the mainrainers. This should mean
that it'll be fine with wxGTK 2.4.1 or whatever. I may include the
patch in the next release of LinWSJT for those who feel brave.
Jonathan HB9DRD/G4KLX
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2003-01-23 12:05 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-01-14 9:50 wxGTK-2.4.0 Wilbert Knol
2003-01-14 12:12 ` wxGTK-2.4.0 Aleksandar Ilic
2003-01-14 12:19 ` wxGTK-2.4.0 Tomi Manninen
2003-01-15 7:52 ` wxGTK-2.4.0 (2) Wilbert Knol
2003-01-15 10:05 ` Tomi Manninen OH2BNS
-- strict thread matches above, loose matches on Subject: below --
2003-01-14 21:04 wxGTK-2.4.0 Jonathan Naylor
2003-01-15 21:12 wxGTK-2.4.0 Jonathan Naylor
2003-01-23 12:05 wxGTK-2.4.0 Jonathan Naylor
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox