[poppler] Fontconfig issue whilst building Poppler 0.62.0

suzuki toshiya mpsuzuki at hiroshima-u.ac.jp
Fri Mar 23 18:11:14 UTC 2018


> the patch fixed the archive library issue was here:
> https://github.com/freedesktop/poppler/commit/a89e7474fcd9e7e6dd1330c585130346aa862598 
> 
> (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/a89e7474fcd9e7e6dd1330c585130346aa862598 
> 
> (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/
>>
>>
> 



More information about the poppler mailing list