Following your instructions I was unable to build the SDK with examples. I had to do the following modifications and manual adjustments in order to build the aditof library and the ADIToFGUI example project:
Build instructions for dependencies Glog, Libwebsockets and Protobuf all have the flag
-DCMAKE_INSTALL_PREFIX=./local_path/%libname%. For me, these were ignored and never installed, which caused the later step of building the SDK being unable to configure.
When I configured all the prefix paths for the dependencies and got to building the SDK, I encountered the issue of libwebsockets.h not being found. This was due to the include directory of libwebsockets not being added to the Additional Include Directories of the aditof library.
When building the entire adi_tof_project.sln, I had to manually adjust the post-build events of several projects, related to copying the bin forders. For example, for the glog dependency, the copying looks like this:
set(GLOG_BIN_DIR "${glog_DIR}/../../../bin")
Aside from leading too far out of the glog directory, the built glog directory does not even contain a "bin" directory, so I am not sure what this aims to achieve. I manually copied the glog dlls to the tof-viewer Debug directory and the GUI works. Another option is to create the bin directory at the exact location specified above and copy glog.dll and glogd.dll there.
Please clarify if I have misunderstood the instructions. As of now I have a working ADIToFGUI built, but the build process with all the adjustments was not straightforward...
Hello,
I am referring to this: https://github.com/analogdevicesinc/ToF/blob/main/doc/itof/windows_build_instructions.md
Following your instructions I was unable to build the SDK with examples. I had to do the following modifications and manual adjustments in order to build the aditof library and the ADIToFGUI example project:
Aside from leading too far out of the glog directory, the built glog directory does not even contain a "bin" directory, so I am not sure what this aims to achieve. I manually copied the glog dlls to the tof-viewer Debug directory and the GUI works. Another option is to create the bin directory at the exact location specified above and copy glog.dll and glogd.dll there.
Please clarify if I have misunderstood the instructions. As of now I have a working ADIToFGUI built, but the build process with all the adjustments was not straightforward...
Thanks.