Compile and Run qmltube

Last modified by Site Administrator on 2012/08/14 09:46

QmlTube compiles and runs on the raspberry pi "out of the box". One important missing plugin ``libqtwebkit-qmlwebkitplugin'' enables the initial OAuth-based login into YouTube, via embedded browser for entering the authenticaion information and processing the challenges:

pi@rpi /boot $ sudo apt-get install libqtwebkit-qmlwebkitplugin
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  libqtwebkit-qmlwebkitplugin
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 117 kB of archives.
After this operation, 202 kB of additional disk space will be used.
Get:1 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libqtwebkit-qmlwebkitplugin armhf 2.2.1-4 [117 kB]
Fetched 117 kB in 1s (84.4 kB/s)                      
Selecting previously unselected package libqtwebkit-qmlwebkitplugin:armhf.
(Reading database ... 85656 files and directories currently installed.)
Unpacking libqtwebkit-qmlwebkitplugin:armhf (from .../libqtwebkit-qmlwebkitplugin_2.2.1-4_armhf.deb) ...
Setting up libqtwebkit-qmlwebkitplugin:armhf (2.2.1-4) ...

Must run with --raster option until OpenGL backend and GPU acceleration are avaialable:

pi@rpi ~ $ cd src/qmltube/
pi@rpi ~/src/qmltube $ sudo make install
cp -f -r /home/pi/src/qmltube/qml/qmltube /opt/qmltube/qml/
install -m 755 -p "qmltube" "/opt/qmltube/bin/qmltube"
strip "/opt/qmltube/bin/qmltube"
pi@rpi ~/src/qmltube $ cd
pi@rpi ~ $ /opt/qmltube/bin/qmltube --raster
QSqlDatabasePrivate::addDatabase: duplicate connection name 'qt_sql_default_connection', old connection removed.
DEBUG: using generic UX 
DEBUG: scripts/settings.js:setDefaultSettings() called, $HOME=/home/pi isSymbian=false isHarmattan=false isMaemo=false
DEBUG: MyNetworkAccessManagerFactory::create()'d nam= QNetworkAccessManager(0xe3f810) 
QFont::setPixelSize: Pixel size <= 0 (0)

Without the --raster argument, the application will crash on the 'pi,  as the default is to attempt to use OpenGL. The lack of OpenGL and hardware/GPU assist makes video playback completely unworkable at this moment. But at least I was able to get as far as to test the overall functioning of qmltube, originally ported from Nokia N900 smartphone to Nokia N9, MeeGo and desktop Linux.

pi@rpi ~ $ /opt/qmltube/bin/qmltube 
QSqlDatabasePrivate::addDatabase: duplicate connection name 'qt_sql_default_connection', old connection removed.
DEBUG: using generic UX 
DEBUG: scripts/settings.js:setDefaultSettings() called, $HOME=/home/pi isSymbian=false isHarmattan=false isMaemo=false
X Error: BadMatch (invalid parameter attributes) 8
  Major opcode: 1 (X_CreateWindow)
  Resource id:  0x70
X Error: GLXBadDrawable 168
  Extension:    153 (Uknown extension)
  Minor opcode: 5 (Unknown request)
  Resource id:  0x600001d
Segmentation fault
Tags:
Created by Site Administrator on 2012/08/14 09:45
    
This wiki is licensed under a Creative Commons 2.0 license
XWiki Enterprise 6.4.4 - Documentation