[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: Problem in compiling pango 1.2.1
- From: Harring Figueiredo <harringf yahoo com>
- To: Yathi <yathiraj vasnet co in>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: Problem in compiling pango 1.2.1
- Date: Tue, 1 Apr 2003 10:39:16 -0800 (PST)
It's a known fact that Gtk 1.2 can coexiste with Gtk 2.0 -- I am not sure if
the problem you are having now has anything to do with the fact that you
deleted the header files. I think that now you have the libs on the
LD_LIBRARY_PATH from 2.2 and they might be being picked up by the apps using
gtk1.2 ( Unset the LD_LIBRARY_PATH and rerun the app that is having problem
and see if it has any effect on that.)
You shouldn't have deleted the header files. If it was failing due to
compilation error, it is likely that you did not export PKG_CONFIG_PATH to
point to the "new" version of Gtk. If that was set correctly, when you compiled
any program , the gtk1.2 header files would not even been seen by the compiler.
You should reintall 1.2 or recover the header files just in case.
I am condtantly upgrading Gtk as soon as a new release is out, and - to avoid
headaches- here is what I do:
1) ALWAYS intall on the /opt directory: ( or some other dir other than
/usr/local or /usr
i.e : /opt/gtk2_2_1
2) After I install glib on the dir of my choosing, I cd to that dir and do
export PATH=/opt/gtk2_2_1/bin/:$PATH
export LD_LIBRARY_PATH=/opt/gtk2_2_1/lib/:$LD_LIBRARY_PATH
export PKG_CONFIG_PATH=/opt/gtk2_2_1/lib/pkgconfig:$PKG_CONFIG_PATH
Optionally, I add that to my .bashrc with a "Warning" message. Something
like:
echo "WARNING: Using gtk libs and binaries from /opt/gtk2_2_1"
so that everytime I log in, I know that my lib and path have been modified.
3) Install the rest of the pkg (.ie. atk, pango, gtk, etc.).
After that, when I run an application that crashes, I can always unset PATH,
LD_LIBRARY_PATH and rerun the app. If does crash again, I know it has nothing
to do with the fact that I am using a diffrent version of GTK. If it does not
crash, It is likely that the app is getting some library conflicts with the new
GTK.And I tkae from there.
This way, it keeps things clean and I know exactly what I added versus what
was on the system when I installed. Later on, when I want to install a newer
version of GTK, I know it is safe to do a "rm -rf /opt/gtk2_2_1 without messing
up my machine."
This is also the reason I do NOT use package managers as some of them have a
mind of their on !!! (SOrry.. just got carried away :P)
HArring.
Harring.
--- Yathi <yathiraj@vasnet.co.in> wrote:
> Finally I figured out the problem why it gave the error. I t was because I
> was
> suppose to delete glib.h and gmodule.h from the <prefix>/include/gtk+-2.0
> (correct me if I am wrong).
>
> Now I have a very strange problem. Most of the gnome apps like
> gnome-search-tool and theme selectors fail by giving the following errors:
>
***********************************************************************************
> GLib-GObject-WARNING **: cannot create instance of abstract
> (non-instantiatable) type `GtkWidget'
>
************************************************************************************
> I think I messed up with the the files of <prefix>/include/gtk+-1.2. Is it
> because of that. If so please help me.
>
> Thank you
>
> Regards
> Yathi
>
>
>
> On Tuesday 01 Apr 2003 2:59 am, you wrote:
> > Add the new libs to the LD_LIBRARY_PATH. Make sure they are the first ones
> > on the path.
> >
> > LD_LIBRARY_PATH=<new_intall_dir>/lib:$LD_LIBRARY_PATH
> >
> > That WILL fix the problem
> >
> > Good luck.
> >
> > Harring
> >
> > > I downloaded gtk+2.2 and I successfully compiled
> > > atk-1.2.0glib-2.2.1. After that when I trie to compile pango-1.2.1 the
> > > configure script gave the following error
> >
> > ***************************************************************************
> >*****
> >
> > > *** 'pkg-config --modversion glib-2.0' returned 2.2.1, but GLIB (2.0.6)
> > > *** was found! If pkg-config was correct, then it is best
> > > *** to remove the old version of GLib. You may also be able to fix the
> > > error *** by modifying your LD_LIBRARY_PATH enviroment variable, or by
> > > editing *** /etc/ld.so.conf. Make sure you have run ldconfig if that is
> > > *** required on your system.
> > > *** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH
> > > *** to point to the correct configuration files
> > > no
> > > configure: error:
> > > *** Glib 2.1.3 or better is required. The latest version of
> > > *** Glib is always available from ftp://ftp.gtk.org/
> >
> > ***************************************************************************
> >***********
> >
> > > Please help me
> > > Thanks in advance
> > >
> > > Regards
> > > Yathi
> > > ####[ Linux One Stanza Tip (LOST) ]###########################
> > >
> > > Sub : Dependent libraries for a binary LOST #065
> > >
> > > The easiest way to check out as to which libraries a binary is
> > > dependent, try: $ldd binary-file
> > >
> > > Example: $ldd /bin/ls
> > > libc.so.6 => /lib/libc.so.6 (0x40018000)
> > > /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
> > >
> > > ####<bish@nde.vsnl.net.in>####################################
> > >
> > > _______________________________________________
> ####[ GNU/Linux One Stanza Tip (LOST) ]#######################
>
> Sub : Capturing screen output under X [#2] LOST #312
>
> If you have gimp installed, one of the easiest methods is:
> Go to File -> Aquire-> screenshot
>
> ####<yash@delhicall.com>######################################
>
__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - File online, calculators, forms, and more
http://platinum.yahoo.com
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]