Re: Pkg-config

Hello all,

I need to resurrect this old thread, I managed to get around this by
changing each instance of /target/ to C:\gtk in the .pc files, I have since
installed new versions of the GTK+ and GTKmm devel installers, and they
appear to suffer from the same problems.

I checked as you suggested for pkg-config binaries, and the only one I could
find was in C:\GTK\bin - that must be the one I just installed.

I did have Cygwin on this machine ages ago, but I uninstalled it - I don't
know if there is any way besides pkg-config that the old install could still
be conflicting.

Any other ideas lads?



>Cedric Gustin
>Wed, 15 Jun 2005 07:02:04 -0700
>Foster, Gareth wrote:
>> 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"\"
>> -O2 -MT main.o -MD -MP -MF ".deps/main.Tpo" \
>>   -c -o main.o `test -f '' || echo './'`; \
>> 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
>> gtkmm/window.h: No such file or directory
>> gtkmm/button.h: No such file or directory
>> Shouldn't the .pc file be listing c:\gtk\something or other, where it
>> /target ?
>Yes, it should. Probably you're calling a third party (cygwin ?)
>pkg-config instead of the executable provided with the GTK+
>distribution. Alternatively, you chose two different installation
>directories for GTK+ and gtkmm. In this case, you have to explicitly set
>the PKG_CONFIG_PATH environment variable, something like

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