<div dir="ltr">Dear all,<br><br>Just an update on this.<br><br>Our poppler binary ran into trouble at runtime. It was due to the only dynamically linked library (freetype 2.4) being out of date. So I rebuilt the binary with freetype 2.9 as a static but ran into issues building poppler. We fixed this by hard coding the value of the freetype library in the CMakelist.txt. Just wanted to let you guys know. <br><br><b>The fix</b><br><div>set(FREETYPE_LIBRARIES "/usr/local/lib/libfreetype.a")</div><div>set(poppler_LIBS ${poppler_LIBS} ${FREETYPE_LIBRARIES})<br><br><b>Error Output from Poppler</b></div><div><div>[ 62%] Linking CXX executable pdftoppm</div><div>cd /root/Poppler_Update/poppler-0.63.0/build/utils && /usr/local/bin/cmake -E cmake_link_script CMakeFiles/pdftoppm.dir/link.txt --verbose=1</div><div>/usr/bin/c++ -Wall -Wextra -Wpedantic -Wno-unused-parameter -Wcast-align -Wformat-security -Wframe-larger-than=65536 -Wlogical-op -Wmissing-format-attribute -Wnon-virtual-dtor -Woverloaded-virtual -Wmissing-declarations -Wundef -Wzero-as-null-pointer-constant -fno-exceptions -fno-check-new -fno-common -D_DEFAULT_SOURCE -O2 -DNDEBUG -Wl,--as-needed -rdynamic CMakeFiles/pdftoppm.dir/parseargs.cc.o CMakeFiles/pdftoppm.dir/Win32Console.cc.o CMakeFiles/pdftoppm.dir/pdftoppm.cc.o -o pdftoppm ../libpoppler.a -L/usr/local/lib -lfontconfig -luuid -lxml2 -lm -lfreetype -lz /usr/local/lib/libjpeg.a -lz /usr/local/lib/liblcms2.a /usr/local/lib/libpng.a -lz /usr/local/lib/liblcms2.a /usr/local/lib/libpng.a -pthread</div><div>../libpoppler.a(SplashFTFontEngine.cc.o): In function `SplashFTFontEngine::SplashFTFontEngine(bool, bool, bool, FT_LibraryRec_*)':</div><div>SplashFTFontEngine.cc:(.text+0x28): undefined reference to `FT_Library_Version'</div><div>../libpoppler.a(SplashFTFontEngine.cc.o): In function `SplashFTFontEngine::init(bool, bool, bool)':</div><div>SplashFTFontEngine.cc:(.text+0x88): undefined reference to `FT_Init_FreeType'</div><div>../libpoppler.a(SplashFTFontEngine.cc.o): In function `SplashFTFontEngine::~SplashFTFontEngine()':</div><div>SplashFTFontEngine.cc:(.text+0xd5): undefined reference to `FT_Done_FreeType'</div><div>../libpoppler.a(SplashFTFontFile.cc.o): In function `SplashFTFontFile::~SplashFTFontFile()':</div><div>SplashFTFontFile.cc:(.text+0x15): undefined reference to `FT_Done_Face'</div><div>../libpoppler.a(SplashFTFontFile.cc.o): In function `SplashFTFontFile::loadType1Font(SplashFTFontEngine*, SplashFontFileID*, SplashFontSrc*, char const**)':</div><div>SplashFTFontFile.cc:(.text+0xd9): undefined reference to `FT_New_Face'</div><div>SplashFTFontFile.cc:(.text+0x127): undefined reference to `FT_Get_Name_Index'</div><div>SplashFTFontFile.cc:(.text+0x149): undefined reference to `FT_Get_Name_Index'</div><div>SplashFTFontFile.cc:(.text+0x1ca): undefined reference to `FT_New_Memory_Face'</div><div>../libpoppler.a(SplashFTFontFile.cc.o): In function `SplashFTFontFile::loadCIDFont(SplashFTFontEngine*, SplashFontFileID*, SplashFontSrc*, int*, int)':</div><div>SplashFTFontFile.cc:(.text+0x228): undefined reference to `FT_New_Face'</div><div>SplashFTFontFile.cc:(.text+0x29c): undefined reference to `FT_New_Memory_Face'</div><div>../libpoppler.a(SplashFTFontFile.cc.o): In function `SplashFTFontFile::loadTrueTypeFont(SplashFTFontEngine*, SplashFontFileID*, SplashFontSrc*, int*, int, int)':</div><div>SplashFTFontFile.cc:(.text+0x2f9): undefined reference to `FT_New_Face'</div><div>SplashFTFontFile.cc:(.text+0x36d): undefined reference to `FT_New_Memory_Face'</div><div>../libpoppler.a(SplashFTFont.cc.o): In function `SplashFTFont::getGlyphAdvance(int)':</div><div>SplashFTFont.cc:(.text+0x92): undefined reference to `FT_Set_Transform'</div><div>SplashFTFont.cc:(.text+0xe8): undefined reference to `FT_Load_Glyph'</div><div><continues the same></div><div style="font-weight:bold"><br></div><br></div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><p><span style="font-size:10.5pt;line-height:105%;font-family:"Arial","sans-serif"">Kind regards,</span><br><font face="Arial, sans-serif"><span style="font-size:14px;line-height:14.7px">Simon Lee Shugar</span></font><br>
<br>
<span style="font-size:10.5pt;line-height:105%;font-family:"Arial","sans-serif"">--</span><br style="font-size:12.8px"></p><div style="font-size:12.8px"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><p><span style="font-size:12.8px"><img width="96" height="22" src="cid:image001.jpg@01D0FFA2.70341270" alt="Veeva Systems - Zinc Team"></span><br></p></div></div></div></div></div></div></div></div></div></div></div><p>
<span style="font-size:10.5pt;line-height:105%;font-family:"Arial","sans-serif""><b><font color="#666666">Simon Shugar</font></b></span><br><font face="Arial, sans-serif"><span style="font-size:14px;line-height:14.7px">Software Engineer</span></font><br>
<span style="font-size:10.5pt;line-height:105%;font-family:"Arial","sans-serif""><font color="#e69138"><b>Veeva
Systems </b></font></span><br>
<span style="font-size:10.5pt;line-height:105%;font-family:"Arial","sans-serif";color:#4e87a0"><a href="mailto:simon.shugar@veeva.com" target="_blank"><span style="color:#4e87a0">simon.shugar@veeva.com</span></a></span><br>
<span style="font-size:10.5pt;line-height:105%;font-family:"Arial","sans-serif";color:#4e87a0"><a href="http://www.veeva.com" target="_blank"><span style="color:#4e87a0">www.veeva.com</span></a></span><br>
<br>
<i><span style="font-size:7.5pt;line-height:105%;font-family:"Arial","sans-serif";color:#717171">This email and the information it contains are intended for the
intended recipient only, are confidential and may be privileged information
exempt from disclosure by law.</span></i><br>
<i><span style="font-size:7.5pt;line-height:105%;font-family:"Arial","sans-serif";color:#717171">If you have received this email in error, please notify us
immediately by reply email and delete this message from your computer.</span></i><br>
<i><span style="font-size:7.5pt;line-height:105%;font-family:"Arial","sans-serif";color:#717171">Please do not retain, copy or distribute this email.</span></i><span style="color:#1f497d"></span></p></div></div></div></div></div></div></div></div>
<br><div class="gmail_quote">On Fri, Mar 23, 2018 at 11:11 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"><span class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
the patch fixed the archive library issue was here:<br>
<a href="https://github.com/freedesktop/poppler/commit/a89e7474fcd9e7e6dd1330c585130346aa862598" rel="noreferrer" target="_blank">https://github.com/freedesktop<wbr>/poppler/commit/a89e7474fcd9e7<wbr>e6dd1330c585130346aa862598</a> <br>
(this was on 2018-Jan-16, 0.62.0 was on 2017-Dec-03)<br>
</blockquote>
<br></span>
Or, you can disable all sub-libraries like libpoppler-cpp, libpoppler-glib, libpoppler-qt5, g-introspection etc.<br>
Please look at CMakeLists.txt which target you really need.<br>
<br>
Regards,<br>
mpsuzuki<div class="HOEnZb"><div class="h5"><br>
<br>
suzuki toshiya wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Dear Simon,<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Also thanks for the advice on root Germán.<br>
</blockquote>
<br>
But you want to continue do as the root :-)<br>
<br>
Your building process tries to make a shared library libpoppler-cpp.so and failed.<br>
Ah... I remember, the archive library target by cmake was not maintained until 0.63.0.<br>
you seem to work with 0.62.0.<br>
<br>
the patch fixed the archive library issue was here:<br>
<a href="https://github.com/freedesktop/poppler/commit/a89e7474fcd9e7e6dd1330c585130346aa862598" rel="noreferrer" target="_blank">https://github.com/freedesktop<wbr>/poppler/commit/a89e7474fcd9e7<wbr>e6dd1330c585130346aa862598</a> <br>
(this was on 2018-Jan-16, 0.62.0 was on 2017-Dec-03)<br>
<br>
Regards,<br>
mpsuzuki<br>
<br>
<br>
Simon Shugar wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Germán, Suzuki,<br>
<br>
Thanks for your help. As part of my build process I actually do set the pkg path. I must of unset it before running the patch (no clue why). When I set the path again and run it with the patch it got past the point of failure.<br>
<br>
I've gone past the point of failure at 62% to 96%. I get a new issue now which I'll continue to look into.<br>
<br>
Also thanks for the advice on root Germán.<br>
<br>
Error Output<br>
<br>
Scanning dependencies of target poppler-cpp<br>
make[2]: Leaving directory `/root/Poppler_Update/poppler-<wbr>0.62.0/build'<br>
make -f cpp/CMakeFiles/poppler-cpp.dir<wbr>/build.make cpp/CMakeFiles/poppler-cpp.dir<wbr>/build<br>
make[2]: Entering directory `/root/Poppler_Update/poppler-<wbr>0.62.0/build'<br>
[ 90%] Building CXX object cpp/CMakeFiles/poppler-cpp.dir<wbr>/poppler-document.cpp.o<br>
cd /root/Poppler_Update/poppler-0<wbr>.62.0/build/cpp && /usr/bin/c++ -Dpoppler_cpp_EXPORTS -I/root/Poppler_Update/poppler<wbr>-0.62.0 -I/root/Poppler_Update/poppler<wbr>-0.62.0/fofi -I/root/Poppler_Update/poppler<wbr>-0.62.0/goo -I/root/Poppler_Update/poppler<wbr>-0.62.0/poppler -I/root/Poppler_Update/poppler<wbr>-0.62.0/build -I/root/Poppler_Update/poppler<wbr>-0.62.0/build/poppler -I/root/Poppler_Update/poppler<wbr>-0.62.0/cpp -I/root/Poppler_Update/poppler<wbr>-0.62.0/build/cpp -I/usr/local/include -I/usr/local/include/<wbr>freetype2 -Wall -Wextra -Wpedantic -Wno-unused-parameter -Wno-missing-field-initializer<wbr>s -Wcast-align -Wformat-security -Wframe-larger-than=65536 -Wlogical-op -Wmissing-format-attribute -Wnon-virtual-dtor -Woverloaded-virtual -Wmissing-declarations -Wundef -fno-exceptions -fno-check-new -fno-common -D_DEFAULT_SOURCE -O2 -DNDEBUG -fPIC -std=c++11 -o CMakeFiles/poppler-cpp.dir/pop<wbr>pler-document.cpp.o -c /root/Poppler_Update/poppler-0<wbr>.62.0/cpp/poppler-document.cpp<br>
[ 90%] Building CXX object cpp/CMakeFiles/poppler-cpp.dir<wbr>/poppler-embedded-file.cpp.o<br>
cd /root/Poppler_Update/poppler-0<wbr>.62.0/build/cpp && /usr/bin/c++ -Dpoppler_cpp_EXPORTS -I/root/Poppler_Update/poppler<wbr>-0.62.0 -I/root/Poppler_Update/poppler<wbr>-0.62.0/fofi -I/root/Poppler_Update/poppler<wbr>-0.62.0/goo -I/root/Poppler_Update/poppler<wbr>-0.62.0/poppler -I/root/Poppler_Update/poppler<wbr>-0.62.0/build -I/root/Poppler_Update/poppler<wbr>-0.62.0/build/poppler -I/root/Poppler_Update/poppler<wbr>-0.62.0/cpp -I/root/Poppler_Update/poppler<wbr>-0.62.0/build/cpp -I/usr/local/include -I/usr/local/include/<wbr>freetype2 -Wall -Wextra -Wpedantic -Wno-unused-parameter -Wno-missing-field-initializer<wbr>s -Wcast-align -Wformat-security -Wframe-larger-than=65536 -Wlogical-op -Wmissing-format-attribute -Wnon-virtual-dtor -Woverloaded-virtual -Wmissing-declarations -Wundef -fno-exceptions -fno-check-new -fno-common -D_DEFAULT_SOURCE -O2 -DNDEBUG -fPIC -std=c++11 -o CMakeFiles/poppler-cpp.dir/pop<wbr>pler-embedded-file.cpp.o -c /root/Poppler_Update/poppler-0<wbr>.62.0/cpp/poppler-embedded-fil<wbr>e.cpp<br>
[ 91%] Building CXX object cpp/CMakeFiles/poppler-cpp.dir<wbr>/poppler-font.cpp.o<br>
cd /root/Poppler_Update/poppler-0<wbr>.62.0/build/cpp && /usr/bin/c++ -Dpoppler_cpp_EXPORTS -I/root/Poppler_Update/poppler<wbr>-0.62.0 -I/root/Poppler_Update/poppler<wbr>-0.62.0/fofi -I/root/Poppler_Update/poppler<wbr>-0.62.0/goo -I/root/Poppler_Update/poppler<wbr>-0.62.0/poppler -I/root/Poppler_Update/poppler<wbr>-0.62.0/build -I/root/Poppler_Update/poppler<wbr>-0.62.0/build/poppler -I/root/Poppler_Update/poppler<wbr>-0.62.0/cpp -I/root/Poppler_Update/poppler<wbr>-0.62.0/build/cpp -I/usr/local/include -I/usr/local/include/<wbr>freetype2 -Wall -Wextra -Wpedantic -Wno-unused-parameter -Wno-missing-field-initializer<wbr>s -Wcast-align -Wformat-security -Wframe-larger-than=65536 -Wlogical-op -Wmissing-format-attribute -Wnon-virtual-dtor -Woverloaded-virtual -Wmissing-declarations -Wundef -fno-exceptions -fno-check-new -fno-common -D_DEFAULT_SOURCE -O2 -DNDEBUG -fPIC -std=c++11 -o CMakeFiles/poppler-cpp.dir/pop<wbr>pler-font.cpp.o -c /root/Poppler_Update/poppler-0<wbr>.62.0/cpp/poppler-font.cpp<br>
[ 91%] Building CXX object cpp/CMakeFiles/poppler-cpp.dir<wbr>/poppler-global.cpp.o<br>
cd /root/Poppler_Update/poppler-0<wbr>.62.0/build/cpp && /usr/bin/c++ -Dpoppler_cpp_EXPORTS -I/root/Poppler_Update/poppler<wbr>-0.62.0 -I/root/Poppler_Update/poppler<wbr>-0.62.0/fofi -I/root/Poppler_Update/poppler<wbr>-0.62.0/goo -I/root/Poppler_Update/poppler<wbr>-0.62.0/poppler -I/root/Poppler_Update/poppler<wbr>-0.62.0/build -I/root/Poppler_Update/poppler<wbr>-0.62.0/build/poppler -I/root/Poppler_Update/poppler<wbr>-0.62.0/cpp -I/root/Poppler_Update/poppler<wbr>-0.62.0/build/cpp -I/usr/local/include -I/usr/local/include/<wbr>freetype2 -Wall -Wextra -Wpedantic -Wno-unused-parameter -Wno-missing-field-initializer<wbr>s -Wcast-align -Wformat-security -Wframe-larger-than=65536 -Wlogical-op -Wmissing-format-attribute -Wnon-virtual-dtor -Woverloaded-virtual -Wmissing-declarations -Wundef -fno-exceptions -fno-check-new -fno-common -D_DEFAULT_SOURCE -O2 -DNDEBUG -fPIC -std=c++11 -o CMakeFiles/poppler-cpp.dir/pop<wbr>pler-global.cpp.o -c /root/Poppler_Update/poppler-0<wbr>.62.0/cpp/poppler-global.cpp<br>
[ 92%] Building CXX object cpp/CMakeFiles/poppler-cpp.dir<wbr>/poppler-image.cpp.o<br>
cd /root/Poppler_Update/poppler-0<wbr>.62.0/build/cpp && /usr/bin/c++ -Dpoppler_cpp_EXPORTS -I/root/Poppler_Update/poppler<wbr>-0.62.0 -I/root/Poppler_Update/poppler<wbr>-0.62.0/fofi -I/root/Poppler_Update/poppler<wbr>-0.62.0/goo -I/root/Poppler_Update/poppler<wbr>-0.62.0/poppler -I/root/Poppler_Update/poppler<wbr>-0.62.0/build -I/root/Poppler_Update/poppler<wbr>-0.62.0/build/poppler -I/root/Poppler_Update/poppler<wbr>-0.62.0/cpp -I/root/Poppler_Update/poppler<wbr>-0.62.0/build/cpp -I/usr/local/include -I/usr/local/include/<wbr>freetype2 -Wall -Wextra -Wpedantic -Wno-unused-parameter -Wno-missing-field-initializer<wbr>s -Wcast-align -Wformat-security -Wframe-larger-than=65536 -Wlogical-op -Wmissing-format-attribute -Wnon-virtual-dtor -Woverloaded-virtual -Wmissing-declarations -Wundef -fno-exceptions -fno-check-new -fno-common -D_DEFAULT_SOURCE -O2 -DNDEBUG -fPIC -std=c++11 -o CMakeFiles/poppler-cpp.dir/pop<wbr>pler-image.cpp.o -c /root/Poppler_Update/poppler-0<wbr>.62.0/cpp/poppler-image.cpp<br>
[ 92%] Building CXX object cpp/CMakeFiles/poppler-cpp.dir<wbr>/poppler-page.cpp.o<br>
cd /root/Poppler_Update/poppler-0<wbr>.62.0/build/cpp && /usr/bin/c++ -Dpoppler_cpp_EXPORTS -I/root/Poppler_Update/poppler<wbr>-0.62.0 -I/root/Poppler_Update/poppler<wbr>-0.62.0/fofi -I/root/Poppler_Update/poppler<wbr>-0.62.0/goo -I/root/Poppler_Update/poppler<wbr>-0.62.0/poppler -I/root/Poppler_Update/poppler<wbr>-0.62.0/build -I/root/Poppler_Update/poppler<wbr>-0.62.0/build/poppler -I/root/Poppler_Update/poppler<wbr>-0.62.0/cpp -I/root/Poppler_Update/poppler<wbr>-0.62.0/build/cpp -I/usr/local/include -I/usr/local/include/<wbr>freetype2 -Wall -Wextra -Wpedantic -Wno-unused-parameter -Wno-missing-field-initializer<wbr>s -Wcast-align -Wformat-security -Wframe-larger-than=65536 -Wlogical-op -Wmissing-format-attribute -Wnon-virtual-dtor -Woverloaded-virtual -Wmissing-declarations -Wundef -fno-exceptions -fno-check-new -fno-common -D_DEFAULT_SOURCE -O2 -DNDEBUG -fPIC -std=c++11 -o CMakeFiles/poppler-cpp.dir/pop<wbr>pler-page.cpp.o -c /root/Poppler_Update/poppler-0<wbr>.62.0/cpp/poppler-page.cpp<br>
[ 93%] Building CXX object cpp/CMakeFiles/poppler-cpp.dir<wbr>/poppler-page-renderer.cpp.o<br>
cd /root/Poppler_Update/poppler-0<wbr>.62.0/build/cpp && /usr/bin/c++ -Dpoppler_cpp_EXPORTS -I/root/Poppler_Update/poppler<wbr>-0.62.0 -I/root/Poppler_Update/poppler<wbr>-0.62.0/fofi -I/root/Poppler_Update/poppler<wbr>-0.62.0/goo -I/root/Poppler_Update/poppler<wbr>-0.62.0/poppler -I/root/Poppler_Update/poppler<wbr>-0.62.0/build -I/root/Poppler_Update/poppler<wbr>-0.62.0/build/poppler -I/root/Poppler_Update/poppler<wbr>-0.62.0/cpp -I/root/Poppler_Update/poppler<wbr>-0.62.0/build/cpp -I/usr/local/include -I/usr/local/include/<wbr>freetype2 -Wall -Wextra -Wpedantic -Wno-unused-parameter -Wno-missing-field-initializer<wbr>s -Wcast-align -Wformat-security -Wframe-larger-than=65536 -Wlogical-op -Wmissing-format-attribute -Wnon-virtual-dtor -Woverloaded-virtual -Wmissing-declarations -Wundef -fno-exceptions -fno-check-new -fno-common -D_DEFAULT_SOURCE -O2 -DNDEBUG -fPIC -std=c++11 -o CMakeFiles/poppler-cpp.dir/pop<wbr>pler-page-renderer.cpp.o -c /root/Poppler_Update/poppler-0<wbr>.62.0/cpp/poppler-page-rendere<wbr>r.cpp<br>
[ 93%] Building CXX object cpp/CMakeFiles/poppler-cpp.dir<wbr>/poppler-page-transition.cpp.o<br>
cd /root/Poppler_Update/poppler-0<wbr>.62.0/build/cpp && /usr/bin/c++ -Dpoppler_cpp_EXPORTS -I/root/Poppler_Update/poppler<wbr>-0.62.0 -I/root/Poppler_Update/poppler<wbr>-0.62.0/fofi -I/root/Poppler_Update/poppler<wbr>-0.62.0/goo -I/root/Poppler_Update/poppler<wbr>-0.62.0/poppler -I/root/Poppler_Update/poppler<wbr>-0.62.0/build -I/root/Poppler_Update/poppler<wbr>-0.62.0/build/poppler -I/root/Poppler_Update/poppler<wbr>-0.62.0/cpp -I/root/Poppler_Update/poppler<wbr>-0.62.0/build/cpp -I/usr/local/include -I/usr/local/include/<wbr>freetype2 -Wall -Wextra -Wpedantic -Wno-unused-parameter -Wno-missing-field-initializer<wbr>s -Wcast-align -Wformat-security -Wframe-larger-than=65536 -Wlogical-op -Wmissing-format-attribute -Wnon-virtual-dtor -Woverloaded-virtual -Wmissing-declarations -Wundef -fno-exceptions -fno-check-new -fno-common -D_DEFAULT_SOURCE -O2 -DNDEBUG -fPIC -std=c++11 -o CMakeFiles/poppler-cpp.dir/pop<wbr>pler-page-transition.cpp.o -c /root/Poppler_Update/poppler-0<wbr>.62.0/cpp/poppler-page-transit<wbr>ion.cpp<br>
[ 94%] Building CXX object cpp/CMakeFiles/poppler-cpp.dir<wbr>/poppler-private.cpp.o<br>
cd /root/Poppler_Update/poppler-0<wbr>.62.0/build/cpp && /usr/bin/c++ -Dpoppler_cpp_EXPORTS -I/root/Poppler_Update/poppler<wbr>-0.62.0 -I/root/Poppler_Update/poppler<wbr>-0.62.0/fofi -I/root/Poppler_Update/poppler<wbr>-0.62.0/goo -I/root/Poppler_Update/poppler<wbr>-0.62.0/poppler -I/root/Poppler_Update/poppler<wbr>-0.62.0/build -I/root/Poppler_Update/poppler<wbr>-0.62.0/build/poppler -I/root/Poppler_Update/poppler<wbr>-0.62.0/cpp -I/root/Poppler_Update/poppler<wbr>-0.62.0/build/cpp -I/usr/local/include -I/usr/local/include/<wbr>freetype2 -Wall -Wextra -Wpedantic -Wno-unused-parameter -Wno-missing-field-initializer<wbr>s -Wcast-align -Wformat-security -Wframe-larger-than=65536 -Wlogical-op -Wmissing-format-attribute -Wnon-virtual-dtor -Woverloaded-virtual -Wmissing-declarations -Wundef -fno-exceptions -fno-check-new -fno-common -D_DEFAULT_SOURCE -O2 -DNDEBUG -fPIC -std=c++11 -o CMakeFiles/poppler-cpp.dir/pop<wbr>pler-private.cpp.o -c /root/Poppler_Update/poppler-0<wbr>.62.0/cpp/poppler-private.cpp<br>
[ 95%] Building CXX object cpp/CMakeFiles/poppler-cpp.dir<wbr>/poppler-rectangle.cpp.o<br>
cd /root/Poppler_Update/poppler-0<wbr>.62.0/build/cpp && /usr/bin/c++ -Dpoppler_cpp_EXPORTS -I/root/Poppler_Update/poppler<wbr>-0.62.0 -I/root/Poppler_Update/poppler<wbr>-0.62.0/fofi -I/root/Poppler_Update/poppler<wbr>-0.62.0/goo -I/root/Poppler_Update/poppler<wbr>-0.62.0/poppler -I/root/Poppler_Update/poppler<wbr>-0.62.0/build -I/root/Poppler_Update/poppler<wbr>-0.62.0/build/poppler -I/root/Poppler_Update/poppler<wbr>-0.62.0/cpp -I/root/Poppler_Update/poppler<wbr>-0.62.0/build/cpp -I/usr/local/include -I/usr/local/include/<wbr>freetype2 -Wall -Wextra -Wpedantic -Wno-unused-parameter -Wno-missing-field-initializer<wbr>s -Wcast-align -Wformat-security -Wframe-larger-than=65536 -Wlogical-op -Wmissing-format-attribute -Wnon-virtual-dtor -Woverloaded-virtual -Wmissing-declarations -Wundef -fno-exceptions -fno-check-new -fno-common -D_DEFAULT_SOURCE -O2 -DNDEBUG -fPIC -std=c++11 -o CMakeFiles/poppler-cpp.dir/pop<wbr>pler-rectangle.cpp.o -c /root/Poppler_Update/poppler-0<wbr>.62.0/cpp/poppler-rectangle.cp<wbr>p<br>
[ 95%] Building CXX object cpp/CMakeFiles/poppler-cpp.dir<wbr>/poppler-toc.cpp.o<br>
cd /root/Poppler_Update/poppler-0<wbr>.62.0/build/cpp && /usr/bin/c++ -Dpoppler_cpp_EXPORTS -I/root/Poppler_Update/poppler<wbr>-0.62.0 -I/root/Poppler_Update/poppler<wbr>-0.62.0/fofi -I/root/Poppler_Update/poppler<wbr>-0.62.0/goo -I/root/Poppler_Update/poppler<wbr>-0.62.0/poppler -I/root/Poppler_Update/poppler<wbr>-0.62.0/build -I/root/Poppler_Update/poppler<wbr>-0.62.0/build/poppler -I/root/Poppler_Update/poppler<wbr>-0.62.0/cpp -I/root/Poppler_Update/poppler<wbr>-0.62.0/build/cpp -I/usr/local/include -I/usr/local/include/<wbr>freetype2 -Wall -Wextra -Wpedantic -Wno-unused-parameter -Wno-missing-field-initializer<wbr>s -Wcast-align -Wformat-security -Wframe-larger-than=65536 -Wlogical-op -Wmissing-format-attribute -Wnon-virtual-dtor -Woverloaded-virtual -Wmissing-declarations -Wundef -fno-exceptions -fno-check-new -fno-common -D_DEFAULT_SOURCE -O2 -DNDEBUG -fPIC -std=c++11 -o CMakeFiles/poppler-cpp.dir/pop<wbr>pler-toc.cpp.o -c /root/Poppler_Update/poppler-0<wbr>.62.0/cpp/poppler-toc.cpp<br>
[ 96%] Building CXX object cpp/CMakeFiles/poppler-cpp.dir<wbr>/poppler-version.cpp.o<br>
cd /root/Poppler_Update/poppler-0<wbr>.62.0/build/cpp && /usr/bin/c++ -Dpoppler_cpp_EXPORTS -I/root/Poppler_Update/poppler<wbr>-0.62.0 -I/root/Poppler_Update/poppler<wbr>-0.62.0/fofi -I/root/Poppler_Update/poppler<wbr>-0.62.0/goo -I/root/Poppler_Update/poppler<wbr>-0.62.0/poppler -I/root/Poppler_Update/poppler<wbr>-0.62.0/build -I/root/Poppler_Update/poppler<wbr>-0.62.0/build/poppler -I/root/Poppler_Update/poppler<wbr>-0.62.0/cpp -I/root/Poppler_Update/poppler<wbr>-0.62.0/build/cpp -I/usr/local/include -I/usr/local/include/<wbr>freetype2 -Wall -Wextra -Wpedantic -Wno-unused-parameter -Wno-missing-field-initializer<wbr>s -Wcast-align -Wformat-security -Wframe-larger-than=65536 -Wlogical-op -Wmissing-format-attribute -Wnon-virtual-dtor -Woverloaded-virtual -Wmissing-declarations -Wundef -fno-exceptions -fno-check-new -fno-common -D_DEFAULT_SOURCE -O2 -DNDEBUG -fPIC -std=c++11 -o CMakeFiles/poppler-cpp.dir/pop<wbr>pler-version.cpp.o -c /root/Poppler_Update/poppler-0<wbr>.62.0/cpp/poppler-version.cpp<br>
[ 96%] Linking CXX shared library libpoppler-cpp.so<br>
cd /root/Poppler_Update/poppler-0<wbr>.62.0/build/cpp && /usr/local/bin/cmake -E cmake_link_script CMakeFiles/poppler-cpp.dir/lin<wbr>k.txt --verbose=1<br>
/usr/bin/c++ -fPIC -Wall -Wextra -Wpedantic -Wno-unused-parameter -Wno-missing-field-initializer<wbr>s -Wcast-align -Wformat-security -Wframe-larger-than=65536 -Wlogical-op -Wmissing-format-attribute -Wnon-virtual-dtor -Woverloaded-virtual -Wmissing-declarations -Wundef -fno-exceptions -fno-check-new -fno-common -D_DEFAULT_SOURCE -O2 -DNDEBUG -Wl,--as-needed -shared -Wl,-soname,libpoppler-cpp.so.<wbr>0 -o libpoppler-cpp.so.0.3.0 CMakeFiles/poppler-cpp.dir/pop<wbr>pler-document.cpp.o CMakeFiles/poppler-cpp.dir/pop<wbr>pler-embedded-file.cpp.o CMakeFiles/poppler-cpp.dir/pop<wbr>pler-font.cpp.o CMakeFiles/poppler-cpp.dir/pop<wbr>pler-global.cpp.o CMakeFiles/poppler-cpp.dir/pop<wbr>pler-image.cpp.o CMakeFiles/poppler-cpp.dir/pop<wbr>pler-page.cpp.o CMakeFiles/poppler-cpp.dir/pop<wbr>pler-page-renderer.cpp.o CMakeFiles/poppler-cpp.dir/pop<wbr>pler-page-transition.cpp.o CMakeFiles/poppler-cpp.dir/pop<wbr>pler-private.cpp.o CMakeFiles/poppler-cpp.dir/pop<wbr>pler-rectangle.cpp.o CMakeFiles/poppler-cpp.dir/pop<wbr>pler-toc.cpp.o CMakeFiles/pop<br>
</blockquote>
pler-cpp.dir/poppler-version.c<wbr>pp.o -Wl,-rpath,/usr/local/lib: ../libpoppler.a -lc /usr/local/lib/libfreetype.so -L/usr/local/lib -lfontconfig -luuid -lxml2 -lm -lfreetype -lz /usr/local/lib/libjpeg.a -lz /usr/local/lib/liblcms2.a /usr/local/lib/libpng.a -lz /usr/local/lib/liblcms2.a /usr/local/lib/libpng.a -pthread<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
/usr/bin/ld: ../libpoppler.a(GooString.cc.o<wbr>): relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC<br>
../libpoppler.a: could not read symbols: Bad value<br>
collect2: error: ld returned 1 exit status<br>
make[2]: *** [cpp/libpoppler-cpp.so.0.3.0] Error 1<br>
make[2]: Leaving directory `/root/Poppler_Update/poppler-<wbr>0.62.0/build'<br>
make[1]: *** [cpp/CMakeFiles/poppler-cpp.di<wbr>r/all] Error 2<br>
make[1]: Leaving directory `/root/Poppler_Update/poppler-<wbr>0.62.0/build'<br>
make: *** [all] Error 2<br>
<br>
<br>
<br>
<br>
<br>
Kind regards,<br>
Simon Lee Shugar<br>
<br>
-- <br>
<br>
[Veeva Systems - Zinc Team]<br>
<br>
Simon Shugar<br>
Software Engineer<br>
Veeva Systems<br>
<a href="mailto:simon.shugar@veeva.com" target="_blank">simon.shugar@veeva.com</a><mailto:<a href="mailto:simon.shugar@veeva.com" target="_blank"><wbr>simon.shugar@veeva.com</a>><br>
<a href="http://www.veeva.com" rel="noreferrer" target="_blank">www.veeva.com</a><<a href="http://www.veeva.com" rel="noreferrer" target="_blank">http://www.veeva<wbr>.com</a>><br>
<br>
This email and the information it contains are intended for the intended recipient only, are confidential and may be privileged information exempt from disclosure by law.<br>
If you have received this email in error, please notify us immediately by reply email and delete this message from your computer.<br>
Please do not retain, copy or distribute this email.<br>
<br>
On Fri, Mar 23, 2018 at 9:56 AM, Germán Poo-Caamaño <<a href="mailto:gpoo@gnome.org" target="_blank">gpoo@gnome.org</a><mailto:<a href="mailto:gpoo@gnome.org" target="_blank">gpoo@gn<wbr>ome.org</a>>> wrote:<br>
On Fri, 2018-03-23 at 09:30 -0700, Simon Shugar wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Dear Suzuki,<br>
<br>
I am using a CentOS linux distro. Running the pkg command does show<br>
that it<br>
doesn't seem to find fontconfig. The output is below. I'll continue<br>
to look<br>
at it my end and see if I can rebuild fontconfig so it registers with<br>
pkg.<br>
<br>
*Output*<br>
[root@localhost build]# pkg-config fontconfig --libs --static<br>
Package fontconfig was not found in the pkg-config search path.<br>
Perhaps you should add the directory containing `fontconfig.pc'<br>
to the PKG_CONFIG_PATH environment variable<br>
No package 'fontconfig' found<br>
</blockquote>
<br>
Hi Simon,<br>
<br>
Do as it says:<br>
<br>
"Perhaps you should add the directory containing `fontconfig.pc'<br>
to the PKG_CONFIG_PATH environment variable"<br>
<br>
Likely, you have to do something like:<br>
<br>
$ export PKG_CONFIG_PATH=$PGK_CONFIG_PA<wbr>TH:/usr/local/share<br>
<br>
Assuming you are installing in /usr/local as the previous log show.<br>
<br>
PS: it is a bad practice to user 'root' as a regular user, as it seems<br>
you are doing for building the applications.<br>
<br>
-- <br>
Germán Poo-Caamaño<br>
<a href="http://calcifer.org/" rel="noreferrer" target="_blank">http://calcifer.org/</a><br>
<br>
<br>
</blockquote>
<br>
</blockquote>
<br>
</div></div></blockquote></div><br></div>