[poppler] cross-compiling poppler

Johannes Buchner buchner.johannes at gmx.at
Tue Jun 29 09:41:03 PDT 2010

Hash: SHA1

On 29.06.2010 13:13, Mohamed Mohamed Nour El-Din wrote:
> hi,
> i'm trying to cross-compile poppler for running a pdf-viewer on an arm
> board,
> i got all the dependencies ready for the cross-compiling, but i'm still
> facing errors telling me that the linker can't see where i'm putting
> these dependencies
> this's when checking for lcms:
> arm-unknown-linux-uclibcgnueabi/bin/ld: cannot find -llcms
> this what i write when configuring:
> LDFLAGES=-L/media/E/mini_fs/mini_qt_new/staging/usr/lib
> CPPFLAGS=-I/media/E/mini_fs/mini_qt_new/staging/usr/include
> CC=arm-linux-gcc ./configure --host=arm-linux --prefix=/usr
> where /media/E/mini_fs/mini_qt_new/staging is the path of the
> cross-compiled libraries
> any help?
> thanks,

On 29.06.2010 15:24, Mohamed Mohamed Nour El-Din wrote:
> thnx hib,
> when edited it to LDFLAGS, the configure gave me an error because it
> can't find libc.so.0 which is found
> in /media/E/mini_fs/mini_qt_new/staging/lib
> not /media/E/mini_fs/mini_qt_new/staging/usr/lib
> so when i made LDFLAGS=-L/media/E/mini_fs/mini_qt_new/staging/lib
> the configure worked but the make gave the same old error that the
> linker can't see the dependencies:
> arm-unknown-linux-uclibcgnueabi/bin/ld: cannot find -llcms
> when i disabled the cms, i got the same error with libpng12
> i
> made LIBPNG_CFLAGS=-I/media/E/mini_fs/mini_qt_new/staging/usr/include/libpng12 
> but nothing new happened

Not sure what's so hard about it. Just add all library directories with
- -L and all include directories with -I .

LDFLAGS="-L /media/E/mini_fs/mini_qt_new/staging/usr/lib -L

Usually the additional cpp compiler (not linker) flags are called
CXXFLAGS, and you might want to set CFLAGS too.

Version: GnuPG v1.4.9 (MingW32)


More information about the poppler mailing list