<div dir="ltr">Hi <div>I`m trying compile last version of popper on windows 10. </div><div>but when I compile the library I get following error :</div><div>how can I fix it ?</div><div><br></div><div><div><i>In file included from D:\Develop\QT\Poppler\poppler\poppler\GlobalParams.cc:1325:0:</i></div><div><i>D:\Develop\QT\Poppler\poppler\poppler\GlobalParamsWin.cc: In member function 'void GlobalParams::setupBaseFonts(char*)':</i></div><div><i>D:\Develop\QT\Poppler\poppler\poppler\GlobalParamsWin.cc:467:12: error: 'class Object' has no member named 'initNull'</i></div><div><i>       obj1.initNull();</i></div><div><i>            ^</i></div><div><i>D:\Develop\QT\Poppler\poppler\poppler\GlobalParamsWin.cc:470:59: error: use of deleted function 'Object::Object(T) [with T = Object*]'</i></div><div><i>        new FileStream(file, 0, gFalse, file->size(), &obj1)),</i></div><div><i>                                                           ^</i></div><div><i>In file included from D:\Develop\QT\Poppler\poppler\poppler\GfxFont.h:41:0,</i></div><div><i>                 from D:\Develop\QT\Poppler\poppler\poppler\GlobalParams.cc:78:</i></div><div><i>D:\Develop\QT\Poppler\poppler\poppler\Object.h:168:24: note: declared here</i></div><div><i>   template<typename T> Object(T) = delete;</i></div><div><i>                        ^</i></div><div><i>D:\Develop\QT\Poppler\poppler\poppler\Object.h:291:8: error: 'void Object::free()' is private</i></div><div><i>   void free();</i></div><div><i>        ^</i></div><div><i>In file included from D:\Develop\QT\Poppler\poppler\poppler\GlobalParams.cc:1325:0:</i></div><div><i>D:\Develop\QT\Poppler\poppler\poppler\GlobalParamsWin.cc:472:17: error: within this context</i></div><div><i>       obj1.free();</i></div><div><i>                 ^</i></div><div><i>D:\Develop\QT\Poppler\poppler\poppler\GlobalParamsWin.cc:473:27: error: use of deleted function 'Object Parser::getObj(T) [with T = Object*]'</i></div><div><i>       parser->getObj(&obj1);</i></div><div><i>                           ^</i></div><div><i>In file included from D:\Develop\QT\Poppler\poppler\poppler\GlobalParamsWin.cc:53:0,</i></div><div><i>                 from D:\Develop\QT\Poppler\poppler\poppler\GlobalParams.cc:1325:</i></div><div><i>D:\Develop\QT\Poppler\poppler\poppler\Parser.h:58:31: note: declared here</i></div><div><i>   template<typename T> Object getObj(T) = delete;</i></div><div><i>                               ^</i></div><div><i>In file included from D:\Develop\QT\Poppler\poppler\poppler\GlobalParams.cc:1325:0:</i></div><div><i>D:\Develop\QT\Poppler\poppler\poppler\GlobalParamsWin.cc:475:26: error: use of deleted function 'Object Parser::getObj(T) [with T = Object*]'</i></div><div><i>      parser->getObj(&obj2);</i></div><div><i>                          ^</i></div><div><i>In file included from D:\Develop\QT\Poppler\poppler\poppler\GlobalParamsWin.cc:53:0,</i></div><div><i>                 from D:\Develop\QT\Poppler\poppler\poppler\GlobalParams.cc:1325:</i></div><div><i>D:\Develop\QT\Poppler\poppler\poppler\Parser.h:58:31: note: declared here</i></div><div><i>   template<typename T> Object getObj(T) = delete;</i></div><div><i>                               ^</i></div><div><i>In file included from D:\Develop\QT\Poppler\poppler\poppler\GlobalParams.cc:1325:0:</i></div><div><i>D:\Develop\QT\Poppler\poppler\poppler\GlobalParamsWin.cc:480:46: error: invalid conversion from 'Object*' to 'int' [-fpermissive]</i></div><div><i>          obj2.getDict()->lookup("Path", &obj3);</i></div><div><i>                                              ^</i></div><div><i>In file included from D:\Develop\QT\Poppler\poppler\poppler\Object.h:341:0,</i></div><div><i>                 from D:\Develop\QT\Poppler\poppler\poppler\GfxFont.h:41,</i></div><div><i>                 from D:\Develop\QT\Poppler\poppler\poppler\GlobalParams.cc:78:</i></div><div><i>D:\Develop\QT\Poppler\poppler\poppler\Dict.h:77:10: note:   initializing argument 2 of 'Object Dict::lookup(const char*, int)'</i></div><div><i>   Object lookup(const char *key, int recursion = 0);</i></div><div><i>          ^</i></div><div><i>In file included from D:\Develop\QT\Poppler\poppler\poppler\GfxFont.h:41:0,</i></div><div><i>                 from D:\Develop\QT\Poppler\poppler\poppler\GlobalParams.cc:78:</i></div><div><i>D:\Develop\QT\Poppler\poppler\poppler\Object.h:291:8: error: 'void Object::free()' is private</i></div><div><i>   void free();</i></div><div><i>        ^</i></div><div><i>In file included from D:\Develop\QT\Poppler\poppler\poppler\GlobalParams.cc:1325:0:</i></div><div><i>D:\Develop\QT\Poppler\poppler\poppler\GlobalParamsWin.cc:483:20: error: within this context</i></div><div><i>          obj3.free();</i></div><div><i>                    ^</i></div><div><i>In file included from D:\Develop\QT\Poppler\poppler\poppler\GfxFont.h:41:0,</i></div><div><i>                 from D:\Develop\QT\Poppler\poppler\poppler\GlobalParams.cc:78:</i></div><div><i>D:\Develop\QT\Poppler\poppler\poppler\Object.h:291:8: error: 'void Object::free()' is private</i></div><div><i>   void free();</i></div><div><i>        ^</i></div><div><i>In file included from D:\Develop\QT\Poppler\poppler\poppler\GlobalParams.cc:1325:0:</i></div><div><i>D:\Develop\QT\Poppler\poppler\poppler\GlobalParamsWin.cc:489:16: error: within this context</i></div><div><i>      obj2.free();</i></div><div><i>                ^</i></div><div><i>In file included from D:\Develop\QT\Poppler\poppler\poppler\GfxFont.h:41:0,</i></div><div><i>                 from D:\Develop\QT\Poppler\poppler\poppler\GlobalParams.cc:78:</i></div><div><i>D:\Develop\QT\Poppler\poppler\poppler\Object.h:291:8: error: 'void Object::free()' is private</i></div><div><i>   void free();</i></div><div><i>        ^</i></div><div><i>In file included from D:\Develop\QT\Poppler\poppler\poppler\GlobalParams.cc:1325:0:</i></div><div><i>D:\Develop\QT\Poppler\poppler\poppler\GlobalParamsWin.cc:490:16: error: within this context</i></div><div><i>      obj1.free();</i></div><div><i>                ^</i></div><div><i>D:\Develop\QT\Poppler\poppler\poppler\GlobalParamsWin.cc:491:26: error: use of deleted function 'Object Parser::getObj(T) [with T = Object*]'</i></div><div><i>      parser->getObj(&obj1);</i></div><div><i>                          ^</i></div><div><i>In file included from D:\Develop\QT\Poppler\poppler\poppler\GlobalParamsWin.cc:53:0,</i></div><div><i>                 from D:\Develop\QT\Poppler\poppler\poppler\GlobalParams.cc:1325:</i></div><div><i>D:\Develop\QT\Poppler\poppler\poppler\Parser.h:58:31: note: declared here</i></div><div><i>   template<typename T> Object getObj(T) = delete;</i></div><div><i>                               ^</i></div><div><i>In file included from D:\Develop\QT\Poppler\poppler\poppler\GfxFont.h:41:0,</i></div><div><i>                 from D:\Develop\QT\Poppler\poppler\poppler\GlobalParams.cc:78:</i></div><div><i>D:\Develop\QT\Poppler\poppler\poppler\Object.h:291:8: error: 'void Object::free()' is private</i></div><div><i>   void free();</i></div><div><i>        ^</i></div><div><i>In file included from D:\Develop\QT\Poppler\poppler\poppler\GlobalParams.cc:1325:0:</i></div><div><i>D:\Develop\QT\Poppler\poppler\poppler\GlobalParamsWin.cc:494:18: error: within this context</i></div><div><i>        obj1.free();</i></div><div><i>                  ^</i></div><div><i>D:\Develop\QT\Poppler\poppler\poppler\GlobalParamsWin.cc:495:28: error: use of deleted function 'Object Parser::getObj(T) [with T = Object*]'</i></div><div><i>        parser->getObj(&obj1);</i></div><div><i>                            ^</i></div><div><i>In file included from D:\Develop\QT\Poppler\poppler\poppler\GlobalParamsWin.cc:53:0,</i></div><div><i>                 from D:\Develop\QT\Poppler\poppler\poppler\GlobalParams.cc:1325:</i></div><div><i>D:\Develop\QT\Poppler\poppler\poppler\Parser.h:58:31: note: declared here</i></div><div><i>   template<typename T> Object getObj(T) = delete;</i></div><div><i>                               ^</i></div><div><i>CMakeFiles\poppler.dir\build.make:1112: recipe for target 'CMakeFiles/poppler.dir/poppler/GlobalParams.cc.obj' failed</i></div><div><i>mingw32-make[2]: *** [CMakeFiles/poppler.dir/poppler/GlobalParams.cc.obj] Error 1</i></div><div><i>CMakeFiles\Makefile2:66: recipe for target 'CMakeFiles/poppler.dir/all' failed</i></div><div><i>mingw32-make[1]: *** [CMakeFiles/poppler.dir/all] Error 2</i></div><div><i>Makefile:139: recipe for target 'all' failed</i></div><div><i>mingw32-make: *** [all] Error 2</i></div></div><div><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div>Pouya Ahmadvand<br>MSc  Student of Software <span style="font-size:12.7273px">Engineering</span><br>Dept. of Computer Engineering<br>SRTTU University</div></div></div>
</div></div>