shadps4-emu / shadPS4

PS4 emulator for Windows,Linux,MacOS
https://shadps4.net/
GNU General Public License v2.0
10.61k stars 646 forks source link

[Win11] Not Building via MSYS2 on x86 #737

Closed DamnNameTaken closed 2 months ago

DamnNameTaken commented 2 months ago

Hi, ive been trying to build using option 2 and encountered this error, I am on Windows 11 and all prior commands executed without issue.

-- Building for: Ninja
-- The C compiler identification is Clang 18.1.8
-- The CXX compiler identification is Clang 18.1.8
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/msys64/mingw64/bin/clang.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:/msys64/mingw64/bin/clang++.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Could NOT find Boost (missing: Boost_DIR)
-- Could NOT find FFmpeg: (Required is at least version "5.1.2") (found )
-- Could NOT find fmt (missing: fmt_DIR)
-- Could NOT find glslang (missing: glslang_DIR)
-- Could NOT find magic_enum (missing: magic_enum_DIR)
-- Could NOT find RenderDoc (missing: RENDERDOC_INCLUDE_DIR) (Required is at least version "1.6.0")
-- Could NOT find SDL3 (missing: SDL3_DIR)
-- Could NOT find toml11 (missing: toml11_DIR)
-- Could NOT find tsl-robin-map (missing: tsl-robin-map_DIR)
-- Could NOT find VulkanMemoryAllocator (missing: VulkanMemoryAllocator_DIR)
-- Could NOT find xbyak (missing: xbyak_DIR)
-- Could NOT find xxHash: (Required is at least version "0.8.2") (found )
-- Could NOT find zlib-ng: (Required is at least version "2.1.7") (found )
-- Could NOT find Zydis (missing: Zydis_DIR)
-- Could NOT find cryptopp: (Required is at least version "8.9.0") (found )
-- Looking for pthread_mutex_timedlock
-- Looking for pthread_mutex_timedlock - found
-- Looking for _LIBCPP_VERSION
-- Looking for _LIBCPP_VERSION - not found
-- {fmt} version: 11.0.2
-- Build type: Release
-- Performing Test HAS_NULLPTR_WARNING
-- Performing Test HAS_NULLPTR_WARNING - Success
-- The ASM compiler identification is Clang with GNU-like command-line
-- Found assembler: C:/msys64/mingw64/bin/clang.exe
=> Project : cryptopp-cmake v8.9.0
-- Found Git: C:/msys64/usr/bin/git.exe (found version "2.46.0")
-- Crypto++ from user-specified location at: C:/msys64/home/Samuel/shadPS4/externals/cryptopp
-- Using branch HEAD for tests
=> Module : cryptopp
-- [cryptopp] CMake version 3.30.3
-- [cryptopp] System Windows
-- [cryptopp] Processor AMD64
-- [cryptopp] CMAKE_HOST_SYSTEM_PROCESSOR : AMD64
-- [cryptopp]      CMAKE_SYSTEM_PROCESSOR : AMD64
-- [cryptopp] Target architecture detected as: mingw64 -> CRYPTOPP_MINGW64
-- [cryptopp] Performing Test CRYPTOPP_HAVE_SSE2
-- [cryptopp] Performing Test CRYPTOPP_HAVE_SSE2 - Success
-- [cryptopp] Performing Test CRYPTOPP_HAVE_SSE3
-- [cryptopp] Performing Test CRYPTOPP_HAVE_SSE3 - Success
-- [cryptopp] Performing Test CRYPTOPP_HAVE_SSSE3
-- [cryptopp] Performing Test CRYPTOPP_HAVE_SSSE3 - Success
-- [cryptopp] Performing Test CRYPTOPP_HAVE_SSE41
-- [cryptopp] Performing Test CRYPTOPP_HAVE_SSE41 - Success
-- [cryptopp] Performing Test CRYPTOPP_HAVE_SSE42
-- [cryptopp] Performing Test CRYPTOPP_HAVE_SSE42 - Success
-- [cryptopp] Performing Test CRYPTOPP_HAVE_CLMUL
-- [cryptopp] Performing Test CRYPTOPP_HAVE_CLMUL - Success
-- [cryptopp] Performing Test CRYPTOPP_HAVE_AESNI
-- [cryptopp] Performing Test CRYPTOPP_HAVE_AESNI - Success
-- [cryptopp] Performing Test CRYPTOPP_HAVE_AVX
-- [cryptopp] Performing Test CRYPTOPP_HAVE_AVX - Success
-- [cryptopp] Performing Test CRYPTOPP_HAVE_AVX2
-- [cryptopp] Performing Test CRYPTOPP_HAVE_AVX2 - Success
-- [cryptopp] Performing Test CRYPTOPP_HAVE_SHANI
-- [cryptopp] Performing Test CRYPTOPP_HAVE_SHANI - Success
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- [cryptopp] Platform: MinGW-64
-- [cryptopp] Compiler definitions:
-- [cryptopp] Compiler options: -O2 -march=native
-- [cryptopp] Build type: Release
CMake Error at externals/ffmpeg-core/CMakeLists.txt:17 (message):
  Unsupported OS.

-- Configuring incomplete, errors occurred!
LeDragoX commented 2 months ago

ffmpeg can't compile on MSYS2, you'll need to install mingw-w64-x86_64-ffmpeg first:

pacman -S --needed mingw-w64-x86_64-ffmpeg

Then try to build again.

DamnNameTaken commented 2 months ago

Yes that did the trick, Thank You!