Scratchbox C++
m (de-hardcode directory) |
(category and Diablo link) |
||
(2 intermediate revisions not shown) | |||
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: | ||
- | http://tablets-dev.nokia.com/4.1/INSTALL.txt | + | |
+ | <nowiki>http://tablets-dev.nokia.com/4.1/INSTALL.txt</nowiki> | ||
I only use the minimal rootstrap so I can use a proxy for my remaining downloads. | I only use the minimal rootstrap so I can use a proxy for my remaining downloads. | ||
Line 9: | Line 10: | ||
You may want to use a proxy for your .deb downloads, I use apt-cacher: | 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 | + | <nowiki>echo 'Acquire::http::Proxy "http://aptcache:3142";' > /etc/apt/apt.conf.d/05Local_proxy</nowiki> |
Make sure you're up to date and then install the maemo sdk and debug symbols | Make sure you're up to date and then install the maemo sdk and debug symbols | ||
apt-get update | apt-get update | ||
fakeroot apt-get install maemo-sdk-debug | fakeroot apt-get install maemo-sdk-debug | ||
+ | |||
If you want the Nokia binaries then leave the scratchbox (or in another window) | 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 | + | wget <nowiki>http://repository.maemo.org/stable/diablo/maemo-sdk-nokia-binaries_4.1.sh</nowiki> |
chmod +x maemo-sdk-nokia-binaries_4.1.sh | chmod +x maemo-sdk-nokia-binaries_4.1.sh | ||
./maemo-sdk-nokia-binaries_4.1.sh | ./maemo-sdk-nokia-binaries_4.1.sh | ||
Line 22: | Line 24: | ||
Now, back in the scratchbox: | 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 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 | + | <nowiki>echo "deb http://repository.maemo.org/extras diablo free non-free" > /etc/apt/sources.list.d/60diablo-extras.list</nowiki> |
apt-get update | apt-get update | ||
fakeroot apt-get install maemo-cplusplus-env | fakeroot apt-get install maemo-cplusplus-env | ||
+ | |||
If you are doing a debian package and need gettext and friends to support internationalisation then: | If you are doing a debian package and need gettext and friends to support internationalisation then: | ||
Line 34: | Line 37: | ||
[[Category:Development]] | [[Category:Development]] | ||
+ | [[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.
- This page was last modified on 8 April 2010, at 11:30.
- This page has been accessed 8,168 times.