Then the opencv link step can find freetype.lib and harfbuzz.lib and the build succeeds. I don’t know if you can fix this somehow by adding more to your handy installOCV_Windows.sh script. Perhaps theres a way to disable freetype feature in opencv cmake setup, unless your samples use that to write some text on the video streams…
I eventually got everything working. I had to install latest nvidia device driver (which was mentioned in the doc already) and I had to do a manual install of ffmpeg, it was not found in your Video Codec SDK download like the readme says it should be in VideoCodecSDK/Samples/External/FFmpeg/lib/x64, that folder didn’t exist. So I also had to modify the ~\Optical_Flow_SDK_5.0.7\NvOFTracker\NvOFTSample\CMakeLists.txt to not look in that location.
Disabling BUILD_opencv_freetype in the CMake Options works as well.
I had other issues; namely that my Python version wasn’t getting detected properly, but adjusting the Windows Paths to only include the Python I wanted, and restarting the CMake configuration from scratch in the CMake GUI and manually configuring which options I want seems to be getting be pretty far.
(Disabling Test and Sample Building was essential to getting a reasonably fast compile time, but now I’m rolling with blazing fast Optical Flow!)