Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QtLabs PDF make error
Qt 6.11 is out! See what's new in the release blog

QtLabs PDF make error

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 2 Posters 2.7k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • michaelLM Offline
    michaelLM Offline
    michaelL
    wrote on last edited by
    #1

    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 2

    Any idea?

    1 Reply Last reply
    0
    • michaelLM Offline
      michaelLM Offline
      michaelL
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Hi,

        Are you compiling or cross-compiling that project ?

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        0
        • michaelLM Offline
          michaelLM Offline
          michaelL
          wrote on last edited by
          #4

          @SGaist i am compiling in ARM architecture

          1 Reply Last reply
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #5

            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 ?

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved