Pkg-config



I am attempting to build some gtkmm stuff on mingw, the .pc file is as
follows:

---- gtkmm-2.4.pc ----
"
prefix=/target
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include

Name: gtkmm
Description: C++ wrapper for GTK+
Requires: glibmm-2.4 gdkmm-2.4 pangomm-1.4 atkmm-1.6 gtk+-2.0
Version: 2.4.8
Libs: -L${libdir} -lgtkmm-2.4
Cflags: -I${includedir}/gtkmm-2.4 -I${libdir}/gtkmm-2.4/include
"

Which leads to the following:

if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/target/include/gtkmm-2.4
-I/target/lib/gtkmm-2.4/include -I/target/include/glibmm-2.4
-I/target/lib/glibmm-2.4/include -I/target/include/gdkmm-2.4
-I/target/lib/gdkmm-2.4/include -I/target/include/pangomm-1.4
-I/target/include/atkmm-1.6 -I/target/include/gtk-2.0
-I/target/include/sigc++-2.0 -I/target/lib/sigc++-2.0/include
-I/target/include/glib-2.0 -I/target/lib/glib-2.0/include
-I/target/lib/gtk-2.0/include -I/target/include/pango-1.0
-I/target/include/atk-1.0   -DLOCALEDIR=\""/usr/local/share/locale"\"    -g
-O2 -MT main.o -MD -MP -MF ".deps/main.Tpo" \
  -c -o main.o `test -f 'main.cc' || echo './'`main.cc; \
then mv ".deps/main.Tpo" ".deps/main.Po"; \
else rm -f ".deps/main.Tpo"; exit 1; \

Which leads to the following:

In file included from main.cc:10:
main.cc:13:26: gtkmm/window.h: No such file or directory
main.cc:14:26: gtkmm/button.h: No such file or directory

Shouldn't the .pc file be listing c:\gtk\something or other, where it says
/target ?

Gaz


**********************************************
* http      -   http://planetearthworm.com/  *
* mail home -  earthworm planetearthworm com *
* mail work -    gareth foster siemens com   *
**********************************************



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