Scratchbox C++

(category and Diablo link)
 
Line 1: Line 1:
-
To develop C++ apps using the gtkmm libraries you need to add certain tools to your repository
+
To develop C++ apps using the gtkmm libraries with [[Open development/Maemo roadmap/Diablo|Diablo]] you need to add certain tools to your repository
First set up the MAEMO 4.1 SDK as described here:
First set up the MAEMO 4.1 SDK as described here:
Line 38: Line 38:
[[Category:Development]]
[[Category:Development]]
[[Category:Scratchbox]]
[[Category:Scratchbox]]
 +
[[Category:Diablo]]

Latest revision as of 11:30, 8 April 2010

To develop C++ apps using the gtkmm libraries with Diablo you need to add certain tools to your repository

First set up the MAEMO 4.1 SDK as described here:

 http://tablets-dev.nokia.com/4.1/INSTALL.txt

I only use the minimal rootstrap so I can use a proxy for my remaining downloads.

Enter the scratchbox.

You may want to use a proxy for your .deb downloads, I use apt-cacher:

 echo 'Acquire::http::Proxy "http://aptcache:3142";' > /etc/apt/apt.conf.d/05Local_proxy

Make sure you're up to date and then install the maemo sdk and debug symbols

 apt-get update
 fakeroot apt-get install maemo-sdk-debug


If you want the Nokia binaries then leave the scratchbox (or in another window)

 wget http://repository.maemo.org/stable/diablo/maemo-sdk-nokia-binaries_4.1.sh
 chmod +x maemo-sdk-nokia-binaries_4.1.sh
 ./maemo-sdk-nokia-binaries_4.1.sh 

Now, back in the scratchbox:

 echo "deb file:/YOUR HOME DIRECTORY/maemo-sdk-nokia-binaries_4.1 diablo explicit" > /etc/apt/sources.list.d/70nokia-closed.list
 echo "deb http://repository.maemo.org/extras diablo free non-free" > /etc/apt/sources.list.d/60diablo-extras.list
 apt-get update
 fakeroot apt-get install maemo-cplusplus-env


If you are doing a debian package and need gettext and friends to support internationalisation then:

 fakeroot apt-get install intltool

At this point you should be able to compile a gtkmm application.

Remember to do this for both the X86 and ARMEL boxes.