Re: [gtkmm] cannot find gtkmm.h

On Mon, 5 Jul 2004 05:07:47 -0400, John Taber <jtaber johntaber net> wrote:
> Still not working.  A few questions:
> 1) not sure what dpkg -S is (not listed in man dpkg) - what does this command
> do?

It just tells you what package a particular file is from (and it's
listed in man dpkg on my system, it's listed in the
'dpkg-query‐actions' section)

> 3) typed in your suggestion - here is the result
> root dell8000:/# dpkg -S /usr/lib/pkgconfig/gtkmm-2.4.pc
> libgtkmm-2.4-dev: /usr/lib/pkgconfig/gtkmm-2.4.pc
> libgtkmm-2.4-dev: /usr/lib/pkgconfig/gtkmm-2.4.pc
> dpkg: *libgtkmm-2.4-dev:* not found.
> libgtkmm-2.4-dev: /usr/lib/pkgconfig/gtkmm-2.4.pc
> root dell8000:/#

So, you clearly have relevant pkg-config file installed, so the
problem must be elsewhere...

> 5) here was my original error message
> sh-2.05b$ export LD_LIBRARY_PATH=/usr/local/lib/sbin/ldconfig sh-2.05b$ g++
> mainprogram.cpp -o mainprogram `pkg-config gtkmm-2.0 --cflags --libs`
> Package gtkmm-2.0 was not found in the pkg-config search path.
> Perhaps you should add the directory containing `gtkmm-2.0.pc'
> to the PKG_CONFIG_PATH environment variable
> No package 'gtkmm-2.0' found

And there it is. You're telling pkg-config to look up the details for
gtkmm-2.0, which, obviously, you don't have installed. Switch out
`pkg-config gtkmm-2.0 ...` for `pkg-config gtkmm-2.4...`, and it
should work like a charm.


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