Active Topics

 


Reply
Thread Tools
Posts: 60 | Thanked: 7 times | Joined on Jan 2008
#1
I've just installed Scratchbook and the Maemo SDK on a brand-new Debian box. It's quite a change from Visual Studio!

Anyway, I'm working through the tutorial at http://www.forum.nokia.com/document/..._corehtml.html and the "Hello World" compilation instructions include the command
Code:
`pkg-config --cflags gtk+-2.0` -o helloworld
which returns
Code:
bash: -I/usr/include/gtk-2.0: No such file or directory
I've searched the Debian site for a gtk installation but can't find anything thal looks reasonable to install.

Help would be welcome!

Walt
 
Posts: 151 | Thanked: 14 times | Joined on Dec 2007
#2
issue apt-cache search gtk-2.0 and look for the relevant packages. You would need to make sure that all gtk-2.0 packages with the -dev bit at the end are installed as they have the include files. you install with apt-get install <packagename>
 
linux_author's Avatar
Posts: 282 | Thanked: 69 times | Joined on Dec 2007 @ Penniless Park, Fla.
#3
- did you install the chinook environment?

- IOW, which version?
 
Posts: 4 | Thanked: 0 times | Joined on Feb 2008
#4
I think you are missing the 'gcc ...' command before the `pkg-config`.. all pkg_config does is return a string with gcc options.
(i.e. the gcc `pkg_config...` should be on the same line.)
 
Posts: 13 | Thanked: 0 times | Joined on Jan 2008
#5
libgtk2.0-dev?
 
Posts: 60 | Thanked: 7 times | Joined on Jan 2008
#6
Thanks everyone for the response. This was my stupidity.
The `pkg-conf...` stuff were arguments to the gcc command line. In the tutorial, the way they are word-wrapped, it looked like three seperate command lines, but they really are one. It took a night's sleep and a fresh cup of coffee in the morning to get me to see that!

Sorry for the confusion and thanks for the help!

Walt
 
Reply


 
Forum Jump


All times are GMT. The time now is 09:33.