Hey,
I’m currently trying to set up a Plugin for Unreal Engine 4.20 wtih Visual Studio 2017. The libraries were downloaded from https://www.hdfgroup.org/downloads/hdf5/
After adding the HDF .h and .lib files to my project (MyProject/Plugins/MyPlugin/Source/MyPlugin/Thirdparty/HDF/import and …/HDF/lib), I tried adding the paths to the dependencies:
In MyPlugin.Build.cs:
PublicIncludePaths.Add(Path.Combine(ThirdPartyPath, "HDF", "include"));
PublicSystemIncludePaths.Add(Path.Combine(ThirdPartyPath, "HDF", "lib"));
And after compiling it, I got the following errors:
Unable to delete C:\Users\Christine\Documents\GitHub\Unreal-DataLoading\HDFTest\Intermediate\Build\Win64\HDFTestEditor\Development (Der Prozess kann nicht auf die Datei "SharedPCH.Engine.h.pch" zugreifen, da sie von einem anderen Prozess verwendet wird. [Translation: The process can't access the file "SharedPCH.Engine.h.pch", because it is used by another process.])
UBT ERROR: Failed to produce item: C:\Users\Christine\Documents\GitHub\Unreal-DataLoading\HDFTest\Plugins\HDFLoadPlugin\Intermediate\Build\Win64\UE4Editor\Development\HDFLoadPlugin\UE4Editor-HDFLoadPlugin.lib
MSB3073 The command ""C:\Program Files\Epic Games\UE_4.20\Engine\Build\BatchFiles\Rebuild.bat" HDFTestEditor Win64 Development "C:\Users\Christine\Documents\GitHub\Unreal-DataLoading\HDFTest\HDFTest.uproject" -WaitMutex -FromMsBuild" exited with code -1.
C2079 'ArrayType' uses undefined class 'H5::H5_DLLCPP' HDFTest C:\Users\Christine\Documents\GitHub\Unreal-DataLoading\HDFTest\Plugins\HDFLoadPlugin\Source\HDFLoadPlugin\ThirdParty\HDF\include\H5ArrayType.h 25
C2447 '{': missing function header (old-style formal list?) HDFTest C:\Users\Christine\Documents\GitHub\Unreal-DataLoading\HDFTest\Plugins\HDFLoadPlugin\Source\HDFLoadPlugin\ThirdParty\HDF\include\H5ArrayType.h 25
as well as some syntax errors.
Can anybody give me a hint on what I’m doing wrong or is there maybe a extensive tutorial for linking static libraries?
Thank you very much!