PDA

View Full Version : Scratchbox/Maemo n00b help please


walts
02-05-2008, 04:59 PM
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/maemo_4_0/v172_corehtml.html and the "Hello World" compilation instructions include the command
`pkg-config --cflags gtk+-2.0` -o helloworld
which returns
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

spirytsick
02-05-2008, 05:21 PM
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
02-05-2008, 05:41 PM
- did you install the chinook environment?

- IOW, which version?

bradbobak
02-05-2008, 06:24 PM
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.)

shaunhey
02-05-2008, 08:45 PM
libgtk2.0-dev?

walts
02-06-2008, 08:55 AM
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