Thread: Icons v1
View Single Post
Old 04-02-2011, 10:08 AM   #1
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: 730
Karma: 72743
Join Date: Feb 2008
Location: Here or there
Device: iRex iLiad, iRex DR800S. K4NT. Kobo Aura, Aura One, Libra 2.
Lightbulb Icons v1

Icons v1


Summary
Icons and IconsGUI are helper programs that add icons for programs and covers for FB2 books installed on your DR device.
. icons is the command line program which does all the work
. icons-gui is the graphical interface for icons


Installation
Copy the contents of the "bin" directory in this package to <SD card>/Programs folder on your DR. They aren't any external dependencies.
Note that "icons" binary can only be in "<SD card>/Programs/_icons" to be found by "icons-gui".


Comparing with old version written in lua
Some months ago I wrote a first version of these same programs in another language called lua. That version is now obsolete, as this one is faster, has more features (live update of output) and is fully integrated with the DR (popupmenu).
Regarding speed, this version is 2x faster and its memory consumption is lower.
On the other side, the XML parser included here is not as good as the lua based parser of the old version so maybe this version could not extract as many FB2 books covers (~6% less covers for my books).


Sources
Though this program is provided as a standalone binary, it is written in Vala, a high level language which is then compiled to C.
Note that sources and all the stuff of "Vala for DR" needed to build this program is already included in this package. Search for "Vala for DR" for more information.

Instructions to build
Steps:
Code:
- You need a running DR development environment
- Download, build and install Vala
  . download v0.11.7
  . build and install Vala using devel machine compiler (i.e, gcc, not arm-poky-linux-gnueabi-gcc)
- Build SysInfo:
  . all Vala needed files are in the "irex" directory
  . set the cross-compiling environment:
    $ source /usr/local/poky/eabi-glibc/arm/environment-setup
  . run "make"
    $ make
- That's it
  . there could be some warnings, they usually don't matter
Kind regards,
Iņigo Serna
Attached Thumbnails
Click image for larger version

Name:	icons-1.png
Views:	475
Size:	92.8 KB
ID:	69386  
Attached Files
File Type: gz icons-v1.tar.gz (63.3 KB, 401 views)
Iņigo is offline   Reply With Quote