QtLabs PDF make error
-
Hi,
i have an error while making qtpdf from here https://github.com/qt-labs/qtpdf:
usr/include/arm-linux-gnueabihf/qt5/QtCore -isystem /usr/include/arm-linux-gnueabihf/qt5/QtNetwork -I.moc -o .obj/qpdfbookmarkmodel.o qpdfbookmarkmodel.cpp
qpdfbookmarkmodel.cpp:47:42: fatal error: private/qabstractitemmodel_p.h: No such file or directory
#include <private/qabstractitemmodel_p.h>
^
compilation terminated.
Makefile:466: recipe for target '.obj/qpdfbookmarkmodel.o' failed
make[2]: *** [.obj/qpdfbookmarkmodel.o] Error 1
make[2]: Leaving directory '/home/debian/qtpdf/src/pdf'
Makefile:82: recipe for target 'sub-pdf-make_first-ordered' failed
make[1]: *** [sub-pdf-make_first-ordered] Error 2
make[1]: Leaving directory '/home/debian/qtpdf/src'
Makefile:40: recipe for target 'sub-src-make_first' failed
make: *** [sub-src-make_first] Error 2Any idea?
-
i have installed qtbase5-private-dev and that worked. But now i am facing a new error:
In file included from qpdfbookmarkmodel.cpp:37:0:
qpdfbookmarkmodel.h:62:25: error: ISO C++ forbids declaration of 'Q_ENUM' with no type [-fpermissive]
Q_ENUM(StructureMode)
^
qpdfbookmarkmodel.h:62:25: error: expected ';' at end of member declaration
qpdfbookmarkmodel.h:70:16: error: ISO C++ forbids declaration of 'Q_ENUM' with no type [-fpermissive]
Q_ENUM(Role)
^
qpdfbookmarkmodel.h:70:16: error: expected ';' at end of member declaration
In file included from qpdfbookmarkmodel.cpp:39:0:
qpdfdocument.h:65:18: error: ISO C++ forbids declaration of 'Q_ENUM' with no type [-fpermissive]
Q_ENUM(Status)
^
qpdfdocument.h:65:18: error: expected ';' at end of member declaration
qpdfdocument.h:75:25: error: ISO C++ forbids declaration of 'Q_ENUM' with no type [-fpermissive]
Q_ENUM(DocumentError)
^
qpdfdocument.h:75:25: error: expected ';' at end of member declaration
qpdfdocument.h:87:25: error: ISO C++ forbids declaration of 'Q_ENUM' with no type [-fpermissive]
Q_ENUM(MetaDataField)
^
qpdfdocument.h:87:25: error: expected ';' at end of member declaration
Makefile:466: recipe for target '.obj/qpdfbookmarkmodel.o' failed
make[2]: *** [.obj/qpdfbookmarkmodel.o] Error 1
make[2]: Leaving directory '/home/debian/qtpdf/src/pdf'
Makefile:82: recipe for target 'sub-pdf-make_first-ordered' failed
make[1]: *** [sub-pdf-make_first-ordered] Error 2
make[1]: Leaving directory '/home/debian/qtpdf/src'
Makefile:40: recipe for target 'sub-src-make_first' failed
make: *** [sub-src-make_first] Error 2 -
Hi,
Are you compiling or cross-compiling that project ?
-
That I know, my question is: are you building on your desktop for your device or are you compiling natively ?
If the former, did you already cross-compile Qt ?