The Following 20 Users Say Thank You to bbns For This Useful Post: | ||
BertvanDorp, Bundyo, c0rt3x, clasificado, codeMonkey, ColonelKilkenny, conny, daperl, fatdat888, jsa, lardman, mikec, qgil, qwerty12, sjaensch, Stskeeps, timoph, VDVsx, w00t, zchydem |
|
2009-11-27
, 06:52
|
|
Posts: 3,105 |
Thanked: 11,088 times |
Joined on Jul 2007
@ Mountain View (CA, USA)
|
#2
|
|
2009-11-27
, 07:10
|
|
Posts: 101 |
Thanked: 129 times |
Joined on Oct 2009
@ Los Angeles, CA
|
#3
|
The Following 2 Users Say Thank You to bbns For This Useful Post: | ||
|
2009-11-27
, 08:02
|
|
Posts: 101 |
Thanked: 129 times |
Joined on Oct 2009
@ Los Angeles, CA
|
#4
|
The Following 5 Users Say Thank You to bbns For This Useful Post: | ||
|
2009-11-27
, 12:13
|
|
Posts: 129 |
Thanked: 60 times |
Joined on Jul 2009
@ Castello d'Argile (BO)
|
#5
|
|
2009-11-29
, 07:44
|
|
Posts: 3,105 |
Thanked: 11,088 times |
Joined on Jul 2007
@ Mountain View (CA, USA)
|
#6
|
The wiki page is here: http://wiki.maemo.org/QML
Though I don't know how to categorize it nor uploading the pictures.
Thanks!
|
2009-12-12
, 12:19
|
|
Posts: 41 |
Thanked: 144 times |
Joined on Dec 2007
@ Lieto, Finland
|
#7
|
|
2009-12-13
, 05:53
|
|
Posts: 101 |
Thanked: 129 times |
Joined on Oct 2009
@ Los Angeles, CA
|
#8
|
The Following User Says Thank You to bbns For This Useful Post: | ||
|
2009-12-13
, 21:09
|
|
Posts: 41 |
Thanked: 144 times |
Joined on Dec 2007
@ Lieto, Finland
|
#9
|
@zchydem
Don't hesitate to drop your opinions to Qt-Kinetic team here: http://labs.trolltech.com/page/Proje...aphics/Kinetic
They are very passionate people.
|
2009-12-25
, 17:26
|
|
Posts: 101 |
Thanked: 129 times |
Joined on Oct 2009
@ Los Angeles, CA
|
#10
|
Yes, I will let them know if there's something to comment. Now I just need to find some time to get more familiar with QML. Do you happen to know is there already a Qt Creator version which has a graphical QML editor integrated? I have one version which supports qml files and projects, but the graphical part doesn't work. At least in mac.
I heard that they had a demo in Developer days where they used that. Maybe it's available from gitorious?
Here I would like to present you how to port Qt4.6 to N900 and use the Declarative UI benefits from QML. Qt team did pretty awesome job on this idea. They are too busy coding right now, therefore I would like to advertise this feature here.
If you don't know QML yet, probably you would like to look at this:
http://labs.trolltech.com/blogs/2009...tive-binaries/
It's a Javascript like language and allow you to build your own application rapidly. And yes, you don't need to really care about your development platform too much. All you need to do is using QmlViewer to examine your code. That's pretty much the same when you run on the device (though might be slightly different because of resolution and performance. And note that currently it's still highly experimental!)
Building Qt 4.6
To build Qt with QML support on N900, you need a 32-bit Linux box (better choice is Ubuntu, I am using Karmic, but you can use other versions as well).
I assumed you already have Maemo SDK running (also Nokia closed binary with SGX). Now it's time to download Qt-declarative UI branch:
http://qt.gitorious.org/+qt-kinetic-...-declarativeui
Once you unpack it within your scratchbox, say ~/qt-kinetic, create a build directory anywhere you like, e.g.: ~/qt-build, then do the following within scratchbox:
1. execute command 'export PKG_CONFIG_PATH=/usr/lib/pkgconfig; export PKG_CONFIG_SYSROOT=/'
2. edit ~/qt-kinetic/mkspecs/common/g++.conf, and remove -fvisibility=hidden -fvisibility-inlines-hidden, otherwise qemu would crash during compiling.
3. configure Qt with '~/qt-kinetic/configure -platform linux-g++ -release -opengl es -webkit -force-pkg-config --prefix=/opt/qt'
4. make
5. make install
It will take a whole day to compile this sexy devil. Make sure you have brewed the coffee. In case of running into linking problem (or you have trouble to pass EGL test), please try "export SUBLIBS='-lX11 -lXau -lEGL -lGLESv2 ...' ", throwing whatever GCC complains what's missing (I left my laptop in the office, forgive me I am typing this in my plain memory).
Now, you should have the Qt 4.6 DUI binary sitting in your scratchbox. You can either copy those binaries under /opt/qt to your device or mount it as NFS.
Test Run on Device
On this stage, you should be able to write your first QML application.
http://labs.trolltech.com/blogs/2009...eclarative-ui/
Attachment is the fresh screenshot as proof! =]
Finally, here are some few notices / limitation of current Qt4.6-QML:
1. Performance is not that great yet. You may suffer some tearing issues. Write your Qt app in full screen mode will give you some boost.
2. Document is bundle inside the source tree. 'make docs' will generate proper document for you.
3. -webkit may crash your qmlviewer under N900 if you wish to try. That's why I wrote the code with QmlView binding. If you want to play with qmlviewer, please remove -webkit from your configuration.
4. All credits go to Qt team. =] Thanks for their help on technical support. If you have any questions / comments, please don't hesitate to visit: http://labs.trolltech.com/blogs/
5. Happy hacking!
Last edited by bbns; 2009-11-26 at 20:07.