make error: Undefined reference to `lzham_z_deflateEnd'
I dont know why but i am facing this error: haris@haris-OptiPlex-7020:~/poppler-0.84.0/build$ sudo cmake .. CMake Warning at CMakeLists.txt:77 (message):
No test data found in $testdatadir. You will not be able to run 'make test' successfully.
The test data is not included in the source packages and is also not part of the main git repository. Instead, you can checkout the test data from its own git repository with:
git clone git://git.freedesktop.org/git/poppler/test
You should checkout the test data as a sibling of your poppler source folder or specify the location of your checkout with -DTESTDATADIR=/path/to/checkoutdir/test.
-- The imported target "openjp2_static" references the file "/usr/lib/x86_64-linux-gnu/libopenjp2.a" but this file does not exist. Possible reasons include:
- The file was deleted, renamed, or moved to another location.
- An install or uninstall procedure did not complete successfully.
- The installation package was faulty and contained "/usr/lib/x86_64-linux-gnu/openjpeg-2.3/OpenJPEGTargets.cmake" but not all the files it references.
-- The imported target "openjpip" references the file "/usr/lib/x86_64-linux-gnu/libopenjpip.so.2.3.0" but this file does not exist. Possible reasons include:
- The file was deleted, renamed, or moved to another location.
- An install or uninstall procedure did not complete successfully.
- The installation package was faulty and contained "/usr/lib/x86_64-linux-gnu/openjpeg-2.3/OpenJPEGTargets.cmake" but not all the files it references.
-- The imported target "openjpip_server" references the file "/usr/lib/x86_64-linux-gnu/libopenjpip_server.a" but this file does not exist. Possible reasons include:
- The file was deleted, renamed, or moved to another location.
- An install or uninstall procedure did not complete successfully.
- The installation package was faulty and contained "/usr/lib/x86_64-linux-gnu/openjpeg-2.3/OpenJPEGTargets.cmake" but not all the files it references.
-- The imported target "opj_decompress" references the file "/usr/bin/opj_decompress" but this file does not exist. Possible reasons include:
- The file was deleted, renamed, or moved to another location.
- An install or uninstall procedure did not complete successfully.
- The installation package was faulty and contained "/usr/lib/x86_64-linux-gnu/openjpeg-2.3/OpenJPEGTargets.cmake" but not all the files it references.
-- The imported target "opj_compress" references the file "/usr/bin/opj_compress" but this file does not exist. Possible reasons include:
- The file was deleted, renamed, or moved to another location.
- An install or uninstall procedure did not complete successfully.
- The installation package was faulty and contained "/usr/lib/x86_64-linux-gnu/openjpeg-2.3/OpenJPEGTargets.cmake" but not all the files it references.
-- The imported target "opj_dump" references the file "/usr/bin/opj_dump" but this file does not exist. Possible reasons include:
- The file was deleted, renamed, or moved to another location.
- An install or uninstall procedure did not complete successfully.
- The installation package was faulty and contained "/usr/lib/x86_64-linux-gnu/openjpeg-2.3/OpenJPEGTargets.cmake" but not all the files it references.
-- The imported target "opj_jpip_addxml" references the file "/usr/bin/opj_jpip_addxml" but this file does not exist. Possible reasons include:
- The file was deleted, renamed, or moved to another location.
- An install or uninstall procedure did not complete successfully.
- The installation package was faulty and contained "/usr/lib/x86_64-linux-gnu/openjpeg-2.3/OpenJPEGTargets.cmake" but not all the files it references.
-- The imported target "opj_server" references the file "/usr/bin/opj_server" but this file does not exist. Possible reasons include:
- The file was deleted, renamed, or moved to another location.
- An install or uninstall procedure did not complete successfully.
- The installation package was faulty and contained "/usr/lib/x86_64-linux-gnu/openjpeg-2.3/OpenJPEGTargets.cmake" but not all the files it references.
-- The imported target "opj_dec_server" references the file "/usr/bin/opj_dec_server" but this file does not exist. Possible reasons include:
- The file was deleted, renamed, or moved to another location.
- An install or uninstall procedure did not complete successfully.
- The installation package was faulty and contained "/usr/lib/x86_64-linux-gnu/openjpeg-2.3/OpenJPEGTargets.cmake" but not all the files it references.
-- The imported target "opj_jpip_transcode" references the file "/usr/bin/opj_jpip_transcode" but this file does not exist. Possible reasons include:
- The file was deleted, renamed, or moved to another location.
- An install or uninstall procedure did not complete successfully.
- The installation package was faulty and contained "/usr/lib/x86_64-linux-gnu/openjpeg-2.3/OpenJPEGTargets.cmake" but not all the files it references.
-- The imported target "opj_jpip_test" references the file "/usr/bin/opj_jpip_test" but this file does not exist. Possible reasons include:
- The file was deleted, renamed, or moved to another location.
- An install or uninstall procedure did not complete successfully.
- The installation package was faulty and contained "/usr/lib/x86_64-linux-gnu/openjpeg-2.3/OpenJPEGTargets.cmake" but not all the files it references.
-- Found lcms version 2.09, /usr/lib/x86_64-linux-gnu/liblcms2.so
-- Could NOT find Boost
Building Poppler with support for:
font configuration: fontconfig
splash output: yes
cairo output: yes
qt5 wrapper: yes
glib wrapper: yes
introspection: yes
gtk-doc: no
cpp wrapper: yes
use libjpeg: yes
use libpng: yes
use libtiff: yes
use zlib compress: yes
use zlib uncompress: no
use nss3: yes
use curl: yes
use libopenjpeg2: yes
use lcms2: yes
use boost: no
command line utils: yes
fuzz target: no
test data dir: /home/haris/poppler-0.84.0/../test
Warning: Use of boost is recommended for better performance.
-- Configuring done
-- Generating done
-- Build files have been written to: /home/haris/poppler-0.84.0/build
haris@haris-OptiPlex-7020:~/poppler-0.84.0/build$ make
Scanning dependencies of target poppler
[ 27%] Building CXX object CMakeFiles/poppler.dir/goo/gfile.cc.o
[ 27%] Building CXX object CMakeFiles/poppler.dir/goo/GooTimer.cc.o
[ 27%] Building CXX object CMakeFiles/poppler.dir/goo/GooString.cc.o
[ 27%] Building CXX object CMakeFiles/poppler.dir/goo/glibc.cc.o
[ 27%] Building CXX object CMakeFiles/poppler.dir/goo/glibc_strtok_r.cc.o
[ 27%] Building CXX object CMakeFiles/poppler.dir/fofi/FoFiBase.cc.o
[ 27%] Building CXX object CMakeFiles/poppler.dir/fofi/FoFiEncodings.cc.o
[ 27%] Building CXX object CMakeFiles/poppler.dir/fofi/FoFiTrueType.cc.o
[ 27%] Building CXX object CMakeFiles/poppler.dir/fofi/FoFiType1.cc.o
[ 27%] Building CXX object CMakeFiles/poppler.dir/fofi/FoFiType1C.cc.o
[ 27%] Building CXX object CMakeFiles/poppler.dir/poppler/Annot.cc.o
[ 27%] Building CXX object CMakeFiles/poppler.dir/poppler/Array.cc.o
[ 27%] Building CXX object CMakeFiles/poppler.dir/poppler/BuiltinFont.cc.o
[ 27%] Building CXX object CMakeFiles/poppler.dir/poppler/BuiltinFontTables.cc.o
[ 27%] Building CXX object CMakeFiles/poppler.dir/poppler/CachedFile.cc.o
[ 27%] Building CXX object CMakeFiles/poppler.dir/poppler/Catalog.cc.o
[ 27%] Building CXX object CMakeFiles/poppler.dir/poppler/CharCodeToUnicode.cc.o
[ 27%] Building CXX object CMakeFiles/poppler.dir/poppler/CMap.cc.o
[ 27%] Building CXX object CMakeFiles/poppler.dir/poppler/DateInfo.cc.o
[ 27%] Building CXX object CMakeFiles/poppler.dir/poppler/Decrypt.cc.o
[ 27%] Building CXX object CMakeFiles/poppler.dir/poppler/Dict.cc.o
[ 27%] Building CXX object CMakeFiles/poppler.dir/poppler/Error.cc.o
[ 27%] Building CXX object CMakeFiles/poppler.dir/poppler/FileSpec.cc.o
[ 27%] Building CXX object CMakeFiles/poppler.dir/poppler/FontEncodingTables.cc.o
[ 27%] Building CXX object CMakeFiles/poppler.dir/poppler/Form.cc.o
[ 27%] Building CXX object CMakeFiles/poppler.dir/poppler/FontInfo.cc.o
[ 27%] Building CXX object CMakeFiles/poppler.dir/poppler/Function.cc.o
[ 27%] Building CXX object CMakeFiles/poppler.dir/poppler/Gfx.cc.o
[ 27%] Building CXX object CMakeFiles/poppler.dir/poppler/GfxFont.cc.o
[ 27%] Building CXX object CMakeFiles/poppler.dir/poppler/GfxState.cc.o
[ 27%] Building CXX object CMakeFiles/poppler.dir/poppler/GlobalParams.cc.o
[ 27%] Building CXX object CMakeFiles/poppler.dir/poppler/Hints.cc.o
[ 27%] Building CXX object CMakeFiles/poppler.dir/poppler/JArithmeticDecoder.cc.o
[ 27%] Building CXX object CMakeFiles/poppler.dir/poppler/JBIG2Stream.cc.o
[ 27%] Building CXX object CMakeFiles/poppler.dir/poppler/Lexer.cc.o
[ 27%] Building CXX object CMakeFiles/poppler.dir/poppler/Link.cc.o
[ 27%] Building CXX object CMakeFiles/poppler.dir/poppler/LocalPDFDocBuilder.cc.o
[ 27%] Building CXX object CMakeFiles/poppler.dir/poppler/NameToCharCode.cc.o
[ 27%] Building CXX object CMakeFiles/poppler.dir/poppler/Object.cc.o
[ 27%] Building CXX object CMakeFiles/poppler.dir/poppler/OptionalContent.cc.o
[ 27%] Building CXX object CMakeFiles/poppler.dir/poppler/Outline.cc.o
[ 27%] Building CXX object CMakeFiles/poppler.dir/poppler/OutputDev.cc.o
[ 27%] Building CXX object CMakeFiles/poppler.dir/poppler/Page.cc.o
[ 27%] Building CXX object CMakeFiles/poppler.dir/poppler/Parser.cc.o
[ 27%] Building CXX object CMakeFiles/poppler.dir/poppler/PDFDoc.cc.o
[ 27%] Building CXX object CMakeFiles/poppler.dir/poppler/PDFDocFactory.cc.o
[ 27%] Building CXX object CMakeFiles/poppler.dir/poppler/ProfileData.cc.o
[ 27%] Building CXX object CMakeFiles/poppler.dir/poppler/PreScanOutputDev.cc.o
[ 27%] Building CXX object CMakeFiles/poppler.dir/poppler/PSTokenizer.cc.o
[ 27%] Building CXX object CMakeFiles/poppler.dir/poppler/SignatureInfo.cc.o
[ 27%] Building CXX object CMakeFiles/poppler.dir/poppler/Stream.cc.o
[ 27%] Building CXX object CMakeFiles/poppler.dir/poppler/UnicodeMap.cc.o
[ 27%] Building CXX object CMakeFiles/poppler.dir/poppler/XRef.cc.o
[ 27%] Building CXX object CMakeFiles/poppler.dir/poppler/PSOutputDev.cc.o
[ 27%] Building CXX object CMakeFiles/poppler.dir/poppler/TextOutputDev.cc.o
[ 27%] Building CXX object CMakeFiles/poppler.dir/poppler/PageLabelInfo.cc.o
[ 27%] Building CXX object CMakeFiles/poppler.dir/poppler/SecurityHandler.cc.o
[ 27%] Building CXX object CMakeFiles/poppler.dir/poppler/StdinCachedFile.cc.o
[ 27%] Building CXX object CMakeFiles/poppler.dir/poppler/StdinPDFDocBuilder.cc.o
[ 27%] Building CXX object CMakeFiles/poppler.dir/poppler/ViewerPreferences.cc.o
[ 27%] Building CXX object CMakeFiles/poppler.dir/poppler/SplashOutputDev.cc.o
[ 27%] Building CXX object CMakeFiles/poppler.dir/splash/Splash.cc.o
[ 27%] Building CXX object CMakeFiles/poppler.dir/splash/SplashBitmap.cc.o
[ 27%] Building CXX object CMakeFiles/poppler.dir/splash/SplashClip.cc.o
[ 27%] Building CXX object CMakeFiles/poppler.dir/splash/SplashFTFont.cc.o
[ 27%] Building CXX object CMakeFiles/poppler.dir/splash/SplashFTFontEngine.cc.o
[ 27%] Building CXX object CMakeFiles/poppler.dir/splash/SplashFTFontFile.cc.o
[ 27%] Building CXX object CMakeFiles/poppler.dir/splash/SplashFont.cc.o
[ 27%] Building CXX object CMakeFiles/poppler.dir/splash/SplashFontEngine.cc.o
[ 27%] Building CXX object CMakeFiles/poppler.dir/splash/SplashFontFile.cc.o
[ 27%] Building CXX object CMakeFiles/poppler.dir/splash/SplashFontFileID.cc.o
[ 27%] Building CXX object CMakeFiles/poppler.dir/splash/SplashPath.cc.o
[ 27%] Building CXX object CMakeFiles/poppler.dir/splash/SplashPattern.cc.o
[ 27%] Building CXX object CMakeFiles/poppler.dir/splash/SplashScreen.cc.o
[ 27%] Building CXX object CMakeFiles/poppler.dir/splash/SplashState.cc.o
[ 27%] Building CXX object CMakeFiles/poppler.dir/splash/SplashXPath.cc.o
[ 27%] Building CXX object CMakeFiles/poppler.dir/splash/SplashXPathScanner.cc.o
[ 27%] Building CXX object CMakeFiles/poppler.dir/poppler/FlateEncoder.cc.o
[ 27%] Building CXX object CMakeFiles/poppler.dir/poppler/CurlCachedFile.cc.o
[ 27%] Building CXX object CMakeFiles/poppler.dir/poppler/CurlPDFDocBuilder.cc.o
[ 27%] Building CXX object CMakeFiles/poppler.dir/poppler/SignatureHandler.cc.o
[ 27%] Building CXX object CMakeFiles/poppler.dir/poppler/JPEG2000Stream.cc.o
[ 27%] Linking CXX shared library libpoppler.so
[ 27%] Built target poppler
Scanning dependencies of target pdfimages
[ 27%] Building CXX object utils/CMakeFiles/pdfimages.dir/pdfimages.cc.o
[ 27%] Building CXX object utils/CMakeFiles/pdfimages.dir/ImageOutputDev.cc.o
[ 27%] Building CXX object utils/CMakeFiles/pdfimages.dir/JSInfo.cc.o
[ 27%] Linking CXX executable pdfimages
../libpoppler.so.94.0.0: undefined reference to lzham_z_deflateEnd' ../libpoppler.so.94.0.0: undefined reference to
lzham_z_deflate'
../libpoppler.so.94.0.0: undefined reference to `lzham_z_deflateInit'
collect2: error: ld returned 1 exit status
utils/CMakeFiles/pdfimages.dir/build.make:199: recipe for target 'utils/pdfimages' failed
make[2]: *** [utils/pdfimages] Error 1
CMakeFiles/Makefile2:178: recipe for target 'utils/CMakeFiles/pdfimages.dir/all' failed
make[1]: *** [utils/CMakeFiles/pdfimages.dir/all] Error 2
Makefile:140: recipe for target 'all' failed
make: *** [all] Error 2