I’m excited to report that I’ve got a demo of a native App running on Tizen! And what I mean by native is, compiled C programs and not HTML5 + Javascript Apps. The App is EFL (Enlightenment Foundation Libraries) based, alsoa good point to notice here is that all the Apps that come with your phone ( Calendar, Dialer, Contacts, etc.) are EFL based as well. And the best part of it is that the company that I work at (ProFUSION) is a big EFL project contributor, so we have plenty of in-house experience with it.
The App is called Econcentration and it is a memory game. Although the App is already coded and working, I had to make some modifications to make it look better in the small device’s screen, like changing the images and the layout of the game. I will not explain the code in this post because I’m explaining how to run the game in the phone and not how to write EFL based programs. But you can take a look at the source code.
Before we start, make sure you have alien installed. It will be used to generate the deb packages. If you are using Ubuntu or a Debian distro you should install using this command:
First we need to install the elementary dev package:
1
sbs -A i386 -et apt-get installlibelm-dev
Then we go to the game’s source folder and execute the following commands:
1
sbs -A i386 -e ./autogen.sh --prefix=/usr
2
sbs -A i386 -e make
3
sbs -A i386 -e makeinstallDESTDIR=$(pwd)/tmp
Now that we have the game compiled we must generate the debian package:
1
cdtmp
2
tar-czf econcentration.tar.gz .
3
cd..
4
fakeroot alien econcentration.tar.gz
Then, we send the .deb package to the emulator, install it and we’re ready:
1
sdb push econcentration_1-2_all.deb /tmp
2
sdb dpkg -i /tmp/econcentration_1-2_all.deb
3
sdb shell econcentration --mobile
Dev Phone
To generate the deb package to the device we will have to modify our sbs commands, because the phone is ARM based and not x86. But it’s basically the same thing.
Install the elementary library for the ARM environment
1
sbs -et apt-get installlibelm-dev
Game’s source folder:
1
sbs -e ./autogen.sh --prefix=/usr
2
sbs -e make
3
sbs -e makeinstallDESTDIR=$(pwd)/tmp
Creating the deb package
1
cdtmp
2
tar-czf econcentration-arm.tar.gz .
3
cd..
4
fakeroot alien econcentration-arm.tar.gz
Pushing, installing and execute it:
1
</p>
2
sdb push econcentration-arm_1-2_all.deb /tmp
3
sdb dpkg -i /tmp/econcentration-arm_1-2_all.deb
4
sdb shell econcentration --mobile
And these are the picture of the game running in the emulator and in the phone:
That’s it, now that we are able to run native Apps things might be more interesting.
The Debian package for ARM device and the images:http://people.profusion.mobi/~iscaro/ The source code:
http://trac.enlightenment.org/e/browser/trunk/GAMES/econcentration – To see in the browser svn clone: svn co http://svn.enlightenment.org/svn/e/trunk/GAMES/econcentration/ git-svn clone: git svn clone http://svn.enlightenment.org/svn/e/trunk/GAMES/econcentration
The ReadWrite Editorial policy involves closely monitoring the tech, gambling and blockchain industries for major developments, new product and brand launches, AI breakthroughs, game releases and other newsworthy events. Editors assign relevant stories to in-house staff writers with expertise in each particular topic area. Before publication, articles go through a rigorous round of editing for accuracy, clarity, and to ensure adherence to ReadWrite's style guidelines.
Marvel Rivals has done very well for itself, sure it’s had a few issues such as server logins or even containing a bug that lays bare your darkest secrets to...
Get the biggest tech headlines of the day delivered to your inbox
Tech News
Explore the latest in tech with our Tech News. We cut through the noise for concise, relevant updates, keeping you informed about the rapidly evolving tech landscape with curated content that separates signal from noise.
In-Depth Tech Stories
Explore tech impact in In-Depth Stories. Narrative data journalism offers comprehensive analyses, revealing stories behind data. Understand industry trends for a deeper perspective on tech's intricate relationships with society.
Expert Reviews
Empower decisions with Expert Reviews, merging industry expertise and insightful analysis. Delve into tech intricacies, get the best deals, and stay ahead with our trustworthy guide to navigating the ever-changing tech market.