OpenCV C ++ Build [Duplicate]C++

Программы на C++. Форум разработчиков
Ответить
Anonymous
 OpenCV C ++ Build [Duplicate]

Сообщение Anonymous »

Я в Windows для этого.

Каждый учебный онлайн использует код VS, и я пытаюсь построить без него. Я следил за учебником от этого парня. Когда он строит, он делает это с кодом VS, но выглядит так, как будто мне просто нужно Cmake .. , а затем сделать в другом каталоге. Но когда я бегу, сделай меня, я получаю: *** Не указано целей и не найдено. Stop. < /Code> ошибка.

Я попробовал видео cmakelists.txt, этот сайт, а также стенд из них, и я все еще получаю ошибку.

Когда я запускаю Cmake, в моей папке создается много файлов, и я не получаю ошибки. Что мне нужно сделать?> cmake ..
-- Building for: Visual Studio 17 2022
CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 3.10 will be removed from a future version of
CMake.

Update the VERSION argument value. Or, use the ... syntax
to tell CMake that the project requires at least but has been updated
to work with policies introduced by or earlier.

-- Selecting Windows SDK version 10.0.26100.0 to target Windows 10.0.19045.
-- The C compiler identification is MSVC 19.44.35208.0
-- The CXX compiler identification is MSVC 19.44.35208.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.44.35207/bin/Hostx64/x64/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.44.35207/bin/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found OpenCV: C:/path/opencv/build (found version "4.12.0")
-- Configuring done (6.0s)
-- Generating done (0.2s)
-- Build files have been written to: _My folder_


Подробнее здесь: https://stackoverflow.com/questions/796 ... cv-c-build
Ответить

Быстрый ответ

Изменение регистра текста: 
Смайлики
:) :( :oops: :roll: :wink: :muza: :clever: :sorry: :angel: :read: *x)
Ещё смайлики…
   
К этому ответу прикреплено по крайней мере одно вложение.

Если вы не хотите добавлять вложения, оставьте поля пустыми.

Максимально разрешённый размер вложения: 15 МБ.

Вернуться в «C++»