Windows pkg-config, problem with generated path

Goth gniome at gmail.com
Thu Sep 27 04:33:08 PDT 2007


Hi,

I am working on a port of a linux/unix application called VLE [1] for
Windows. This application is a framework (a set of libraries, headers
and programs) in C++, cmake for builder, boost [2] and libxml++ [3]
for libraries dependencies. The libxml++ uses the pkgconfig system. To
simplify the development with this framework I have writen a
vle.pc.in:

prefix=@CMAKE_INSTALL_PREFIX@
exec_prefix=${prefix}
libdir=${exec_prefix}/@VLE_LIBRARY_DIR@
includedir=${prefix}/@VLE_INCLUDE_DIRS@

Name: vle
Description: VLE multimodelling and Simulation tools
Requires: libxml++-2.6
Version: @VLE_PACKAGE_VERSION@
Libs:	-L${libdir} -lvledata \
	-lvledevs -lvleextension -lvlegeometry -lvlegraph -lvlemanager \
	-lvleutils -lvleoov -lvlevalue -lvlevpz -lvletranslator
Cflags: -I${includedir}/@VLE_NAME_VERSION

If I install VLE in the mingw directory (or a directory without
space), the pkg-config works:

G:\Documents and Settings\Admin>pkg-config vle --cflags
-IG:/GTK/include/libxml++-2.6 -IG:/GTK/lib/libxml++-2.6/include -IG:/GTK/include
/glibmm-2.4 -IG:/GTK/lib/glibmm-2.4/include -IG:/GTK/include/libxml2 -IG:/GTK/in
clude/sigc++-2.0 -IG:/GTK/lib/sigc++-2.0/include -IG:/GTK/include/glib-2.0 -IG:/
GTK/lib/glib-2.0/include -IG:/MinGW/include/vle-0.5.0

If I install VLE in the program files (a normal windows path), the
generated path is bad (the vle.pc is installed in G:\program files\VLE
0.5\lib\pkgconfig [5]) :

G:\Documents and Settings\Admin>pkg-config vle --cflags
files/include/vle-0.5.0 -IG:/GTK/include/libxml++-2.6
-IG:/GTK/lib/libxml++-2.6/include -IG:/GTK/include /glibmm-2.4
-IG:/GTK/lib/glibmm-2.4/include -IG:/GTK/include/libxml2
-IG:/GTK/include/sigc++-2.0 -IG:/GTK/lib/sigc++-2.0/include
-IG:/GTK/include/glib-2.0 -IG:/
GTK/lib/glib-2.0/include -IG:/Program

I use the pkgconfig provided by the Gtk+ port [4] in version 0.20. 	
Is I use badly pkgconfig? Is pkgconfig versions 0.22 or 0.21 correct
this problem?

Regards,

Gauthier.


[1] http://vle.univ-littoral.fr/gitweb?p=vle.git;a=summary
[2] http://www.boost.org
[3] http://libxmlplusplus.sourceforge.net/
[4] http://gladewin32.sourceforge.net/modules/news/
[5] to benefit of the pkgconfig windows port possibility with
lib\pkgconfig directory


More information about the pkg-config mailing list