_ITERATOR_DEBUG_LEVEL when building debug with HDF5 libs
-
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/LibrariesCan someone please help ?
thanks & warm regards,
~ 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/LibrariesCan someone please help ?
thanks & warm regards,
~ RudreshYou 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)
-
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)
@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-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@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.
-
@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.
@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-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@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.