[poppler] windows compile problem

Pouya Ahmadvand pouya.ahmadvand at gmail.com
Thu Aug 24 20:24:56 UTC 2017


thanks , the error solved , but now I get this error (OpenJPEG 1.52) :
(I tried OpenJPEG 2.2 too)

[  1%] Linking CXX shared library libpoppler.dll
CMakeFiles\poppler.dir/objects.a(JpegWriter.cc.obj): In function
`ZN10JpegWriterD2Ev':
D:/Develop/QT/Poppler/new/poppler/goo/JpegWriter.cc:63: undefined reference
to `_imp__jpeg_destroy_compress'
CMakeFiles\poppler.dir/objects.a(JpegWriter.cc.obj): In function
`ZN10JpegWriter4initEP6_iobufiiii':
D:/Develop/QT/Poppler/new/poppler/goo/JpegWriter.cc:80: undefined reference
to `_imp__jpeg_std_error'
D:/Develop/QT/Poppler/new/poppler/goo/JpegWriter.cc:84: undefined reference
to `_imp__jpeg_CreateCompress'
D:/Develop/QT/Poppler/new/poppler/goo/JpegWriter.cc:102: undefined
reference to `_imp__jpeg_set_defaults'
D:/Develop/QT/Poppler/new/poppler/goo/JpegWriter.cc:105: undefined
reference to `_imp__jpeg_stdio_dest'
D:/Develop/QT/Poppler/new/poppler/goo/JpegWriter.cc:122: undefined
reference to `_imp__jpeg_set_colorspace'
D:/Develop/QT/Poppler/new/poppler/goo/JpegWriter.cc:140: undefined
reference to `_imp__jpeg_start_compress'
D:/Develop/QT/Poppler/new/poppler/goo/JpegWriter.cc:131: undefined
reference to `_imp__jpeg_set_quality'
D:/Develop/QT/Poppler/new/poppler/goo/JpegWriter.cc:136: undefined
reference to `_imp__jpeg_simple_progression'
CMakeFiles\poppler.dir/objects.a(JpegWriter.cc.obj): In function
`ZN10JpegWriter13writePointersEPPhi':
D:/Develop/QT/Poppler/new/poppler/goo/JpegWriter.cc:159: undefined
reference to `_imp__jpeg_write_scanlines'
CMakeFiles\poppler.dir/objects.a(JpegWriter.cc.obj): In function
`ZN10JpegWriter8writeRowEPPh':
D:/Develop/QT/Poppler/new/poppler/goo/JpegWriter.cc:176: undefined
reference to `_imp__jpeg_write_scanlines'
CMakeFiles\poppler.dir/objects.a(JpegWriter.cc.obj): In function
`ZN10JpegWriter5closeEv':
D:/Develop/QT/Poppler/new/poppler/goo/JpegWriter.cc:183: undefined
reference to `_imp__jpeg_finish_compress'
CMakeFiles\poppler.dir/objects.a(DCTStream.cc.obj): In function
`ZN9DCTStreamD2Ev':
D:/Develop/QT/Poppler/new/poppler/poppler/DCTStream.cc:77: undefined
reference to `_imp__jpeg_destroy_decompress'
CMakeFiles\poppler.dir/objects.a(DCTStream.cc.obj): In function
`ZN9DCTStream7getCharEv':
D:/Develop/QT/Poppler/new/poppler/poppler/DCTStream.cc:225: undefined
reference to `_imp__jpeg_read_scanlines'
CMakeFiles\poppler.dir/objects.a(DCTStream.cc.obj): In function
`ZN9DCTStream8getCharsEiPh':
D:/Develop/QT/Poppler/new/poppler/poppler/DCTStream.cc:233: undefined
reference to `_imp__jpeg_read_scanlines'
CMakeFiles\poppler.dir/objects.a(DCTStream.cc.obj): In function
`ZN9DCTStream4initEv':
D:/Develop/QT/Poppler/new/poppler/poppler/DCTStream.cc:94: undefined
reference to `_imp__jpeg_std_error'
D:/Develop/QT/Poppler/new/poppler/poppler/DCTStream.cc:99: undefined
reference to `_imp__jpeg_resync_to_restart'
D:/Develop/QT/Poppler/new/poppler/poppler/DCTStream.cc:110: undefined
reference to `_imp__jpeg_CreateDecompress'
CMakeFiles\poppler.dir/objects.a(DCTStream.cc.obj): In function
`ZN9DCTStream5resetEv':
D:/Develop/QT/Poppler/new/poppler/poppler/DCTStream.cc:123: undefined
reference to `_imp__jpeg_destroy_decompress'
D:/Develop/QT/Poppler/new/poppler/poppler/DCTStream.cc:160: undefined
reference to `_imp__jpeg_read_header'
D:/Develop/QT/Poppler/new/poppler/poppler/DCTStream.cc:190: undefined
reference to `_imp__jpeg_start_decompress'
CMakeFiles\poppler.dir/objects.a(FlateEncoder.cc.obj): In function
`ZN12FlateEncoder5resetEv':
D:/Develop/QT/Poppler/new/poppler/poppler/FlateEncoder.cc:61: undefined
reference to `_imp__deflateEnd'
D:/Develop/QT/Poppler/new/poppler/poppler/FlateEncoder.cc:63: undefined
reference to `_imp__deflateInit_'
CMakeFiles\poppler.dir/objects.a(FlateEncoder.cc.obj): In function
`ZN12FlateEncoderD2Ev':
D:/Develop/QT/Poppler/new/poppler/poppler/FlateEncoder.cc:47: undefined
reference to `_imp__deflateEnd'
CMakeFiles\poppler.dir/objects.a(FlateEncoder.cc.obj): In function
`ZN12FlateEncoder7fillBufEv':
D:/Develop/QT/Poppler/new/poppler/poppler/FlateEncoder.cc:127: undefined
reference to `_imp__deflate'
CMakeFiles\poppler.dir/objects.a(FlateEncoder.cc.obj): In function
`ZN12FlateEncoderC2EP6Stream':
D:/Develop/QT/Poppler/new/poppler/poppler/FlateEncoder.cc:35: undefined
reference to `_imp__deflateInit_'
collect2.exe: error: ld returned 1 exit status
CMakeFiles\poppler.dir\build.make:3015: recipe for target 'libpoppler.dll'
failed
mingw32-make[2]: *** [libpoppler.dll] Error 1
CMakeFiles\Makefile2:66: recipe for target 'CMakeFiles/poppler.dir/all'
failed
mingw32-make[1]: *** [CMakeFiles/poppler.dir/all] Error 2
Makefile:139: recipe for target 'all' failed
mingw32-make: *** [all] Error 2

