I want to run this example from azure kinect sdk and have a problem in building. I am using cmake to build but it can't find target libraries.
Error Lines :
Target "transformation_example" links to target "k4a::k4a" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing?
This warning is for project developers. Use -Wno-dev to suppress it.
Target "transformation_example" links to target "k4a::k4arecord" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing?
This warning is for project developers. Use -Wno-dev to suppress it
Target "transformation_example" links to target "libjpeg-turbo::libjpeg-turbo" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing? This warning is for project developers. Use -Wno-dev to suppress it.
After this steps, I still opened the solution window in visual studio. As you can see, header files are missing.
After using nugget to install sdk, and adding turbojpeh include.dir, then i think, have no problem with them.
And now, when i try to build, i see the following error:
I'm sorry, not familiar with visual studio. What should I do?
OS : Windows 10 SDK Version: 1.4.0 Current Firmware Versions: RGB camera firmware: 1.6.98 Depth camera firmware: 1.6.70 Depth config file: 6109.7
k4aConfig.cmake
on your system. Add afind_package(k4a REQUIRED CONFIG)
to the top of your CMakeLists.txt (which will load the config and define thek4a::k4a
target) and rerun cmake. – Botje