[Qt-qml] [MeeGo-community] Announcing Youttube-API project for Meego // Vote on googlecode project name
Niels Mayer
nielsmayer at gmail.com
Mon Nov 15 04:13:07 CET 2010
On Sun, Nov 7, 2010 at 1:09 AM, Ville M. Vainio <vivainio at gmail.com> wrote:
> On Sun, Nov 7, 2010 at 2:08 AM, Niels Mayer <nielsmayer at gmail.com> wrote:
>> However, I'm having trouble building these using
>> meego-sdk-qt-creator-2.0.1-24.1.x86_64 . I've previously
>> built/modified"qthello" per ....
>
> I think you are wasting your time dealing with MeeGo SDK, when you
> could just use QML on desktop and only very late in the development
> phase test with MeeGo SDK and/or device.
IMHO, the right thing to do is follow a test early and often
methodology: ( http://www.google.com/search?q=test+early+and+often+software+development
) and continue using meego-sdk-qt-creator-2.0.1-24.1.x86_64 since
http://ytd-meego.googlecode.com will need to actually run on a real
N900. Specifically, the little beauty sitting in front of me eagerly
awaiting some working QtQuick test code (well first waiting for my
microsdhc mem card to arrive in the mail, for dual booting meego).
To get around the original problems I posted about, I also separately
built http://get.qt.nokia.com/qt/source/qt-everywhere-opensource-src-4.7.1.tar.gz
; then In qt-creator, I selected Tools->Options...->Qt4, setting
"qmake location" to /usr/local/Trolltech/Qt-4.7.1/bin/qmake ...
With that done, all the "Explore Qt Quick Examples" menus are
populated, instead of greyed out, and I can build, and modify existing
code examples in
/usr/local/Trolltech/Qt-4.7.1/examples/declarative/ . This is not
obvious, nor is it explained anywhere, which is why I thought i'd
share my progress.
In particular, I can now modify the 'cppextensions' example to handle
some of the multimedia capture tasks needed by ytd-meego, which don't
appear to be handled by QML:
http://doc.qt.nokia.com/qtmobility-1.1-tp/multimedia.html#qml-multimedia-elements
only handles playback, and there appear to be no way of capturing
media from QML. Therefore I'll need to do that in C++ and found
example code showing me how that's done.
So now that I've got the hybrid C++/QML thing going, I'm going to try
using the framework set up by 'cppextensions', modifying the C++ parts
to allow me to initiate/terminate the C++ video capture code from QML,
with C++ signalling back to QML with the location of the recorded
media on completion. Then hook that up with existing code that allows
video playback from QML, e.g.
http://doc.qt.nokia.com/qtmobility-1.1-tp/multimedia.html#qml-multimedia-elements
Alternately, I may see whether I can do something sensible with
http://doc.trolltech.com/4.7/qprocess.html , however, I think that may
end up being harder, and I might still need to write the standalone
C++ program to do the capturing in the subprocess anyways, if I can't
find some decent existing command-line programs to reuse.
-- Niels.
http://nielsmayer.com
More information about the Qt-qml
mailing list