For Programmers: Free Programming Magazines  


Home > Archive > Unix Programming > December 2004 > Re: need help with compiling with GTK+2.0 (updated)









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: need help with compiling with GTK+2.0 (updated)
Call me Stupid

2004-12-15, 3:59 pm

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.

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com