Hello
I am trying to install gtk and after installing fontconfig,pkg-config,glib,pango,atk (in that order)i tried installing gtk but it said pango along with cario package is required. So now when i complied cario and then do a "make" for pango it gives the following error
cairosimple.o(.text+0x1e0): In function `main':
/home/shalabh/gtk1/pango/examples/cairosimple.c:82: undefined reference to `cairo_surface_write_to_png'
collect2: ld returned 1 exit status
make[2]: *** [cairosimple] Error 1
[...]
can anyone please help me. btw i am doing ./configure,make and make install to install the packages.
I would really appreciate any help..i am trying to install gtk for the past 4 days now!
Thank you
Quite probably gcc cannot locate the cairo library files installed. If your library files are not installed in some standard location (you may see /etc/ld.so.conf for a list) then you may need to specify the LD_LIBRARY_PATH shell variable before starting the make.
Also you can try is to do a "make distclean" to put the gtk tree back to the initial state, specify LD_LIBRARY_PATH and export it, then rerun configure and make again.
A few weeks ago I installed a GTK2 installation to learn GTK programming in a likewise fashion without problems. The libraries were installed somewhere in my home directory as there is already a systemwide GTK2 installation in Fedora and I didn't want to mess it up. I had to remember to use the LD_LIBRARY_PATH to put my custom installation at a higher search priority thereafter when I want to compile.
thank you for the reply
I tht maybe I could solve it by installing libpng and zlib
but after i installed them, my display server is not working on reboot..it keeps trying but fails..please help
thank you