Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. QT + GDCM
Forum Updated to NodeBB v4.3 + New Features

QT + GDCM

Scheduled Pinned Locked Moved Installation and Deployment
7 Posts 3 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.
  • W Offline
    W Offline
    wallacesouza
    wrote on last edited by
    #1

    Hi!

    I'm trying to use the library gdcm in my project. However I'm with some problems.

    gdcmGlobal.cxx:-1: error: undefined reference to gdcm::System::FileIsDirectory(char const*)' gdcmGlobal.cxx:-1: error: undefined reference to gdcm::System::FileIsDirectory(char const*)'
    gdcmGlobal.cxx:-1: error: undefined reference to gdcm::System::FileExists(char const*)' :-1: error: C:\Program_Library\gdcm-2.0.18-mingw32\bin/libgdcmDICT.a(gdcmGlobal.cxx.obj): bad reloc address 0xf in section .text$_ZNK4gdcm7Modules7IsEmptyEv[__ZNK4gdcm7Modules7IsEmptyEv]'

    I included the libs:

    LIBS += -L"C:\Program_Library\gdcm-2.0.18-mingw32\bin"
    -L"C:\Program_Library\gdcm-2.0.18-mingw32\bin\libgdcmMSFF.a"
    -L"C:\Program_Library\gdcm-2.0.18-mingw32\bin\libgdcmCommon.a"
    -L"C:\Program_Library\gdcm-2.0.18-mingw32\bin\libgdcmDICT.a"
    -L"C:\Program_Library\gdcm-2.0.18-mingw32\bin\libgdcmDSED.a"
    -L"C:\Program_Library\gdcm-2.0.18-mingw32\bin\libgdcmexpat.a"
    -L"C:\Program_Library\gdcm-2.0.18-mingw32\bin\libgdcmIOD.a"
    -L"C:\Program_Library\gdcm-2.0.18-mingw32\bin\libgdcmjpeg8.a"
    -L"C:\Program_Library\gdcm-2.0.18-mingw32\bin\libgdcmjpeg12.a"
    -L"C:\Program_Library\gdcm-2.0.18-mingw32\bin\libgdcmjpeg16.a"
    -L"C:\Program_Library\gdcm-2.0.18-mingw32\bin\libgdcmopenjpeg.a"
    -L"C:\Program_Library\gdcm-2.0.18-mingw32\bin\libgdcmzlib.a"
    -L"C:\Program_Library\gdcm-2.0.18-mingw32\bin\libgdcmcharls.a"
    -L"C:\Program_Library\gdcm-2.0.18-mingw32\bin\libgdcmgetopt.a"

    LIBS += -lgdcmMSFF -lgdcmCommon -lgdcmDICT -lgdcmDSED -lgdcmexpat -lgdcmIOD -lgdcmjpeg8 -lgdcmjpeg12 -lgdcmjpeg16 -lgdcmopenjpeg -lgdcmzlib -lgdcmcharls -lgdcmgetopt

    Anybody would know what is happening?
    Thanks!

    1 Reply Last reply
    0
    • T Offline
      T Offline
      TioRoy
      wrote on last edited by
      #2

      What compiler did you use?

      1 Reply Last reply
      0
      • W Offline
        W Offline
        wallacesouza
        wrote on last edited by
        #3

        I'm using:

        C:\Qt\Qt5.1.1\5.1.1\mingw48_32\bin\qmake.exe -spec win32-g++ CONFIG+=debug CONFIG+=declarative_debug CONFIG+=qml_debug -o Makefile Interface\Interface.pro

        C:/Qt/Qt5.1.1/Tools/mingw48_32/bin/mingw32-make -f Makefile.Debug

        1 Reply Last reply
        0
        • T Offline
          T Offline
          TioRoy
          wrote on last edited by
          #4

          Did you have compile GDCM?

          Did you already use GDCM compiled with mingw32 without Qt?

          The "wiki":http://gdcm.sourceforge.net/wiki/index.php/Configuring_and_Building says to compile using Visual Studio only.

          1 Reply Last reply
          0
          • W Offline
            W Offline
            wallacesouza
            wrote on last edited by
            #5

            Hi! Yes I did!
            I was using GDCM in Eclipse.

            1 Reply Last reply
            0
            • W Offline
              W Offline
              wallacesouza
              wrote on last edited by
              #6

              Qt 5.1 uses g++ 4.8 and I used g++ 4.6 to compile gdcm! That is the problem! However when I included:

              @#include <gdcmGlobal.h>@

              appear this error:

              @ gdcmGlobal.cxx:-1: error: undefined reference to
              `gdcm::System::FileIsDirectory(char const*)'@

              but when I remove, it works well!

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

                Hi,

                A general rule of thumb with mingw is to use the same compiler for all libraries. You should rebuild gdcm with 4.8

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

                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