Re: [gtkmm] cannot find gtkmm.h

On Monday 05 July 2004 11:15 am, you wrote:
>> You probably just need to install the -dev packages:
> [root harmakhis]# dpkg -S /usr/lib/pkgconfig/gtkmm-2.4.pc
> libgtkmm-2.4-dev: /usr/lib/pkgconfig/gtkmm-2.4.pc

Still not working.  A few questions:
1) not sure what dpkg -S is (not listed in man dpkg) - what does this command 
2) I had already installed libgtkmm-dev earlier but even reinstalled.
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:/#

4) I searched around but couldn't find where gtkmm is located to check for 
gtkmm-2.4-dev - where should it be?

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
mainprogram.cpp:1:24: gtkmm/main.h: No such file or directory
mainprogram.cpp:2:25: logindialog.h: No such file or directory
mainprogram.cpp: In function `int main(int, char**)':
mainprogram.cpp:5: error: `Gtk' undeclared (first use this function)
mainprogram.cpp:5: error: (Each undeclared identifier is reported only once 
   each function it appears in.)
mainprogram.cpp:5: error: parse error before `::' token
mainprogram.cpp:6: error: `LoginDialog' undeclared (first use this function)
mainprogram.cpp:9:2: warning: no newline at end of file

John Taber, 

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