Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. 3rd Party Software
  4. PDFhummus error: PDFWriter.h: No such file or directory. I need help to use PDFhummus with QT Creator
Forum Updated to NodeBB v4.3 + New Features

PDFhummus error: PDFWriter.h: No such file or directory. I need help to use PDFhummus with QT Creator

Scheduled Pinned Locked Moved Unsolved 3rd Party Software
26 Posts 4 Posters 4.3k 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.
  • ronaldonR Offline
    ronaldonR Offline
    ronaldon
    wrote on last edited by
    #1

    pdfhummus error: PDFWriter.h: No such file or directory
    Good night guys. I'm trying development a PDF file handler with QT Create and PDFHummus and i have get this error: PDFWriter.h: No such file or directory. I have build PDFHummus source code and add the PDFWriter.lib to my QT project througth: options -> add library -> external libraies. Someone help-me please.

    The same error for the others resources: #include <PDFWriter.h>, #include <PDFPage.h>, #include <PDFWriter.h>, #include <PDFPageInput.h>

    JonBJ 2 Replies Last reply
    0
    • ronaldonR ronaldon

      pdfhummus error: PDFWriter.h: No such file or directory
      Good night guys. I'm trying development a PDF file handler with QT Create and PDFHummus and i have get this error: PDFWriter.h: No such file or directory. I have build PDFHummus source code and add the PDFWriter.lib to my QT project througth: options -> add library -> external libraies. Someone help-me please.

      The same error for the others resources: #include <PDFWriter.h>, #include <PDFPage.h>, #include <PDFWriter.h>, #include <PDFPageInput.h>

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by
      #2

      @ronaldon
      QT Creator is an IDE (editor, debugger). It has nothing to do with the errors you are vaguely reporting. That would be down to whatever compiler/linker you are using. Your errors sound like they are coming from #include statements in your sources. So either your include paths are wrong/unspecified, or the header files are not where you think they are.

      Nobody can give you more information from the description you give without more specifics.

      1 Reply Last reply
      0
      • ronaldonR Offline
        ronaldonR Offline
        ronaldon
        wrote on last edited by
        #3

        I need developer a tool from scratch for handler PDF files with PDF Hummus and QT create. I have build PDFHummus source code and add the PDFWriter.lib to my QT project througth: options -> add library -> external libraies but I have problems describd above. Can you help me?

        eyllanescE 1 Reply Last reply
        0
        • ronaldonR ronaldon

          I need developer a tool from scratch for handler PDF files with PDF Hummus and QT create. I have build PDFHummus source code and add the PDFWriter.lib to my QT project througth: options -> add library -> external libraies but I have problems describd above. Can you help me?

          eyllanescE Offline
          eyllanescE Offline
          eyllanesc
          wrote on last edited by
          #4

          @ronaldon share your .pro

          If you want me to help you develop some work then you can write to my email: e.yllanescucho@gmal.com.

          ronaldonR 1 Reply Last reply
          0
          • eyllanescE eyllanesc

            @ronaldon share your .pro

            ronaldonR Offline
            ronaldonR Offline
            ronaldon
            wrote on last edited by ronaldon
            #5

            @eyllanesc
            This is my .pro:

            QT       += core gui
            
            greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
            
            CONFIG += c++11
            
            # You can make your code fail to compile if it uses deprecated APIs.
            # In order to do so, uncomment the following line.
            #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0
            
            SOURCES += \
                main.cpp \
                pdfwriter1steps.cpp
            
            HEADERS += \
                pdfwriter1steps.h
            
            FORMS += \
                pdfwriter1steps.ui
            
            # Default rules for deployment.
            qnx: target.path = /tmp/$${TARGET}/bin
            else: unix:!android: target.path = /opt/$${TARGET}/bin
            !isEmpty(target.path): INSTALLS += target
            
            win32:CONFIG(release, debug|release): LIBS += -L$$PWD/./ -lPDFWriter
            else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/./ -lPDFWriter
            else:unix: LIBS += -L$$PWD/./ -lPDFWriter
            
            INCLUDEPATH += $$PWD/.
            DEPENDPATH += $$PWD/.
            
            
            1 Reply Last reply
            0
            • ronaldonR ronaldon

              pdfhummus error: PDFWriter.h: No such file or directory
              Good night guys. I'm trying development a PDF file handler with QT Create and PDFHummus and i have get this error: PDFWriter.h: No such file or directory. I have build PDFHummus source code and add the PDFWriter.lib to my QT project througth: options -> add library -> external libraies. Someone help-me please.

              The same error for the others resources: #include <PDFWriter.h>, #include <PDFPage.h>, #include <PDFWriter.h>, #include <PDFPageInput.h>

              JonBJ Offline
              JonBJ Offline
              JonB
              wrote on last edited by
              #6

              @ronaldon said in PDFhummus error: PDFWriter.h: No such file or directory. I need help to use PDFhummus with QT Creator:

              pdfhummus error: PDFWriter.h: No such file or directory

              The same error for the others resources: #include <PDFWriter.h>, #include <PDFPage.h>, #include <PDFWriter.h>, #include <PDFPageInput.h>

              So where are these header files actually located, and what have you done about making your INCLUDEPATH include the directory so that the compiler can find them? I don't see anything in your .pro for this?

              ronaldonR 1 Reply Last reply
              4
              • JonBJ JonB

                @ronaldon said in PDFhummus error: PDFWriter.h: No such file or directory. I need help to use PDFhummus with QT Creator:

                pdfhummus error: PDFWriter.h: No such file or directory

                The same error for the others resources: #include <PDFWriter.h>, #include <PDFPage.h>, #include <PDFWriter.h>, #include <PDFPageInput.h>

                So where are these header files actually located, and what have you done about making your INCLUDEPATH include the directory so that the compiler can find them? I don't see anything in your .pro for this?

                ronaldonR Offline
                ronaldonR Offline
                ronaldon
                wrote on last edited by
                #7

                @JonB ,
                I have build PDFHummus source code and add the PDFWriter.lib to my QT project througth: options -> add library -> external libraies.

                JonBJ 1 Reply Last reply
                0
                • ronaldonR ronaldon

                  @JonB ,
                  I have build PDFHummus source code and add the PDFWriter.lib to my QT project througth: options -> add library -> external libraies.

                  JonBJ Offline
                  JonBJ Offline
                  JonB
                  wrote on last edited by JonB
                  #8

                  @ronaldon
                  That seems to have no answer for what I asked you about where the header files are and how you have told the compile process to find them on include path. Repeating that you have built PDFWriter does not advance you any further.

                  ronaldonR 1 Reply Last reply
                  1
                  • JonBJ JonB

                    @ronaldon
                    That seems to have no answer for what I asked you about where the header files are and how you have told the compile process to find them on include path. Repeating that you have built PDFWriter does not advance you any further.

                    ronaldonR Offline
                    ronaldonR Offline
                    ronaldon
                    wrote on last edited by
                    #9

                    @JonB
                    I think I understand now, I shouldn't use PDFWriter.lib, instead i should add to my project the PDF Hummus fonts. It is that true?

                    JonBJ SGaistS 2 Replies Last reply
                    0
                    • ronaldonR ronaldon

                      @JonB
                      I think I understand now, I shouldn't use PDFWriter.lib, instead i should add to my project the PDF Hummus fonts. It is that true?

                      JonBJ Offline
                      JonBJ Offline
                      JonB
                      wrote on last edited by
                      #10

                      @ronaldon
                      No.

                      1 Reply Last reply
                      0
                      • ronaldonR ronaldon

                        @JonB
                        I think I understand now, I shouldn't use PDFWriter.lib, instead i should add to my project the PDF Hummus fonts. It is that true?

                        SGaistS Offline
                        SGaistS Offline
                        SGaist
                        Lifetime Qt Champion
                        wrote on last edited by
                        #11

                        @ronaldon said in PDFhummus error: PDFWriter.h: No such file or directory. I need help to use PDFhummus with QT Creator:

                        @JonB
                        I think I understand now, I shouldn't use PDFWriter.lib, instead i should add to my project the PDF Hummus fonts. It is that true?

                        Hi,

                        As @JonB requested: where is the header of that library located on your hard drive ?

                        That path is missing from your INCLUDEPATH variable.

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

                        ronaldonR 1 Reply Last reply
                        1
                        • SGaistS SGaist

                          @ronaldon said in PDFhummus error: PDFWriter.h: No such file or directory. I need help to use PDFhummus with QT Creator:

                          @JonB
                          I think I understand now, I shouldn't use PDFWriter.lib, instead i should add to my project the PDF Hummus fonts. It is that true?

                          Hi,

                          As @JonB requested: where is the header of that library located on your hard drive ?

                          That path is missing from your INCLUDEPATH variable.

                          ronaldonR Offline
                          ronaldonR Offline
                          ronaldon
                          wrote on last edited by ronaldon
                          #12

                          @SGaist
                          The header PDFWriter.h is in "D:\WORKSPACE\PDFWriter\PDFWriter" and my project is in "C:\Users\Usuario\Documents\QTProjects\TestPDFhummus"

                          ronaldonR 1 Reply Last reply
                          0
                          • ronaldonR ronaldon

                            @SGaist
                            The header PDFWriter.h is in "D:\WORKSPACE\PDFWriter\PDFWriter" and my project is in "C:\Users\Usuario\Documents\QTProjects\TestPDFhummus"

                            ronaldonR Offline
                            ronaldonR Offline
                            ronaldon
                            wrote on last edited by ronaldon
                            #13
                            This post is deleted!
                            1 Reply Last reply
                            0
                            • SGaistS Offline
                              SGaistS Offline
                              SGaist
                              Lifetime Qt Champion
                              wrote on last edited by
                              #14

                              Build the library properly and use it rather than trying to do it by hand like you do.

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

                              ronaldonR 2 Replies Last reply
                              0
                              • SGaistS SGaist

                                Build the library properly and use it rather than trying to do it by hand like you do.

                                ronaldonR Offline
                                ronaldonR Offline
                                ronaldon
                                wrote on last edited by
                                #15

                                @SGaist
                                How can i made that? In the begin i try compile and import the files .lib but not work for me.

                                1 Reply Last reply
                                0
                                • SGaistS SGaist

                                  Build the library properly and use it rather than trying to do it by hand like you do.

                                  ronaldonR Offline
                                  ronaldonR Offline
                                  ronaldon
                                  wrote on last edited by ronaldon
                                  #16

                                  @SGaist
                                  I receive this error now:

                                  C:\Users\Usuario\Documents\QTProjects\build-TestPDFhummus-Desktop_Qt_5_15_2_MinGW_64_bit-Debug..\TestPDFhummus\main.cpp:16: error: undefined reference to PDFWriter::PDFWriter()' debug/main.o: In function qMain(int, char**)':
                                  C:\Users\Usuario\Documents\QTProjects\build-TestPDFhummus-Desktop_Qt_5_15_2_MinGW_64_bit-Debug/../TestPDFhummus/main.cpp:16: undefined reference to `PDFWriter::PDFWriter()'

                                  Now, my .pro is:

                                  QT       += core gui
                                  
                                  greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
                                  
                                  CONFIG += c++11
                                  
                                  # You can make your code fail to compile if it uses deprecated APIs.
                                  # In order to do so, uncomment the following line.
                                  #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0
                                  
                                  SOURCES += \
                                      main.cpp \
                                      testpdfhummus.cpp
                                  
                                  HEADERS += \
                                      testpdfhummus.h
                                  
                                  FORMS += \
                                      testpdfhummus.ui
                                  
                                  unix:!macx: LIBS += -L$$PWD/./pdf_hummus/Build/PDFWriter/ -lPDFWriter
                                  
                                  INCLUDEPATH += $$PWD/./pdf_hummus/PDFWriter
                                  DEPENDPATH += $$PWD/./pdf_hummus/PDFWriter
                                  
                                  unix:!macx: PRE_TARGETDEPS += $$PWD/./pdf_hummus/Build/PDFWriter/libPDFWriter.a
                                  
                                  unix:!macx: LIBS += -L$$PWD/./pdf_hummus/Build/FreeType/ -lFreeType
                                  
                                  INCLUDEPATH += $$PWD/./pdf_hummus/FreeType/include
                                  DEPENDPATH += $$PWD/./pdf_hummus/FreeType/include
                                  
                                  unix:!macx: PRE_TARGETDEPS += $$PWD/./pdf_hummus/Build/FreeType/libFreeType.a
                                  
                                  unix:!macx: LIBS += -L$$PWD/./pdf_hummus/Build/LibJpeg/ -lLibJpeg
                                  
                                  INCLUDEPATH += $$PWD/./pdf_hummus/LibJpeg
                                  DEPENDPATH += $$PWD/./pdf_hummus/LibJpeg
                                  
                                  unix:!macx: PRE_TARGETDEPS += $$PWD/./pdf_hummus/Build/LibJpeg/libLibJpeg.a
                                  
                                  unix:!macx: LIBS += -L$$PWD/./pdf_hummus/Build/LibTiff/ -lLibTiff
                                  
                                  INCLUDEPATH += $$PWD/./pdf_hummus/LibTiff
                                  DEPENDPATH += $$PWD/./pdf_hummus/LibTiff
                                  
                                  unix:!macx: PRE_TARGETDEPS += $$PWD/./pdf_hummus/Build/LibTiff/libLibTiff.a
                                  
                                  unix:!macx: LIBS += -L$$PWD/./pdf_hummus/Build/ZLib/ -lZlib
                                  
                                  INCLUDEPATH += $$PWD/./pdf_hummus/ZLib
                                  DEPENDPATH += $$PWD/./pdf_hummus/ZLib
                                  
                                  unix:!macx: PRE_TARGETDEPS += $$PWD/./pdf_hummus/Build/ZLib/libZlib.a
                                  
                                  # Default rules for deployment.
                                  qnx: target.path = /tmp/$${TARGET}/bin
                                  else: unix:!android: target.path = /opt/$${TARGET}/bin
                                  !isEmpty(target.path): INSTALLS += target
                                  
                                  DISTFILES += \
                                  
                                  JonBJ 1 Reply Last reply
                                  0
                                  • ronaldonR ronaldon

                                    @SGaist
                                    I receive this error now:

                                    C:\Users\Usuario\Documents\QTProjects\build-TestPDFhummus-Desktop_Qt_5_15_2_MinGW_64_bit-Debug..\TestPDFhummus\main.cpp:16: error: undefined reference to PDFWriter::PDFWriter()' debug/main.o: In function qMain(int, char**)':
                                    C:\Users\Usuario\Documents\QTProjects\build-TestPDFhummus-Desktop_Qt_5_15_2_MinGW_64_bit-Debug/../TestPDFhummus/main.cpp:16: undefined reference to `PDFWriter::PDFWriter()'

                                    Now, my .pro is:

                                    QT       += core gui
                                    
                                    greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
                                    
                                    CONFIG += c++11
                                    
                                    # You can make your code fail to compile if it uses deprecated APIs.
                                    # In order to do so, uncomment the following line.
                                    #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0
                                    
                                    SOURCES += \
                                        main.cpp \
                                        testpdfhummus.cpp
                                    
                                    HEADERS += \
                                        testpdfhummus.h
                                    
                                    FORMS += \
                                        testpdfhummus.ui
                                    
                                    unix:!macx: LIBS += -L$$PWD/./pdf_hummus/Build/PDFWriter/ -lPDFWriter
                                    
                                    INCLUDEPATH += $$PWD/./pdf_hummus/PDFWriter
                                    DEPENDPATH += $$PWD/./pdf_hummus/PDFWriter
                                    
                                    unix:!macx: PRE_TARGETDEPS += $$PWD/./pdf_hummus/Build/PDFWriter/libPDFWriter.a
                                    
                                    unix:!macx: LIBS += -L$$PWD/./pdf_hummus/Build/FreeType/ -lFreeType
                                    
                                    INCLUDEPATH += $$PWD/./pdf_hummus/FreeType/include
                                    DEPENDPATH += $$PWD/./pdf_hummus/FreeType/include
                                    
                                    unix:!macx: PRE_TARGETDEPS += $$PWD/./pdf_hummus/Build/FreeType/libFreeType.a
                                    
                                    unix:!macx: LIBS += -L$$PWD/./pdf_hummus/Build/LibJpeg/ -lLibJpeg
                                    
                                    INCLUDEPATH += $$PWD/./pdf_hummus/LibJpeg
                                    DEPENDPATH += $$PWD/./pdf_hummus/LibJpeg
                                    
                                    unix:!macx: PRE_TARGETDEPS += $$PWD/./pdf_hummus/Build/LibJpeg/libLibJpeg.a
                                    
                                    unix:!macx: LIBS += -L$$PWD/./pdf_hummus/Build/LibTiff/ -lLibTiff
                                    
                                    INCLUDEPATH += $$PWD/./pdf_hummus/LibTiff
                                    DEPENDPATH += $$PWD/./pdf_hummus/LibTiff
                                    
                                    unix:!macx: PRE_TARGETDEPS += $$PWD/./pdf_hummus/Build/LibTiff/libLibTiff.a
                                    
                                    unix:!macx: LIBS += -L$$PWD/./pdf_hummus/Build/ZLib/ -lZlib
                                    
                                    INCLUDEPATH += $$PWD/./pdf_hummus/ZLib
                                    DEPENDPATH += $$PWD/./pdf_hummus/ZLib
                                    
                                    unix:!macx: PRE_TARGETDEPS += $$PWD/./pdf_hummus/Build/ZLib/libZlib.a
                                    
                                    # Default rules for deployment.
                                    qnx: target.path = /tmp/$${TARGET}/bin
                                    else: unix:!android: target.path = /opt/$${TARGET}/bin
                                    !isEmpty(target.path): INSTALLS += target
                                    
                                    DISTFILES += \
                                    
                                    JonBJ Offline
                                    JonBJ Offline
                                    JonB
                                    wrote on last edited by JonB
                                    #17

                                    @ronaldon

                                    • Please when pasting globs of code/.pro file like this learn to use the forum's Code tag to enclose the literal stuff and make it readable by others.

                                    • In the text you show, which line are you claiming is the one your MinGW will use to add the necessary options for linking with your PDFWriter library? (You might also look at the link line generated which causes the error you quote.)

                                    ronaldonR 1 Reply Last reply
                                    0
                                    • JonBJ JonB

                                      @ronaldon

                                      • Please when pasting globs of code/.pro file like this learn to use the forum's Code tag to enclose the literal stuff and make it readable by others.

                                      • In the text you show, which line are you claiming is the one your MinGW will use to add the necessary options for linking with your PDFWriter library? (You might also look at the link line generated which causes the error you quote.)

                                      ronaldonR Offline
                                      ronaldonR Offline
                                      ronaldon
                                      wrote on last edited by
                                      #18

                                      @JonB
                                      I'm sorry for the missing code tag, i made the correction. I don't know what MinGW will use. I started my first QT project theses days, i just need learn how configure the external library for develop my routine.

                                      JonBJ 1 Reply Last reply
                                      0
                                      • ronaldonR ronaldon

                                        @JonB
                                        I'm sorry for the missing code tag, i made the correction. I don't know what MinGW will use. I started my first QT project theses days, i just need learn how configure the external library for develop my routine.

                                        JonBJ Offline
                                        JonBJ Offline
                                        JonB
                                        wrote on last edited by
                                        #19

                                        @ronaldon
                                        It's much better with the code tag! :)

                                        I'm afarid this is not my area so you'll have to wait for someone else to comment, but: I do not think you are linking against the PDFWriter library.

                                        unix:!macx: LIBS += -L$$PWD/./pdf_hummus/Build/PDFWriter/ -lPDFWriter
                                        

                                        I think you need that line, or similar, for your MinGW. And I assume that line is only applied if you are compiling for unix (and not macx), whereas as you are Windows.

                                        ronaldonR 2 Replies Last reply
                                        1
                                        • JonBJ JonB

                                          @ronaldon
                                          It's much better with the code tag! :)

                                          I'm afarid this is not my area so you'll have to wait for someone else to comment, but: I do not think you are linking against the PDFWriter library.

                                          unix:!macx: LIBS += -L$$PWD/./pdf_hummus/Build/PDFWriter/ -lPDFWriter
                                          

                                          I think you need that line, or similar, for your MinGW. And I assume that line is only applied if you are compiling for unix (and not macx), whereas as you are Windows.

                                          ronaldonR Offline
                                          ronaldonR Offline
                                          ronaldon
                                          wrote on last edited by ronaldon
                                          #20
                                          This post is deleted!
                                          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