12-17-04 12:45 AM
I am using Sun Solaris ..... and it is my university lab, and hence
maintained by some people.
By the way as I mentioned earlier (I hope I did), I am facing problems
only with gtk+2.0 and not with gtk+1.2.
Here are the details
----------------- pkg-config ----------------
% pkg-config --libs gtk+-2.0
-R/pkgs/gtk+-2.4.3/lib -R/usr/openwin/lib -R/pkgs/freetype-2.1.8/lib
-L/pkgs/gtk+-2.4.3/lib -L/usr/openwin/lib -L/pkgs/Xft-2.1.3/lib
-L/pkgs/freetype-2.1.8/lib -L/pkgs/xrender-0.8.3/lib -L/usr/local/lib
-L/pkgs/pango-1.4.0/lib -lgtk-x11-2.0 -lgdk-x11-2.0 -lXext -lXft
-lfreetype -lz -lXrender -lfontconfig -lX11 -lsocket -lnsl -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 -liconv
%
%
%
% pkg-config --cflags gtk+-2.0
-I/pkgs/gtk+-2.4.3/include/gtk-2.0
-I/pkgs/gtk+-2.4.3/lib/gtk-2.0/include -I/usr/local/include/atk-1.0
-I/pkgs/pango-1.4.0/include/pango-1.0 -I/pkgs/Xft-2.1.3/include
-I/pkgs/freetype-2.1.8/include/freetype2 -I/pkgs/freetype-2.1.8/include
-I/pkgs/xrender-0.8.3/include -I/pkgs/renderext-0.8/include
-I/usr/local/include -I/usr/openwin/include
-I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include
------------------------------------------------------------
%
% gcc -Wall -g example.c -o example `pkg-config --cflags --libs
gtk+-2.0`
% ./example
Illegal Instruction
---------------- gtk-config -------------------
% gtk-config --cflags
-I/usr/local/include/gtk-1.2 -I/usr/local/include/glib-1.2
-I/usr/local/lib/glib/include -I/usr/openwin/include
% gtk-config --libs
-L/usr/local/lib -L/usr/openwin/lib -R/usr/openwin/lib -lgtk -lgdk
-lgmodule -lglib -ldl -lXext -lX11 -lsocket -lnsl -lm
As mentioned earlier, I tried to debug and figured out that the
gtk_window_new() causes a bus error.
[ Post a follow-up to this message ]
|