help regarding installation of pkg-config in Mingw on Windows

Dan Nicholson dbn.lists at gmail.com
Tue Apr 30 05:25:28 PDT 2013


On Mon, Apr 29, 2013 at 10:53 PM, Hardik Gohil
<hardikgohil1988 at gmail.com> wrote:
> Hello,
>
>         I am trying to build webkit-clutter using Mingw on windows,it is
> giving error
>
>           checking for GLIB - version >= 2.32.0... no
>           *** A new enough version of pkg-config was not found.
>           *** See http://www.freedesktop.org/software/pkgconfig/
>           configure: error: You need the GLib dev tools in your path
>
>           so i am installing pkg-config from source version 0.28,
>
>            with configure
>
>            ./configure --with-internal-glib but it is giving error
>
>
>
>
> #make V=1
> make  all-recursive
> make[1]: Entering directory `/home/system/webkit/pkg-config-0.28'
> Making all in .
> make[2]: Entering directory `/home/system/webkit/pkg-config-0.28'
> /bin/sh ./libtool  --tag=CC   --mode=link gcc -g -Wall -O2  -mms-bitfields
> -IC:/MinGW/msys/1.0/opt/emo2/include/glib-2.0
> -IC:/MinGW/msys/1.0/opt/emo2/lib/glib-2.0/include   -g -O2  -L
> /opt/emo2/lib -o pkg-config.exe pkg.o parse.o main.o
> -LC:/MinGW/msys/1.0/opt/emo2/lib -lglib-2.0 -lintl
> libtool: link: gcc -g -Wall -O2 -mms-bitfields
> -IC:/MinGW/msys/1.0/opt/emo2/include/glib-2.0
> -IC:/MinGW/msys/1.0/opt/emo2/lib/glib-2.0/include -g -O2 -o
> .libs/pkg-config.exe pkg.o par
> se.o main.o  -L/opt/emo2/lib -LC:/MinGW/msys/1.0/opt/emo2/lib
> /opt/emo2/lib/libglib-2.0.dll.a -lws2_32 -lole32 -lwinmm -lshlwapi
> /mingw/lib/libintl.dll.a /mingw/lib/libiconv.dll.a -mt
> hreads -L/opt/emo2/lib -L/mingw/lib
> pkg.o: In function `scan_dir':
> C:\MinGW\msys\1.0\home\system\webkit\pkg-config-0.28/pkg.c:160: undefined
> reference to `_imp__opendir'
> C:\MinGW\msys\1.0\home\system\webkit\pkg-config-0.28/pkg.c:173: undefined
> reference to `_imp__readdir'
> C:\MinGW\msys\1.0\home\system\webkit\pkg-config-0.28/pkg.c:216: undefined
> reference to `_imp__closedir'
> collect2.exe: error: ld returned 1 exit status
> make[2]: *** [pkg-config.exe] Error 1
> make[2]: Leaving directory `/home/system/webkit/pkg-config-0.28'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/system/webkit/pkg-config-0.28'
> make: *** [all] Error 2

Sorry, but I think this is a different error. The error before was in
the embedded glib, and this is a linking problem at the pkg-config
level. Could you start from a fresh build directory and then log the
build including the configure step? I want to see what the glib
configure says about dirent.h.

rm -rf pkg-config-0.28
tar -xf pkg-config-0.28.tar.gz
cd pkg-config-0.28
{ ./configure --with-internal-glib && make V=1; } 2>&1 | tee build.log

Then attach the resulting build.log.

--
Dan


More information about the pkg-config mailing list