Build the Maemo5 and Qt4 development environments on Ubuntu9.10

Source: Internet
Author: User
Maemo is an embedded release of Linux that supports the ARM architecture. Its development environment is naturally Desktop Linux. Maemo uses the Debian package management system, so it is best to build a Development Environment On Debian or Ubuntu (currently supports both X86 and ARM architectures ). To simplify development, Scratchbox is recommended as a sandbox. This software can be used in a virtual Maemo environment for debugging and provides good cross-platform compilation support. If you do not have a Linux environment

Maemo is an embedded release of Linux that supports the ARM architecture. Its development environment is naturally Desktop Linux. Maemo uses the Debian package management system, so it is best to build a Development Environment On Debian or Ubuntu (currently supports both X86 and ARM architectures ). To simplify development, Scratchbox is recommended as a sandbox. This software can be used in a virtual Maemo environment for debugging and provides good cross-platform compilation support. If you do not have a Linux environment, download the image provided by Nokia and use it on VMPlayer.

Note that Scratchbox requires the kernel to provide binfmt_misc support. This item is usually compiled into a module. You can run the command lsmod | grep binfmt to check whether this module is currently loaded, or check the/proc/sys/fs/binfmt_misc/status file to determine whether this function is supported. In addition, if you are AMD64 (x86_64) architecture, you also need to install ia32-libs to provide support for 32-bit libraries. In addition, Scratchbox conflicts with the VDSO features of the Linux kernel and needs to be disabled as described here.


Start installation now. First download the installation script and add the execution permission:
Wget-c http://repository.maemo.org/stable/5.0/maemo-scratchbox-install_5.0.sh http://repository.maemo.org/stable/5.0/maemo-sdk-install_5.0.sh
Chmod a + x./maemo-scratchbox-install_5.0.sh./maemo-sdk-install_5.0.sh

Then install Scratchbox. For the AMD64 system, run the following command:
Sudo./maemo-scratchbox-install_5.0.sh-F-u $ USER
If it is an i386 system, run the following command:
Sudo./maemo-scratchbox-install_5.0.sh-u $ USER

The installation script automatically downloads the required installer and installs it.

Next, install the Maemo SDK:
Newgrp sbox
/Maemo-sdk-install_5.0.sh

After accepting the protocol and selecting the package to be installed, the script automatically downloads and installs the required package. After the installation is complete, you can log on to the Scratchbox environment:
/Scratchbox/login

Finally, install the private Binary Package provided by Nokia. Accept the EULA and add the repository entry to the/etc/apt/sources. list file in the Scratchbox environment. Run the following command to install it:
Sb-conf select FREMANTLE_ARMEL
Vi/etc/apt/sources. list # add repository entry
Apt-get update
Fakeroot apt-get install nokia-binaries nokia-apps
Sb-conf select FREMANTLE_X86
Vi/etc/apt/sources. list # add repository entry
Apt-get update
Fakeroot apt-get install nokia-binaries nokia-apps

OK. Now we can develop and test it in Scratchbox.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.