coolwanglu/pdf2htmlEX

MSYS2 MinGW 32-bit build failed

Opened this issue · 0 comments

 I want to develop a new feature based on this project, but i can not bulid sucess using  MSYS2+MinGW32 .

I compiled it according to this link.
https://gist.github.com/cnstar9988/3571c66b49050d98df92142dc19fbb00

In the process, I downloaded libfontforge manually. (fontforge-20160404)

But when I make the project,  error occur.
It seems to be the reason for the incompatibility of the repository, or the reason for the configuration.
poppler version: mingw-w64-i686-poppler-0.62.0-1 

Does anyone have this problem? and how do I need to do ?

The error message is:
E:/projects/pdf2htmlEX-master/3rdparty/poppler/git/CairoFontEngine.cc:662:50: error: no matching function for call to 'Dict::getVal(long unsigned int&, Object*)'

gfx->display(charProcs->getVal(glyph, &charProc));
^
In file included from E:/msys64/mingw32/include/poppler/Object.h:342:0,
from E:/msys64/mingw32/include/poppler/GfxFont.h:41,
from E:/projects/pdf2htmlEX-master/3rdparty/poppler/git/CairoFontEngine.h:40,
from E:/projects/pdf2htmlEX-master/3rdparty/poppler/git/CairoFontEngine.cc:39:
E:/msys64/mingw32/include/poppler/Dict.h:84:10: note: candidate: Object Dict::getVal(int) const
Object getVal(int i) const;
^~~~~~
E:/msys64/mingw32/include/poppler/Dict.h:84:10: note: candidate expects 1 argument, 2 provided
E:/projects/pdf2htmlEX-master/3rdparty/poppler/git/CairoFontEngine.cc:681:17: error: 'void Object::free()' is private within this context
charProc.free();
^
In file included from E:/msys64/mingw32/include/poppler/GfxFont.h:41:0,
from E:/projects/pdf2htmlEX-master/3rdparty/poppler/git/CairoFontEngine.h:40,
from E:/projects/pdf2htmlEX-master/3rdparty/poppler/git/CairoFontEngine.cc:39:
E:/msys64/mingw32/include/poppler/Object.h:292:8: note: declared private here
void free();
^~~~