Re: need help with compiling with GTK+2.0 (updated)
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Free Unix support > Unix Programming > Re: need help with compiling with GTK+2.0 (updated)




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

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


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
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 ]



    Sponsored Links  




 





   All times are GMT. The time now is 01:01 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register