On Thu, Aug 24, 2017 at 10:15 PM, Albert Astals Cid <aacid at kde.org> wrote:

> El dijous, 24 d’agost de 2017, a les 10:44:33 CEST, Pouya Ahmadvand va
> escriure:
> > Hi
> > I`m trying compile last version of popper on windows 10.
> > but when I compile the library I get following error :
> > how can I fix it ?
>
> Should be fixed now.
>
> Cheers,
>   Albert
>
> >
> > *In file included from
> > D:\Develop\QT\Poppler\poppler\poppler\GlobalParams.cc:1325:0:*
> > *D:\Develop\QT\Poppler\poppler\poppler\GlobalParamsWin.cc: In member
> > function 'void GlobalParams::setupBaseFonts(char*)':*
> > *D:\Develop\QT\Poppler\poppler\poppler\GlobalParamsWin.cc:467:12: error:
> > 'class Object' has no member named 'initNull'*
> > *       obj1.initNull();*
> > *            ^*
> > *D:\Develop\QT\Poppler\poppler\poppler\GlobalParamsWin.cc:470:59: error:
> > use of deleted function 'Object::Object(T) [with T = Object*]'*
> > *        new FileStream(file, 0, gFalse, file->size(), &obj1)),*
> > *                                                           ^*
> > *In file included from
> > D:\Develop\QT\Poppler\poppler\poppler\GfxFont.h:41:0,*
> > *                 from
> > D:\Develop\QT\Poppler\poppler\poppler\GlobalParams.cc:78:*
> > *D:\Develop\QT\Poppler\poppler\poppler\Object.h:168:24: note: declared
> here*
> > *   template<typename T> Object(T) = delete;*
> > *                        ^*
> > *D:\Develop\QT\Poppler\poppler\poppler\Object.h:291:8: error: 'void
> > Object::free()' is private*
> > *   void free();*
> > *        ^*
> > *In file included from
> > D:\Develop\QT\Poppler\poppler\poppler\GlobalParams.cc:1325:0:*
> > *D:\Develop\QT\Poppler\poppler\poppler\GlobalParamsWin.cc:472:17: error:
> > within this context*
> > *       obj1.free();*
> > *                 ^*
> > *D:\Develop\QT\Poppler\poppler\poppler\GlobalParamsWin.cc:473:27: error:
> > use of deleted function 'Object Parser::getObj(T) [with T = Object*]'*
> > *       parser->getObj(&obj1);*
> > *                           ^*
> > *In file included from
> > D:\Develop\QT\Poppler\poppler\poppler\GlobalParamsWin.cc:53:0,*
> > *                 from
> > D:\Develop\QT\Poppler\poppler\poppler\GlobalParams.cc:1325:*
> > *D:\Develop\QT\Poppler\poppler\poppler\Parser.h:58:31: note: declared
> here*
> > *   template<typename T> Object getObj(T) = delete;*
> > *                               ^*
> > *In file included from
> > D:\Develop\QT\Poppler\poppler\poppler\GlobalParams.cc:1325:0:*
> > *D:\Develop\QT\Poppler\poppler\poppler\GlobalParamsWin.cc:475:26: error:
> > use of deleted function 'Object Parser::getObj(T) [with T = Object*]'*
> > *      parser->getObj(&obj2);*
> > *                          ^*
> > *In file included from
> > D:\Develop\QT\Poppler\poppler\poppler\GlobalParamsWin.cc:53:0,*
> > *                 from
> > D:\Develop\QT\Poppler\poppler\poppler\GlobalParams.cc:1325:*
> > *D:\Develop\QT\Poppler\poppler\poppler\Parser.h:58:31: note: declared
> here*
> > *   template<typename T> Object getObj(T) = delete;*
> > *                               ^*
> > *In file included from
> > D:\Develop\QT\Poppler\poppler\poppler\GlobalParams.cc:1325:0:*
> > *D:\Develop\QT\Poppler\poppler\poppler\GlobalParamsWin.cc:480:46: error:
> > invalid conversion from 'Object*' to 'int' [-fpermissive]*
> > *          obj2.getDict()->lookup("Path", &obj3);*
> > *                                              ^*
> > *In file included from
> > D:\Develop\QT\Poppler\poppler\poppler\Object.h:341:0,*
> > *                 from D:\Develop\QT\Poppler\poppler\
> poppler\GfxFont.h:41,*
> > *                 from
> > D:\Develop\QT\Poppler\poppler\poppler\GlobalParams.cc:78:*
> > *D:\Develop\QT\Poppler\poppler\poppler\Dict.h:77:10: note:
>  initializing
> > argument 2 of 'Object Dict::lookup(const char*, int)'*
> > *   Object lookup(const char *key, int recursion = 0);*
> > *          ^*
> > *In file included from
> > D:\Develop\QT\Poppler\poppler\poppler\GfxFont.h:41:0,*
> > *                 from
> > D:\Develop\QT\Poppler\poppler\poppler\GlobalParams.cc:78:*
> > *D:\Develop\QT\Poppler\poppler\poppler\Object.h:291:8: error: 'void
> > Object::free()' is private*
> > *   void free();*
> > *        ^*
> > *In file included from
> > D:\Develop\QT\Poppler\poppler\poppler\GlobalParams.cc:1325:0:*
> > *D:\Develop\QT\Poppler\poppler\poppler\GlobalParamsWin.cc:483:20: error:
> > within this context*
> > *          obj3.free();*
> > *                    ^*
> > *In file included from
> > D:\Develop\QT\Poppler\poppler\poppler\GfxFont.h:41:0,*
> > *                 from
> > D:\Develop\QT\Poppler\poppler\poppler\GlobalParams.cc:78:*
> > *D:\Develop\QT\Poppler\poppler\poppler\Object.h:291:8: error: 'void
> > Object::free()' is private*
> > *   void free();*
> > *        ^*
> > *In file included from
> > D:\Develop\QT\Poppler\poppler\poppler\GlobalParams.cc:1325:0:*
> > *D:\Develop\QT\Poppler\poppler\poppler\GlobalParamsWin.cc:489:16: error:
> > within this context*
> > *      obj2.free();*
> > *                ^*
> > *In file included from
> > D:\Develop\QT\Poppler\poppler\poppler\GfxFont.h:41:0,*
> > *                 from
> > D:\Develop\QT\Poppler\poppler\poppler\GlobalParams.cc:78:*
> > *D:\Develop\QT\Poppler\poppler\poppler\Object.h:291:8: error: 'void
> > Object::free()' is private*
> > *   void free();*
> > *        ^*
> > *In file included from
> > D:\Develop\QT\Poppler\poppler\poppler\GlobalParams.cc:1325:0:*
> > *D:\Develop\QT\Poppler\poppler\poppler\GlobalParamsWin.cc:490:16: error:
> > within this context*
> > *      obj1.free();*
> > *                ^*
> > *D:\Develop\QT\Poppler\poppler\poppler\GlobalParamsWin.cc:491:26: error:
> > use of deleted function 'Object Parser::getObj(T) [with T = Object*]'*
> > *      parser->getObj(&obj1);*
> > *                          ^*
> > *In file included from
> > D:\Develop\QT\Poppler\poppler\poppler\GlobalParamsWin.cc:53:0,*
> > *                 from
> > D:\Develop\QT\Poppler\poppler\poppler\GlobalParams.cc:1325:*
> > *D:\Develop\QT\Poppler\poppler\poppler\Parser.h:58:31: note: declared
> here*
> > *   template<typename T> Object getObj(T) = delete;*
> > *                               ^*
> > *In file included from
> > D:\Develop\QT\Poppler\poppler\poppler\GfxFont.h:41:0,*
> > *                 from
> > D:\Develop\QT\Poppler\poppler\poppler\GlobalParams.cc:78:*
> > *D:\Develop\QT\Poppler\poppler\poppler\Object.h:291:8: error: 'void
> > Object::free()' is private*
> > *   void free();*
> > *        ^*
> > *In file included from
> > D:\Develop\QT\Poppler\poppler\poppler\GlobalParams.cc:1325:0:*
> > *D:\Develop\QT\Poppler\poppler\poppler\GlobalParamsWin.cc:494:18: error:
> > within this context*
> > *        obj1.free();*
> > *                  ^*
> > *D:\Develop\QT\Poppler\poppler\poppler\GlobalParamsWin.cc:495:28: error:
> > use of deleted function 'Object Parser::getObj(T) [with T = Object*]'*
> > *        parser->getObj(&obj1);*
> > *                            ^*
> > *In file included from
> > D:\Develop\QT\Poppler\poppler\poppler\GlobalParamsWin.cc:53:0,*
> > *                 from
> > D:\Develop\QT\Poppler\poppler\poppler\GlobalParams.cc:1325:*
> > *D:\Develop\QT\Poppler\poppler\poppler\Parser.h:58:31: note: declared
> here*
> > *   template<typename T> Object getObj(T) = delete;*
> > *                               ^*
> > *CMakeFiles\poppler.dir\build.make:1112: recipe for target
> > 'CMakeFiles/poppler.dir/poppler/GlobalParams.cc.obj' failed*
> > *mingw32-make[2]: *** [CMakeFiles/poppler.dir/
> poppler/GlobalParams.cc.obj]
> > Error 1*
> > *CMakeFiles\Makefile2:66: recipe for target 'CMakeFiles/poppler.dir/all'
> > failed*
> > *mingw32-make[1]: *** [CMakeFiles/poppler.dir/all] Error 2*
> > *Makefile:139: recipe for target 'all' failed*
> > *mingw32-make: *** [all] Error 2*
>
>
> _______________________________________________
> poppler mailing list
> poppler at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/poppler
>



-- 
Pouya Ahmadvand
MSc  Student of Software Engineering
Dept. of Computer Engineering
SRTTU University
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/poppler/attachments/20170825/59379598/attachment-0001.html>


More information about the poppler mailing list