Qt for Dingux - libraries and demo application Asteroids
Description
Dingux is a Linux-based operating system for the mobile gaming console Dingoo A320.
The Dingoo has a MIPS processor and a gcc toolchain was released by the manufacturer to faciliate homebrew development, which allowed Ignacio García to compile
the kernel. Fortunately, Qt Embedded does support MIPS plattforms. After some fiddling around I finally managed to compile the
Qt libraries for the Dingoo A320. This page is the donwload page for the library and the game Asteroids, which I ported from the original Qt examples. The main task was to adapt to the Dingoo's screen
resolution and the gaming buttons as input. Watch this video to see Qt's Asteroids running on the Dingoo A320:
I also published a german article on how to compile Qt and adapt Asteroids for the Dingoo A320 here.
I also published a german article on how to compile Qt and adapt Asteroids for the Dingoo A320 here.
Requirements
You need to install Dingux (Dingoo Linux) on your Dingoo A320 to use the Qt libaries. The following links might be useful:
Download
Usage
Installation of the Qt libraries
Just unpack the the download package. Copy the content of the archive's directory to
local/lib on the memory card where you installed Dingux.
Installation of the Asteroids game
Download and unpack the binary package from the download section above. Create a directory for the game on the memory card where you installed Dingux. I used the directory
local/apps
and created a directory asteroids there. Then copy the application file portedasteroids and the icon folder the that directory.
If you use dmenu (as do most Dingux distribution as I understand) than you have to adapt the file
This sets the environment variables
dmenu.cfg on the memory card. You have to add the following menu item:
MenuItem Asteroids
{
Icon = "/usr/local/apps/asteroids/icon/asteroids.png"
Name = "Asteroids"
Executable = "LD_LIBRARY_PATH=/usr/local/lib QWS_KEYBOARD=\"USB:/dev/event0\" ./portedasteroids -qws"
WorkDir = "/usr/local/apps/asteroids"
}
This sets the environment variables
LD_LIBRARY_PATH and QWS_KEYBOARD and starts the game with the option -qws. The latter is needed because we have no Qt Windowing System on the device, which replaces the X server on some Qt Embedded installations. Here, we have no X server and no QWS.
That's it! You should now have an Asteroids entry in your menu and be able to play the game on your Dingoo. Use the following buttons to play:
- Up/Down: Accelerate and brake (for brake you need to collect add-ons, they appear when you destroy asteroids)
- Left/Right: Turn ship
- X: Shoot
- A: Teleport (add-on)
- B: Shield (add-on)
- Y: Launch ship after one has been destroyed
- Start: Restart the game
- Select: Quit
Back to all downloads








