-----BEGIN PGP SIGNED MESSAGE----- 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 /media/E/mini_fs/mini_qt_new/staging/usr/lib" Usually the additional cpp compiler (not linker) flags are called CXXFLAGS, and you might want to set CFLAGS too. Cheers, Johannes -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (MingW32) iEYEARECAAYFAkwqIh4ACgkQ7X1+MfqVcr1SCQCfTfjDkico2ecHoB+oSYYMju4b oPMAn1KLRvc3v7WRg+dY2RazomCgJxVA =jtd5 -----END PGP SIGNATURE----- _______________________________________________ poppler mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/poppler
