Courtesy to an open source project called uqq on Github, it is now possible to not only run QQ on Linux, but also on Ubuntu Phone! As Ubuntu phone is still under heavy development, and the current SDK is limited for QML-only apps, it is not an easy task to deploy uqq onto the phone, as it uses C++ for its backend. If you are adventurous, you can follow my steps below.
1. Get uqq
git clone https://github.com/ginuerzh/uqq
2. Cross-compile uqq C++ plugin
- Create an armhf build environment:
# pbuilder-dist raring armhf create
- Login to the armhf environment:
# pbuilder-dist raring armhf login
- You are now in a chroot in /var/cache/pbuilder/build/<PID>, where <PID> is the process ID of the command in the last step.
- Copy uqq source code to
/tmpin the chroot, something like
sudo cp -a uqq /var/cache/pbuilder/build/<PID> /tmp
- Add QT5 and Ubuntu SDK apt sources:
# cat << EOF > /etc/apt/sources.list.d/qt5-and-ubuntu-sdk.list deb http://ppa.launchpad.net/canonical-qt5-edgers/qt5-proper/ubuntu precise main deb http://ppa.launchpad.net/ubuntu-sdk-team/ppa/ubuntu precise main EOF
apt-add-repositorycore dumped for me so I had to add the sources manually.)
- Install Ubuntu SDK:
# apt-get update && apt-get install ubuntu-sdk
- Compile the uqq backend plugin:
# cd /tmp/uqq/plugin && qmake && make
libuqq.sowill be compiled in /tmp/uqq/plugin/UQQ if everything works well.
libuqq.soback to your
# cp /var/cache/pbuilder/build/<PID>/tmp/uqq/plugin/UQQ/libuqq.so uqq/plugin/UQQ/
3. Copy the app to the phone
- Connect your phone to the computer via USB.
# adb root
- Copy the
uqqsource code and our compiled plugin to the phone:
# adb push uqq /data/ubuntu/home/phablet/uqq
- Login to the phone:
# adb shell
- Type “
- Type “
su - phablet” to change to the phablet user.
- Now we are ready to run QQ, type /usr/bin/qmlscene -I plugin /home/phablet/uqq/uqq.qml –desktop_file_hint=/home/phablet/uqq/uqq.desktop[/code>]
- uqq window should now appear on your phone!
Since ubuntu phone does not ship with any Chinese font, all Chinese characters will be shown as squares. It can be easily fixed by copying
/usr/share/fonts/truetype/droid/DroidSansFallback.ttf from any Ubuntu system to the phone’s
I still haven’t figured out how to add an icon to the launcher for the app, I tried modifying
/usr/share/qml-phone-shell/Applications/applications.js, but no luck.
Hope you find this useful!