Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. _ITERATOR_DEBUG_LEVEL when building debug with HDF5 libs
Qt 6.11 is out! See what's new in the release blog

_ITERATOR_DEBUG_LEVEL when building debug with HDF5 libs

Scheduled Pinned Locked Moved Unsolved General and Desktop
6 Posts 2 Posters 1.1k Views
  • 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.
  • R Offline
    R Offline
    Rudresh
    wrote on last edited by
    #1

    Hi , I am getting following errors while building Qt cpp project with HDF5 libs :
    Here is what I have specified in .pro file
    ( I have gone through previous thread with same error and tried the solution there but to no avail . )

    Here is the pro file :

    QT       += core gui
    
    greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
    
    CONFIG += c++17
    
    # You can make your code fail to compile if it uses deprecated APIs.
    # In order to do so, uncomment the following line.
    #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0
    
    SOURCES += \
        clickablelabel.cpp \
        configmanager.cpp \
        configmgrdialog.cpp \
        connectiondiagram.cpp \
        framelesswindow.cpp \
        globalconfiguration.cpp \
        globallimits.cpp \
        identifiablepushbutton.cpp \
        jsoncreator.cpp\
        jsonparser.cpp \
        limiteditordialog.cpp \
        limitmanager.cpp \
        limitmgrdialog.cpp \
        logdialog.cpp \
        loopcontrol.cpp \
        loopvariabledialog.cpp \
        loopvariables.cpp \
        newsessiondialog.cpp \
        recallconfigdialog.cpp \
        recalllimitdialog.cpp \
        resultmgr.cpp \
        saveconfigdialog.cpp \
        savelimitdialog.cpp \
        stethoscope/stethoscopeclient.cpp \
        main.cpp \
        mainwindow.cpp \
        messageboxwrapper.cpp \
        morpheuspythonwrapper.cpp \
        pathmanager.cpp \
        pythonconsolewrapper.cpp \
        pythoninterpreter.cpp \
        sequencer.cpp \
        testconfiguration.cpp \
        testgroup.cpp \
        testlimit.cpp \
        testresult.cpp \
        testresultwrapper.cpp \
        testsetupdialog.cpp \
        testsetupwrapper.cpp \
        teststatuswrapper.cpp \
        testtreewrapper.cpp \
        titlebarframe.cpp
    
    HEADERS += \
        clickablelabel.h \
        configmanager.h \
        configmgrdialog.h \
        connectiondiagram.h \
        framelesswindow.h \
        globalconfiguration.h \
        globallimits.h \
        identifiablepushbutton.h \
        jsoncreator.h\
        jsonparser.h \
        limiteditordialog.h \
        limitmanager.h \
        limitmgrdialog.h \
        logdialog.h \
        loopcontrol.h \
        loopvariabledialog.h \
        loopvariables.h \
        mainwindow.h \
        messageboxwrapper.h \
        morpheuspythonwrapper.h \
        newsessiondialog.h \
        pathmanager.h \
        pythonconsolewrapper.h \
        pythoninterpreter.h \
        recallconfigdialog.h \
        recalllimitdialog.h \
        resultmgr.h \
        saveconfigdialog.h \
        savelimitdialog.h \
        sequencer.h \
        sequencer_defs.h \
        sequencerinterface.h \
        testconfiguration.h \
        testgroup.h \
        testlimit.h \
        testresult.h \
        testresultwrapper.h \
        testsetupdialog.h \
        testsetupwrapper.h \
        teststatuswrapper.h \
        testtreewrapper.h \
        titlebarframe.h
    
    FORMS += \
        configmgrdialog.ui \
        limiteditordialog.ui \
        limitmgrdialog.ui \
        logdialog.ui \
        loopvariabledialog.ui \
        mainwindow.ui \
        newsessiondialog.ui \
        recallconfigdialog.ui \
        recalllimitdialog.ui \
        saveconfigdialog.ui \
        savelimitdialog.ui \
        testsetupdialog.ui \
        titlebarframe.ui
    
    INCLUDEPATH += \
        ../Shared\Includes \
        ../Shared\Interfaces \
        C:/Python38/include \
        ../../morpheus/morpheus_dev/Lib/site-packages/pybind11/include \
        ../Shared/Includes/3rdparty/HDF5
    
    DEFINES += \
        PYTHON_EXECUTABLE=C:/Python38 \
        QT_DLL \
        H5_BUILT_AS_DYNAMIC_LIB
    LIBS += \
        -L"C:/Python38/libs" \
        "../Shared/Binaries/x64/3rdparty/HDF5/libhdf5.lib" \
        "../Shared/Binaries/x64/3rdparty/HDF5/libhdf5_cpp.lib" \
        "../Shared/Binaries/x64/3rdparty/HDF5/libaec.lib" \
        "../Shared/Binaries/x64/3rdparty/HDF5/libszaec.lib" \
        "../Shared/Binaries/x64/3rdparty/HDF5/libz.lib"
    
    win32:LIBS += \
        $$(WindowsSdkDir)lib/$$(WindowsSDKLibVersion)um/x64/User32.Lib
    
    # Default rules for deployment.
    qnx: target.path = /tmp/$${TARGET}/bin
    else: unix:!android: target.path = /opt/$${TARGET}/bin
    !isEmpty(target.path): INSTALLS += target
    
    DISTFILES +=
    
    RESOURCES += \
        resources.qrc
    
    
    win32:CONFIG(release, debug|release):LIBS += -L../Shared/Binaries/x64/Libraries/ -lQtObjectPropertyLib
    else:win32:CONFIG(debug, debug|release): LIBS += -L../Shared/Binaries/x64/Libraries/ -lQtObjectPropertyLibd
        LIBS +=-L../Shared/Binaries/x64/3rdparty/HDF5/ libhdf5.lib
        LIBS +=-L../Shared/Binaries/x64/3rdparty/HDF5/ libhdf5_cpp.lib
        LIBS +=-L../Shared/Binaries/x64/3rdparty/HDF5/ libaec.lib
        LIBS +=-L../Shared/Binaries/x64/3rdparty/HDF5/ libszaec.lib
        LIBS +=-L../Shared/Binaries/x64/3rdparty/HDF5/ libz.lib
    INCLUDEPATH += ../Shared/Binaries/x64/Libraries
    DEPENDPATH += ../Shared/Binaries/x64/Libraries
    
    

    Can someone please help ?

    thanks & warm regards,
    ~ Rudresh

    Christian EhrlicherC 1 Reply Last reply
    0
    • R Rudresh

      Hi , I am getting following errors while building Qt cpp project with HDF5 libs :
      Here is what I have specified in .pro file
      ( I have gone through previous thread with same error and tried the solution there but to no avail . )

      Here is the pro file :

      QT       += core gui
      
      greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
      
      CONFIG += c++17
      
      # You can make your code fail to compile if it uses deprecated APIs.
      # In order to do so, uncomment the following line.
      #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0
      
      SOURCES += \
          clickablelabel.cpp \
          configmanager.cpp \
          configmgrdialog.cpp \
          connectiondiagram.cpp \
          framelesswindow.cpp \
          globalconfiguration.cpp \
          globallimits.cpp \
          identifiablepushbutton.cpp \
          jsoncreator.cpp\
          jsonparser.cpp \
          limiteditordialog.cpp \
          limitmanager.cpp \
          limitmgrdialog.cpp \
          logdialog.cpp \
          loopcontrol.cpp \
          loopvariabledialog.cpp \
          loopvariables.cpp \
          newsessiondialog.cpp \
          recallconfigdialog.cpp \
          recalllimitdialog.cpp \
          resultmgr.cpp \
          saveconfigdialog.cpp \
          savelimitdialog.cpp \
          stethoscope/stethoscopeclient.cpp \
          main.cpp \
          mainwindow.cpp \
          messageboxwrapper.cpp \
          morpheuspythonwrapper.cpp \
          pathmanager.cpp \
          pythonconsolewrapper.cpp \
          pythoninterpreter.cpp \
          sequencer.cpp \
          testconfiguration.cpp \
          testgroup.cpp \
          testlimit.cpp \
          testresult.cpp \
          testresultwrapper.cpp \
          testsetupdialog.cpp \
          testsetupwrapper.cpp \
          teststatuswrapper.cpp \
          testtreewrapper.cpp \
          titlebarframe.cpp
      
      HEADERS += \
          clickablelabel.h \
          configmanager.h \
          configmgrdialog.h \
          connectiondiagram.h \
          framelesswindow.h \
          globalconfiguration.h \
          globallimits.h \
          identifiablepushbutton.h \
          jsoncreator.h\
          jsonparser.h \
          limiteditordialog.h \
          limitmanager.h \
          limitmgrdialog.h \
          logdialog.h \
          loopcontrol.h \
          loopvariabledialog.h \
          loopvariables.h \
          mainwindow.h \
          messageboxwrapper.h \
          morpheuspythonwrapper.h \
          newsessiondialog.h \
          pathmanager.h \
          pythonconsolewrapper.h \
          pythoninterpreter.h \
          recallconfigdialog.h \
          recalllimitdialog.h \
          resultmgr.h \
          saveconfigdialog.h \
          savelimitdialog.h \
          sequencer.h \
          sequencer_defs.h \
          sequencerinterface.h \
          testconfiguration.h \
          testgroup.h \
          testlimit.h \
          testresult.h \
          testresultwrapper.h \
          testsetupdialog.h \
          testsetupwrapper.h \
          teststatuswrapper.h \
          testtreewrapper.h \
          titlebarframe.h
      
      FORMS += \
          configmgrdialog.ui \
          limiteditordialog.ui \
          limitmgrdialog.ui \
          logdialog.ui \
          loopvariabledialog.ui \
          mainwindow.ui \
          newsessiondialog.ui \
          recallconfigdialog.ui \
          recalllimitdialog.ui \
          saveconfigdialog.ui \
          savelimitdialog.ui \
          testsetupdialog.ui \
          titlebarframe.ui
      
      INCLUDEPATH += \
          ../Shared\Includes \
          ../Shared\Interfaces \
          C:/Python38/include \
          ../../morpheus/morpheus_dev/Lib/site-packages/pybind11/include \
          ../Shared/Includes/3rdparty/HDF5
      
      DEFINES += \
          PYTHON_EXECUTABLE=C:/Python38 \
          QT_DLL \
          H5_BUILT_AS_DYNAMIC_LIB
      LIBS += \
          -L"C:/Python38/libs" \
          "../Shared/Binaries/x64/3rdparty/HDF5/libhdf5.lib" \
          "../Shared/Binaries/x64/3rdparty/HDF5/libhdf5_cpp.lib" \
          "../Shared/Binaries/x64/3rdparty/HDF5/libaec.lib" \
          "../Shared/Binaries/x64/3rdparty/HDF5/libszaec.lib" \
          "../Shared/Binaries/x64/3rdparty/HDF5/libz.lib"
      
      win32:LIBS += \
          $$(WindowsSdkDir)lib/$$(WindowsSDKLibVersion)um/x64/User32.Lib
      
      # Default rules for deployment.
      qnx: target.path = /tmp/$${TARGET}/bin
      else: unix:!android: target.path = /opt/$${TARGET}/bin
      !isEmpty(target.path): INSTALLS += target
      
      DISTFILES +=
      
      RESOURCES += \
          resources.qrc
      
      
      win32:CONFIG(release, debug|release):LIBS += -L../Shared/Binaries/x64/Libraries/ -lQtObjectPropertyLib
      else:win32:CONFIG(debug, debug|release): LIBS += -L../Shared/Binaries/x64/Libraries/ -lQtObjectPropertyLibd
          LIBS +=-L../Shared/Binaries/x64/3rdparty/HDF5/ libhdf5.lib
          LIBS +=-L../Shared/Binaries/x64/3rdparty/HDF5/ libhdf5_cpp.lib
          LIBS +=-L../Shared/Binaries/x64/3rdparty/HDF5/ libaec.lib
          LIBS +=-L../Shared/Binaries/x64/3rdparty/HDF5/ libszaec.lib
          LIBS +=-L../Shared/Binaries/x64/3rdparty/HDF5/ libz.lib
      INCLUDEPATH += ../Shared/Binaries/x64/Libraries
      DEPENDPATH += ../Shared/Binaries/x64/Libraries
      
      

      Can someone please help ?

      thanks & warm regards,
      ~ Rudresh

      Christian EhrlicherC Offline
      Christian EhrlicherC Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #2

      You have to compile your external libs also with debug enabled since MSVC set different _ITERATOR_DEBUG_LEVEL depending if you compile for debug and release --> you can't mix debug and release msvc libs due to this (and because it's using different msv crt runtimes which can't be mixed either)

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      R 1 Reply Last reply
      1
      • Christian EhrlicherC Christian Ehrlicher

        You have to compile your external libs also with debug enabled since MSVC set different _ITERATOR_DEBUG_LEVEL depending if you compile for debug and release --> you can't mix debug and release msvc libs due to this (and because it's using different msv crt runtimes which can't be mixed either)

        R Offline
        R Offline
        Rudresh
        wrote on last edited by
        #3

        @Christian-Ehrlicher
        Hi Christian ,

        Thanks.
        I am building using Qt creator and thats where I am getting these errors.
        I am trying to figure out where exactly these flags are spefied.
        thanks & warm regards,
        ~ Rudresh

        Christian EhrlicherC 1 Reply Last reply
        0
        • R Rudresh

          @Christian-Ehrlicher
          Hi Christian ,

          Thanks.
          I am building using Qt creator and thats where I am getting these errors.
          I am trying to figure out where exactly these flags are spefied.
          thanks & warm regards,
          ~ Rudresh

          Christian EhrlicherC Offline
          Christian EhrlicherC Offline
          Christian Ehrlicher
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @Rudresh said in _ITERATOR_DEBUG_LEVEL when building debug with HDF5 libs:

          I am building using Qt creator and thats where I am getting these errors.

          QtCreator is an IDE, not a compiler.

          You have to compile the HDF5 libs with debug when you want to compile against the Qt debug libs.

          Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
          Visit the Qt Academy at https://academy.qt.io/catalog

          R 1 Reply Last reply
          0
          • Christian EhrlicherC Christian Ehrlicher

            @Rudresh said in _ITERATOR_DEBUG_LEVEL when building debug with HDF5 libs:

            I am building using Qt creator and thats where I am getting these errors.

            QtCreator is an IDE, not a compiler.

            You have to compile the HDF5 libs with debug when you want to compile against the Qt debug libs.

            R Offline
            R Offline
            Rudresh
            wrote on last edited by
            #5

            @Christian-Ehrlicher said in _ITERATOR_DEBUG_LEVEL when building debug with HDF5 libs:

            HDF5 libs with debug when you want to compile a

            Hi Christian ,

            Thanks .
            Yes , underneath Qt we are using VS 2019 compiler. Does it mean I should
            build debug versions of HDF5 libs and using cmake ? Is there any other way ?

            thanks & warm regards
            ~ Rudresh

            Christian EhrlicherC 1 Reply Last reply
            0
            • R Rudresh

              @Christian-Ehrlicher said in _ITERATOR_DEBUG_LEVEL when building debug with HDF5 libs:

              HDF5 libs with debug when you want to compile a

              Hi Christian ,

              Thanks .
              Yes , underneath Qt we are using VS 2019 compiler. Does it mean I should
              build debug versions of HDF5 libs and using cmake ? Is there any other way ?

              thanks & warm regards
              ~ Rudresh

              Christian EhrlicherC Offline
              Christian EhrlicherC Offline
              Christian Ehrlicher
              Lifetime Qt Champion
              wrote on last edited by
              #6

              @Rudresh said in _ITERATOR_DEBUG_LEVEL when building debug with HDF5 libs:

              Is there any other way ?

              Don't build a debug version of your app.

              Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
              Visit the Qt Academy at https://academy.qt.io/catalog

              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