PDA

View Full Version : compile poppler



mihaiadrian
January 4th, 2010, 11:00 AM
Does anyone has an idea why poppler 0.12 cannot be compiled on ubuntu 8.04 but it works on ubuntu 8.10 ?

the configure parameters are:
./configure --disable-static --disable-cairo-output --enable-xpdf-headers --disable-poppler-qt --enable-poppler-qt4 --disable-splash-output --disable-gdk --disable-poppler-glib

and the make error on ubuntu 8.04 is:
poppler-page.cc: In static member function ‘static Poppler::Link* Poppler::PageData::convertLinkActionToLink(LinkAct ion*, Poppler::DocumentData*, const QRectF&)’:
poppler-page.cc:79: warning: enumeration value ‘actionRendition’ not handled in switch
poppler-page.cc: In member function ‘QImage Poppler::Page::renderToImage(double, double, int, int, int, int, Poppler::Page::Rotation) const’:
poppler-page.cc:201: warning: unused variable ‘rotation’
poppler-page.cc: In member function ‘QImage Poppler::Page::thumbnail() const’:
poppler-page.cc:293: error: ‘Format_RGB888’ is not a member of ‘QImage’
make[3]: *** [poppler-page.lo] Error 1

the code where is error apears is:

QImage Page::thumbnail() const
{
unsigned char* data = 0;
int w = 0;
int h = 0;
int rowstride = 0;
GBool r = m_page->page->loadThumb(&data, &w, &h, &rowstride);
QImage ret;
if (r)
{
// first construct a temporary image with the data got,
// then force a copy of it so we can free the raw thumbnail data
ret = QImage(data, w, h, rowstride, QImage::Format_RGB888).copy();
gfree(data);
}
return ret;
}



I've tried more versions and poppler-0.10.7 and below this version works on ubuntu 8.04

Please don't tell me to install it from repository, I need to compile poppler.

Temüjin
January 4th, 2010, 04:27 PM
This is same error, maybe solution will work for you: http://www.kdenlive.org/forum/qimage-trouble-mlt-revision-1218