Linker errors when HDF5 is being used
-
wrote on 22 May 2023, 12:11 last edited by
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 -
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 -
@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.
wrote on 22 May 2023, 13:47 last edited by@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 externalsmainwindow.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) -
@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.
wrote on 22 May 2023, 13:58 last edited by@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.
-
@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 externalsmainwindow.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) -
@Rudresh Most likely you didn't include the H5 libraries in your project.
Something like this, just for example
QT += .... hdf5
or
.... -lhdf5
-
@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.
wrote on 22 May 2023, 16:06 last edited byHi ,
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" \ -
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" \@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. -
@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.wrote on 22 May 2023, 16:35 last edited byHi ,
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.cppHEADERS +=
"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.uiINCLUDEPATH +=
"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_DLLLIBS +=
-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 += targetDISTFILES +=
RESOURCES +=
resources.qrcwin32: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/ -lQtObjectPropertyLibdINCLUDEPATH += $$PWD/../Shared/Binaries/x64/Libraries
DEPENDPATH += $$PWD/../Shared/Binaries/x64/Libraries -
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.cppHEADERS +=
"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.uiINCLUDEPATH +=
"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_DLLLIBS +=
-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 += targetDISTFILES +=
RESOURCES +=
resources.qrcwin32: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/ -lQtObjectPropertyLibdINCLUDEPATH += $$PWD/../Shared/Binaries/x64/Libraries
DEPENDPATH += $$PWD/../Shared/Binaries/x64/LibrariesLifetime Qt Championwrote on 22 May 2023, 16:48 last edited by Christian EhrlicherAh, 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. -
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.wrote on 22 May 2023, 17:10 last edited by@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
-
@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
wrote on 22 May 2023, 17:20 last edited by@Rudresh
If that it is literally what you have inLIBS += ...
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. -
@Rudresh
If that it is literally what you have inLIBS += ...
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.
1/13