[Ipe-discuss] pdf2ipe compile error
Otfried Cheong
ipe at otfried.org
Thu Oct 31 19:04:22 CET 2019
poppler changed dramatically at some point, replacing their own type GooString by C++'s std::string.
There is a branch old-poppler on the ipe-tools repository that will work with Poppler version v0.68. The master branch needs poppler v0.73 or something like that.
Cheers,
Otfried
On Thu, Oct 31, 2019, at 18:54, Michael GENG via Ipe-discuss wrote:
>
> Hi All,
>
> Any body know to to addess the error to compile pdf2ipe? In unbuntu
> under subsystem of linux in windows 10
>
> Thanks a lot!
> Michael
>
> >> ~Downloads/ipe-tools-master/pdftoipe$ make
>
> >> g++ -Wno-write-strings -std=c++11 -I/usr/include/poppler -c -o xmloutputdev.o xmloutputdev.cpp
>
> >> g++ -Wno-write-strings -std=c++11 -I/usr/include/poppler -c -o pdftoipe.o pdftoipe.cpp
>
> >> pdftoipe.cpp: In function ‘int main(int, char**)’:
>
> >> pdftoipe.cpp:111:31: error: ‘class GooString’ has no member named ‘c_str’
>
> >> const char *p = fileName->c_str() + fileName->getLength() - 4;
>
> >> ^~~~~
>
> >> pdftoipe.cpp:113:45: error: ‘class GooString’ has no member named ‘c_str’
>
> >> xmlFileName = std::string(fileName->c_str(),
>
> >> ^~~~~
>
> >> pdftoipe.cpp:116:31: error: ‘class GooString’ has no member named ‘c_str’
>
> >> xmlFileName = fileName->c_str();
>
> >> ^~~~~
>
> >> <builtin>: recipe for target 'pdftoipe.o' failed
>
> >> make: *** [pdftoipe.o] Error 1
>
> _______________________________________________
> Ipe-discuss mailing list
> Ipe-discuss at lists.science.uu.nl
> https://mailman.science.uu.nl/mailman/listinfo/ipe-discuss
>
More information about the Ipe-discuss
mailing list