[poppler] Unable to build Poppler 0.63.0 with Openjpeg2

Simon Shugar simon.shugar at veeva.com
Fri Apr 6 22:51:28 UTC 2018


Dear all,

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?

As on previous requests.  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.


*Command*
cmake  -DCMAKE_BUILD_TYPE=Release -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON
-DBUILD_SHARED_LIBS=OFF -DCMAKE_INSTALL_PREFIX=/usr/ -DENABLE_QT5=OFF
-DENABLE_LIBOPENJPEG=openjpeg2 .. && make



*Output*
Scanning dependencies of target pdftoppm
make[2]: Leaving directory `/root/Poppler_Update/poppler-0.63.0/build'
make -f utils/CMakeFiles/pdftoppm.dir/build.make
utils/CMakeFiles/pdftoppm.dir/build
make[2]: Entering directory `/root/Poppler_Update/poppler-0.63.0/build'
[ 61%] Building CXX object utils/CMakeFiles/pdftoppm.dir/parseargs.cc.o
cd /root/Poppler_Update/poppler-0.63.0/build/utils && /usr/bin/c++
-DUSE_OPENJPEG2 -I/root/Poppler_Update/poppler-0.63.0
-I/root/Poppler_Update/poppler-0.63.0/fofi
-I/root/Poppler_Update/poppler-0.63.0/goo
-I/root/Poppler_Update/poppler-0.63.0/poppler
-I/root/Poppler_Update/poppler-0.63.0/build
-I/root/Poppler_Update/poppler-0.63.0/build/poppler -I/usr/local/include
-I/usr/local/include/freetype2 -I/usr/local/include/openjpeg-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-constant -fno-exceptions -fno-check-new -fno-common
-D_DEFAULT_SOURCE -O2 -DNDEBUG    -std=c++11 -o
CMakeFiles/pdftoppm.dir/parseargs.cc.o -c
/root/Poppler_Update/poppler-0.63.0/utils/parseargs.cc
[ 61%] Building CXX object utils/CMakeFiles/pdftoppm.dir/Win32Console.cc.o
cd /root/Poppler_Update/poppler-0.63.0/build/utils && /usr/bin/c++
-DUSE_OPENJPEG2 -I/root/Poppler_Update/poppler-0.63.0
-I/root/Poppler_Update/poppler-0.63.0/fofi
-I/root/Poppler_Update/poppler-0.63.0/goo
-I/root/Poppler_Update/poppler-0.63.0/poppler
-I/root/Poppler_Update/poppler-0.63.0/build
-I/root/Poppler_Update/poppler-0.63.0/build/poppler -I/usr/local/include
-I/usr/local/include/freetype2 -I/usr/local/include/openjpeg-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-constant -fno-exceptions -fno-check-new -fno-common
-D_DEFAULT_SOURCE -O2 -DNDEBUG    -std=c++11 -o
CMakeFiles/pdftoppm.dir/Win32Console.cc.o -c
/root/Poppler_Update/poppler-0.63.0/utils/Win32Console.cc
[ 62%] Building CXX object utils/CMakeFiles/pdftoppm.dir/pdftoppm.cc.o
cd /root/Poppler_Update/poppler-0.63.0/build/utils && /usr/bin/c++
-DUSE_OPENJPEG2 -I/root/Poppler_Update/poppler-0.63.0
-I/root/Poppler_Update/poppler-0.63.0/fofi
-I/root/Poppler_Update/poppler-0.63.0/goo
-I/root/Poppler_Update/poppler-0.63.0/poppler
-I/root/Poppler_Update/poppler-0.63.0/build
-I/root/Poppler_Update/poppler-0.63.0/build/poppler -I/usr/local/include
-I/usr/local/include/freetype2 -I/usr/local/include/openjpeg-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-constant -fno-exceptions -fno-check-new -fno-common
-D_DEFAULT_SOURCE -O2 -DNDEBUG    -std=c++11 -o
CMakeFiles/pdftoppm.dir/pdftoppm.cc.o -c
/root/Poppler_Update/poppler-0.63.0/utils/pdftoppm.cc
/root/Poppler_Update/poppler-0.63.0/utils/pdftoppm.cc:213:1: warning:
missing initializer for member ‘ArgDesc::arg’ [-Wmissing-field-initializers]
 };
 ^
/root/Poppler_Update/poppler-0.63.0/utils/pdftoppm.cc:213:1: warning:
missing initializer for member ‘ArgDesc::kind’
[-Wmissing-field-initializers]
/root/Poppler_Update/poppler-0.63.0/utils/pdftoppm.cc:213:1: warning:
missing initializer for member ‘ArgDesc::val’ [-Wmissing-field-initializers]
/root/Poppler_Update/poppler-0.63.0/utils/pdftoppm.cc:213:1: warning:
missing initializer for member ‘ArgDesc::size’
[-Wmissing-field-initializers]
/root/Poppler_Update/poppler-0.63.0/utils/pdftoppm.cc:213:1: warning:
missing initializer for member ‘ArgDesc::usage’
[-Wmissing-field-initializers]
[ 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 -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
/usr/bin/ld: cannot find -lopenjp2
/usr/bin/ld: cannot find -lopenjp2
collect2: error: ld returned 1 exit status
make[2]: *** [utils/pdftoppm] Error 1
make[2]: Leaving directory `/root/Poppler_Update/poppler-0.63.0/build'
make[1]: *** [utils/CMakeFiles/pdftoppm.dir/all] Error 2
make[1]: Leaving directory `/root/Poppler_Update/poppler-0.63.0/build'
make: *** [all] Error 2

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.*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/poppler/attachments/20180406/fb877cce/attachment.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/fb877cce/attachment.jpg>


More information about the poppler mailing list