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
- IBM Will Minimize Impact of Future Disasters
- December 2013 Issue of Linux Journal: Readers' Choice
- Sublime Text: One Editor to Rule Them All?
- RSS Feeds
- Raspberry Pi: the Perfect Home Server
- Tech Tip: Really Simple HTTP Server with Python
- Linux Systems Administrator
- Senior Perl Developer
- New Products
- Command Line Shells (Bash, Zsh, etc.) are 2nd place
12 min 18 sec ago
2 hours 7 min ago
- yes it's Jupiter Broadcasting
3 hours 26 min ago
- nice to see PClinuxOS finally
6 hours 14 sec ago
- Personally, I am no longer a
6 hours 57 min ago
- Reply to comment | Linux Journal
20 hours 21 min ago
- It's Jupiter
21 hours 21 min ago
- GIMP is certainly a graphic
22 hours 23 min ago
- Thanks For Your Sharing
1 day 3 hours ago
- Studying linux, and looking
1 day 6 hours ago