LNK1104 не может открыть файл 'k4a :: k4a.lib' - PullRequest
1 голос
/ 01 апреля 2020

Я хочу запустить в этом примере из azure kinect SDK и у меня возникла проблема при сборке. Я использую cmake для сборки, но не могу найти целевые библиотеки.

Строки ошибок:

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.

После этих шагов я все еще открыл окно решения в Visual Studio. Как видите, заголовочные файлы отсутствуют.

enter image description here

После использования nugget для установки sdk и добавления turbojpeh include.dir, я думаю, с ними проблем не возникнет.

enter image description here

И теперь, когда я пытаюсь построить, я вижу следующую ошибку:

enter image description here

Дополнительные зависимости: enter image description here

Извините, я не знаком с Visual Studio. Что мне делать?

ОС: Windows 10 SDK Версия: 1.4.0 Текущая версия прошивки: прошивка камеры RGB: 1.6.98 прошивка камеры глубины: 1.6.70 Файл конфигурации глубины: 6109.7

...