poppler with mingw64 on windows?
-
wrote on 21 Dec 2018, 18:36 last edited by 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".
-
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:

@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?
-
wrote on 21 Dec 2018, 18:40 last edited by
Yes, I do. I have no idea why it uses MSVC compile. I dont use it.
-
wrote on 21 Dec 2018, 18:44 last edited by
Does poppler work with MinGW?
And how can I configure cmake to use MinGW?
Or can I use gcc for poppler too?
-
wrote on 21 Dec 2018, 20:51 last edited by Tomax63
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
-
@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?
-
wrote on 22 Dec 2018, 12:38 last edited by
No problem, take your time all. I would just like to make it between christmas and new year
-
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 )
-
wrote on 22 Dec 2018, 19:08 last edited by
This is in my file:
install(TARGETS poppler-qt5 RUNTIME DESTINATION bin LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR})
-
wrote on 22 Dec 2018, 19:29 last edited by
I think i really should stop trying - maybe one day I will find a compiled version.
-
If it's the only thing that is giving trouble, just remove the ARCHIVE line and see if it behaves better.
-
wrote on 22 Dec 2018, 20:05 last edited by
D:\dl\Dateien\Entwicklung\CPP\PumPpro\src\build>mingw32-make .. -DCMAKE_CC_COMPILER=D:/Program Files/ingw-w64/x86_64-7.3.0-win32-seh-rt_v5-rev0/mingw64/bin/g++ -DCMAKE_CC_COMPILER=D:/Program Files/ingw-w64/x86_64-7.3.0-win32-seh-rt_v5-rev0/mingw64/bin/gcc mingw32-make (pid = 38832) mingw32-make is suspending for 30 seconds...done sleep(30). Continuing. mingw32-make: *** MAKE_CC_COMPILER=D:/Program: Invalid argument. Stop.
Now with this variation of CMakeLists.txt:
install(TARGETS poppler-qt5 RUNTIME DESTINATION bin LIBRARY DESTINATION lib)
-
Is
D:/Program Files/ingw-w64/
a valid path on your machine ? -
wrote on 22 Dec 2018, 20:15 last edited by
Sorry, fault while inserting here.
But I installed mingw anew in a shorter direcdtory tree and tried this:
D:\dl\Dateien\Entwicklung\CPP\PumPpro\src\build>mingw32-make .. -DCMAKE_CC_COMPILER=D:/dl/mingw/mingw64/bin/g++.exe -DCMAKE_CC_COMPILER=D:/dl/mingw/mingw64/bin/gcc.exe mingw32-make (pid = 34784) mingw32-make is suspending for 30 seconds...done sleep(30). Continuing. mingw32-make: *** MAKE_CC_COMPILER=D:/dl/mingw/mingw64/bin/g++.exe: Invalid argument. Stop.
another try:
D:\dl\Dateien\Entwicklung\CPP\PumPpro\src\build>mingw32-make .. -DCMAKE_CC_COMPILER=D:\\dl\\mingw\\mingw64\\bin\\g++ -DCMAKE_CC_COMPILER=D:\\dl\\mingw\\mingw64\\bin\\gcc mingw32-make (pid = 38848) mingw32-make is suspending for 30 seconds...done sleep(30). Continuing. mingw32-make: *** MAKE_CC_COMPILER=D:\\dl\\mingw\\mingw64\\bin\\g++: Invalid argument. Stop.
-
Why aren't you using the MinGW version provided with Qt ?
Also, but only curiosity, why did you switch from Visua Studio to MinGW compiler ? -
wrote on 22 Dec 2018, 20:25 last edited by Tomax63
I used the mingw from my first steps with Qt.
I dont know how to use the mingw within qt. I cant find the mingw32-make.
It only has a qmake.exe
Sorry - too many options, files and ways of doing it. I give up.
Thanks for your help anyway!
Thomas
20/27