在Ubuntu 9.10上搭建Maemo 5和Qt 4开发环境需要进行以下步骤:
sudo apt-get update
sudo apt-get upgrade
sudo echo "deb http://repository.maemo.org/extras-devel karmic free non-free" >> /etc/apt/sources.list
sudo echo "deb http://repository.maemo.org/extras-testing karmic free non-free" >> /etc/apt/sources.list
sudo echo "deb http://repository.maemo.org/extras karmic free non-free" >> /etc/apt/sources.list
sudo apt-get update
sudo apt-get install maemo-sdk
sudo apt-get install qt4-dev-tools
sudo apt-get install libqt4-dev libqt4-opengl-dev libqt4-network-dev libqt4-sql-dev libqt4-xmlpatterns-dev
sudo apt-get install libqt4-gui libqt4-core libqt4-svg libqt4-script libqt4-test
sudo nano ~/.bashrc
在文件末尾添加以下内容:
export PATH=/scratchbox/compilers/cs2005q3.2-glibc2.5-arm7/bin:$PATH
export PATH=$PATH:/scratchbox/devkits/qt/bin
保存并退出编辑器。
source ~/.bashrc
现在,你已经在Ubuntu 9.10上成功搭建了Maemo 5和Qt 4开发环境。你可以使用Maemo SDK和Qt开发工具来创建和编译Maemo 5和Qt 4应用程序。