I downloaded 
https://superb-dca2.dl.sourceforge.net/project/podofo/podofo/0.9.4/podofo-0.9.4.tar.gz.
This built successfully under slackware 14.2.
I downloaded 
https://superb-dca2.dl.sourceforge.net/project/podofo/podofobrowser/0.5/podofobrowser-0.5.tar.gz.
Cmake succeeded, after adding the include directory /usr/include/freetype2.
Make failed with the following compiler errors:

----------------------------------------------------------------
/home/martin/Downloads/podofobrowser-0.5/src/backgroundloader.cpp: In 
constructor 'BackgroundLoader::BackgroundLoader(PoDoFo::PdfDocument*)':
/home/martin/Downloads/podofobrowser-0.5/src/backgroundloader.cpp:14:73: 
error:request for member 'GetSize' in 'doc->PoDoFo::PdfDocument::GetObjects()', 
which is of pointer type 'PoDoFo::PdfVecObjects*' (maybe you meant to use '->' 
?)
 qDebug("Beginning background load of %i objects", doc->GetObjects().GetSize());
                                                                     ^
/home/martin/Downloads/podofobrowser-0.5/src/backgroundloader.cpp: In member 
function 'void BackgroundLoader::loadNextObject()':
/home/martin/Downloads/podofobrowser-0.5/src/backgroundloader.cpp:30:75: 
error:invalid const_cast of an rvalue of type 'PoDoFo::PdfVecObjects*' to type 
'PoDoFo::PdfVecObjects&'
     PdfVecObjects & objs = const_cast<PdfVecObjects&>(m_pDoc->GetObjects());
                                                                           ^
src/CMakeFiles/podofobrowser.dir/build.make:120: recipe for target 
'src/CMakeFiles/podofobrowser.dir/backgroundloader.o' failed
make[2]: *** [src/CMakeFiles/podofobrowser.dir/backgroundloader.o] Error 1
---------------------------------------------------------------------

g++ --version shows: g++ (GCC) 5.3.0
Slackware 14.2 infamously breaks compiles, but this might be more serious.  I 
tried fixing the two
errors above by dereferencing GetObjects in both places.  This worked, but 
similar compile errors
occurred in subsequent compiles.

Martin Dowd 

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Podofo-users mailing list
Podofo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/podofo-users

Reply via email to