I couldn't help noticing that Gtk reported:
configure: error: Package requirements (glib-2.0 >= 2.35.3 ...
but, to satisfy Atk, you appear to have installed glib-2.34.0!
I have also found it necessary to set both LD_LIBRARY_PATH and
PKG_CONFIG_PATH.
When using autogen.sh I have also found that some packages need
ACLOCAL_PATH or something equivalent in ACLOCAL_FLAGS. For the tarball
release, configure is (surely) supplied so I would advise not attempting
to regenerate it - that being the point of autogen.sh.
For building Gtk and various supporting packages from Git source (where
autogen.sh must be used) I use the attached script. This extracts
whatever HEAD points to in each Git repo and builds in a temporary
location, accumulating the required environment variables. The script
is intended to be stepped through one block at a time as it doesn't
really have any fault handling. Given the way it works, it may be
useful/instructive even if not building from tarballs. (Of course, any
feedback would be welcome!)
14/09/13 04:19, Fan Chun-wei wrote:
於 2013/9/14 上午 02:28, Mack J. Jenkins 提到:
checking for GLIB - version >= 2.31.2... no
configure: error:
*** GLIB 2.31.2 or better is required. The latest version of
*** GLIB is always available from ftp://ftp.gtk.org/. If GLIB is
installed
*** but not in the same location as pkg-config add the location of the
file
*** glib-2.0.pc to the environment variable PKG_CONFIG_PATH.
Hi Mack,
I might not be the best one to answer this, but this is what I normally
do when I package tarballs under Linux to be able to test the code in
Windows:
-set the LD_LIBRARY_PATH to where you installed your own GLib build
.so's, such as: export
LD_LIBRARY_PATH=/opt/gnome.build.unstable/lib:/opt/gnome.build.unstable/lib64:$LD_LIBRARY_PATH
-set the PKG_CONFIG_PATH to where you installed your own GLib build .pc
files, such as: export
PKG_CONFIG_PATH=/opt/gnome.build.unstable/lib/pkgconfig:/opt/gnome.build.unstable/lib64/pkgconfig:$PKG_CONFIG_PATH
-Then attempt to do the autogen.sh/configure -> make -> make install
dance one by one.
It probably depends on your distro whether it uses a */lib64/ for 64-bit
installations of the code you build (it does so on Fedora 18/19, for at
least harfbuzz which is required for Pango on Linux).
Hope this may be of help.
With blessings.
_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
https://mail.gnome.org/mailman/listinfo/gtk-list
# For building GTK and some supporting packages from Git repos
# Phil Clayton <phil.clayton@xxxxxxxxxxx>
#
# NOTE
# Requires automake >= 1.11.3 for support for ACLOCAL_PATH environment variable
#
# Git repo directories
REPOROOT=~/git
GLIB=glib
GOBJECTINTROSPECTION=gobject-introspection
PIXMAN=pixman
CAIRO=cairo
FONTCONFIG=fontconfig
HARFBUZZ=harfbuzz
PANGO=pango
GDKPIXBUF=gdk-pixbuf
ATK=atk
ATSPI=at-spi2-core
ATKBRIDGE=at-spi2-atk
GTK=gtk+
# Installation directories
INSTALLROOT=/tmp
GLIBHOME=${INSTALLROOT}/${GLIB}-test
GOBJECTINTROSPECTIONHOME=${INSTALLROOT}/${GOBJECTINTROSPECTION}-test
PIXMANHOME=${INSTALLROOT}/${PIXMAN}-test
CAIROHOME=${INSTALLROOT}/${CAIRO}-test
FONTCONFIGHOME=${INSTALLROOT}/${FONTCONFIG}-test
HARFBUZZHOME=${INSTALLROOT}/${HARFBUZZ}-test
PANGOHOME=${INSTALLROOT}/${PANGO}-test
GDKPIXBUFHOME=${INSTALLROOT}/${GDKPIXBUF}-test
ATKHOME=${INSTALLROOT}/${ATK}-test
ATSPIHOME=${INSTALLROOT}/${ATSPI}-test
ATKBRIDGEHOME=${INSTALLROOT}/${ATKBRIDGE}-test
GTKHOME=${INSTALLROOT}/${GTK}-test
# Build directories
BUILDROOT=/tmp
# Export source from Git repositories
#
# **** Required verion must be checked out in Git repository ****
pushd .
for i in ${GLIB} ${GOBJECTINTROSPECTION} ${PIXMAN} ${CAIRO} ${FONTCONFIG} ${HARFBUZZ} ${PANGO} ${GDKPIXBUF} ${ATSPI} ${ATK} ${ATKBRIDGE} ${GTK}
do
mkdir ${BUILDROOT}/${i}
cd ${REPOROOT}/${i}
git archive HEAD | tar -x -C ${BUILDROOT}/${i}
done
popd
export ACLOCAL_PATH=/usr/share/aclocal
export PKG_CONFIG_PATH
export LD_LIBRARY_PATH
# glib
#
# "--enable-debug=yes --disable-visibility --disable-Bsymbolic" for refdbg tool
cd ${BUILDROOT}/${GLIB} && \
./autogen.sh --prefix ${GLIBHOME} --enable-gtk-doc --enable-debug=yes --disable-visibility --disable-Bsymbolic && \
make && \
make install
PATH=${GLIBHOME}/bin:${PATH}
ACLOCAL_PATH=${GLIBHOME}/share/aclocal:${ACLOCAL_PATH}
PKG_CONFIG_PATH=${GLIBHOME}/lib/pkgconfig:${PKG_CONFIG_PATH}
LD_LIBRARY_PATH=${GLIBHOME}/lib:${LD_LIBRARY_PATH}
# gobject-introspection
cd ${BUILDROOT}/${GOBJECTINTROSPECTION} && \
./autogen.sh --prefix ${GOBJECTINTROSPECTIONHOME} --enable-gtk-doc && \
make && \
make install
PATH=${GOBJECTINTROSPECTIONHOME}/bin:${PATH}
ACLOCAL_PATH=${GOBJECTINTROSPECTIONHOME}/share/aclocal:${ACLOCAL_PATH}
PKG_CONFIG_PATH=${GOBJECTINTROSPECTIONHOME}/lib/pkgconfig:${PKG_CONFIG_PATH}
LD_LIBRARY_PATH=${GOBJECTINTROSPECTIONHOME}/lib:${LD_LIBRARY_PATH}
# pixman
cd ${BUILDROOT}/${PIXMAN} && \
./autogen.sh --prefix ${PIXMANHOME} && \
make && \
make install
PATH=${PIXMANHOME}/bin:${PATH}
ACLOCAL_PATH=${ACLOCAL_PATH}
PKG_CONFIG_PATH=${PIXMANHOME}/lib/pkgconfig:${PKG_CONFIG_PATH}
LD_LIBRARY_PATH=${PIXMANHOME}/lib:${LD_LIBRARY_PATH}
# cairo
cd ${BUILDROOT}/${CAIRO} && \
./autogen.sh --prefix ${CAIROHOME} --enable-gtk-doc && \
make && \
make install
PATH=${CAIROHOME}/bin:${PATH}
ACLOCAL_PATH=${ACLOCAL_PATH}
PKG_CONFIG_PATH=${CAIROHOME}/lib/pkgconfig:${PKG_CONFIG_PATH}
LD_LIBRARY_PATH=${CAIROHOME}/lib:${LD_LIBRARY_PATH}
# fontconfig
cd ${BUILDROOT}/${FONTCONFIG} && \
./autogen.sh --prefix ${FONTCONFIGHOME} && \
make && \
make install
PATH=${FONTCONFIGHOME}/bin:${PATH}
ACLOCAL_PATH=${ACLOCAL_PATH}
PKG_CONFIG_PATH=${FONTCONFIGHOME}/lib/pkgconfig:${PKG_CONFIG_PATH}
LD_LIBRARY_PATH=${FONTCONFIGHOME}/lib:${LD_LIBRARY_PATH}
# harfbuzz
cd ${BUILDROOT}/${HARFBUZZ} && \
./autogen.sh --prefix ${HARFBUZZHOME} --enable-gtk-doc && \
make && \
make install
PATH=${HARFBUZZHOME}/bin:${PATH}
ACLOCAL_PATH=${ACLOCAL_PATH}
PKG_CONFIG_PATH=${HARFBUZZHOME}/lib/pkgconfig:${PKG_CONFIG_PATH}
LD_LIBRARY_PATH=${HARFBUZZHOME}/lib:${LD_LIBRARY_PATH}
# pango
cd ${BUILDROOT}/${PANGO} && \
./autogen.sh --prefix ${PANGOHOME} --enable-introspection=yes --enable-gtk-doc && \
make && \
make install
PATH=${PANGOHOME}/bin:${PATH}
ACLOCAL_PATH=${ACLOCAL_PATH}
PKG_CONFIG_PATH=${PANGOHOME}/lib/pkgconfig:${PKG_CONFIG_PATH}
LD_LIBRARY_PATH=${PANGOHOME}/lib:${LD_LIBRARY_PATH}
# gdk-pixbuf
cd ${BUILDROOT}/${GDKPIXBUF} && \
./autogen.sh --prefix ${GDKPIXBUFHOME} --enable-introspection=yes --enable-gtk-doc && \
make && \
make install
PATH=${GDKPIXBUFHOME}/bin:${PATH}
ACLOCAL_PATH=${ACLOCAL_PATH}
PKG_CONFIG_PATH=${GDKPIXBUFHOME}/lib/pkgconfig:${PKG_CONFIG_PATH}
LD_LIBRARY_PATH=${GDKPIXBUFHOME}/lib:${LD_LIBRARY_PATH}
# at-spi2-core
cd ${BUILDROOT}/${ATSPI} && \
ACLOCAL_FLAGS=`echo ${ACLOCAL_PATH} | awk -F ":" -v ORS=" " -e "{ for (n = 1; n <= NF; n++) { print \"-I\", \\$n; } }"` \
./autogen.sh --prefix ${ATSPIHOME} && \
make && \
make install
PATH=${ATSPIHOME}/bin:${PATH}
ACLOCAL_PATH=${ACLOCAL_PATH}
PKG_CONFIG_PATH=${ATSPIHOME}/lib/pkgconfig:${PKG_CONFIG_PATH}
LD_LIBRARY_PATH=${ATSPIHOME}/lib:${LD_LIBRARY_PATH}
# atk
cd ${BUILDROOT}/${ATK} && \
ACLOCAL_FLAGS=`echo ${ACLOCAL_PATH} | awk -F ":" -v ORS=" " -e "{ for (n = 1; n <= NF; n++) { print \"-I\", \\$n; } }"` \
./autogen.sh --prefix ${ATKHOME} --enable-introspection=yes --enable-gtk-doc && \
make && \
make install
PATH=${ATKHOME}/bin:${PATH}
ACLOCAL_PATH=${ACLOCAL_PATH}
PKG_CONFIG_PATH=${ATKHOME}/lib/pkgconfig:${PKG_CONFIG_PATH}
LD_LIBRARY_PATH=${ATKHOME}/lib:${LD_LIBRARY_PATH}
# atk-bridge
cd ${BUILDROOT}/${ATKBRIDGE} && \
ACLOCAL_FLAGS=`echo ${ACLOCAL_PATH} | awk -F ":" -v ORS=" " -e "{ for (n = 1; n <= NF; n++) { print \"-I\", \\$n; } }"` \
./autogen.sh --prefix ${ATKBRIDGEHOME} && \
make && \
make install
PATH=${ATKBRIDGEHOME}/bin:${PATH}
ACLOCAL_PATH=${ACLOCAL_PATH}
PKG_CONFIG_PATH=${ATKBRIDGEHOME}/lib/pkgconfig:${PKG_CONFIG_PATH}
LD_LIBRARY_PATH=${ATKBRIDGEHOME}/lib:${LD_LIBRARY_PATH}
# gtk+
cd ${BUILDROOT}/${GTK} && \
./autogen.sh --prefix ${GTKHOME} --enable-x11-backend=yes --enable-introspection=yes --enable-gtk-doc && \
make && \
make install
PATH=${GTKHOME}/bin:${PATH}
ACLOCAL_PATH=${GTKHOME}/share/aclocal:${ACLOCAL_PATH}
PKG_CONFIG_PATH=${GTKHOME}/lib/pkgconfig:${PKG_CONFIG_PATH}
LD_LIBRARY_PATH=${GTKHOME}/lib:${LD_LIBRARY_PATH}
# vte
VTE=vte
VTEHOME=${INSTALLROOT}/${VTE}-test
# Export source from Git repositories
#
# **** Required verion must be checked out in Git repository ****
pushd .
mkdir ${BUILDROOT}/${VTE}
cd ${REPOROOT}/${VTE}
git archive HEAD | tar -x -C ${BUILDROOT}/${VTE}
popd
cd ${BUILDROOT}/${VTE} && \
ACLOCAL_FLAGS=`echo ${ACLOCAL_PATH} | awk -F ":" -v ORS=" " -e "{ for (n = 1; n <= NF; n++) { print \"-I\", \\$n; } }"` \
./autogen.sh --prefix ${VTEHOME} --enable-introspection=yes --enable-gtk-doc && \
make && \
make install
PATH=${VTEHOME}/bin:${PATH}
ACLOCAL_PATH=${ACLOCAL_PATH}
PKG_CONFIG_PATH=${VTEHOME}/lib/pkgconfig:${PKG_CONFIG_PATH}
LD_LIBRARY_PATH=${VTEHOME}/lib:${LD_LIBRARY_PATH}
export GI_TYPELIB_PATH
GI_TYPELIB_PATH=/usr/lib64/girepository-1.0
GI_TYPELIB_PATH=${GOBJECTINTROSPECTIONHOME}/lib/girepository-1.0:${GI_TYPELIB_PATH}
GI_TYPELIB_PATH=${PANGOHOME}/lib/girepository-1.0:${GI_TYPELIB_PATH}
GI_TYPELIB_PATH=${GDKPIXBUFHOME}/lib/girepository-1.0:${GI_TYPELIB_PATH}
GI_TYPELIB_PATH=${ATKHOME}/lib/girepository-1.0:${GI_TYPELIB_PATH}
GI_TYPELIB_PATH=${GTKHOME}/lib/girepository-1.0:${GI_TYPELIB_PATH}
GI_TYPELIB_PATH=${VTEHOME}/lib/girepository-1.0:${GI_TYPELIB_PATH}
_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
https://mail.gnome.org/mailman/listinfo/gtk-list