Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Readers > More E-Book Readers > iRex

Notices

Reply
 
Thread Tools Search this Thread
Old 02-16-2009, 02:57 PM   #1
ross
Junior Member
ross began at the beginning.
 
Posts: 8
Karma: 26
Join Date: Oct 2008
Device: none
Vala on the DR1000

I've been experimenting with Vala on the DR1000 and thought it might be of interest to other developers looking for a language other than C on the DR1000.

Vala is a C#-esque language designed around the GObject system which underlies GTK+ and many other gnome libraries, so is quite suitable for use on the DR1000. It also compiles down to C, so there's minimal performance impact and adding bindings to other C libraries is mostly trivial.

The stuff I've written is very bare-bones at the moment, but sufficient to write simple GTK apps and use the DR1000 popup menu. The little demo app I wrote displays a list of ipkgs installed on the device (the output of opkg list_installed). If there's enough interest I may add wrappers for the other iRex libraries (the scribble and metadata ones seem most interesting).

The process to get it up and running is still a little complicated mostly because vala is relatively new, but the steps are as follows:

Prereqs: Working iRex SDK, GTK dev libs (on the host) & Glade 3 (for UI)
  • Download and extract the latest version of Vala (currently 0.5.6):
  • Download and extract the dr1000-vala attached.
  • In the vala source directory, apply small patch:
    ~/vala-0.5.6$ cat ../dr1000-vala/vala-vapi-posix.patch | patch -p 1
  • Build vala:
    ./configure && make && make install
  • Set up SDK environment:
    ~$ source /usr/local/poky/eabi-glibc/arm/environment-setup
  • Build vala test app:
    ~/dr1000-vala$ make
  • Copy to DR1000/QEMU and run (add a .desktop file if you want to launch from the content browser):
    ~/dr1000-vala$ scp test qemu:/media/mmcblk0p1

Cheers,
Ross
Attached Files
File Type: gz dr1000-vala.tar.gz (5.6 KB, 128 views)
ross is offline   Reply With Quote
Old 02-17-2009, 01:47 PM   #2
Viacheslav
Connoisseur
Viacheslav doesn't litterViacheslav doesn't litter
 
Posts: 59
Karma: 136
Join Date: Dec 2008
Device: iRex DR1000
It would be useful to extend this app to install ipks by clicking an ipk file. It would be a package manager for DR1000.
Viacheslav is offline   Reply With Quote
 
Enthusiast
Old 04-02-2011, 09:50 AM   #3
Iņigo
Guru
Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.
 
Posts: 711
Karma: 72743
Join Date: Feb 2008
Location: Here or there
Device: iRex iLiad, in love with iRex DR800S. Also a K4NT. Now a Kobo Aura
New version

Recently I've been playing with and extending this idea. Look at http://www.mobileread.com/forums/sho...d.php?t=128020
Iņigo is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Has the DR1000 been abandoned? Warriah iRex 12 01-11-2010 07:13 AM
Cover for the DR1000 Marc Mertens iRex 13 03-11-2009 06:12 PM
My impression of the DR1000 kl612 iRex 1 12-01-2008 05:03 PM
My Opinion of the DR1000 Nate the great iRex 50 11-16-2008 07:57 AM
Maps on the DR1000?` Gogolo iRex 1 11-04-2008 08:40 AM


All times are GMT -4. The time now is 06:19 AM.


MobileRead.com is a privately owned, operated and funded community.