Hi,

I'm trying to build Poppler 0.62.0 and running into the following error
when using CMake. I've not much experience with CMake or building libraries
on linux. Has anyone seen the following issue and would be able to point me
in the right direction?

I am roughly following instructions from
http://www.linuxfromscratch.org/blfs/view/svn/general/poppler.html I'm
building everything statically as our we are using an old OS.

I've already installed all dependencies and using pkg-config as my
dependency management tool.

I originally had an issue with UUID when building fontconfig but got round
it by installing util-linux.

*Command*
This is the command(s) I am using.

"mkdir -v build &&
cd       build


cmake  -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=OFF
-DCMAKE_INSTALL_PREFIX=/usr/local -DENABLE_QT5=OFF
-DENABLE_LIBOPENJPEG=none .. && make
make install"

*Output*
This is the error I am receiving.

"Scanning dependencies of target pdftoppm
[ 60%] Building CXX object utils/CMakeFiles/pdftoppm.dir/parseargs.cc.o
[ 61%] Building CXX object utils/CMakeFiles/pdftoppm.dir/Win32Console.cc.o
[ 61%] Building CXX object utils/CMakeFiles/pdftoppm.dir/pdftoppm.cc.o
[ 62%] Linking CXX executable pdftoppm
/usr/local/lib/libfontconfig.a(fchash.o): In function `FcHashUuidCopy':
fchash.c:(.text+0x6e): undefined reference to `uuid_copy'
/usr/local/lib/libfontconfig.a(fcxml.o): In function `FcConfigMessage':
fcxml.c:(.text+0x760): undefined reference to `xmlSAX2GetLineNumber'
fcxml.c:(.text+0x7a5): undefined reference to `xmlSAX2GetLineNumber'
/usr/local/lib/libfontconfig.a(fcxml.o): In function
`FcConfigParseAndLoadFromMemoryInternal':
fcxml.c:(.text+0x55ce): undefined reference to `xmlCreatePushParserCtxt'
fcxml.c:(.text+0x5635): undefined reference to `xmlParseChunk'
fcxml.c:(.text+0x5645): undefined reference to `xmlCtxtGetLastError'
fcxml.c:(.text+0x57bc): undefined reference to `xmlFreeParserCtxt'
/usr/local/lib/libfontconfig.a(fccache.o): In function
`IA__FcDirCacheCreateUUID':
fccache.c:(.text+0x20b): undefined reference to `uuid_generate_random'
fccache.c:(.text+0x26b): undefined reference to `uuid_unparse'
/usr/local/lib/libfontconfig.a(fccache.o): In function `FcDirCacheReadUUID':
fccache.c:(.text+0x484): undefined reference to `uuid_parse'
/usr/local/lib/libfontconfig.a(fccache.o): In function
`FcDirCacheBasenameUUID':
fccache.c:(.text+0x780): undefined reference to `uuid_unparse'
collect2: error: ld returned 1 exit status
make[2]: *** [utils/pdftoppm] Error 1
make[1]: *** [utils/CMakeFiles/pdftoppm.dir/all] Error 2
make: *** [all] Error 2
"

Kind regards,
Simon Lee Shugar

--

[image: Veeva Systems - Zinc Team]

*Simon Shugar*
Software Engineer
*Veeva Systems *
simon.shu...@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.*
_______________________________________________
poppler mailing list
poppler@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/poppler

Reply via email to