<div dir="ltr">Thanks Suzuki, William.<br><br>I ended up just moving the .a file into a location where pkg could pick it up. </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, Apr 6, 2018 at 5:27 PM, 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">Dear Simon,<br>
<span class=""><br>
> I've already installed all dependencies and using pkg-config as my dependency management tool.<br>
<br>
</span>Cleary your cmake could not spot the location of libopenjp2.<br>
If you execute "pkg-config --libs libopenjp2", what you receive?<br>
<br>
I think the situation would be same with your last post about freetype,<br>
<br>
>set(FREETYPE_LIBRARIES "/usr/local/lib/libfreetype.a"<wbr>)<br>
>set(poppler_LIBS ${poppler_LIBS} ${FREETYPE_LIBRARIES})<br>
<br>
There is a variable LIBOPENJPEG2_LIBRARIES.<br>
<br>
><a href="http://www.linuxfromscratch.org/blfs/view/svn/general/poppler.html" rel="noreferrer" target="_blank">http://www.linuxfromscratch.<wbr>org/blfs/view/svn/general/<wbr>poppler.html</a><br>
<span class="">> I've already installed all dependencies and using pkg-config as my dependency management tool.<br>
<br>
</span>In my understanding, this website is assuming that everything is installed into<br>
/usr (and installed things would be merged into the host system),<br>
so the result would be different from your case that you install everything into<br>
/usr/local to avoid the mixture.<br>
please do not ask "why I do like this but the result is different?", you did<br>
unlikely that :-),<br>
<br>
Regards,<br>
mpsuzuki<br>
<div><div class="h5"><br>
Simon Shugar wrote:<br>
> Dear all,<br>
><br>
> I am trying to build Poppler 0.63.0 statically with openjpeg2. I run into the error below when using CMake. Has anyone seen this issue and able to point me in the right direction?<br>
><br>
> As on previous requests. I am roughly following instructions from <a href="http://www.linuxfromscratch.org/blfs/view/svn/general/poppler.html" rel="noreferrer" target="_blank">http://www.linuxfromscratch.<wbr>org/blfs/view/svn/general/<wbr>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>
> Command<br>
> cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_VERBOSE_MAKEFILE:BOOL=<wbr>ON -DBUILD_SHARED_LIBS=OFF -DCMAKE_INSTALL_PREFIX=/usr/ -DENABLE_QT5=OFF -DENABLE_LIBOPENJPEG=openjpeg2 .. && make<br>
><br>
><br>
> Output<br>
> Scanning dependencies of target pdftoppm<br>
> make[2]: Leaving directory `/root/Poppler_Update/poppler-<wbr>0.63.0/build'<br>
> make -f utils/CMakeFiles/pdftoppm.dir/<wbr>build.make utils/CMakeFiles/pdftoppm.dir/<wbr>build<br>
> make[2]: Entering directory `/root/Poppler_Update/poppler-<wbr>0.63.0/build'<br>
> [ 61%] Building CXX object utils/CMakeFiles/pdftoppm.dir/<wbr>parseargs.cc.o<br>
> cd /root/Poppler_Update/poppler-<wbr>0.63.0/build/utils && /usr/bin/c++ -DUSE_OPENJPEG2 -I/root/Poppler_Update/<wbr>poppler-0.63.0 -I/root/Poppler_Update/<wbr>poppler-0.63.0/fofi -I/root/Poppler_Update/<wbr>poppler-0.63.0/goo -I/root/Poppler_Update/<wbr>poppler-0.63.0/poppler -I/root/Poppler_Update/<wbr>poppler-0.63.0/build -I/root/Poppler_Update/<wbr>poppler-0.63.0/build/poppler -I/usr/local/include -I/usr/local/include/freetype2 -I/usr/local/include/openjpeg-<wbr>2.3 -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-<wbr>constant -fno-exceptions -fno-check-new -fno-common -D_DEFAULT_SOURCE -O2 -DNDEBUG -std=c++11 -o CMakeFiles/pdftoppm.dir/<wbr>parseargs.cc.o -c /root/Poppler_Update/poppler-<wbr>0.63.0/utils/parseargs.cc<br>
> [ 61%] Building CXX object utils/CMakeFiles/pdftoppm.dir/<wbr>Win32Console.cc.o<br>
> cd /root/Poppler_Update/poppler-<wbr>0.63.0/build/utils && /usr/bin/c++ -DUSE_OPENJPEG2 -I/root/Poppler_Update/<wbr>poppler-0.63.0 -I/root/Poppler_Update/<wbr>poppler-0.63.0/fofi -I/root/Poppler_Update/<wbr>poppler-0.63.0/goo -I/root/Poppler_Update/<wbr>poppler-0.63.0/poppler -I/root/Poppler_Update/<wbr>poppler-0.63.0/build -I/root/Poppler_Update/<wbr>poppler-0.63.0/build/poppler -I/usr/local/include -I/usr/local/include/freetype2 -I/usr/local/include/openjpeg-<wbr>2.3 -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-<wbr>constant -fno-exceptions -fno-check-new -fno-common -D_DEFAULT_SOURCE -O2 -DNDEBUG -std=c++11 -o CMakeFiles/pdftoppm.dir/<wbr>Win32Console.cc.o -c /root/Poppler_Update/poppler-<wbr>0.63.0/utils/Win32Console.cc<br>
> [ 62%] Building CXX object utils/CMakeFiles/pdftoppm.dir/<wbr>pdftoppm.cc.o<br>
> cd /root/Poppler_Update/poppler-<wbr>0.63.0/build/utils && /usr/bin/c++ -DUSE_OPENJPEG2 -I/root/Poppler_Update/<wbr>poppler-0.63.0 -I/root/Poppler_Update/<wbr>poppler-0.63.0/fofi -I/root/Poppler_Update/<wbr>poppler-0.63.0/goo -I/root/Poppler_Update/<wbr>poppler-0.63.0/poppler -I/root/Poppler_Update/<wbr>poppler-0.63.0/build -I/root/Poppler_Update/<wbr>poppler-0.63.0/build/poppler -I/usr/local/include -I/usr/local/include/freetype2 -I/usr/local/include/openjpeg-<wbr>2.3 -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-<wbr>constant -fno-exceptions -fno-check-new -fno-common -D_DEFAULT_SOURCE -O2 -DNDEBUG -std=c++11 -o CMakeFiles/pdftoppm.dir/<wbr>pdftoppm.cc.o -c /root/Poppler_Update/poppler-<wbr>0.63.0/utils/pdftoppm.cc<br>
> /root/Poppler_Update/poppler-<wbr>0.63.0/utils/pdftoppm.cc:213:<wbr>1: warning: missing initializer for member ‘ArgDesc::arg’ [-Wmissing-field-initializers]<br>
> };<br>
> ^<br>
> /root/Poppler_Update/poppler-<wbr>0.63.0/utils/pdftoppm.cc:213:<wbr>1: warning: missing initializer for member ‘ArgDesc::kind’ [-Wmissing-field-initializers]<br>
> /root/Poppler_Update/poppler-<wbr>0.63.0/utils/pdftoppm.cc:213:<wbr>1: warning: missing initializer for member ‘ArgDesc::val’ [-Wmissing-field-initializers]<br>
> /root/Poppler_Update/poppler-<wbr>0.63.0/utils/pdftoppm.cc:213:<wbr>1: warning: missing initializer for member ‘ArgDesc::size’ [-Wmissing-field-initializers]<br>
> /root/Poppler_Update/poppler-<wbr>0.63.0/utils/pdftoppm.cc:213:<wbr>1: warning: missing initializer for member ‘ArgDesc::usage’ [-Wmissing-field-initializers]<br>
> [ 62%] Linking CXX executable pdftoppm<br>
> cd /root/Poppler_Update/poppler-<wbr>0.63.0/build/utils && /usr/local/bin/cmake -E cmake_link_script CMakeFiles/pdftoppm.dir/link.<wbr>txt --verbose=1<br>
> /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-<wbr>constant -fno-exceptions -fno-check-new -fno-common -D_DEFAULT_SOURCE -O2 -DNDEBUG -Wl,--as-needed -rdynamic CMakeFiles/pdftoppm.dir/<wbr>parseargs.cc.o CMakeFiles/pdftoppm.dir/<wbr>Win32Console.cc.o CMakeFiles/pdftoppm.dir/<wbr>pdftoppm.cc.o -o pdftoppm ../libpoppler.a -L/usr/local/lib -lfontconfig -luuid -lxml2 -lm -lfreetype -lz /usr/local/lib/libjpeg.a -lz -lopenjp2 /usr/local/lib/liblcms2.a /usr/local/lib/libpng.a -lz -lopenjp2 /usr/local/lib/liblcms2.a /usr/local/lib/libpng.a /usr/local/lib/libfreetype.a -pthread<br>
> /usr/bin/ld: cannot find -lopenjp2<br>
> /usr/bin/ld: cannot find -lopenjp2<br>
> collect2: error: ld returned 1 exit status<br>
> make[2]: *** [utils/pdftoppm] Error 1<br>
> make[2]: Leaving directory `/root/Poppler_Update/poppler-<wbr>0.63.0/build'<br>
> make[1]: *** [utils/CMakeFiles/pdftoppm.<wbr>dir/all] Error 2<br>
> make[1]: Leaving directory `/root/Poppler_Update/poppler-<wbr>0.63.0/build'<br>
> make: *** [all] Error 2<br>
><br>
><br>
> Kind regards,<br>
> Simon Lee Shugar<br>
><br>
> --<br>
><br>
</div></div>> [Veeva Systems - Zinc Team]<br>
<span class="">><br>
> Simon Shugar<br>
> Software Engineer<br>
> Veeva Systems<br>
</span>> <a href="mailto:simon.shugar@veeva.com">simon.shugar@veeva.com</a><mailto:<a href="mailto:simon.shugar@veeva.com"><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.<wbr>veeva.com</a>><br>
<div class="HOEnZb"><div class="h5">><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>
><br>
<br>
</div></div></blockquote></div><br></div>