<div dir="ltr">Hi,<br><br>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? <br><br>I am roughly following instructions from <a href="http://www.linuxfromscratch.org/blfs/view/svn/general/poppler.html">http://www.linuxfromscratch.org/blfs/view/svn/general/poppler.html</a> I'm building everything statically as our we are using an old OS. <br><br>I've already installed all dependencies and using pkg-config as my dependency management tool.<br><br>I originally had an issue with UUID when building fontconfig but got round it by installing util-linux. <br><br><b>Command</b><br>This is the command(s) I am using.<div><br></div><div>
<div class="gmail-line gmail-number1 gmail-index0 gmail-alt2" style="margin:0px;padding:0px 1em 0px 0px;border-radius:0px;background:0px 50% rgb(255,255,255);border:0px;float:none;height:auto;line-height:20px;outline:0px;overflow:visible;text-align:left;vertical-align:baseline;width:auto;box-sizing:content-box;font-family:Consolas,"Bitstream Vera Sans Mono","Courier New",Courier,monospace;font-weight:400;font-style:normal;font-size:14px;min-height:inherit;white-space:nowrap;color:rgb(51,51,51);font-variant-ligatures:normal;font-variant-caps:normal;letter-spacing:normal;text-indent:0px;text-transform:none;word-spacing:0px;text-decoration-style:initial;text-decoration-color:initial"><code class="gmail-java gmail-plain" style="font-family:Consolas,"Bitstream Vera Sans Mono","Courier New",Courier,monospace;border-radius:0px;background:0px 50%;border:0px;float:none;height:auto;line-height:20px;margin:0px;outline:0px;overflow:visible;padding:0px;text-align:left;vertical-align:baseline;width:auto;box-sizing:content-box;font-weight:normal;font-style:normal;font-size:14px;min-height:inherit;color:rgb(0,0,0)">"mkdir -v build &&</code></div><div class="gmail-line gmail-number2 gmail-index1 gmail-alt1" style="margin:0px;padding:0px 1em 0px 0px;border-radius:0px;background:0px 50% rgb(255,255,255);border:0px;float:none;height:auto;line-height:20px;outline:0px;overflow:visible;text-align:left;vertical-align:baseline;width:auto;box-sizing:content-box;font-family:Consolas,"Bitstream Vera Sans Mono","Courier New",Courier,monospace;font-weight:400;font-style:normal;font-size:14px;min-height:inherit;white-space:nowrap;color:rgb(51,51,51);font-variant-ligatures:normal;font-variant-caps:normal;letter-spacing:normal;text-indent:0px;text-transform:none;word-spacing:0px;text-decoration-style:initial;text-decoration-color:initial"><code class="gmail-java gmail-plain" style="font-family:Consolas,"Bitstream Vera Sans Mono","Courier New",Courier,monospace;border-radius:0px;background:0px 50%;border:0px;float:none;height:auto;line-height:20px;margin:0px;outline:0px;overflow:visible;padding:0px;text-align:left;vertical-align:baseline;width:auto;box-sizing:content-box;font-weight:normal;font-style:normal;font-size:14px;min-height:inherit;color:rgb(0,0,0)">cd build</code></div><div class="gmail-line gmail-number3 gmail-index2 gmail-alt2" style="margin:0px;padding:0px 1em 0px 0px;border-radius:0px;background:0px 50% rgb(255,255,255);border:0px;float:none;height:auto;line-height:20px;outline:0px;overflow:visible;text-align:left;vertical-align:baseline;width:auto;box-sizing:content-box;font-family:Consolas,"Bitstream Vera Sans Mono","Courier New",Courier,monospace;font-weight:400;font-style:normal;font-size:14px;min-height:inherit;white-space:nowrap;color:rgb(51,51,51);font-variant-ligatures:normal;font-variant-caps:normal;letter-spacing:normal;text-indent:0px;text-transform:none;word-spacing:0px;text-decoration-style:initial;text-decoration-color:initial"> </div><div class="gmail-line gmail-number4 gmail-index3 gmail-alt1" style="margin:0px;padding:0px 1em 0px 0px;border-radius:0px;background:0px 50% rgb(255,255,255);border:0px;float:none;height:auto;line-height:20px;outline:0px;overflow:visible;text-align:left;vertical-align:baseline;width:auto;box-sizing:content-box;font-family:Consolas,"Bitstream Vera Sans Mono","Courier New",Courier,monospace;font-weight:400;font-style:normal;font-size:14px;min-height:inherit;white-space:nowrap;color:rgb(51,51,51);font-variant-ligatures:normal;font-variant-caps:normal;letter-spacing:normal;text-indent:0px;text-transform:none;word-spacing:0px;text-decoration-style:initial;text-decoration-color:initial"> </div><div class="gmail-line gmail-number5 gmail-index4 gmail-alt2" style="margin:0px;padding:0px 1em 0px 0px;border-radius:0px;background:0px 50% rgb(255,255,255);border:0px;float:none;height:auto;line-height:20px;outline:0px;overflow:visible;text-align:left;vertical-align:baseline;width:auto;box-sizing:content-box;font-family:Consolas,"Bitstream Vera Sans Mono","Courier New",Courier,monospace;font-weight:400;font-style:normal;font-size:14px;min-height:inherit;white-space:nowrap;color:rgb(51,51,51);font-variant-ligatures:normal;font-variant-caps:normal;letter-spacing:normal;text-indent:0px;text-transform:none;word-spacing:0px;text-decoration-style:initial;text-decoration-color:initial"><code class="gmail-java gmail-plain" style="font-family:Consolas,"Bitstream Vera Sans Mono","Courier New",Courier,monospace;border-radius:0px;background:0px 50%;border:0px;float:none;height:auto;line-height:20px;margin:0px;outline:0px;overflow:visible;padding:0px;text-align:left;vertical-align:baseline;width:auto;box-sizing:content-box;font-weight:normal;font-style:normal;font-size:14px;min-height:inherit;color:rgb(0,0,0)">cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=OFF -DCMAKE_INSTALL_PREFIX=/usr/local -DENABLE_QT5=OFF -DENABLE_LIBOPENJPEG=none .. && make</code></div><div class="gmail-line gmail-number6 gmail-index5 gmail-alt1" style="margin:0px;padding:0px 1em 0px 0px;border-radius:0px;background:0px 50% rgb(255,255,255);border:0px;float:none;height:auto;line-height:20px;outline:0px;overflow:visible;text-align:left;vertical-align:baseline;width:auto;box-sizing:content-box;font-family:Consolas,"Bitstream Vera Sans Mono","Courier New",Courier,monospace;font-weight:400;font-style:normal;font-size:14px;min-height:inherit;white-space:nowrap;color:rgb(51,51,51);font-variant-ligatures:normal;font-variant-caps:normal;letter-spacing:normal;text-indent:0px;text-transform:none;word-spacing:0px;text-decoration-style:initial;text-decoration-color:initial"><code class="gmail-java gmail-plain" style="font-family:Consolas,"Bitstream Vera Sans Mono","Courier New",Courier,monospace;border-radius:0px;background:0px 50%;border:0px;float:none;height:auto;line-height:20px;margin:0px;outline:0px;overflow:visible;padding:0px;text-align:left;vertical-align:baseline;width:auto;box-sizing:content-box;font-weight:normal;font-style:normal;font-size:14px;min-height:inherit;color:rgb(0,0,0)">make install"</code></div>
<br><b>Output</b></div><div>This is the error I am receiving. <br><br>"Scanning dependencies of target pdftoppm<div>[ 60%] Building CXX object utils/CMakeFiles/pdftoppm.dir/parseargs.cc.o</div><div>[ 61%] Building CXX object utils/CMakeFiles/pdftoppm.dir/Win32Console.cc.o</div><div>[ 61%] Building CXX object utils/CMakeFiles/pdftoppm.dir/pdftoppm.cc.o</div><div>[ 62%] Linking CXX executable pdftoppm</div><div>/usr/local/lib/libfontconfig.a(fchash.o): In function `FcHashUuidCopy':</div><div>fchash.c:(.text+0x6e): undefined reference to `uuid_copy'</div><div>/usr/local/lib/libfontconfig.a(fcxml.o): In function `FcConfigMessage':</div><div>fcxml.c:(.text+0x760): undefined reference to `xmlSAX2GetLineNumber'</div><div>fcxml.c:(.text+0x7a5): undefined reference to `xmlSAX2GetLineNumber'</div><div>/usr/local/lib/libfontconfig.a(fcxml.o): In function `FcConfigParseAndLoadFromMemoryInternal':</div><div>fcxml.c:(.text+0x55ce): undefined reference to `xmlCreatePushParserCtxt'</div><div>fcxml.c:(.text+0x5635): undefined reference to `xmlParseChunk'</div><div>fcxml.c:(.text+0x5645): undefined reference to `xmlCtxtGetLastError'</div><div>fcxml.c:(.text+0x57bc): undefined reference to `xmlFreeParserCtxt'</div><div>/usr/local/lib/libfontconfig.a(fccache.o): In function `IA__FcDirCacheCreateUUID':</div><div>fccache.c:(.text+0x20b): undefined reference to `uuid_generate_random'</div><div>fccache.c:(.text+0x26b): undefined reference to `uuid_unparse'</div><div>/usr/local/lib/libfontconfig.a(fccache.o): In function `FcDirCacheReadUUID':</div><div>fccache.c:(.text+0x484): undefined reference to `uuid_parse'</div><div>/usr/local/lib/libfontconfig.a(fccache.o): In function `FcDirCacheBasenameUUID':</div><div>fccache.c:(.text+0x780): undefined reference to `uuid_unparse'</div><div>collect2: error: ld returned 1 exit status</div><div>make[2]: *** [utils/pdftoppm] Error 1</div><div>make[1]: *** [utils/CMakeFiles/pdftoppm.dir/all] Error 2</div><div>make: *** [all] Error 2</div><div>"</div><div><div class="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:rgb(78,135,160)"><a href="mailto:simon.shugar@veeva.com" target="_blank"><span style="color:rgb(78,135,160)">simon.shugar@veeva.com</span></a></span><br>
<span style="font-size:10.5pt;line-height:105%;font-family:Arial,sans-serif;color:rgb(78,135,160)"><a href="http://www.veeva.com" target="_blank"><span style="color:rgb(78,135,160)">www.veeva.com</span></a></span><br>
<br>
<i><span style="font-size:7.5pt;line-height:105%;font-family:Arial,sans-serif;color:rgb(113,113,113)">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:rgb(113,113,113)">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:rgb(113,113,113)">Please do not retain, copy or distribute this email.</span></i><span style="color:rgb(31,73,125)"></span></p></div></div></div></div></div></div></div></div>
</div></div>