[poppler] Fontconfig issue whilst building Poppler 0.62.0

Simon Shugar simon.shugar at veeva.com
Fri Apr 6 21:27:50 UTC 2018


Dear all,

Just an update on this.

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.

*The fix*
set(FREETYPE_LIBRARIES "/usr/local/lib/libfreetype.a")
set(poppler_LIBS ${poppler_LIBS} ${FREETYPE_LIBRARIES})

*Error Output from Poppler*
[ 62%] Linking CXX executable pdftoppm
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
/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
../libpoppler.a(SplashFTFontEngine.cc.o): In function
`SplashFTFontEngine::SplashFTFontEngine(bool, bool, bool, FT_LibraryRec_*)':
SplashFTFontEngine.cc:(.text+0x28): undefined reference to
`FT_Library_Version'
../libpoppler.a(SplashFTFontEngine.cc.o): In function
`SplashFTFontEngine::init(bool, bool, bool)':
SplashFTFontEngine.cc:(.text+0x88): undefined reference to
`FT_Init_FreeType'
../libpoppler.a(SplashFTFontEngine.cc.o): In function
`SplashFTFontEngine::~SplashFTFontEngine()':
SplashFTFontEngine.cc:(.text+0xd5): undefined reference to
`FT_Done_FreeType'
../libpoppler.a(SplashFTFontFile.cc.o): In function
`SplashFTFontFile::~SplashFTFontFile()':
SplashFTFontFile.cc:(.text+0x15): undefined reference to `FT_Done_Face'
../libpoppler.a(SplashFTFontFile.cc.o): In function
`SplashFTFontFile::loadType1Font(SplashFTFontEngine*, SplashFontFileID*,
SplashFontSrc*, char const**)':
SplashFTFontFile.cc:(.text+0xd9): undefined reference to `FT_New_Face'
SplashFTFontFile.cc:(.text+0x127): undefined reference to
`FT_Get_Name_Index'
SplashFTFontFile.cc:(.text+0x149): undefined reference to
`FT_Get_Name_Index'
SplashFTFontFile.cc:(.text+0x1ca): undefined reference to
`FT_New_Memory_Face'
../libpoppler.a(SplashFTFontFile.cc.o): In function
`SplashFTFontFile::loadCIDFont(SplashFTFontEngine*, SplashFontFileID*,
SplashFontSrc*, int*, int)':
SplashFTFontFile.cc:(.text+0x228): undefined reference to `FT_New_Face'
SplashFTFontFile.cc:(.text+0x29c): undefined reference to
`FT_New_Memory_Face'
../libpoppler.a(SplashFTFontFile.cc.o): In function
`SplashFTFontFile::loadTrueTypeFont(SplashFTFontEngine*, SplashFontFileID*,
SplashFontSrc*, int*, int, int)':
SplashFTFontFile.cc:(.text+0x2f9): undefined reference to `FT_New_Face'
SplashFTFontFile.cc:(.text+0x36d): undefined reference to
`FT_New_Memory_Face'
../libpoppler.a(SplashFTFont.cc.o): In function
`SplashFTFont::getGlyphAdvance(int)':
SplashFTFont.cc:(.text+0x92): undefined reference to `FT_Set_Transform'
SplashFTFont.cc:(.text+0xe8): undefined reference to `FT_Load_Glyph'
<continues the same>



Kind regards,
Simon Lee Shugar

--

[image: Veeva Systems - Zinc Team]

*Simon Shugar*
Software Engineer
*Veeva Systems *
simon.shugar at veeva.com
www.veeva.com

*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.*
*If you have received this email in error, please notify us immediately by
reply email and delete this message from your computer.*
*Please do not retain, copy or distribute this email.*

On Fri, Mar 23, 2018 at 11:11 AM, suzuki toshiya <mpsuzuki at hiroshima-u.ac.jp
> wrote:

