View Single Post
Old 04-27-2007, 12:13 PM   #1
jharker
Developer
jharker could sell banana peel slippers to a Deveel.jharker could sell banana peel slippers to a Deveel.jharker could sell banana peel slippers to a Deveel.jharker could sell banana peel slippers to a Deveel.jharker could sell banana peel slippers to a Deveel.jharker could sell banana peel slippers to a Deveel.jharker could sell banana peel slippers to a Deveel.jharker could sell banana peel slippers to a Deveel.jharker could sell banana peel slippers to a Deveel.jharker could sell banana peel slippers to a Deveel.jharker could sell banana peel slippers to a Deveel.
 
Posts: 345
Karma: 3473
Join Date: Apr 2007
Location: Brooklyn, NY, USA
Device: iRex iLiad v1, Blackberry Tour, Kindle DX, iPad.
Trouble compiling ipdf with SDK 2.9 / poppler

Hi, there, all!

I'm a new iLiad owner and I thought I would play with the iLiad source a little bit and fix some things that were bugging me.

However, I've been having some trouble compiling using the iRex SDK Toolchain v2.9, because it's missing the poppler libraries. Compiling the poppler libraries separately doesn't seem to provide the header files that ipdf needs to compile properly.

Has anyone here worked with SDK v2.9? Is there some patch or other modification I need to make to the iRex-supplied poppler before it will play nice with ipdf?

EDIT:
To expand on the above a little bit, I should say that I was able to install SDK v2.8 properly, set my PATH correctly, and compile ipdf v2.8 just fine. In fact, ipdf v2.9 compiles as well. (I don't have shell access to my iLiad yet, so I haven't been able to test the binary.)

However, apparently when iRex moved from SDK 2.8 to SDK 2.9, they dropped the precompiled poppler libs from the toolchain, and instead they posted the poppler source code.

So in order to compile ipdf with SDK 2.9, you first have to compile poppler from the source they provide here. The poppler compile ran smoothly and successfully for me. However, "make install" only installed the poppler libraries and a very small set of poppler header files. When I try to compile ipdf, it insists on a wide variety of poppler/goo/etc. header files.

So, I added a ./configure flag to point to the poppler source directories, so that ipdf could find the header files it wanted. My procedure for compiling ipdf looked like this:
Code:
cd /opt/local/src/ipdf-0.29
autoreconf -i -f
./configure --host=arm-linux --build=i686 --prefix=/opt poppler_LIBS=-L/opt/lib poppler_CFLAGS='-I/opt/include -I/opt/local/src/poppler -I/opt/local/src/poppler/poppler -I/opt/local/src/poppler/goo' 
make
About halfway through the compile, the process stopped and threw out a bunch of "undefined reference to..." messages, leading me to believe that although it could find all of the header files, they were not quite compatible with the ipdf code.

So I guess I have two questions:
  1. Anyone have an idea what's going on?
  2. What version of poppler have you used to compile ipdf successfully?
Again, any advice is much appreciated!

Last edited by jharker; 04-27-2007 at 01:15 PM.
jharker is offline   Reply With Quote