在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應用程序。