Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. 3rd Party Software
  4. dcmtk
Forum Updated to NodeBB v4.3 + New Features

dcmtk

Scheduled Pinned Locked Moved Solved 3rd Party Software
3 Posts 2 Posters 3.0k Views 1 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.
  • B Offline
    B Offline
    BinuJanardhanan
    wrote on last edited by BinuJanardhanan
    #1

    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 exist

    see the configuration below

    QT += core
    QT -= gui

    CONFIG += c++11

    TARGET = IMRIDicom
    CONFIG += console
    CONFIG -= app_bundle

    TEMPLATE = 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/ -ldcmdatad

    INCLUDEPATH += $$PWD/DCMTK/include
    DEPENDPATH += $$PWD/DCMTK/include

    win32-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.lib

    win32:CONFIG(release, debug|release): LIBS += -L$$PWD/DCMTK/lib/ -lcharls
    else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/DCMTK/lib/ -lcharlsd

    INCLUDEPATH += $$PWD/DCMTK/include
    DEPENDPATH += $$PWD/DCMTK/include

    win32-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.lib

    etc....

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

      Hi and welcome to devnet,

      What does the build log say ?

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

      B 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi and welcome to devnet,

        What does the build log say ?

        B Offline
        B Offline
        BinuJanardhanan
        wrote on last edited by
        #3

        @SGaist Thank you boss, I solved the issue by replacing the add library statement with
        win32: LIBS += -L$$PWD/DCMTK/lib/ -lcharls

        INCLUDEPATH += $$PWD/DCMTK/include
        DEPENDPATH += $$PWD/DCMTK/include

        win32:!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 file

        Thank you @SGaist,

        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