2011年3月25日 星期五

Install necessitas

上次介紹necessitas

Qt on Android - getting started



安裝步驟

1. install qt-creator

chmod +x qt-creator-linux-x86-opensource-2.1.0.bin

./qt-creator-linux-x86-opensource-2.1.0.bin

About 10 mins for waiting installation completely.

2. install sdk

tar zxvf android-sdk_r10-linux_x86.tgz

download sdk


3. install ndk

tar jxvf android-ndk-r5b-linux-x86.tar.bz2

4. install necessitas

chmod +x necessitas-0.1.1-Linux-x86-Install

sudo ./necessitas-0.1.1-Linux-x86-Install

About 10 mins for waiting installation completely.


設定

執行necessitas(or . runnecessitas.sh)
runnecessitas.sh的內容如下
cd /opt/necessitas/QtCreator/bin/
./necessitas


到Tools -> Options -> Android

設定

SDK, NDK, NDK toolchain and ant path

再到

Tools -> Options -> Qt4

新增(qmake)

/opt/necessitas/Android/4.7.60/bin/qmake

press ok button.

接下來你可以試著run qt application.


透過Facebook分享

沒有留言: