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. Linker errors when HDF5 is being used
Forum Updated to NodeBB v4.3 + New Features

Linker errors when HDF5 is being used

Scheduled Pinned Locked Moved Unsolved General and Desktop
13 Posts 4 Posters 855 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 have a QT project which on its own runs fine.
    But when I try to use some HDF5 functions / classes , it generates linker error.
    H5::h5File::h5File(...)

    Can someone please help ?

    thanks & warm regards,
    ~ Rudresh

    JonBJ 1 Reply Last reply
    0
    • R Rudresh

      Hi ,
      I have a QT project which on its own runs fine.
      But when I try to use some HDF5 functions / classes , it generates linker error.
      H5::h5File::h5File(...)

      Can someone please help ?

      thanks & warm regards,
      ~ Rudresh

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by
      #2

      @Rudresh
      Can you please post an (probably the first) actual linker error message, not what you have "summarized" in your edit.

      If using HDF5 requires linking with a library show where you do that in your Qt project.

      R JonBJ 2 Replies Last reply
      0
      • JonBJ JonB

        @Rudresh
        Can you please post an (probably the first) actual linker error message, not what you have "summarized" in your edit.

        If using HDF5 requires linking with a library show where you do that in your Qt project.

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

        @JonB
        Hi ,
        Thanks.

        mainwindow.obj:-1: error: LNK2019: unresolved external symbol H5open referenced in function "public: __cdecl MainWindow::MainWindow(class QWidget *)" (??0MainWindow@@QEAA@PEAVQWidget@@@Z)

        mainwindow.obj:-1: error: LNK2019: unresolved external symbol H5check_version referenced in function "public: __cdecl
        MainWindow::MainWindow(class QWidget *)" (??0MainWindow@@QEAA@PEAVQWidget@@@Z)

        mainwindow.obj:-1: error: LNK2019: unresolved external symbol "public: __cdecl H5::H5File::H5File(char const *,unsigned int,class

        H5::FileCreatPropList const &,class H5::FileAccPropList const &)" (??0H5File@H5@@QEAA@PEBDIAEBVFileCreatPropList@1@AEBVFileAccPropList@1@@Z) referenced in function "public: __cdecl MainWindow::MainWindow(class QWidget *)" (??0MainWindow@@QEAA@PEAVQWidget@@@Z)

        mainwindow.obj:-1: error: LNK2019: unresolved external symbol "public: static class H5::FileAccPropList const & const H5::FileAccPropList::DEFAULT" (?DEFAULT@FileAccPropList@H5@@2AEBV12@EB) referenced in function "public: __cdecl MainWindow::MainWindow(class QWidget *)" (??0MainWindow@@QEAA@PEAVQWidget@@@Z)

        mainwindow.obj:-1: error: LNK2019: unresolved external symbol "public: virtual __cdecl H5::H5File::~H5File(void)" (??1H5File@H5@@UEAA@XZ) referenced in function "public: __cdecl MainWindow::MainWindow(class QWidget *)" (??0MainWindow@@QEAA@PEAVQWidget@@@Z)
        release\MorpheusQt.exe:-1: error: LNK1120: 6 unresolved externals

        mainwindow.obj:-1: error: LNK2019: unresolved external symbol "public: static class H5::FileCreatPropList const & const
        H5::FileCreatPropList::DEFAULT" (?DEFAULT@FileCreatPropList@H5@@2AEBV12@EB) referenced in function "public: __cdecl MainWindow::MainWindow(class QWidget *)" (??0MainWindow@@QEAA@PEAVQWidget@@@Z)

        G 1 Reply Last reply
        0
        • JonBJ JonB

          @Rudresh
          Can you please post an (probably the first) actual linker error message, not what you have "summarized" in your edit.

          If using HDF5 requires linking with a library show where you do that in your Qt project.

          JonBJ Offline
          JonBJ Offline
          JonB
          wrote on last edited by
          #4

          @Rudresh
          @JonB said in Linker errors when HDF5 is being used:

          If using HDF5 requires linking with a library show where you do that in your Qt project.

          R 1 Reply Last reply
          0
          • R Rudresh

            @JonB
            Hi ,
            Thanks.

            mainwindow.obj:-1: error: LNK2019: unresolved external symbol H5open referenced in function "public: __cdecl MainWindow::MainWindow(class QWidget *)" (??0MainWindow@@QEAA@PEAVQWidget@@@Z)

            mainwindow.obj:-1: error: LNK2019: unresolved external symbol H5check_version referenced in function "public: __cdecl
            MainWindow::MainWindow(class QWidget *)" (??0MainWindow@@QEAA@PEAVQWidget@@@Z)

            mainwindow.obj:-1: error: LNK2019: unresolved external symbol "public: __cdecl H5::H5File::H5File(char const *,unsigned int,class

            H5::FileCreatPropList const &,class H5::FileAccPropList const &)" (??0H5File@H5@@QEAA@PEBDIAEBVFileCreatPropList@1@AEBVFileAccPropList@1@@Z) referenced in function "public: __cdecl MainWindow::MainWindow(class QWidget *)" (??0MainWindow@@QEAA@PEAVQWidget@@@Z)

            mainwindow.obj:-1: error: LNK2019: unresolved external symbol "public: static class H5::FileAccPropList const & const H5::FileAccPropList::DEFAULT" (?DEFAULT@FileAccPropList@H5@@2AEBV12@EB) referenced in function "public: __cdecl MainWindow::MainWindow(class QWidget *)" (??0MainWindow@@QEAA@PEAVQWidget@@@Z)

            mainwindow.obj:-1: error: LNK2019: unresolved external symbol "public: virtual __cdecl H5::H5File::~H5File(void)" (??1H5File@H5@@UEAA@XZ) referenced in function "public: __cdecl MainWindow::MainWindow(class QWidget *)" (??0MainWindow@@QEAA@PEAVQWidget@@@Z)
            release\MorpheusQt.exe:-1: error: LNK1120: 6 unresolved externals

            mainwindow.obj:-1: error: LNK2019: unresolved external symbol "public: static class H5::FileCreatPropList const & const
            H5::FileCreatPropList::DEFAULT" (?DEFAULT@FileCreatPropList@H5@@2AEBV12@EB) referenced in function "public: __cdecl MainWindow::MainWindow(class QWidget *)" (??0MainWindow@@QEAA@PEAVQWidget@@@Z)

            G Offline
            G Offline
            giusdbg
            wrote on last edited by
            #5

            @Rudresh Most likely you didn't include the H5 libraries in your project.

            Something like this, just for example

            QT += .... hdf5

            or

            .... -lhdf5

            R 1 Reply Last reply
            0
            • G giusdbg

              @Rudresh Most likely you didn't include the H5 libraries in your project.

              Something like this, just for example

              QT += .... hdf5

              or

              .... -lhdf5

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

              @giusdbg
              Hi ,
              Thanks.

              Including this way gives another error :
              QT += HDF5
              error :
              : error: Project ERROR: Unknown module(s) in QT: HDF5

              1 Reply Last reply
              0
              • JonBJ JonB

                @Rudresh
                @JonB said in Linker errors when HDF5 is being used:

                If using HDF5 requires linking with a library show where you do that in your Qt project.

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

                @JonB

                Hi ,

                Here is how I am trying to link hdf5 libs in .pro file :
                LIBS +=
                -L"C:/Users/142406/AppData/Local/Programs/Python/Python38/libs"
                -L"C:/Program Files/HDF_Group/HDF5/1.14.1/lib/libhdf5_cpp.lib"
                -L"C:/Program Files/HDF_Group/HDF5/1.14.1/lib/libhdf5.lib"
                -L"C:/Program Files/HDF_Group/HDF5/1.14.1/lib/libhdf5_hl.lib"
                -L"C:/Program Files/HDF_Group/HDF5/1.14.1/lib/libhdf5_hl_cpp.lib"
                -L"C:/Program Files/HDF_Group/HDF5/1.14.1/lib/libhdf5_tools.lib"
                -L"C:/Program Files/HDF_Group/HDF5/1.14.1/lib/libhdf5_f90cstub.lib" \

                Christian EhrlicherC 1 Reply Last reply
                0
                • R Rudresh

                  @JonB

                  Hi ,

                  Here is how I am trying to link hdf5 libs in .pro file :
                  LIBS +=
                  -L"C:/Users/142406/AppData/Local/Programs/Python/Python38/libs"
                  -L"C:/Program Files/HDF_Group/HDF5/1.14.1/lib/libhdf5_cpp.lib"
                  -L"C:/Program Files/HDF_Group/HDF5/1.14.1/lib/libhdf5.lib"
                  -L"C:/Program Files/HDF_Group/HDF5/1.14.1/lib/libhdf5_hl.lib"
                  -L"C:/Program Files/HDF_Group/HDF5/1.14.1/lib/libhdf5_hl_cpp.lib"
                  -L"C:/Program Files/HDF_Group/HDF5/1.14.1/lib/libhdf5_tools.lib"
                  -L"C:/Program Files/HDF_Group/HDF5/1.14.1/lib/libhdf5_f90cstub.lib" \

                  Christian EhrlicherC Online
                  Christian EhrlicherC Online
                  Christian Ehrlicher
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  @Rudresh said in Linker errors when HDF5 is being used:

                  LIBS +=
                  -L"C:/Users/142406/AppData/Local/Programs/Python/Python38/libs"
                  -L"C:/Program Files/HDF_Group/HDF5/1.14.1/lib/libhdf5_cpp.lib"
                  -L"C:/Program Files/HDF_Group/HDF5/1.14.1/lib/libhdf5.lib"
                  -L"C:/Program Files/HDF_Group/HDF5/1.14.1/lib/libhdf5_hl.lib"
                  -L"C:/Program Files/HDF_Group/HDF5/1.14.1/lib/libhdf5_hl_cpp.lib"
                  -L"C:/Program Files/HDF_Group/HDF5/1.14.1/lib/libhdf5_tools.lib"
                  -L"C:/Program Files/HDF_Group/HDF5/1.14.1/lib/libhdf5_f90cstub.lib" \

                  really? I doubt qmake will accept it - please show the real content of your pro file - what you show here is wrong since it does not add anything to the LIBS variable.

                  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 Linker errors when HDF5 is being used:

                    LIBS +=
                    -L"C:/Users/142406/AppData/Local/Programs/Python/Python38/libs"
                    -L"C:/Program Files/HDF_Group/HDF5/1.14.1/lib/libhdf5_cpp.lib"
                    -L"C:/Program Files/HDF_Group/HDF5/1.14.1/lib/libhdf5.lib"
                    -L"C:/Program Files/HDF_Group/HDF5/1.14.1/lib/libhdf5_hl.lib"
                    -L"C:/Program Files/HDF_Group/HDF5/1.14.1/lib/libhdf5_hl_cpp.lib"
                    -L"C:/Program Files/HDF_Group/HDF5/1.14.1/lib/libhdf5_tools.lib"
                    -L"C:/Program Files/HDF_Group/HDF5/1.14.1/lib/libhdf5_f90cstub.lib" \

                    really? I doubt qmake will accept it - please show the real content of your pro file - what you show here is wrong since it does not add anything to the LIBS variable.

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

                    @Christian-Ehrlicher

                    Hi ,

                    Thanks.
                    Here is the complete .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 +=
                    configmanager.cpp
                    configmgrdialog.cpp
                    connectiondiagram.cpp
                    globalconfiguration.cpp
                    globallimits.cpp
                    jsoncreator.cpp
                    jsonparser.cpp
                    limiteditordialog.cpp
                    limitmanager.cpp
                    limitmgrdialog.cpp
                    loopcontrol.cpp
                    loopvariables.cpp
                    recallconfigdialog.cpp
                    recalllimitdialog.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

                    HEADERS +=
                    "C:/Program Files/HDF_Group/HDF5/1.14.1/include/hdf5.h"
                    configmanager.h
                    configmgrdialog.h
                    connectiondiagram.h
                    globalconfiguration.h
                    globallimits.h
                    jsoncreator.h
                    jsonparser.h
                    limiteditordialog.h
                    limitmanager.h
                    limitmgrdialog.h
                    loopcontrol.h
                    loopvariables.h
                    mainwindow.h
                    messageboxwrapper.h
                    morpheuspythonwrapper.h
                    pathmanager.h
                    pythonconsolewrapper.h
                    pythoninterpreter.h
                    recallconfigdialog.h
                    recalllimitdialog.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 \

                    FORMS +=
                    configmgrdialog.ui
                    limiteditordialog.ui
                    limitmgrdialog.ui
                    mainwindow.ui
                    recallconfigdialog.ui
                    recalllimitdialog.ui
                    saveconfigdialog.ui
                    savelimitdialog.ui
                    testsetupdialog.ui

                    INCLUDEPATH +=
                    "C:/Program Files/HDF_Group/HDF5/1.14.1/include"
                    C:/Users/142406/AppData/Local/Programs/Python/Python38/include
                    ../Shared\Includes
                    ../Shared\Interfaces
                    ../../morpheus/morpheus_dev/Lib/site-packages/pybind11/include \

                    DEFINES +=
                    PYTHON_EXECUTABLE=C:/Python38
                    QT_DLL

                    LIBS +=
                    -L"C:/Users/142406/AppData/Local/Programs/Python/Python38/libs"
                    -L"C:/Program Files/HDF_Group/HDF5/1.14.1/lib/libhdf5_cpp.lib"
                    -L"C:/Program Files/HDF_Group/HDF5/1.14.1/lib/libhdf5.lib"
                    -L"C:/Program Files/HDF_Group/HDF5/1.14.1/lib/libhdf5_hl.lib"
                    -L"C:/Program Files/HDF_Group/HDF5/1.14.1/lib/libhdf5_hl_cpp.lib"
                    -L"C:/Program Files/HDF_Group/HDF5/1.14.1/lib/libhdf5_tools.lib"
                    -L"C:/Program Files/HDF_Group/HDF5/1.14.1/lib/libhdf5_f90cstub.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$$PWD/../Shared/Binaries/x64/Libraries/ -lQtObjectPropertyLib
                    else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/../Shared/Binaries/x64/Libraries/ -lQtObjectPropertyLibd

                    INCLUDEPATH += $$PWD/../Shared/Binaries/x64/Libraries
                    DEPENDPATH += $$PWD/../Shared/Binaries/x64/Libraries

                    Christian EhrlicherC 1 Reply Last reply
                    0
                    • R Rudresh

                      @Christian-Ehrlicher

                      Hi ,

                      Thanks.
                      Here is the complete .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 +=
                      configmanager.cpp
                      configmgrdialog.cpp
                      connectiondiagram.cpp
                      globalconfiguration.cpp
                      globallimits.cpp
                      jsoncreator.cpp
                      jsonparser.cpp
                      limiteditordialog.cpp
                      limitmanager.cpp
                      limitmgrdialog.cpp
                      loopcontrol.cpp
                      loopvariables.cpp
                      recallconfigdialog.cpp
                      recalllimitdialog.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

                      HEADERS +=
                      "C:/Program Files/HDF_Group/HDF5/1.14.1/include/hdf5.h"
                      configmanager.h
                      configmgrdialog.h
                      connectiondiagram.h
                      globalconfiguration.h
                      globallimits.h
                      jsoncreator.h
                      jsonparser.h
                      limiteditordialog.h
                      limitmanager.h
                      limitmgrdialog.h
                      loopcontrol.h
                      loopvariables.h
                      mainwindow.h
                      messageboxwrapper.h
                      morpheuspythonwrapper.h
                      pathmanager.h
                      pythonconsolewrapper.h
                      pythoninterpreter.h
                      recallconfigdialog.h
                      recalllimitdialog.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 \

                      FORMS +=
                      configmgrdialog.ui
                      limiteditordialog.ui
                      limitmgrdialog.ui
                      mainwindow.ui
                      recallconfigdialog.ui
                      recalllimitdialog.ui
                      saveconfigdialog.ui
                      savelimitdialog.ui
                      testsetupdialog.ui

                      INCLUDEPATH +=
                      "C:/Program Files/HDF_Group/HDF5/1.14.1/include"
                      C:/Users/142406/AppData/Local/Programs/Python/Python38/include
                      ../Shared\Includes
                      ../Shared\Interfaces
                      ../../morpheus/morpheus_dev/Lib/site-packages/pybind11/include \

                      DEFINES +=
                      PYTHON_EXECUTABLE=C:/Python38
                      QT_DLL

                      LIBS +=
                      -L"C:/Users/142406/AppData/Local/Programs/Python/Python38/libs"
                      -L"C:/Program Files/HDF_Group/HDF5/1.14.1/lib/libhdf5_cpp.lib"
                      -L"C:/Program Files/HDF_Group/HDF5/1.14.1/lib/libhdf5.lib"
                      -L"C:/Program Files/HDF_Group/HDF5/1.14.1/lib/libhdf5_hl.lib"
                      -L"C:/Program Files/HDF_Group/HDF5/1.14.1/lib/libhdf5_hl_cpp.lib"
                      -L"C:/Program Files/HDF_Group/HDF5/1.14.1/lib/libhdf5_tools.lib"
                      -L"C:/Program Files/HDF_Group/HDF5/1.14.1/lib/libhdf5_f90cstub.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$$PWD/../Shared/Binaries/x64/Libraries/ -lQtObjectPropertyLib
                      else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/../Shared/Binaries/x64/Libraries/ -lQtObjectPropertyLibd

                      INCLUDEPATH += $$PWD/../Shared/Binaries/x64/Libraries
                      DEPENDPATH += $$PWD/../Shared/Binaries/x64/Libraries

                      Christian EhrlicherC Online
                      Christian EhrlicherC Online
                      Christian Ehrlicher
                      Lifetime Qt Champion
                      wrote on last edited by Christian Ehrlicher
                      #10

                      Ah, the \ are eaten by the forum software - please move such stuff into the code tags so it is shown unformatted.
                      I would take a look if the link line contains the hdf libs and maybe move them out into a directory without spaces.

                      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

                        Ah, the \ are eaten by the forum software - please move such stuff into the code tags so it is shown unformatted.
                        I would take a look if the link line contains the hdf libs and maybe move them out into a directory without spaces.

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

                        @Christian-Ehrlicher `
                        Hi Christian ,

                        Thanks. Here it is.

                        code_text

                        
                        
                        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 += \
                        	configmanager.cpp \
                            configmgrdialog.cpp \
                            connectiondiagram.cpp \
                            globalconfiguration.cpp \
                            globallimits.cpp \
                            jsoncreator.cpp\
                            jsonparser.cpp \
                            limiteditordialog.cpp \
                        	limitmanager.cpp \
                            limitmgrdialog.cpp \
                            loopcontrol.cpp \
                            loopvariables.cpp \
                            recallconfigdialog.cpp \
                            recalllimitdialog.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
                        
                        HEADERS += \
                            "C:/Program Files/HDF_Group/HDF5/1.14.1/include/hdf5.h" \
                            configmanager.h \
                            configmgrdialog.h \
                            connectiondiagram.h \
                            globalconfiguration.h \
                            globallimits.h \
                            jsoncreator.h\
                            jsonparser.h \
                            limiteditordialog.h \
                        	limitmanager.h \
                            limitmgrdialog.h \
                            loopcontrol.h \
                            loopvariables.h \
                            mainwindow.h \
                        	messageboxwrapper.h \
                            morpheuspythonwrapper.h \
                            pathmanager.h \
                            pythonconsolewrapper.h \
                            pythoninterpreter.h \
                            recallconfigdialog.h \
                            recalllimitdialog.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 \
                        
                        FORMS += \
                            configmgrdialog.ui \
                            limiteditordialog.ui \
                            limitmgrdialog.ui \
                            mainwindow.ui \
                            recallconfigdialog.ui \
                            recalllimitdialog.ui \
                            saveconfigdialog.ui \
                            savelimitdialog.ui \
                            testsetupdialog.ui
                        
                        INCLUDEPATH += \
                            "C:/Program Files/HDF_Group/HDF5/1.14.1/include" \
                            C:/Users/142406/AppData/Local/Programs/Python/Python38/include \
                            ../Shared\Includes \
                            ../Shared\Interfaces \
                            ../../morpheus/morpheus_dev/Lib/site-packages/pybind11/include \
                        
                        
                        DEFINES += \
                            PYTHON_EXECUTABLE=C:/Python38 \
                        	QT_DLL
                        
                        LIBS += \
                          "C:/Users/142406/AppData/Local/Programs/Python/Python38/libs/python38.lib" \
                          "C:/Program Files/HDF_Group/HDF5/1.14.1/lib/libhdf5.lib"
                          "C:/Program Files/HDF_Group/HDF5/1.14.1/lib/libhdf5_cpp.lib"
                          "C:/Program Files/HDF_Group/HDF5/1.14.1/lib/libhdf5_hl.lib"
                          "C:/Program Files/HDF_Group/HDF5/1.14.1/lib/libhdf5_hl_cpp.lib"
                          "C:/Program Files/HDF_Group/HDF5/1.14.1/lib/libhdf5_hl_cpp.lib"
                          "C:/Program Files/HDF_Group/HDF5/1.14.1/lib/libhdf5_tools.lib"
                          "C:/Program Files/HDF_Group/HDF5/1.14.1/lib/libaec.lib"
                          "C:/Program Files/HDF_Group/HDF5/1.14.1/lib/libszaec.lib"
                          "C:/Program Files/HDF_Group/HDF5/1.14.1/lib/libz.lib"
                        
                        
                        
                        
                        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$$PWD/../Shared/Binaries/x64/Libraries/ -lQtObjectPropertyLib
                        else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/../Shared/Binaries/x64/Libraries/ -lQtObjectPropertyLibd
                        
                        INCLUDEPATH += $$PWD/../Shared/Binaries/x64/Libraries
                        DEPENDPATH += $$PWD/../Shared/Binaries/x64/Libraries
                        JonBJ 1 Reply Last reply
                        0
                        • R Rudresh

                          @Christian-Ehrlicher `
                          Hi Christian ,

                          Thanks. Here it is.

                          code_text

                          
                          
                          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 += \
                          	configmanager.cpp \
                              configmgrdialog.cpp \
                              connectiondiagram.cpp \
                              globalconfiguration.cpp \
                              globallimits.cpp \
                              jsoncreator.cpp\
                              jsonparser.cpp \
                              limiteditordialog.cpp \
                          	limitmanager.cpp \
                              limitmgrdialog.cpp \
                              loopcontrol.cpp \
                              loopvariables.cpp \
                              recallconfigdialog.cpp \
                              recalllimitdialog.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
                          
                          HEADERS += \
                              "C:/Program Files/HDF_Group/HDF5/1.14.1/include/hdf5.h" \
                              configmanager.h \
                              configmgrdialog.h \
                              connectiondiagram.h \
                              globalconfiguration.h \
                              globallimits.h \
                              jsoncreator.h\
                              jsonparser.h \
                              limiteditordialog.h \
                          	limitmanager.h \
                              limitmgrdialog.h \
                              loopcontrol.h \
                              loopvariables.h \
                              mainwindow.h \
                          	messageboxwrapper.h \
                              morpheuspythonwrapper.h \
                              pathmanager.h \
                              pythonconsolewrapper.h \
                              pythoninterpreter.h \
                              recallconfigdialog.h \
                              recalllimitdialog.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 \
                          
                          FORMS += \
                              configmgrdialog.ui \
                              limiteditordialog.ui \
                              limitmgrdialog.ui \
                              mainwindow.ui \
                              recallconfigdialog.ui \
                              recalllimitdialog.ui \
                              saveconfigdialog.ui \
                              savelimitdialog.ui \
                              testsetupdialog.ui
                          
                          INCLUDEPATH += \
                              "C:/Program Files/HDF_Group/HDF5/1.14.1/include" \
                              C:/Users/142406/AppData/Local/Programs/Python/Python38/include \
                              ../Shared\Includes \
                              ../Shared\Interfaces \
                              ../../morpheus/morpheus_dev/Lib/site-packages/pybind11/include \
                          
                          
                          DEFINES += \
                              PYTHON_EXECUTABLE=C:/Python38 \
                          	QT_DLL
                          
                          LIBS += \
                            "C:/Users/142406/AppData/Local/Programs/Python/Python38/libs/python38.lib" \
                            "C:/Program Files/HDF_Group/HDF5/1.14.1/lib/libhdf5.lib"
                            "C:/Program Files/HDF_Group/HDF5/1.14.1/lib/libhdf5_cpp.lib"
                            "C:/Program Files/HDF_Group/HDF5/1.14.1/lib/libhdf5_hl.lib"
                            "C:/Program Files/HDF_Group/HDF5/1.14.1/lib/libhdf5_hl_cpp.lib"
                            "C:/Program Files/HDF_Group/HDF5/1.14.1/lib/libhdf5_hl_cpp.lib"
                            "C:/Program Files/HDF_Group/HDF5/1.14.1/lib/libhdf5_tools.lib"
                            "C:/Program Files/HDF_Group/HDF5/1.14.1/lib/libaec.lib"
                            "C:/Program Files/HDF_Group/HDF5/1.14.1/lib/libszaec.lib"
                            "C:/Program Files/HDF_Group/HDF5/1.14.1/lib/libz.lib"
                          
                          
                          
                          
                          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$$PWD/../Shared/Binaries/x64/Libraries/ -lQtObjectPropertyLib
                          else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/../Shared/Binaries/x64/Libraries/ -lQtObjectPropertyLibd
                          
                          INCLUDEPATH += $$PWD/../Shared/Binaries/x64/Libraries
                          DEPENDPATH += $$PWD/../Shared/Binaries/x64/Libraries
                          JonBJ Offline
                          JonBJ Offline
                          JonB
                          wrote on last edited by
                          #12

                          @Rudresh
                          If that it is literally what you have in LIBS += ... section then only the first line ends in a \ so it reads the second line, all the other lines would not be included. I suggest you look in Creator "Build/Compiler Output" what the actual command line for the linker is.

                          R 1 Reply Last reply
                          1
                          • JonBJ JonB

                            @Rudresh
                            If that it is literally what you have in LIBS += ... section then only the first line ends in a \ so it reads the second line, all the other lines would not be included. I suggest you look in Creator "Build/Compiler Output" what the actual command line for the linker is.

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

                            @JonB

                            Hi Jon ,

                            Thanks.
                            Right , added \ and its working. Creating the hdf file now.

                            Thanks & warm regards,
                            ~ Rudresh

                            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