poppler with mingw64 on windows?
-
@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?
-
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 )
-
If it's the only thing that is giving trouble, just remove the ARCHIVE line and see if it behaves better.
-
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 ? -
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 ? -