View Single Post
Old 01-23-2008, 09:16 AM   #2
ericshliao
Guru
ericshliao will become famous soon enoughericshliao will become famous soon enoughericshliao will become famous soon enoughericshliao will become famous soon enoughericshliao will become famous soon enoughericshliao will become famous soon enough
 
Posts: 976
Karma: 687
Join Date: Nov 2007
Device: Dell X51v; iLiad v2
Alright, I made it with official SDK. Here is my steps:

1. Setup an Debian Linux.
2. In command prompt, execute "svn co http://developer.irexnet.com/repo/". It will download the whole directory structur of iPDF source code. The newest version should be in "applications/ipdf/trunk". Copy the "trunk" directory to, say "/tmp".
3. Download the official SDK package. Unpack it to "/". You should see a "/usr/local/arm" after unpacking. If you unpack it to somewhere else, error may occur during compile. The official SDK already contains needed libs, such as gtk, poppler, eripc, scribble... It will be easier to compile iPDF on official SDK than on unofficial toolchain of scratchbox.
3. Type "export PATH=/usr/local/arm/oe/bin:$PATH".
4. Type "export CC=arm-linux-gcc".
5. Type "export CXX=arm-linux-g++".
6. In "/tmp/trunk", run "./autogen.sh". This script will generate several files and run "./configure" with proper parameter for you. If error occurred, it means that your Debian Linux lacks some package. The error message will give you hints on which package are required. Use "Synaptic Package Manager" or "apt-get" to install the required packages. I prefer "SPM", because I can search it with key words. Some of the required packages are CVS, autoconf, automake...
7. Run "make".
8. Run "make install".
9. If everything goes well, you will find a newly built file "ipdf" emerged in "/usr/bin". It should be an executable file on iLiad (I havn't tested it). If you would like it appears in "/tmp", modify the string "--prefix=/usr" in the last line of "autogen.sh" to "--prefix=/tmp".

Last edited by ericshliao; 01-23-2008 at 09:33 AM.
ericshliao is offline   Reply With Quote