Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. poppler with mingw64 on windows?
Forum Updated to NodeBB v4.3 + New Features

poppler with mingw64 on windows?

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
27 Posts 3 Posters 7.4k Views 2 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.
  • SGaistS Offline
    SGaistS Offline
    SGaist
    Lifetime Qt Champion
    wrote on last edited by
    #2

    Hi,

    It should be the same as any other library. What is exactly your problem ?

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

    T 1 Reply Last reply
    0
    • T Offline
      T Offline
      Tomax63
      wrote on last edited by
      #3

      It keeps telling me that two files are missing:

      Object.h and another one.

      They are not inside the poppler directory

      aha_1980A 1 Reply Last reply
      0
      • T Tomax63

        It keeps telling me that two files are missing:

        Object.h and another one.

        They are not inside the poppler directory

        aha_1980A Offline
        aha_1980A Offline
        aha_1980
        Lifetime Qt Champion
        wrote on last edited by
        #4

        @Tomax63 to help you, we need the exact steps you did and the exact error messages.

        Thanks

        Qt has to stay free or it will die.

        1 Reply Last reply
        0
        • T Offline
          T Offline
          Tomax63
          wrote on last edited by
          #5

          I copied the "src" directory from the poppler archive "poppler-master.zip" to my development directory and included the complete directory into Qt Creator

          When I want to compile, it has these error messages:

          D:\dl\Dateien\Entwicklung\CPP\PumPpro\src\ArthurOutputDev.cc:36: Fehler: config.h: No such file or directory
           #include <config.h>
                    ^~~~~~~~~~
          D:\dl\Dateien\Entwicklung\CPP\PumPpro\src\poppler-annotation-helper.h:30: Fehler: Object.h: No such file or directory
           #include <Object.h>
                    ^~~~~~~~~~
          
          aha_1980A 1 Reply Last reply
          0
          • T Tomax63

            I copied the "src" directory from the poppler archive "poppler-master.zip" to my development directory and included the complete directory into Qt Creator

            When I want to compile, it has these error messages:

            D:\dl\Dateien\Entwicklung\CPP\PumPpro\src\ArthurOutputDev.cc:36: Fehler: config.h: No such file or directory
             #include <config.h>
                      ^~~~~~~~~~
            D:\dl\Dateien\Entwicklung\CPP\PumPpro\src\poppler-annotation-helper.h:30: Fehler: Object.h: No such file or directory
             #include <Object.h>
                      ^~~~~~~~~~
            
            aha_1980A Offline
            aha_1980A Offline
            aha_1980
            Lifetime Qt Champion
            wrote on last edited by
            #6

            @Tomax63 said in poppler with mingw64 on windows?:

            "poppler-master.zip"

            Where did you get it from?

            Qt has to stay free or it will die.

            1 Reply Last reply
            0
            • T Offline
              T Offline
              Tomax63
              wrote on last edited by Tomax63
              #7

              https://github.com/freedesktop/poppler

              but from

              https://poppler.freedesktop.org/

              it´s the same

              aha_1980A 1 Reply Last reply
              0
              • T Tomax63

                https://github.com/freedesktop/poppler

                but from

                https://poppler.freedesktop.org/

                it´s the same

                aha_1980A Offline
                aha_1980A Offline
                aha_1980
                Lifetime Qt Champion
                wrote on last edited by
                #8

                @Tomax63

                Well, then, have you followed the build instructions in https://github.com/freedesktop/poppler/blob/master/INSTALL ?

                Qt has to stay free or it will die.

                1 Reply Last reply
                1
                • T Offline
                  T Offline
                  Tomax63
                  wrote on last edited by
                  #9

                  No, I haven´t.

                  I tried, but get the following error:

                  Der Befehl "cmake" ist entweder falsch geschrieben oder
                  konnte nicht gefunden werden.
                  

                  Command "cmake" is either typed wrong or can not be found.

                  aha_1980A 1 Reply Last reply
                  0
                  • T Tomax63

                    No, I haven´t.

                    I tried, but get the following error:

                    Der Befehl "cmake" ist entweder falsch geschrieben oder
                    konnte nicht gefunden werden.
                    

                    Command "cmake" is either typed wrong or can not be found.

                    aha_1980A Offline
                    aha_1980A Offline
                    aha_1980
                    Lifetime Qt Champion
                    wrote on last edited by
                    #10

                    @Tomax63 then install cmake, please.

                    Qt has to stay free or it will die.

                    1 Reply Last reply
                    1
                    • T Offline
                      T Offline
                      Tomax63
                      wrote on last edited by Tomax63
                      #11

                      Ok. I installed it.
                      An error occurred:

                      D:\dl\Dateien\Entwicklung\CPP\PumPpro\src\build>cmake ..
                      -- Building for: Visual Studio 14 2015
                      -- Selecting Windows SDK version  to target Windows 10.0.17134.
                      -- The C compiler identification is MSVC 19.0.24210.0
                      -- The CXX compiler identification is MSVC 19.0.24210.0
                      -- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/cl.exe
                      -- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/cl.exe -- works
                      -- Detecting C compiler ABI info
                      -- Detecting C compiler ABI info - done
                      -- Detecting C compile features
                      -- Detecting C compile features - done
                      -- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/cl.exe
                      -- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/cl.exe -- works
                      -- Detecting CXX compiler ABI info
                      -- Detecting CXX compiler ABI info - done
                      -- Detecting CXX compile features
                      -- Detecting CXX compile features - done
                      CMake Error at CMakeLists.txt:47 (install):
                        install TARGETS given no ARCHIVE DESTINATION for static library target
                        "poppler-qt5".
                      
                      
                      CMake Warning (dev) in CMakeLists.txt:
                        No cmake_minimum_required command is present.  A line of code such as
                      
                          cmake_minimum_required(VERSION 3.13)
                      
                        should be added at the top of the file.  The version specified may be lower
                        if you wish to support older CMake versions for this project.  For more
                        information run "cmake --help-policy CMP0000".
                      This warning is for project developers.  Use -Wno-dev to suppress it.
                      
                      -- Configuring incomplete, errors occurred!
                      See also "D:/dl/Dateien/Entwicklung/CPP/PumPpro/src/build/CMakeFiles/CMakeOutput.log".
                      

                      When I added "cmake_minimum_required(VERSION 3.13)" to the top of the file, and started cmake again, the following appeared:

                      D:\dl\Dateien\Entwicklung\CPP\PumPpro\src\build>cmake ..
                      -- Building for: Visual Studio 14 2015
                      -- Selecting Windows SDK version  to target Windows 10.0.17134.
                      -- The C compiler identification is MSVC 19.0.24210.0
                      -- The CXX compiler identification is MSVC 19.0.24210.0
                      -- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/cl.exe
                      -- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/cl.exe -- works
                      -- Detecting C compiler ABI info
                      -- Detecting C compiler ABI info - done
                      -- Detecting C compile features
                      -- Detecting C compile features - done
                      -- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/cl.exe
                      -- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/cl.exe -- works
                      -- Detecting CXX compiler ABI info
                      -- Detecting CXX compiler ABI info - done
                      -- Detecting CXX compile features
                      -- Detecting CXX compile features - done
                      CMake Error at CMakeLists.txt:49 (install):
                        install TARGETS given no ARCHIVE DESTINATION for static library target
                        "poppler-qt5".
                      
                      
                      -- Configuring incomplete, errors occurred!
                      See also "D:/dl/Dateien/Entwicklung/CPP/PumPpro/src/build/CMakeFiles/CMakeOutput.log".
                      

                      In cmake GUI, it looks like this:
                      ![alt text](0_1545417596883_Clipboard02.jpg image url)

                      aha_1980A 1 Reply Last reply
                      0
                      • T Tomax63

                        Ok. I installed it.
                        An error occurred:

                        D:\dl\Dateien\Entwicklung\CPP\PumPpro\src\build>cmake ..
                        -- Building for: Visual Studio 14 2015
                        -- Selecting Windows SDK version  to target Windows 10.0.17134.
                        -- The C compiler identification is MSVC 19.0.24210.0
                        -- The CXX compiler identification is MSVC 19.0.24210.0
                        -- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/cl.exe
                        -- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/cl.exe -- works
                        -- Detecting C compiler ABI info
                        -- Detecting C compiler ABI info - done
                        -- Detecting C compile features
                        -- Detecting C compile features - done
                        -- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/cl.exe
                        -- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/cl.exe -- works
                        -- Detecting CXX compiler ABI info
                        -- Detecting CXX compiler ABI info - done
                        -- Detecting CXX compile features
                        -- Detecting CXX compile features - done
                        CMake Error at CMakeLists.txt:47 (install):
                          install TARGETS given no ARCHIVE DESTINATION for static library target
                          "poppler-qt5".
                        
                        
                        CMake Warning (dev) in CMakeLists.txt:
                          No cmake_minimum_required command is present.  A line of code such as
                        
                            cmake_minimum_required(VERSION 3.13)
                        
                          should be added at the top of the file.  The version specified may be lower
                          if you wish to support older CMake versions for this project.  For more
                          information run "cmake --help-policy CMP0000".
                        This warning is for project developers.  Use -Wno-dev to suppress it.
                        
                        -- Configuring incomplete, errors occurred!
                        See also "D:/dl/Dateien/Entwicklung/CPP/PumPpro/src/build/CMakeFiles/CMakeOutput.log".
                        

                        When I added "cmake_minimum_required(VERSION 3.13)" to the top of the file, and started cmake again, the following appeared:

                        D:\dl\Dateien\Entwicklung\CPP\PumPpro\src\build>cmake ..
                        -- Building for: Visual Studio 14 2015
                        -- Selecting Windows SDK version  to target Windows 10.0.17134.
                        -- The C compiler identification is MSVC 19.0.24210.0
                        -- The CXX compiler identification is MSVC 19.0.24210.0
                        -- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/cl.exe
                        -- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/cl.exe -- works
                        -- Detecting C compiler ABI info
                        -- Detecting C compiler ABI info - done
                        -- Detecting C compile features
                        -- Detecting C compile features - done
                        -- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/cl.exe
                        -- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/cl.exe -- works
                        -- Detecting CXX compiler ABI info
                        -- Detecting CXX compiler ABI info - done
                        -- Detecting CXX compile features
                        -- Detecting CXX compile features - done
                        CMake Error at CMakeLists.txt:49 (install):
                          install TARGETS given no ARCHIVE DESTINATION for static library target
                          "poppler-qt5".
                        
                        
                        -- Configuring incomplete, errors occurred!
                        See also "D:/dl/Dateien/Entwicklung/CPP/PumPpro/src/build/CMakeFiles/CMakeOutput.log".
                        

                        In cmake GUI, it looks like this:
                        ![alt text](0_1545417596883_Clipboard02.jpg image url)

                        aha_1980A Offline
                        aha_1980A Offline
                        aha_1980
                        Lifetime Qt Champion
                        wrote on last edited by
                        #12

                        @Tomax63 I'm out here, never really used cmake.

                        Just as note: it detected your MSVC compiler, you seemed to use MinGW for your project?

                        Qt has to stay free or it will die.

                        1 Reply Last reply
                        0
                        • T Offline
                          T Offline
                          Tomax63
                          wrote on last edited by
                          #13

                          Yes, I do. I have no idea why it uses MSVC compile. I dont use it.

                          1 Reply Last reply
                          0
                          • T Offline
                            T Offline
                            Tomax63
                            wrote on last edited by
                            #14

                            Does poppler work with MinGW?

                            And how can I configure cmake to use MinGW?

                            Or can I use gcc for poppler too?

                            1 Reply Last reply
                            0
                            • T Offline
                              T Offline
                              Tomax63
                              wrote on last edited by Tomax63
                              #15

                              Is it possible that someone who knows how to do it compiles the package for me and gives me the library (is it a dll?)

                              Just like

                              https://sourceforge.net/projects/poppler-qt5-mingw32/

                              1 Reply Last reply
                              0
                              • SGaistS SGaist

                                Hi,

                                It should be the same as any other library. What is exactly your problem ?

                                T Offline
                                T Offline
                                Tomax63
                                wrote on last edited by
                                #16

                                @SGaist Could you help me by any chance?

                                aha_1980A 1 Reply Last reply
                                0
                                • T Tomax63

                                  @SGaist Could you help me by any chance?

                                  aha_1980A Offline
                                  aha_1980A Offline
                                  aha_1980
                                  Lifetime Qt Champion
                                  wrote on last edited by
                                  #17

                                  @Tomax63 Please give us some time to help you!

                                  People here help for free in their sparetime, and live in totally different time zones. Not everyone is using Windows, not everyone uses MinGW and not everyone CMake.

                                  Does this: https://stackoverflow.com/questions/4101456/running-cmake-on-windows bring you a step forward?

                                  Qt has to stay free or it will die.

                                  1 Reply Last reply
                                  0
                                  • T Offline
                                    T Offline
                                    Tomax63
                                    wrote on last edited by
                                    #18

                                    No problem, take your time all. I would just like to make it between christmas and new year

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

                                      Hi,

                                      Take a look at this stack overflow answer, the same applies to your case.

                                      Short version:
                                      You likely have something similar in the concerned CMakeLists.txt file:

                                      INSTALL(
                                        TARGETS poppler-qt5
                                        ARCHIVE DESTINATION lib # <-- A line like this is likely missing
                                        LIBRARY DESTINATION lib  
                                        COMPONENT library
                                      )
                                      

                                      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
                                      • T Offline
                                        T Offline
                                        Tomax63
                                        wrote on last edited by
                                        #20

                                        This is in my file:

                                        install(TARGETS poppler-qt5 
                                        		RUNTIME DESTINATION bin 
                                        		LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} 
                                        		ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR})
                                        
                                        
                                        1 Reply Last reply
                                        0
                                        • T Offline
                                          T Offline
                                          Tomax63
                                          wrote on last edited by
                                          #21

                                          I think i really should stop trying - maybe one day I will find a compiled version.

                                          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