Amidst all the chaos surrounding the Qt project, the power of open source software has shown itself. The Romanian developer Bogdan Vatra has ported Qt to Android. To avoid trademark conflicts, the result was named Necessitas.
Before looking at how to setup the tools and build an application, lets look at the system from the users' view. When downloading a Qt based application, the size matters. The classic wiggly example that has shipped with Qt since the dawn of time is only about 113kB. Animated Tiles, provided by Bogdan Vatra, requires a 153kB download.
When the user has downloaded and installed the application, it is time to run it. When started, every Qt application looks for a helper called Ministri. The job of Ministri is to provide shared Qt libraries for all Qt applications. This saves disk space and bandwidth. When starting wiggly for the first time, the user is guided to Android Market from where Ministri can be downloaded and installed for free.
Ministri now takes over and downloads the Qt libraries. After this, wiggly happily runs. It uses the native Android on-screen keyboard and even rotates with the device when I change its orientation.
In my opinion, the fun part of using Qt is not to use the applications, but to write them. To do that, download the necessitas installer. Run through it, but make sure to install in /opt/necessitas and nowhere else. You will have to chmod +x the installer to make it executable. Then follow this great setup guide to configure QtCreator. If the Qt version complains about not being properly installed, you might have to create a symbolic link to get things working.
Then it is just a matter of coding, building and deploying. Try it yourself today!
Johan Thelin is a consultant working with Qt, embedded and free
software. On-line, he is known as e8johan.
- Readers' Choice Awards 2013
- A Plexible Pi
- Swap Your Laptop for an iPad + Linode
- RSS Feeds
- Sublime Text: One Editor to Rule Them All?
- Linux Kernel News - November 2013
- Mars Needs Women
- Advanced Hard Drive Caching Techniques
- Raspberry Pi: the Perfect Home Server
- December 2013 Issue of Linux Journal: Readers' Choice
- Nice but....
7 min 27 sec ago
- great specs
6 hours 36 min ago
- Reply to comment | Linux Journal
7 hours 42 min ago
- rilakkuma onesie
10 hours 18 min ago
- flying squirrel onesie
10 hours 20 min ago
- animal onesies for adults
10 hours 22 min ago
- animal onesies
10 hours 24 min ago
- stitch onesie
10 hours 24 min ago
- totoro onesie
10 hours 26 min ago
- dinosaur onesie
10 hours 30 min ago