CMake Build Error #10644
Replies: 1 comment 1 reply
-
I've solved a similar problem, and you may have seen some old compilation tutorials like me. There is indeed something wrong with this compilation document. Especially when operating manually.
Then I compiled successfully |
Beta Was this translation helpful? Give feedback.
-
`F:\CppProject\obs-studio>cmake --preset windows-x64
Preset CMake variables:
ENABLE_BROWSER:BOOL="TRUE"
ENABLE_CCACHE:BOOL="FALSE"
GPU_PRIORITY_VAL:STRING=""
OBS_CMAKE_VERSION:STRING="3.0.0"
RESTREAM_CLIENTID:STRING=""
RESTREAM_HASH:STRING=""
TWITCH_CLIENTID:STRING=""
TWITCH_HASH:STRING=""
VIRTUALCAM_GUID:STRING="A3FCE0F5-3493-419F-958A-ABA1250EC20B"
YOUTUBE_CLIENTID:STRING=""
YOUTUBE_CLIENTID_HASH:STRING=""
YOUTUBE_SECRET:STRING=""
YOUTUBE_SECRET_HASH:STRING=""
-- Selecting Windows SDK version 10.0.22621.0 to target Windows 10.0.19045.
-- The C compiler identification is MSVC 19.32.31340.0
-- The CXX compiler identification is MSVC 19.32.31340.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: D:/Microsoft/Visual Studio/2022/VC/Tools/MSVC/14.32.31326/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: D:/Microsoft/Visual Studio/2022/VC/Tools/MSVC/14.32.31326/bin/HostX64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Setting up Pre-Built obs-deps (x64)
-- Setting up Pre-Built obs-deps (x64) - skipped
-- Setting up Pre-Built Qt6 (x64)
-- Setting up Pre-Built Qt6 (x64) - skipped
-- Setting up Chromium Embedded Framework (x64)
-- Setting up Chromium Embedded Framework (x64) - skipped
-- Selecting Windows SDK version 10.0.22621.0 to target Windows 10.0.19045.
-- The C compiler identification is MSVC 19.32.31340.0
-- The CXX compiler identification is MSVC 19.32.31340.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: D:/Microsoft/Visual Studio/2022/VC/Tools/MSVC/14.32.31326/bin/HostX64/x86/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: D:/Microsoft/Visual Studio/2022/VC/Tools/MSVC/14.32.31326/bin/HostX64/x86/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Setting up Pre-Built obs-deps (x86)
-- Setting up Pre-Built obs-deps (x86) - skipped
CMake Warning (dev) at cmake/finders/FindDetours.cmake:81 (message):
Failed to find detours version.
Call Stack (most recent call first):
plugins/win-capture/graphics-hook/CMakeLists.txt:3 (find_package)
This warning is for project developers. Use -Wno-dev to suppress it.
-- Configuring done (6.7s)
-- Generating done (0.0s)
-- Build files have been written to: F:/CppProject/obs-studio/build_x86
CMake Warning (dev) at cmake/finders/FindFFmpeg.cmake:225 (message):
Failed to find avformat version.
Call Stack (most recent call first):
cmake/finders/FindFFmpeg.cmake:148 (ffmpeg_check_version)
cmake/finders/FindFFmpeg.cmake:264 (ffmpeg_find_component)
libobs/CMakeLists.txt:16 (find_package)
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at cmake/finders/FindFFmpeg.cmake:225 (message):
Failed to find avutil version.
Call Stack (most recent call first):
cmake/finders/FindFFmpeg.cmake:148 (ffmpeg_check_version)
cmake/finders/FindFFmpeg.cmake:264 (ffmpeg_find_component)
libobs/CMakeLists.txt:16 (find_package)
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at cmake/finders/FindFFmpeg.cmake:225 (message):
Failed to find swscale version.
Call Stack (most recent call first):
cmake/finders/FindFFmpeg.cmake:148 (ffmpeg_check_version)
cmake/finders/FindFFmpeg.cmake:264 (ffmpeg_find_component)
libobs/CMakeLists.txt:16 (find_package)
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at cmake/finders/FindFFmpeg.cmake:225 (message):
Failed to find swresample version.
Call Stack (most recent call first):
cmake/finders/FindFFmpeg.cmake:148 (ffmpeg_check_version)
cmake/finders/FindFFmpeg.cmake:264 (ffmpeg_find_component)
libobs/CMakeLists.txt:16 (find_package)
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at cmake/finders/FindFFmpeg.cmake:225 (message):
Failed to find avcodec version.
Call Stack (most recent call first):
cmake/finders/FindFFmpeg.cmake:148 (ffmpeg_check_version)
cmake/finders/FindFFmpeg.cmake:264 (ffmpeg_find_component)
libobs/CMakeLists.txt:16 (find_package)
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at cmake/finders/FindFFmpeg.cmake:225 (message):
Failed to find avutil version.
Call Stack (most recent call first):
cmake/finders/FindFFmpeg.cmake:148 (ffmpeg_check_version)
cmake/finders/FindFFmpeg.cmake:275 (ffmpeg_find_component)
libobs/CMakeLists.txt:16 (find_package)
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Error at cmake/finders/FindFFmpeg.cmake:177 (cmake_path):
cmake_path undefined variable for input path.
Call Stack (most recent call first):
cmake/finders/FindFFmpeg.cmake:156 (ffmpeg_find_dll)
cmake/finders/FindFFmpeg.cmake:275 (ffmpeg_find_component)
libobs/CMakeLists.txt:16 (find_package)
CMake Error at C:/Program Files/CMake/share/cmake-3.29/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
Could NOT find FFmpeg (missing: FFmpeg_LIBRARIES FFmpeg_INCLUDE_DIRS
avformat avutil swscale swresample) (Required is at least version "6")
Call Stack (most recent call first):
C:/Program Files/CMake/share/cmake-3.29/Modules/FindPackageHandleStandardArgs.cmake:600 (_FPHSA_FAILURE_MESSAGE)
cmake/finders/FindFFmpeg.cmake:294 (find_package_handle_standard_args)
libobs/CMakeLists.txt:16 (find_package)
-- Configuring incomplete, errors occurred!`
What do I need to do?
Beta Was this translation helpful? Give feedback.
All reactions