I'll explain where I'm at, and maybe someone will be able to help based on that...
I don't need the viewer, so my understanding is that these are the dependencies I need:
- OpenEXR
- ITBB
- ZLib
- Boost
The first three are already used by Epic in Unreal Engine, and have already been build as static libraries that work in UE4. So I've grabbed them (lib and include folders) from the Engine folder (C:\Program Files\Epic Games\UE_4.18\Engine\Source\ThirdParty).
I've created a new Visual Studio project (I'm using VS2017) for making a C++ static library, with no precompiled header.
I've then added the following folders/files from the openvdb source from Github:
- folders
- cmd
- io
- math
- points
- tools
- tree
- util
- files
- Exceptions.h
- Grid.h
- Grid.cc
- Metadata.h
- Metadata.cc
- MetaMap.h
- MetaMap.cc
- openvdb.h
- openvdb.cc
- Platform.h
- Platform.cc
- PlatformConfig.h
- Types.h
- version.h
I've then added all the Additional Include Directories in the project properties. Everything seems to be being found just fine, there's no include errors.
I'm trying to build x64 Release, which is apparently what UE4 needs static libraries to be.
Clearly, I'm stabbing in there dark here, not really sure what I'm doing!
Can anyone help me out here?