[GH-ISSUE #3441] [APP BUG]: Visual Studio Build on Windows Fails due to FFMPEG CMake Commit SHA Issue #1054

Closed
opened 2026-02-27 21:09:42 +03:00 by kerem · 1 comment
Owner

Originally created by @afsanta on GitHub (Aug 21, 2025).
Original GitHub issue: https://github.com/shadps4-emu/shadPS4/issues/3441

Checklist

  • I have searched for a similar issue in this repository and did not find one.
  • I am using an official build obtained from releases or updated one of those builds using its in-app updater.

Describe the Bug

When attempting to compile for Windows using Visual Studio 2022 Community, shadPS4's cmake generation fails with the out of the box CMakeLists.txt file. The snippet in question is here:

execute_process(
COMMAND git rev-parse --short HEAD
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
OUTPUT_VARIABLE FFMPEG_GIT_SHA
OUTPUT_STRIP_TRAILING_WHITESPACE)

In ffmpeg-core's cmake generation, it is unable to persist the hash value of the submodule HEAD commit, which causes overall build failures.

Reproduction Steps

Follow the Windows Build Instructions, and upon trying to generate bulid files, you will see this error message:

1> [CMake] -- Downloading FFMPEG prebuilts...
1> [CMake] CMake Error at externals/ffmpeg-core/CMakeLists.txt:53 (message):
1> [CMake] No FFMPEG prebuilt found with corresponding commit SHA ()

Expected Behavior

Clang build files are successfully generated and the specified shadPS4 executable can be build.

Specify OS Version

Windows 11

CPU

AMD Ryzen 7 5700X3D

GPU

NVIDIA RTX 3080

Amount of RAM in GB

64

Originally created by @afsanta on GitHub (Aug 21, 2025). Original GitHub issue: https://github.com/shadps4-emu/shadPS4/issues/3441 ### Checklist - [x] I have searched for a similar issue in this repository and did not find one. - [x] I am using an official build obtained from [releases](https://github.com/shadps4-emu/shadPS4/releases) or updated one of those builds using its in-app updater. ### Describe the Bug When attempting to compile for Windows using Visual Studio 2022 Community, shadPS4's cmake generation fails with the out of the box CMakeLists.txt file. The snippet in question is [`here`](https://github.com/shadps4-emu/ext-ffmpeg-core/blob/b0de1dcca26c0ebfb8011b8e59dd17fc399db0ff/CMakeLists.txt#L36): `execute_process(` ` COMMAND git rev-parse --short HEAD` ` WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}` ` OUTPUT_VARIABLE FFMPEG_GIT_SHA` ` OUTPUT_STRIP_TRAILING_WHITESPACE)` In `ffmpeg-core`'s cmake generation, it is unable to persist the hash value of the submodule HEAD commit, which causes overall build failures. ### Reproduction Steps Follow the [Windows Build Instructions](https://github.com/shadps4-emu/shadPS4/blob/main/documents/building-windows.md), and upon trying to generate bulid files, you will see this error message: `1> [CMake] -- Downloading FFMPEG prebuilts...` `1> [CMake] CMake Error at externals/ffmpeg-core/CMakeLists.txt:53 (message):` `1> [CMake] No FFMPEG prebuilt found with corresponding commit SHA ()` ### Expected Behavior Clang build files are successfully generated and the specified shadPS4 executable can be build. ### Specify OS Version Windows 11 ### CPU AMD Ryzen 7 5700X3D ### GPU NVIDIA RTX 3080 ### Amount of RAM in GB 64
kerem closed this issue 2026-02-27 21:09:42 +03:00
Author
Owner

@afsanta commented on GitHub (Aug 22, 2025):

Turns out the issue was with my environment. Nothing to see here folks.

<!-- gh-comment-id:3215491994 --> @afsanta commented on GitHub (Aug 22, 2025): Turns out the issue was with my environment. Nothing to see here folks.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/shadPS4#1054
No description provided.