Solved dcmtk
-
dcmtk with mingw compiler
Hi,
I have compiled dcmtk using mingw compiler, created .a files and
and added libraries, but it shows the error {TARGET}.exe is does not existsee the configuration below
QT += core
QT -= guiCONFIG += c++11
TARGET = IMRIDicom
CONFIG += console
CONFIG -= app_bundleTEMPLATE = app
SOURCES += main.cpp
win32:CONFIG(release, debug|release): LIBS += -L$$PWD/DCMTK/lib/ -ldcmdata
else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/DCMTK/lib/ -ldcmdatadINCLUDEPATH += $$PWD/DCMTK/include
DEPENDPATH += $$PWD/DCMTK/includewin32-g++:CONFIG(release, debug|release): PRE_TARGETDEPS += $$PWD/DCMTK/lib/libdcmdata.a
else:win32-g++:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$PWD/DCMTK/lib/libdcmdatad.a
else:win32:!win32-g++:CONFIG(release, debug|release): PRE_TARGETDEPS += $$PWD/DCMTK/lib/dcmdata.lib
else:win32:!win32-g++:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$PWD/DCMTK/lib/dcmdatad.libwin32:CONFIG(release, debug|release): LIBS += -L$$PWD/DCMTK/lib/ -lcharls
else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/DCMTK/lib/ -lcharlsdINCLUDEPATH += $$PWD/DCMTK/include
DEPENDPATH += $$PWD/DCMTK/includewin32-g++:CONFIG(release, debug|release): PRE_TARGETDEPS += $$PWD/DCMTK/lib/libcharls.a
else:win32-g++:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$PWD/DCMTK/lib/libcharlsd.a
else:win32:!win32-g++:CONFIG(release, debug|release): PRE_TARGETDEPS += $$PWD/DCMTK/lib/charls.lib
else:win32:!win32-g++:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$PWD/DCMTK/lib/charlsd.libetc....
-
Hi and welcome to devnet,
What does the build log say ?
-
@SGaist Thank you boss, I solved the issue by replacing the add library statement with
win32: LIBS += -L$$PWD/DCMTK/lib/ -lcharlsINCLUDEPATH += $$PWD/DCMTK/include
DEPENDPATH += $$PWD/DCMTK/includewin32:!win32-g++: PRE_TARGETDEPS += $$PWD/DCMTK/lib/charls.lib
else:win32-g++: PRE_TARGETDEPS += $$PWD/DCMTK/lib/libcharls.a etc....and downloaded the libws2_32.a,
libnetapi32.a
libwsock32.a files and included it in the lib folder and linked in the .pro fileThank you @SGaist,