<div dir="ltr"><div>Based on your previous male, first, the line containing the error was truncated because it's too long, it was supposed to be in line 425 (I noticed that I mistyped it to 435 in a previous mail). Here it its:<br>
<br><div style="margin-left:40px">libtool: link: arm-linux-g++  -fPIC -DPIC -shared -nostdlib /home/islamhassan/Development/<div>Tools/embeddedLinux/crosstool-ng/arm-s5pv210-linux_2.6.35.7-glibc/arm-unknown-linux-gnueabi/sysroot/usr/lib/crti.o /home/islamhassan/Development/Tools/embeddedLinux/crosstool-ng/arm-s5pv210-linux_2.6.35.7-glibc/lib/gcc/arm-unknown-linux-gnueabi/4.4.3/crtbeginS.o 
 .libs/SplashOutputDev.o .libs/JPXStream.o .libs/Annot.o .libs/Array.o 
.libs/BuiltinFont.o .libs/BuiltinFontTables.o .libs/CachedFile.o 
.libs/Catalog.o .libs/CharCodeToUnicode.o .libs/CMap.o .libs/DateInfo.o 
.libs/Decrypt.o .libs/Dict.o .libs/Error.o .libs/FileSpec.o 
.libs/FontEncodingTables.o .libs/Form.o .libs/FontInfo.o 
.libs/Function.o .libs/Gfx.o .libs/GfxFont.o .libs/GfxState.o 
.libs/GlobalParams.o .libs/Hints.o .libs/JArithmeticDecoder.o 
.libs/JBIG2Stream.o .libs/Lexer.o .libs/Linearization.o .libs/Link.o 
.libs/LocalPDFDocBuilder.o .libs/Movie.o .libs/NameToCharCode.o 
.libs/Object.o .libs/OptionalContent.o .libs/Outline.o .libs/OutputDev.o
 .libs/Page.o .libs/PageTransition.o .libs/Parser.o .libs/PDFDoc.o 
.libs/PDFDocEncoding.o .libs/PDFDocFactory.o .libs/PopplerCache.o 
.libs/ProfileData.o .libs/PreScanOutputDev.o .libs/PSTokenizer.o 
.libs/Rendition.o .libs/StdinCachedFile.o .libs/StdinPDFDocBuilder.o 
.libs/Stream.o .libs/strtok_r.o .libs/UnicodeMap.o 
.libs/UnicodeTypeTable.o .libs/ViewerPreferences.o .libs/XRef.o 
.libs/PSOutputDev.o .libs/TextOutputDev.o .libs/PageLabelInfo.o 
.libs/SecurityHandler.o .libs/Sound.o .libs/XpdfPluginAPI.o  
-Wl,--whole-archive ../goo/.libs/libgoo.a ../fofi/.libs/libfofi.a 
../splash/.libs/libsplash.a -Wl,--no-whole-archive  -Wl,-rpath 
-Wl,/home/islamhassan/Development/Tools/embeddedLinux/crosstool-ng/arm-s5pv210-linux_2.6.35.7-glibc/arm-unknown-linux-gnueabi/lib -Wl,-rpath -Wl,/home/islamhassan/Development/Tools/embeddedLinux/crosstool-ng/arm-s5pv210-linux_2.6.35.7-glibc/arm-unknown-linux-gnueabi/lib -L/home/islamhassan/Development/embedded_linux/buildroot-2012.02/output/staging/usr/lib,-L/home/islamhassan/Development/embedded_linux/buildroot-2012.02/output/staging/lib -lfreetype -lfontconfig -L/home/islamhassan/Development/Tools/embeddedLinux/crosstool-ng/arm-s5pv210-linux_2.6.35.7-glibc/lib/gcc/arm-unknown-linux-gnueabi/4.4.3 -L/home/islamhassan/Development/Tools/embeddedLinux/crosstool-ng/arm-s5pv210-linux_2.6.35.7-glibc/lib/gcc/arm-unknown-linux-gnueabi/4.4.3/../../../../arm-unknown-linux-gnueabi/lib -L/home/islamhassan/Development/Tools/embeddedLinux/crosstool-ng/arm-s5pv210-linux_2.6.35.7-glibc/arm-unknown-linux-gnueabi/sysroot/lib -L/home/islamhassan/Development/Tools/embeddedLinux/crosstool-ng/arm-s5pv210-linux_2.6.35.7-glibc/arm-unknown-linux-gnueabi/sysroot/usr/lib /home/islamhassan/Development/Tools/embeddedLinux/crosstool-ng/arm-s5pv210-linux_2.6.35.7-glibc/arm-unknown-linux-gnueabi/lib/libstdc++.so -lm -lc -lgcc_s /home/islamhassan/Development/Tools/embeddedLinux/crosstool-ng/arm-s5pv210-linux_2.6.35.7-glibc/lib/gcc/arm-unknown-linux-gnueabi/4.4.3/crtendS.o /home/islamhassan/Development/Tools/embeddedLinux/crosstool-ng/arm-s5pv210-linux_2.6.35.7-glibc/arm-unknown-linux-gnueabi/sysroot/usr/lib/crtn.o  -O2 -pthread   -pthread -Wl,-soname -Wl,libpoppler.so.26 -o .libs/libpoppler.so.26.0.0<br>

