[poppler] PDFDocument.h:33:25: error: poppler-qt4.h: No such file or directory

Hongyi Zhao hongyi.zhao at gmail.com
Sun Nov 4 06:58:04 PST 2012


Hi all,

I've compiled the latest poppler git version from here:

git clone git://git.freedesktop.org/git/poppler/poppler

The compiling was done with the following steps:

$ ./configure --enable-poppler-qt4 && make && make install

This will install the poppler with qt4 wrapper under /usr/local.

Then, I proceed to compile the svn version of texstudio, but I meet the 
following errors:

-----------
werner at debian-asus:~/software/TUG/IDE/texstudio/svn-texstudio/texstudio$ 
qmake texstudio.pro
Project MESSAGE: Creating debug version
Project MESSAGE: svn_revision.cpp was not found and will be created. 
Don't worry about repeated warnings.
WARNING: Failure to find: svn_revision.cpp

werner at debian-asus:~/software/TUG/IDE/texstudio/svn-texstudio/texstudio$ 
make
[snipped]
warning: /usr/include/poppler/qt4: No such file or directory
In file included from texmaker.h:38,
from main.cpp:16:
PDFDocument.h:33:25: error: poppler-qt4.h: No such file or directory
In file included from pdfrendermanager.h:11,
from PDFDocument.h:37,
from texmaker.h:38,
from main.cpp:16:
pdfrenderengine.h:29: error: ‘Poppler’ has not been declared
pdfrenderengine.h:29: error: ISO C++ forbids declaration of ‘Rotation’ 
with no type
pdfrenderengine.h:29: error: expected ‘;’ before ‘rotate’
pdfrenderengine.h:42: error: ‘Poppler’ has not been declared
pdfrenderengine.h:42: error: expected ‘,’ or ‘...’ before ‘*’ token
pdfrenderengine.h:52: error: ‘Poppler’ has not been declared
pdfrenderengine.h:52: error: ISO C++ forbids declaration of ‘Document’ 
with no type
pdfrenderengine.h:52: error: expected ‘;’ before ‘*’ token
In file included from PDFDocument.h:37,
from texmaker.h:38,
from main.cpp:16:
pdfrendermanager.h:81: error: ‘Poppler’ has not been declared
pdfrendermanager.h:81: error: expected ‘,’ or ‘...’ before ‘rotate’
pdfrendermanager.h:82: error: ‘Poppler’ has not been declared
pdfrendermanager.h:82: error: ISO C++ forbids declaration of ‘Document’ 
with no type
pdfrendermanager.h:82: error: expected ‘;’ before ‘*’ token
pdfrendermanager.h:83: error: ‘Poppler’ has not been declared
pdfrendermanager.h:83: error: expected ‘,’ or ‘...’ before ‘*’ token
pdfrendermanager.h:99: error: ‘Poppler’ has not been declared
pdfrendermanager.h:99: error: ISO C++ forbids declaration of ‘Document’ 
with no type
pdfrendermanager.h:99: error: expected ‘;’ before ‘*’ token
pdfrendermanager.h:81: error: default argument missing for parameter 12 
of ‘QPixmap PDFRenderManager::renderToImage(int, QObject*, const char*, 
double, double, int, int, int, int, bool, bool, int)’
In file included from texmaker.h:38,
from main.cpp:16:
PDFDocument.h:120: error: ‘Poppler’ has not been declared
PDFDocument.h:120: error: expected ‘,’ or ‘...’ before ‘*’ token
PDFDocument.h:226: error: ISO C++ forbids declaration of ‘Poppler’ with 
no type
PDFDocument.h:226: error: expected ‘,’ or ‘...’ before ‘::’ token
PDFDocument.h:227: error: ISO C++ forbids declaration of ‘Poppler’ with 
no type
PDFDocument.h:227: error: expected ‘,’ or ‘...’ before ‘::’ token
PDFDocument.h:232: error: ‘Poppler’ has not been declared
PDFDocument.h:232: error: ISO C++ forbids declaration of ‘Document’ with 
no type
PDFDocument.h:232: error: expected ‘;’ before ‘*’ token
PDFDocument.h:234: error: ‘Poppler’ has not been declared
PDFDocument.h:234: error: ISO C++ forbids declaration of ‘Link’ with no type
PDFDocument.h:234: error: expected ‘;’ before ‘*’ token
PDFDocument.h:235: error: ‘Poppler’ has not been declared
PDFDocument.h:235: error: ISO C++ forbids declaration of ‘Annotation’ 
with no type
PDFDocument.h:235: error: expected ‘;’ before ‘*’ token
PDFDocument.h:346: error: ‘Poppler’ has not been declared
PDFDocument.h:346: error: ISO C++ forbids declaration of ‘Document’ with 
no type
PDFDocument.h:346: error: expected ‘;’ before ‘*’ token
PDFDocument.h:351: error: expected ‘;’ before ‘PDFWidget’
PDFDocument.h:438: error: ‘Poppler’ has not been declared
PDFDocument.h:438: error: ISO C++ forbids declaration of ‘Document’ with 
no type
PDFDocument.h:438: error: expected ‘;’ before ‘*’ token
make: *** [.obj/main.o] Error 1
-------------

It seems that the make command looks /usr/include for stuffs relative to 
poppler-qt4.h, this file is located in the following location on my case:

/usr/local/include/poppler/qt4/poppler-qt4.h

But, I don't know how to solve this issue and let make can find it, 
could you please give me some hints on this issue?

Regards

-- 
.: Hongyi Zhao [ hongyi.zhao AT gmail.com ] Free as in Freedom :.



More information about the poppler mailing list