[poppler] windows compile problem

Pouya Ahmadvand pouya.ahmadvand at gmail.com
Thu Aug 24 06:14:33 UTC 2017


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 ?

*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*

-- 
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/20170824/c3fac1c8/attachment-0001.html>


More information about the poppler mailing list