/home/islamhassan/Development/Tools/embeddedLinux/crosstool-ng/arm-s5pv210-linux_2.6.35.7-glibc/lib/gcc/arm-unknown-linux-gnueabi/4.4.3/../../../../arm-unknown-linux-gnueabi/bin/ld: cannot find -lfreetype<br><br></div></div>
<div>When I used the space separated LDFLAGS, configure gave me this error:<br><br><div style="margin-left:40px">checking whether the C compiler works... no<br>
configure: error: in `/home/islamhassan/<div>Development/embedded_linux/poppler/poppler-0.20.1':<br>
configure: error: C compiler cannot create executables<br>
See `config.log' for more details<br><br></div></div><div>but It didn't clarify the cause, I tried it now with sudo and the configuration completed.<br><br>Third, I checked the config.log and you were right, configure used "-I/usr/include/freetype2" so I added <br>
<br><div style="margin-left:40px">FREETYPE_LIBS=-L/home/islamhassan/Development/embedded_linux/buildroot-2012.02/output/staging/usr/lib FEETYPE_CFLAGS=-I/home/islamhassan/Development/embedded_linux/buildroot-2012.02/output/staging/usr/include/freetype2/freetype<br>
<br></div></div></div>So now this is how this the configure command looks like:<br><br></div><div style="margin-left:40px">sudo ./configure --build=x86_64-pc-linux-gnu --host=arm-linux --disable-libpng --disable-cairo-output --disable-poppler-glib --disable-cms CPPFLAGS=-I/home/islamhassan/Development/embedded_linux/buildroot-2012.02/output/staging/usr/include LDFLAGS="-L/home/islamhassan/Development/embedded_linux/buildroot-2012.02/output/staging/usr/lib -L/home/islamhassan/Development/embedded_linux/buildroot-2012.02/output/staging/lib" CFLAGS=-I/home/islamhassan/Development/embedded_linux/buildroot-2012.02/output/staging/usr/include PKG_CONFIG_LIBDIR=/home/islamhassan/Development/embedded_linux/buildroot-2012.02/output/staging/usr/lib/pkgconfig/ FREETYPE_LIBS=-L/home/islamhassan/Development/embedded_linux/buildroot-2012.02/output/staging/usr/lib FREETYPE_CFLAGS=-I/home/islamhassan/Development/embedded_linux/buildroot-2012.02/output/staging/usr/include/freetype2/freetype<br>
<br></div>and this is the error I get now when I use make:<br><br><div style="margin-left:40px">Making all in splash<br>make[2]: Entering directory `/home/islamhassan/Development/embedded_linux/poppler/poppler-0.20.1/splash'<br>
  CXX    Splash.lo<br>  CXX    SplashBitmap.lo<br>SplashBitmap.cc: In member function 'SplashError SplashBitmap::writeAlphaPGMFile(char*)':<br>SplashBitmap.cc:252:38: warning: ignoring return value of 'size_t fwrite(const void*, size_t, size_t, FILE*)', declared with attribute warn_unused_result [-Wunused-result]<br>
SplashBitmap.cc: In member function 'SplashError SplashBitmap::writePNMFile(FILE*)':<br>SplashBitmap.cc:186:31: warning: ignoring return value of 'size_t fwrite(const void*, size_t, size_t, FILE*)', declared with attribute warn_unused_result [-Wunused-result]<br>
SplashBitmap.cc:195:35: warning: ignoring return value of 'size_t fwrite(const void*, size_t, size_t, FILE*)', declared with attribute warn_unused_result [-Wunused-result]<br>  CXX    SplashClip.lo<br>  CXX    SplashFTFont.lo<br>
In file included from SplashFTFont.cc:33:0:<br>/home/islamhassan/Development/embedded_linux/buildroot-2012.02/output/staging/usr/include/ft2build.h:56:38: fatal error: freetype/config/ftheader.h: No such file or directory<br>
compilation terminated.<br>make[2]: *** [SplashFTFont.lo] Error 1<br>make[2]: Leaving directory `/home/islamhassan/Development/embedded_linux/poppler/poppler-0.20.1/splash'<br>make[1]: *** [all-recursive] Error 1<br>make[1]: Leaving directory `/home/islamhassan/Development/embedded_linux/poppler/poppler-0.20.1'<br>
make: *** [all] Error 2<br><br></div>I couldn't attach the 'make V=1' log because it's truncated like the last time so here's the last part of it:<br><br><div style="margin-left:40px">libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -I../poppler -I.. -I../goo -I/home/islamhassan/Development/embedded_linux/buildroot-2012.02/output/staging/usr/include/freetype2/freetype -I/home/islamhassan/Development/embedded_linux/buildroot-2012.02/output/staging/usr/include -Wall -Woverloaded-virtual -Wnon-virtual-dtor -Wcast-align -fno-exceptions -fno-check-new -fno-common -g -O2 -ansi -MT SplashFTFont.lo -MD -MP -MF .deps/SplashFTFont.Tpo -c SplashFTFont.cc  -fPIC -DPIC -o .libs/SplashFTFont.o<br>
In file included from SplashFTFont.cc:33:0:<br>/home/islamhassan/Development/embedded_linux/buildroot-2012.02/output/staging/usr/include/ft2build.h:56:38: fatal error: freetype/config/ftheader.h: No such file or directory<br>
compilation terminated.<br>make[2]: *** [SplashFTFont.lo] Error 1<br></div><br>It says that "freetype/config/ftheader.h" doesn't exist. I checked it and it's in ".../staging/usr/include/freetype2/freetype/config"<br>
<div><div><div><div><br><div class="gmail_quote">On Sat, Jun 23, 2012 at 3:33 AM, suzuki toshiya <span dir="ltr"><<a href="mailto:mpsuzuki@hiroshima-u.ac.jp" target="_blank">mpsuzuki@hiroshima-u.ac.jp</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">The CFLAGS that Islam given had used correctly.<br>
<br>
However, to use FreeType2 header file (not library, please be careful),<br>
giving the top directory like "/xxx/include" does not match with FreeType2<br>
convention. "/xxx/include/freetype2" should be used.<br>
<br>
The CFLAGS for FreeType2 is set by freetype2.pc (via pkg-config), or<br>
freetype-config, or, setting FREETYPE_CFLAGS and _LIBS. Please find<br>
configure --help output.<br>
<br>
If the freetype2 header files for host system is included, and,<br>
its version or configuration is different from the freetype2 for<br>
target, some incompatibility issues between header file / library<br>
file may occur. It should be avoided.<br>
<br>
BTW, looking the options that Islam gave, I'm afraid there was wrongly<br>
comma-separated options, like,<br>
-L/home/islamhassan/<u></u>Development/embedded_linux/<u></u>buildroot-2012.02/output/<u></u>staging/usr/lib,-L/home/<u></u>islamhassan/Development/<u></u>embedded_linux/buildroot-2012.<u></u>02/output/staging/lib<br>
I suppose it should be separated by the space.<br>
<br>
Regards,<br>
mpsuzuki<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
On Sat, Jun 23, 2012 at 1:13 AM, suzuki toshiya<br>
<<a href="mailto:mpsuzuki@hiroshima-u.ac.jp" target="_blank">mpsuzuki@hiroshima-u.ac.jp</a>><u></u>wrote:<br>
<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
Excuse me, does this file include the error message?<br>
I could not find the line saying "cannot find -lfreetype".<br>
<br>
In addition, I want to see you config.log again,<br>
Apparently freetype2 for host (x86-64) is tried to be used,<br>
as you can find "-I/usr/include/freetype2".<br>
<br>
Regards,<br>
mpsuzuki<br></div></blockquote></blockquote></blockquote></div></div></div></div></div></div>