> the patch fixed the archive library issue was here:
>> https://github.com/freedesktop/poppler/commit/a89e7474fcd9e7
>> e6dd1330c585130346aa862598
>> (this was on 2018-Jan-16, 0.62.0 was on 2017-Dec-03)
>>
>
> Or, you can disable all sub-libraries like libpoppler-cpp,
> libpoppler-glib, libpoppler-qt5, g-introspection etc.
> Please look at CMakeLists.txt which target you really need.
>
> Regards,
> mpsuzuki
>
>
> suzuki toshiya wrote:
>
>> Dear Simon,
>>
>> Also thanks for the advice on root Germán.
>>>
>>
>> But you want to continue do as the root :-)
>>
>> Your building process tries to make a shared library libpoppler-cpp.so
>> and failed.
>> Ah... I remember, the archive library target by cmake was not maintained
>> until 0.63.0.
>> you seem to work with 0.62.0.
>>
>> the patch fixed the archive library issue was here:
>> https://github.com/freedesktop/poppler/commit/a89e7474fcd9e7
>> e6dd1330c585130346aa862598
>> (this was on 2018-Jan-16, 0.62.0 was on 2017-Dec-03)
>>
>> Regards,
>> mpsuzuki
>>
>>
>> Simon Shugar wrote:
>>
>>> Hi Germán, Suzuki,
>>>
>>> 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.
>>>
>>> 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.
>>>
>>> Also thanks for the advice on root Germán.
>>>
>>> Error Output
>>>
>>> Scanning dependencies of target poppler-cpp
>>> make[2]: Leaving directory `/root/Poppler_Update/poppler-0.62.0/build'
>>> make -f cpp/CMakeFiles/poppler-cpp.dir/build.make
>>> cpp/CMakeFiles/poppler-cpp.dir/build
>>> make[2]: Entering directory `/root/Poppler_Update/poppler-0.62.0/build'
>>> [ 90%] Building CXX object cpp/CMakeFiles/poppler-cpp.dir
>>> /poppler-document.cpp.o
>>> cd /root/Poppler_Update/poppler-0.62.0/build/cpp && /usr/bin/c++
>>> -Dpoppler_cpp_EXPORTS -I/root/Poppler_Update/poppler-0.62.0
>>> -I/root/Poppler_Update/poppler-0.62.0/fofi
>>> -I/root/Poppler_Update/poppler-0.62.0/goo -I/root/Poppler_Update/poppler-0.62.0/poppler
>>> -I/root/Poppler_Update/poppler-0.62.0/build
>>> -I/root/Poppler_Update/poppler-0.62.0/build/poppler
>>> -I/root/Poppler_Update/poppler-0.62.0/cpp -I/root/Poppler_Update/poppler-0.62.0/build/cpp
>>> -I/usr/local/include -I/usr/local/include/freetype2  -Wall -Wextra
>>> -Wpedantic -Wno-unused-parameter -Wno-missing-field-initializers
>>> -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/poppler-document.cpp.o -c
>>> /root/Poppler_Update/poppler-0.62.0/cpp/poppler-document.cpp
>>> [ 90%] Building CXX object cpp/CMakeFiles/poppler-cpp.dir
>>> /poppler-embedded-file.cpp.o
>>> cd /root/Poppler_Update/poppler-0.62.0/build/cpp && /usr/bin/c++
>>> -Dpoppler_cpp_EXPORTS -I/root/Poppler_Update/poppler-0.62.0
>>> -I/root/Poppler_Update/poppler-0.62.0/fofi
>>> -I/root/Poppler_Update/poppler-0.62.0/goo -I/root/Poppler_Update/poppler-0.62.0/poppler
>>> -I/root/Poppler_Update/poppler-0.62.0/build
>>> -I/root/Poppler_Update/poppler-0.62.0/build/poppler
>>> -I/root/Poppler_Update/poppler-0.62.0/cpp -I/root/Poppler_Update/poppler-0.62.0/build/cpp
>>> -I/usr/local/include -I/usr/local/include/freetype2  -Wall -Wextra
>>> -Wpedantic -Wno-unused-parameter -Wno-missing-field-initializers
>>> -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/poppler-embedded-file.cpp.o -c
>>> /root/Poppler_Update/poppler-0.62.0/cpp/poppler-embedded-file.cpp
>>> [ 91%] Building CXX object cpp/CMakeFiles/poppler-cpp.dir
>>> /poppler-font.cpp.o
>>> cd /root/Poppler_Update/poppler-0.62.0/build/cpp && /usr/bin/c++
>>> -Dpoppler_cpp_EXPORTS -I/root/Poppler_Update/poppler-0.62.0
>>> -I/root/Poppler_Update/poppler-0.62.0/fofi
>>> -I/root/Poppler_Update/poppler-0.62.0/goo -I/root/Poppler_Update/poppler-0.62.0/poppler
>>> -I/root/Poppler_Update/poppler-0.62.0/build
>>> -I/root/Poppler_Update/poppler-0.62.0/build/poppler
>>> -I/root/Poppler_Update/poppler-0.62.0/cpp -I/root/Poppler_Update/poppler-0.62.0/build/cpp
>>> -I/usr/local/include -I/usr/local/include/freetype2  -Wall -Wextra
>>> -Wpedantic -Wno-unused-parameter -Wno-missing-field-initializers
>>> -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/poppler-font.cpp.o -c
>>> /root/Poppler_Update/poppler-0.62.0/cpp/poppler-font.cpp
>>> [ 91%] Building CXX object cpp/CMakeFiles/poppler-cpp.dir
>>> /poppler-global.cpp.o
>>> cd /root/Poppler_Update/poppler-0.62.0/build/cpp && /usr/bin/c++
>>> -Dpoppler_cpp_EXPORTS -I/root/Poppler_Update/poppler-0.62.0
>>> -I/root/Poppler_Update/poppler-0.62.0/fofi
>>> -I/root/Poppler_Update/poppler-0.62.0/goo -I/root/Poppler_Update/poppler-0.62.0/poppler
>>> -I/root/Poppler_Update/poppler-0.62.0/build
>>> -I/root/Poppler_Update/poppler-0.62.0/build/poppler
>>> -I/root/Poppler_Update/poppler-0.62.0/cpp -I/root/Poppler_Update/poppler-0.62.0/build/cpp
>>> -I/usr/local/include -I/usr/local/include/freetype2  -Wall -Wextra
>>> -Wpedantic -Wno-unused-parameter -Wno-missing-field-initializers
>>> -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/poppler-global.cpp.o -c
>>> /root/Poppler_Update/poppler-0.62.0/cpp/poppler-global.cpp
>>> [ 92%] Building CXX object cpp/CMakeFiles/poppler-cpp.dir
>>> /poppler-image.cpp.o
>>> cd /root/Poppler_Update/poppler-0.62.0/build/cpp && /usr/bin/c++
>>> -Dpoppler_cpp_EXPORTS -I/root/Poppler_Update/poppler-0.62.0
>>> -I/root/Poppler_Update/poppler-0.62.0/fofi
>>> -I/root/Poppler_Update/poppler-0.62.0/goo -I/root/Poppler_Update/poppler-0.62.0/poppler
>>> -I/root/Poppler_Update/poppler-0.62.0/build
>>> -I/root/Poppler_Update/poppler-0.62.0/build/poppler
>>> -I/root/Poppler_Update/poppler-0.62.0/cpp -I/root/Poppler_Update/poppler-0.62.0/build/cpp
>>> -I/usr/local/include -I/usr/local/include/freetype2  -Wall -Wextra
>>> -Wpedantic -Wno-unused-parameter -Wno-missing-field-initializers
>>> -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/poppler-image.cpp.o -c
>>> /root/Poppler_Update/poppler-0.62.0/cpp/poppler-image.cpp
>>> [ 92%] Building CXX object cpp/CMakeFiles/poppler-cpp.dir
>>> /poppler-page.cpp.o
>>> cd /root/Poppler_Update/poppler-0.62.0/build/cpp && /usr/bin/c++
>>> -Dpoppler_cpp_EXPORTS -I/root/Poppler_Update/poppler-0.62.0
>>> -I/root/Poppler_Update/poppler-0.62.0/fofi
>>> -I/root/Poppler_Update/poppler-0.62.0/goo -I/root/Poppler_Update/poppler-0.62.0/poppler
>>> -I/root/Poppler_Update/poppler-0.62.0/build
>>> -I/root/Poppler_Update/poppler-0.62.0/build/poppler
>>> -I/root/Poppler_Update/poppler-0.62.0/cpp -I/root/Poppler_Update/poppler-0.62.0/build/cpp
>>> -I/usr/local/include -I/usr/local/include/freetype2  -Wall -Wextra
>>> -Wpedantic -Wno-unused-parameter -Wno-missing-field-initializers
>>> -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/poppler-page.cpp.o -c
>>> /root/Poppler_Update/poppler-0.62.0/cpp/poppler-page.cpp
>>> [ 93%] Building CXX object cpp/CMakeFiles/poppler-cpp.dir
>>> /poppler-page-renderer.cpp.o
>>> cd /root/Poppler_Update/poppler-0.62.0/build/cpp && /usr/bin/c++
>>> -Dpoppler_cpp_EXPORTS -I/root/Poppler_Update/poppler-0.62.0
>>> -I/root/Poppler_Update/poppler-0.62.0/fofi
>>> -I/root/Poppler_Update/poppler-0.62.0/goo -I/root/Poppler_Update/poppler-0.62.0/poppler
>>> -I/root/Poppler_Update/poppler-0.62.0/build
>>> -I/root/Poppler_Update/poppler-0.62.0/build/poppler
>>> -I/root/Poppler_Update/poppler-0.62.0/cpp -I/root/Poppler_Update/poppler-0.62.0/build/cpp
>>> -I/usr/local/include -I/usr/local/include/freetype2  -Wall -Wextra
>>> -Wpedantic -Wno-unused-parameter -Wno-missing-field-initializers
>>> -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/poppler-page-renderer.cpp.o -c
>>> /root/Poppler_Update/poppler-0.62.0/cpp/poppler-page-renderer.cpp
>>> [ 93%] Building CXX object cpp/CMakeFiles/poppler-cpp.dir
>>> /poppler-page-transition.cpp.o
>>> cd /root/Poppler_Update/poppler-0.62.0/build/cpp && /usr/bin/c++
>>> -Dpoppler_cpp_EXPORTS -I/root/Poppler_Update/poppler-0.62.0
>>> -I/root/Poppler_Update/poppler-0.62.0/fofi
>>> -I/root/Poppler_Update/poppler-0.62.0/goo -I/root/Poppler_Update/poppler-0.62.0/poppler
>>> -I/root/Poppler_Update/poppler-0.62.0/build
>>> -I/root/Poppler_Update/poppler-0.62.0/build/poppler
>>> -I/root/Poppler_Update/poppler-0.62.0/cpp -I/root/Poppler_Update/poppler-0.62.0/build/cpp
>>> -I/usr/local/include -I/usr/local/include/freetype2  -Wall -Wextra
>>> -Wpedantic -Wno-unused-parameter -Wno-missing-field-initializers
>>> -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/poppler-page-transition.cpp.o -c
>>> /root/Poppler_Update/poppler-0.62.0/cpp/poppler-page-transition.cpp
>>> [ 94%] Building CXX object cpp/CMakeFiles/poppler-cpp.dir
>>> /poppler-private.cpp.o
>>> cd /root/Poppler_Update/poppler-0.62.0/build/cpp && /usr/bin/c++
>>> -Dpoppler_cpp_EXPORTS -I/root/Poppler_Update/poppler-0.62.0
>>> -I/root/Poppler_Update/poppler-0.62.0/fofi
>>> -I/root/Poppler_Update/poppler-0.62.0/goo -I/root/Poppler_Update/poppler-0.62.0/poppler
>>> -I/root/Poppler_Update/poppler-0.62.0/build
>>> -I/root/Poppler_Update/poppler-0.62.0/build/poppler
>>> -I/root/Poppler_Update/poppler-0.62.0/cpp -I/root/Poppler_Update/poppler-0.62.0/build/cpp
>>> -I/usr/local/include -I/usr/local/include/freetype2  -Wall -Wextra
>>> -Wpedantic -Wno-unused-parameter -Wno-missing-field-initializers
>>> -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/poppler-private.cpp.o -c
>>> /root/Poppler_Update/poppler-0.62.0/cpp/poppler-private.cpp
>>> [ 95%] Building CXX object cpp/CMakeFiles/poppler-cpp.dir
>>> /poppler-rectangle.cpp.o
>>> cd /root/Poppler_Update/poppler-0.62.0/build/cpp && /usr/bin/c++
>>> -Dpoppler_cpp_EXPORTS -I/root/Poppler_Update/poppler-0.62.0
>>> -I/root/Poppler_Update/poppler-0.62.0/fofi
>>> -I/root/Poppler_Update/poppler-0.62.0/goo -I/root/Poppler_Update/poppler-0.62.0/poppler
>>> -I/root/Poppler_Update/poppler-0.62.0/build
>>> -I/root/Poppler_Update/poppler-0.62.0/build/poppler
>>> -I/root/Poppler_Update/poppler-0.62.0/cpp -I/root/Poppler_Update/poppler-0.62.0/build/cpp
>>> -I/usr/local/include -I/usr/local/include/freetype2  -Wall -Wextra
>>> -Wpedantic -Wno-unused-parameter -Wno-missing-field-initializers
>>> -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/poppler-rectangle.cpp.o -c
>>> /root/Poppler_Update/poppler-0.62.0/cpp/poppler-rectangle.cpp
>>> [ 95%] Building CXX object cpp/CMakeFiles/poppler-cpp.dir
>>> /poppler-toc.cpp.o
>>> cd /root/Poppler_Update/poppler-0.62.0/build/cpp && /usr/bin/c++
>>> -Dpoppler_cpp_EXPORTS -I/root/Poppler_Update/poppler-0.62.0
>>> -I/root/Poppler_Update/poppler-0.62.0/fofi
>>> -I/root/Poppler_Update/poppler-0.62.0/goo -I/root/Poppler_Update/poppler-0.62.0/poppler
>>> -I/root/Poppler_Update/poppler-0.62.0/build
>>> -I/root/Poppler_Update/poppler-0.62.0/build/poppler
>>> -I/root/Poppler_Update/poppler-0.62.0/cpp -I/root/Poppler_Update/poppler-0.62.0/build/cpp
>>> -I/usr/local/include -I/usr/local/include/freetype2  -Wall -Wextra
>>> -Wpedantic -Wno-unused-parameter -Wno-missing-field-initializers
>>> -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/poppler-toc.cpp.o -c
>>> /root/Poppler_Update/poppler-0.62.0/cpp/poppler-toc.cpp
>>> [ 96%] Building CXX object cpp/CMakeFiles/poppler-cpp.dir
>>> /poppler-version.cpp.o
>>> cd /root/Poppler_Update/poppler-0.62.0/build/cpp && /usr/bin/c++
>>> -Dpoppler_cpp_EXPORTS -I/root/Poppler_Update/poppler-0.62.0
>>> -I/root/Poppler_Update/poppler-0.62.0/fofi
>>> -I/root/Poppler_Update/poppler-0.62.0/goo -I/root/Poppler_Update/poppler-0.62.0/poppler
>>> -I/root/Poppler_Update/poppler-0.62.0/build
>>> -I/root/Poppler_Update/poppler-0.62.0/build/poppler
>>> -I/root/Poppler_Update/poppler-0.62.0/cpp -I/root/Poppler_Update/poppler-0.62.0/build/cpp
>>> -I/usr/local/include -I/usr/local/include/freetype2  -Wall -Wextra
>>> -Wpedantic -Wno-unused-parameter -Wno-missing-field-initializers
>>> -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/poppler-version.cpp.o -c
>>> /root/Poppler_Update/poppler-0.62.0/cpp/poppler-version.cpp
>>> [ 96%] Linking CXX shared library libpoppler-cpp.so
>>> cd /root/Poppler_Update/poppler-0.62.0/build/cpp &&
>>> /usr/local/bin/cmake -E cmake_link_script CMakeFiles/poppler-cpp.dir/link.txt
>>> --verbose=1
>>> /usr/bin/c++ -fPIC -Wall -Wextra -Wpedantic -Wno-unused-parameter
>>> -Wno-missing-field-initializers -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.0 -o
>>> libpoppler-cpp.so.0.3.0 CMakeFiles/poppler-cpp.dir/poppler-document.cpp.o
>>> CMakeFiles/poppler-cpp.dir/poppler-embedded-file.cpp.o
>>> CMakeFiles/poppler-cpp.dir/poppler-font.cpp.o
>>> CMakeFiles/poppler-cpp.dir/poppler-global.cpp.o
>>> CMakeFiles/poppler-cpp.dir/poppler-image.cpp.o
>>> CMakeFiles/poppler-cpp.dir/poppler-page.cpp.o
>>> CMakeFiles/poppler-cpp.dir/poppler-page-renderer.cpp.o
>>> CMakeFiles/poppler-cpp.dir/poppler-page-transition.cpp.o
>>> CMakeFiles/poppler-cpp.dir/poppler-private.cpp.o
>>> CMakeFiles/poppler-cpp.dir/poppler-rectangle.cpp.o
>>> CMakeFiles/poppler-cpp.dir/poppler-toc.cpp.o CMakeFiles/pop
>>>
>> pler-cpp.dir/poppler-version.cpp.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
>>
>>> /usr/bin/ld: ../libpoppler.a(GooString.cc.o): relocation R_X86_64_32
>>> against `.rodata' can not be used when making a shared object; recompile
>>> with -fPIC
>>> ../libpoppler.a: could not read symbols: Bad value
>>> collect2: error: ld returned 1 exit status
>>> make[2]: *** [cpp/libpoppler-cpp.so.0.3.0] Error 1
>>> make[2]: Leaving directory `/root/Poppler_Update/poppler-0.62.0/build'
>>> make[1]: *** [cpp/CMakeFiles/poppler-cpp.dir/all] Error 2
>>> make[1]: Leaving directory `/root/Poppler_Update/poppler-0.62.0/build'
>>> make: *** [all] Error 2
>>>
>>>
>>>
>>>
>>>
>>> Kind regards,
>>> Simon Lee Shugar
>>>
>>> --
>>>
>>> [Veeva Systems - Zinc Team]
>>>
>>> Simon Shugar
>>> Software Engineer
>>> Veeva Systems
>>> simon.shugar at veeva.com<mailto:simon.shugar at veeva.com>
>>> www.veeva.com<http://www.veeva.com>
>>>
>>> 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.
>>> If you have received this email in error, please notify us immediately
>>> by reply email and delete this message from your computer.
>>> Please do not retain, copy or distribute this email.
>>>
>>> On Fri, Mar 23, 2018 at 9:56 AM, Germán Poo-Caamaño <gpoo at gnome.org
>>> <mailto:gpoo at gnome.org>> wrote:
>>> On Fri, 2018-03-23 at 09:30 -0700, Simon Shugar wrote:
>>>
>>>> Dear Suzuki,
>>>>
>>>> I am using a CentOS linux distro. Running the pkg command does show
>>>> that it
>>>> doesn't seem to find fontconfig. The output is below. I'll continue
>>>> to look
>>>> at it my end and see if I can rebuild fontconfig so it registers with
>>>> pkg.
>>>>
>>>> *Output*
>>>> [root at localhost build]# pkg-config fontconfig --libs --static
>>>> Package fontconfig was not found in the pkg-config search path.
>>>> Perhaps you should add the directory containing `fontconfig.pc'
>>>> to the PKG_CONFIG_PATH environment variable
>>>> No package 'fontconfig' found
>>>>
>>>
>>> Hi Simon,
>>>
>>> Do as it says:
>>>
>>> "Perhaps you should add the directory containing `fontconfig.pc'
>>>  to the PKG_CONFIG_PATH environment variable"
>>>
>>> Likely, you have to do something like:
>>>
>>> $ export PKG_CONFIG_PATH=$PGK_CONFIG_PATH:/usr/local/share
>>>
>>> Assuming you are installing in /usr/local as the previous log show.
>>>
>>> PS: it is a bad practice to user 'root' as a regular user, as it seems
>>> you are doing for building the applications.
>>>
>>> --
>>> Germán Poo-Caamaño
>>> http://calcifer.org/
>>>
>>>
>>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/poppler/attachments/20180406/745c89be/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 2034 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/poppler/attachments/20180406/745c89be/attachment-0001.jpg>


More information about the poppler mailing list