顯示具有 QT 標籤的文章。 顯示所有文章
顯示具有 QT 標籤的文章。 顯示所有文章

2011年3月30日 星期三

Run Animatedtiles (qt examples) to android

繼

Run Qt examples fail on android

Ministro

Run Qt examples - Animatetiles on android

build qt examples - animatedtiles fail (Need to install g++)


四篇文章

得知之前失敗是因為網路的關係導致lib無法下載成功到正確的位置

Ministro就這樣被設計出來

是用來check QT ap需要哪些qt lib for android然後替你下載

如果你網路有問題(跟我一樣)

你可以上官網下載






或者從此處下載

將lib放到/data/data/eu.licentia.necessitas.ministro/files/qt/lib

這邊有我編譯好的Animatedtiles 以及官網提供的Ministro


使用adb install安裝

去執行Animatedtiles

就ok嚕


適用於Android 2.2 (SDK 8)

透過Facebook分享

2011年3月28日 星期一

build qt examples - animatedtiles fail (Need to install g++)

Following

Qt version path error ( you need to install qt sdk )



I got qt example and try to build animatedtiles examples.

But got following error.

make: g++: Command not found
make: *** [main.o] Error 127
The process "/usr/bin/make" exited with code %2.

I think I don't install develop tools on this new machine.


透過Facebook分享

2011年3月27日 星期日

Qt version path error ( you need to install qt sdk )

Following

[QT] Install QT Creator on Ubuntu 10.04


download from http://qt.nokia.com/downloads/sdk-linux-x11-32bit-cpp

chmod +x qt-sdk-linux-x86-opensource-2010.05.1.bin
./qt-sdk-linux-x86-opensource-2010.05.1.bin

You don't need to worry about that problem after you install qt sdk.

At the same time, you have the qt examples too. (you need to set qtsdk path.)

Set Qt sdk path.

透過Facebook分享

2011年3月25日 星期五

Run Qt examples - Animatetiles on android

繼

Run Qt examples fail on android


出現
"This application requires Ministro, Qt libaries for Android. Would you like to install it?"

adb install Ministro-1.0.apk
769 KB/s (31031 bytes in 0.039s)
pkg: /data/local/tmp/Ministro-1.0.apk
Success

執行
Animatedtiles needs extra libraries to run.
Do you want to download them now?

按下yes

出現Sorry dialog
The application Animatediles (process eu.licentia.necessitas.industrius.examples.animatedtiles) has stopped unexpectedly. Please try again.


logcat message


看來跟網路連線有關系



20110328使用Denny手機執行
可以出現下載xxx套件的安裝資料
看來需要trace Ministro source code

透過Facebook分享

Ministro

繼

Run Qt examples fail on android



發現可以在Android Market下載
https://market.android.com/details?id=eu.licentia.necessitas.ministro
or 可以從sourceforge-minostro下載
http://sourceforge.net/projects/ministro.necessitas.p/files/Ministro-1.0.apk/download

會幫你安裝qt for android所需要的qt libraries

透過Facebook分享

Run Qt examples fail on android

繼

Install necessitas


居然跑範例程式發現有這個問題

"This application requires Ministro, Qt libaries for Android. Would you like to install it?"

press yes button.

Got following error message.

"Can't find Ministro service.
The application can't start."

透過Facebook分享

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分享

2011年3月8日 星期二

2010年9月21日 星期二

QT: f2vt vt2f定義

#define FLOAT2X(f)      ((int) ( (f) * (65536)))
 #define X2FLOAT(x)      ((float)(x) / 65536.0f)

 #define f2vt(f)     FLOAT2X(f)
 #define vt2f(x)     X2FLOAT(x)

http://doc.trolltech.org/4.4/opengl-hellogl-es.html

透過Facebook分享

2010年1月21日 星期四

got 1 error when develop QT application

The error message.

Error 1 error C2512: 'xxxxx' : no appropriate default constructor available xxxxx\CRightScrollCategory.cpp 14 iMove

透過Facebook分享