[Gambas-devel] gb.pdf doesn't build with libpoppler0.5.0 ...

Laurent Carlier lordheavy at ...141...
Mon Feb 20 13:10:41 CET 2006


Under the future ubuntu dapper ....

The output :
make[4]: Entering directory `/home/lordh/gambas2-1.9.25/gb.pdf/src'
if /bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I. 
-I.. -I/usr/include/poppler     -pipe -Wall -fno-exceptions -Wno-unused-value 
-g -Os -fno-omit-frame-pointer  -MT main.lo -MD -MP -MF ".deps/main.Tpo" -c 
-o main.lo main.cpp; \
        then mv -f ".deps/main.Tpo" ".deps/main.Plo"; else rm -f 
".deps/main.Tpo"; exit 1; fi
 g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/poppler -pipe -Wall 
-fno-exceptions -Wno-unused-value -g -Os -fno-omit-frame-pointer -MT main.lo 
-MD -MP -MF .deps/main.Tpo -c main.cpp  -fPIC -DPIC -o .libs/main.o
main.cpp: In function 'int GB_INIT()':
main.cpp:63: error: 'class GlobalParams' has no member named 
'setupBaseFontsFc'
make[4]: *** [main.lo] Error 1

Because poppler0.5.0 doesn't include setupBaseFontsFc() method anymore :-)
I didn't find a way to test poppler lib version ....

and when removing previous lines :
make[4]: Entering directory `/home/lordh/gambas2-1.9.25/gb.pdf/src'
if /bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I. 
-I.. -I/usr/include/poppler     -pipe -Wall -fno-exceptions -Wno-unused-value 
-g -Os -fno-omit-frame-pointer  -MT CPdfDocument.lo -MD -MP -MF 
".deps/CPdfDocument.Tpo" -c -o CPdfDocument.lo CPdfDocument.cpp; \
        then mv -f ".deps/CPdfDocument.Tpo" ".deps/CPdfDocument.Plo"; else rm 
-f ".deps/CPdfDocument.Tpo"; exit 1; fi
 g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/poppler -pipe -Wall 
-fno-exceptions -Wno-unused-value -g -Os -fno-omit-frame-pointer -MT 
CPdfDocument.lo -MD -MP -MF .deps/CPdfDocument.Tpo -c CPdfDocument.cpp  -fPIC 
-DPIC -o .libs/CPdfDocument.o
CPdfDocument.cpp: In function 'void PDFDOCUMENT_open(void*, void*)':
CPdfDocument.cpp:156: error: request for member 'rgb8' in 'white', which is of 
non-class type 'Guchar [4]'
CPdfDocument.cpp:156: error: 'splashMakeRGB8' was not declared in this scope
CPdfDocument.cpp:157: error: no matching function for call to 
'SplashOutputDev::SplashOutputDev(SplashColorMode, int, Guchar [4])'
/usr/include/poppler/SplashOutputDev.h:49: note: candidates are: 
SplashOutputDev::SplashOutputDev(SplashColorMode, int, GBool, Guchar*, GBool, 
GBool)
/usr/include/poppler/SplashOutputDev.h:42: note:                 
SplashOutputDev::SplashOutputDev(const SplashOutputDev&)
CPdfDocument.cpp:121: warning: unused variable 'items'
CPdfDocument.cpp: In function 'void PDFPAGE_width(void*, void*)':
CPdfDocument.cpp:382: error: 'class Page' has no member named 'getWidth'
CPdfDocument.cpp: In function 'void PDFPAGE_height(void*, void*)':
CPdfDocument.cpp:388: error: 'class Page' has no member named 'getHeight'
CPdfDocument.cpp: In function 'uint32_t* get_page_data(CPDFDOCUMENT*, int, 
int, int*, int*, double, int)':
CPdfDocument.cpp:404: error: 'class Page' has no member named 'getWidth'
CPdfDocument.cpp:407: error: 'class Page' has no member named 'getHeight'
CPdfDocument.cpp:413: error: 'class Page' has no member named 'getWidth'
CPdfDocument.cpp:413: error: 'class Page' has no member named 'getWidth'
CPdfDocument.cpp:414: error: 'class Page' has no member named 'getHeight'
CPdfDocument.cpp:414: error: 'class Page' has no member named 'getHeight'
CPdfDocument.cpp:436: error: no matching function for call to 
'Page::displaySlice(SplashOutputDev*&, double, double, int&, int, int&, int&, 
int&, int&, NULL, Catalog*)'
/usr/include/poppler/Page.h:180: note: candidates are: void 
Page::displaySlice(OutputDev*, double, double, int, GBool, GBool, int, int, 
int, int, Links*, Catalog*, GBool (*)(void*), void*, GBool (*)(Annot*, 
void*), void*)
CPdfDocument.cpp:439: error: request for member 'rgb8' in 'map-> 
SplashBitmap::getDataPtr()', which is of non-class type 'Guchar*'
CPdfDocument.cpp:396: warning: unused variable 'vl1'
CPdfDocument.cpp:396: warning: unused variable 'vl2'
CPdfDocument.cpp:396: warning: unused variable 'vl3'
CPdfDocument.cpp:397: warning: unused variable 'i'
CPdfDocument.cpp: In function 'void PDFPAGE_select(void*, void*)':
CPdfDocument.cpp:486: warning: unused variable '_p'
CPdfDocument.cpp: In function 'void PDFPAGELINKS_get(void*, void*)':
CPdfDocument.cpp:503: warning: unused variable '_p'
CPdfDocument.cpp: In function 'void PDFPAGE_find(void*, void*)':
CPdfDocument.cpp:581: warning: unused variable '_p'
CPdfDocument.cpp: In function 'void PDFPAGERESULT_get(void*, void*)':
CPdfDocument.cpp:588: warning: unused variable '_p'
make[4]: *** [CPdfDocument.lo] Error 1

regards,

-- 
jabber : lordheavy at ...298...
mail : lordheavym at ...394...





More information about the Devel mailing list