Minor compilation problem without libPNG
I use Wt for render PDF with text tables.
Got following Wt library compilation error:
\var\wt-3.3.3\build\src/libwt.a(WPdfImage.obj): In function `ZN2Wt9WPdfImage9drawImageERKNS_6WRectFERKSsiiS3_': D:/var/wt-3.3.3/src/Wt/WPdfImage.C:382: undefined reference to `HPDF_LoadPngImageFromMem' D:/var/wt-3.3.3/src/Wt/WPdfImage.C:393: undefined reference to `HPDF_LoadPngImageFromFile2'
This most possible because I don't have libPNG because I don't need it.
Cure is simple:
in WPdfImage.C : at (formerly empty) line#376 add: #undef HAVE_LOAD_FROM_MEM line #393: img = 0; // instead: HPDF_LoadPngImageFromFile2(pdf_, imgUrl.c_str());
I guess Wt configuration script should (not)set HAVE_LOAD_FROM_MEM configuration parameter in this my case.
Also (this is not Wt, but libHaru issue, but related), during libHaru compilation I've got error:
hpdf_image_ccitt.c:754:1: error: conflicting types for 'HPDF_Image_LoadRaw1BitImageFromMem'
I don't know the reason, the definitions of the function in c and h files were the same. Cure: I removed in the header file export directive for this function (anyway I don't need any images, my tasks are text-only).
No data to display