04-05-2007, 04:44 AM | #31 | |
Enthusiast
Posts: 42
Karma: 145
Join Date: Oct 2006
Device: iLiad
|
Quote:
Mats Söderlind |
|
04-05-2007, 05:26 AM | #32 | |
Gadget fan
Posts: 147
Karma: 3968
Join Date: Sep 2006
Location: London
Device: RM Tablet PC, iLiad, PRS 505, iPod Touch
|
Quote:
|
|
Advert | |
|
04-05-2007, 06:08 AM | #33 |
Pac-Man caught my iLiad.
Posts: 807
Karma: 3595
Join Date: Apr 2006
Location: Germany; next to Baltic Sea
Device: Boox Max Lumi, iRex iLiad (RIP)
|
Ok, vmware image is running; next step would be to use in the right way.
|
04-05-2007, 08:15 AM | #34 |
Addicted to Porting
Posts: 1,697
Karma: 7194
Join Date: Oct 2006
Location: Indianapolis, IN
Device: iRex iLiad, Nokia 770, Samsung i760
|
I'll throw together a how-to today with an app you can download compile and test.
|
04-05-2007, 04:49 PM | #35 |
Addicted to Porting
Posts: 1,697
Karma: 7194
Join Date: Oct 2006
Location: Indianapolis, IN
Device: iRex iLiad, Nokia 770, Samsung i760
|
Here's how I port applications. The following steps should work for you. It may be a bit too detailed in parts, and not in others. But if you're up for porting, you should be able to figure it out. If I'm doing something wrong, let me know. The following method works, but it may not be ideal.
First, boot the virtual machine. Login to the virtual machine as developer. Type "sudo ifconfig" to find out the ip address of the machine. SSH to that IP address. In Windows, use putty. On linux or Mac, use the terminal. Again, log in as developer. Enter the command sb-menu. Go to Select, and select 'iliad-dev', you will use this target for all of your compiling. Then type 'scratchbox' to enter the scratchbox environment. Type 'pwd'. You should be in /home/developer. This is where I store all the build files. We will be compiling stardict today. It's a dictionary reading software. There's a precompiled version already on MobileRead. The easiest ways to download files onto the development box is by using wget. First, go to http://sourceforge.net/projects/stardict/, then, click the link that says "download". We will want the stardict package, with the platform independent source. You should eventually see a link called "stardict-2.4.8.tar.bz2". Click that link, and sourceforge will eventually automatically download the file. However, you don't want to download it to your primary machine. Click cancel when the download screen pops up. You're looking for the link that says "If you are experiencing problems with the download please use this direct link.". Right click on 'this direct link' and click "copy link location". Then, go to your scratchbox and type 'wget' and paste the link. For stardict, you should enter something like "wget http://easynews.dl.sourceforge.net/sourceforge/stardict/stardict-2.4.8.tar.bz2" depending on the mirror that is chosen. After it is finished downloading, you will need to extract the files. Since this is created with bzip compression you will type "tar -xjvf stardict-2.4.8.tar.bz2". If it were a gzipped archive, you would use tar -xzvf. CD into the stardict directory. Type "./configure --help" to see your configuration options. Stardict normally requires Gnome to run. However, we do not have gnome on the iLiad. You can compile it with GTK Support, since almost all iLiad apps are based on GTK. To do this, you'll need the --disable-gnome-support flag. Also, the iLiad has a limited amount of storage on the internal memory. I choose to compile apps with a static directory pointing to the memory card. There may be a better way to do this, but it works well enough for me. To do this, I use the --prefix=/mnt/card/stardict flag. You would use /mnt/cf for conpact flash. So, to configure the package, we need to run Code:
./configure --disable-gnome-support --prefix=/mnt/card/stardict On your development box, type "cd ~/dependencies-helper/". There, you will need to wget both files. Once both files are downloaded, run the command Code:
./unpack-n-patch-n-build-install.sh libxml2_2.6.27.dfsg.orig.tar.gz Now, we will need to put together the necessary libraries for the program to include in our package. Move stardict to your home directory. Code:
cd ~/ mv /mnt/card/stardict ~/ Code:
./lib-gen.sh stardict/bin/stardict ./run-gen.sh stardict/bin/stardict mv lib stardict Type 'exit' to exit scratchbox. We will need to start the vnc server. Code:
vncserver -ac -geometry 768x1024 -depth 8 :1 Go back into scratchbox. Type sb-menu and select the iliad-irex target. Now, we will need to start the window manager: Code:
cd / DISPLAY=IP-ADDRESS:1 export DISPLAY /iliad.sh usr/bin/matchbox-window-manager -use_titlebar no -use_cursor no & /iliad.sh usr/bin/pageBar & /iliad.sh usr/bin/matchbox-panel --size 39 --no-menu --bgcolor White & Code:
mv ~/stardict /mnt/card/ export LD_LIBRARY_PATH=/mnt/card/stardict/lib Code:
/mnt/card/stardict/bin/stardict |
Advert | |
|
04-05-2007, 04:51 PM | #36 |
Uebermensch
Posts: 2,583
Karma: 1094606
Join Date: Jul 2003
Location: Italy
Device: Kindle
|
Wow this deserves a Wiki entry and a sticky in the forum, don't you think?
Thanks Adam! |
04-10-2007, 09:02 AM | #37 |
No es el toro que piensas
Posts: 44
Karma: 10
Join Date: Mar 2007
Device: iRex iliad
|
wow
Wow Adam!
You're amazing! you're great! With this post is really easy to start build & test apps for iLiad! I tried it following your steps and all worked Thanks Adam |
04-10-2007, 10:10 AM | #38 |
Addicted to Porting
Posts: 1,697
Karma: 7194
Join Date: Oct 2006
Location: Indianapolis, IN
Device: iRex iLiad, Nokia 770, Samsung i760
|
Thanks for the kind words.
Unfortunately, doing this is only the first step. You still need to digg though the code of the program, setup screen refreshes, change the window class, add an exit button (if necessary), etc, etc. Since this is my first attempt at linux programming (done some windows vb, c, and java), you should be able to search through my posts here and on the irex forums for tips, direction, and help. That, and this post: https://www.mobileread.com/forums/sho...63&postcount=4 helped me out a lot. Good luck to those who are new to this. The more people we have bringing out the power of this device, the better it will be. |
09-30-2007, 10:07 AM | #39 |
Member
Posts: 24
Karma: 11
Join Date: Sep 2007
Device: iLiad
|
I tried on a x86_64 on gentoo, but vmplayer freeze al my pc. Is there any way to compile for iLiad with a 64 bit PC?
Did you use Antartica's toolchain right? What's about official one? Regards, Gil |
10-25-2007, 08:28 AM | #40 |
Junior Member
Posts: 9
Karma: 10
Join Date: Jun 2006
|
Fantastic!
I do a lot of development on Windows and I've just caved and bought a 2nd Edition iliad. Looking forward to trying my hand at Linux development... this should make it a bit easier, thanks!
|
11-28-2007, 12:43 PM | #41 |
Guru
Posts: 976
Karma: 687
Join Date: Nov 2007
Device: Dell X51v; iLiad v2
|
I am not familiar with embedded Linux. And I havn't tried this package. I am curious that does this package play as an iLiad emulator? Since there are already Windows Mobile and PalmOS emulator, I expect an iLiad emulator come true. It will be handy when making homebrew ebooks as I can test if it looks fine on iLiad.
|
11-28-2007, 01:00 PM | #42 |
Addicted to Porting
Posts: 1,697
Karma: 7194
Join Date: Oct 2006
Location: Indianapolis, IN
Device: iRex iLiad, Nokia 770, Samsung i760
|
It's not an iLiad emulator per se. You can test applications on it that you compile, but it does not include any of the iLiad's viewers (Mobipocket, iPDF, etc).
|
11-28-2007, 01:58 PM | #43 |
Guru
Posts: 976
Karma: 687
Join Date: Nov 2007
Device: Dell X51v; iLiad v2
|
There are some 3-rd party viewers and apps developed by iLiad users. Can I install some of them in this package? If so, it will become a quasi iLiad emulator?
|
12-22-2007, 07:02 PM | #44 |
Guru
Posts: 976
Karma: 687
Join Date: Nov 2007
Device: Dell X51v; iLiad v2
|
Hi,
I used it to compile stardict 3.0.1 and failed. I was blocked by an error message (show in attached file) when doing "./configure --disable-gnome-support --disable-spell --disable-gucharmap --disable-festival --dieable-espeak". Last edited by ericshliao; 12-22-2007 at 07:04 PM. |
12-23-2007, 11:06 AM | #45 | |
Addicted to Porting
Posts: 1,697
Karma: 7194
Join Date: Oct 2006
Location: Indianapolis, IN
Device: iRex iLiad, Nokia 770, Samsung i760
|
Quote:
I've run into this before. You'll have to download and compile the most recent version. It may also have some dependencies that you need to update as well. |
|
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
iRex DR1000 Development VMWare Image | Adam B. | iRex | 9 | 08-19-2010 04:23 AM |
DR800 Developement VMWare Image? | CoolDragon | iRex | 8 | 04-04-2010 05:30 AM |
calibre VMWare development environment | kovidgoyal | Calibre | 30 | 12-30-2009 12:43 PM |
iLiad iRex iLiad development enviroment on VMware image | Alexander Turcic | iRex Developer's Corner | 0 | 03-31-2007 02:02 PM |