RE: [gtk+-2.6.7] configure problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Xu Qiang wrote:
> Another problem in configuring gtk+-2.6.7 is:
> 
> -----------------------------------------------------------------
> gnome-config: not found
> configure: error: Xft Pango backend is required for x11 target
> -----------------------------------------------------------------
 
Even as I installed xft successfully (see below), this error message persists. Later, Google let me know that the correct compile/install order is Xft -> Pango -> Gtk+. Only in this order will Xft backend be compiled by Pango. I suddenly remembered that when I "./configure" in Pango src directory, in the end it told me "backend: Freetype X". So I went back to Pango src directory, and "make uninstall", "make distclean", then "./configure", "make", "make install" smoothly. At the end of "./configure", it told me "backend: Freetype X Xft", yes, that's it.

Now gtk+-2.6.7 has been compiled and installed successfully. 

Btw, ask an off-topic question: 

Most packages (like glib, gtk, etc) requires the use of GNU make, instead of inborn make. So I downloaded GNU make 3.80 and compiled, installed into /usr/local/bin. And to use it conveniently, I made a symbolic link "ln -s /usr/local/bin/make /usr/bin/gmake". But when I typed "gmake" in the package's src folder, it tolde me "gmake: Command not found". 

I "echo $PATH", just to confirm "/usr/bin" and "/usr/local/bin" are all in my working path. 

So why doesn't it work as expected?

In this case, I always compiled them with "/usr/local/bin/make" and "/usr/local/bin/make install". Too much trouble. 

Anyone can help me on this?

Thanks,
 
> So I went to download xft-2.1.2.tar.gz, and tried to compile it.
> "./configure" has no problem. But "make" led to errors: 
> 
> -----------------------------------------------------------------
> In file included from Xft.h:41,
>                  from xftint.h:39,
>                  from xftcolor.c:25:
> /usr/local/include/freetype2/freetype/freetype.h:20:2: #error
> "`ft2build.h' hasn't been included yet!"
> /usr/local/include/freetype2/freetype/freetype.h:21:2: #error "Please
> always use macros to include FreeType header files."
> /usr/local/include/freetype2/freetype/freetype.h:22:2: #error
> "Example:" /usr/local/include/freetype2/freetype/freetype.h:23:2:
> #error "  #include <ft2build.h>"
> /usr/local/include/freetype2/freetype/freetype.h:24:2: #error " 
> #include FT_FREETYPE_H" *** Error code 1   
> 
> Stop in /usr/src/xft-2.1.2.
> *** Error code 1
> 
> Stop in /usr/src/xft-2.1.2.
> -----------------------------------------------------------------

The problem of xft installation has been overcomed by modifying "Xft.h" according to http://cvsweb.xfree86.org/cvsweb/xc/lib/Xft/Xft.h.diff?r1=1.32&r2=1.33. 

In short, just as the error message implies: replace the line "#include <freetype/freetype.h>" with the following two lines: 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
#include <ft2build.h>
#include FT_FREETYPE_H
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

Now xft 2.1.2 can be compiled and installed.

Regards,
Xu Qiang


_______________________________________________

gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list


[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux