Open Exorcismus opened 5 years ago
seems I had to change the format of linking to be as below
LIBS += -L"$$PWD/../../bin"
LIBS+= $$PWD/dll/jpeg62.dll
LIBS+= $$PWD/dll/libfreetype-6.dll
LIBS+= $$PWD/dll/libopenjp2.dll
LIBS+= $$PWD/dll/libpng12.dll
LIBS+= $$PWD/dll/libpoppler-80.dll
LIBS+= $$PWD/dll/libpoppler-qt5.dll
LIBS+= $$PWD/dll/libtiff3.dll
LIBS+= $$PWD/dll/zlib1.dll
progressing now
You do not need to change the .pro file. Just uncompressed the bin-poppler-win32.tar.gz archive to uconfig/bin directory
@sebcaux , thanks alot for the clarification, I did that but now I get the error
-1: error: skipping incompatible bin/libpoppler-qt5.dll when searching for -lpoppler-qt5
noting that the one found in bin is named libpoppler-qt5.dll
not poppler-qt5
, shall I update it in .pro
file ?
I forgot to precise, this poppler build is for a mingw compiller in 32bits mode. You probably use another one.
And for linked argument, you need to always remove extension of the library and replace lib prefix by -l argument. That is why to link with libpoppler-qt5.dll
you need to give -lpoppler-qt5
@sebcaux , Thanks Alot, compiled with no errors. yet the application crashes when I try to start it
18:01:59: The process "C:\Qt\5.6.3\Tools\mingw492_32\bin\mingw32-make.exe" exited normally. 18:01:59: Elapsed time: 00:08.
the contents of bin forlder are
jpeg62.dll kicad.dll libfreetype-6.dll libkicad.a libopenjp2.dll libpdf_extract.a libpng12.dll libpoppler-80.dll libpoppler-qt5.dll libtiff3.dll pdf_extract.dll test.exe uconfig.exe uconfig_gui.exe zlib1.dll
the error message is
the application was unable to start correctly 0xc00007b
I did also run windeployqt.exe uconfig_gui.exe
and it generated required DLLs, but still same issue
After trying different things, it seems the application runs in debug mode in Qt creator, but same error appears when I run the program either from Qt creator or generated .exe
After trying different things, it seems the application runs in debug mode in Qt creator, but same error appears when I run the program either from Qt creator or generated
.exe
After searching ... the reason was I had another verion x64 of Qt installed and /bin was added to system path. I have uninstalled that and rebuild the application but now I get this error
Am not sure of the issue, but when I copied all folders(iconengine, translations, printsupport, etc..) and DLLs(Qts) from the pre-build binary version of your application the exe worked
Am trying to build the project on windows and using Qt creator, currently am stuck @building pdf_extract, I download the DLLs and header files as you mentioned, I add DLLs files to "dll" directory and added poppler folder to project
and this is the pdf_extract.pro content
but it keeps throwing the below
can you share with me how to do it properly ?