awslabs / amazon-kinesis-video-streams-webrtc-sdk-c

Amazon Kinesis Video Streams Webrtc SDK is for developers to install and customize realtime communication between devices and enable secure streaming of video, audio to Kinesis Video Streams.
https://awslabs.github.io/amazon-kinesis-video-streams-webrtc-sdk-c/group__PublicMemberFunctions.html
Apache License 2.0
1.01k stars 304 forks source link

[Bug]: Windows build fails at openssl #2005

Closed Wosler-Menna closed 2 months ago

Wosler-Menna commented 2 months ago

Please confirm you have already done the following

Please answer the following prompt

Describe the bug

When I try to run the build_windows_openssl.bat script, it fails at 11% during the update step for 'project_libopenssl'. I followed the steps in configuring for windows.

Expected Behavior

Expected to build the sdk without issues

Current Behavior

The build process fails with the following error:


[ 11%] Performing update step for 'project_libopenssl'
CMake Error at C:/code/amazon-kinesis-video-streams-webrtc-sdk-c/open-source/libopenssl/build/tmp/project_libopenssl-gitupdate.cmake:25 (message):
  Failed to get the hash for HEAD:

  fatal: not a git repository: '.git'

NMAKE : fatal error U1077: 'echo >nul && "C:\Program Files\CMake\bin\cmake.exe" -P C:/code/amazon-kinesis-video-streams-webrtc-sdk-c/open-source/libopenssl/build/tmp/project_libopenssl-gitupdate.cmake' : return code '0x1'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.40.33807\bin\HostX86\x64\nmake.exe" -s -f CMakeFiles\project_libopenssl.dir\build.make /nologo -SL CMakeFiles\project_libopenssl.dir\build' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.40.33807\bin\HostX86\x64\nmake.exe" -s -f CMakeFiles\Makefile2 /nologo -LS all' : return code '0x2'
Stop.
CMake Error at CMake/Utilities.cmake:75 (message):
  CMake step for libopenssl failed: 2
Call Stack (most recent call first):
  CMakeLists.txt:157 (build_dependency 

Reproduction Steps

  1. Follow windows configuration steps in the readme
  2. Run .github\build_windows_openssl.bat

WebRTC C SDK version being used

master branch, release 1.10 windows

If it was working in a previous version, which one?

No response

Compiler and Version used

Visual studio 2022

Operating System and version

Windows 10

Platform being used

-

niyatim23 commented 2 months ago

We have a successful openssl build in our CI here. Please closely follow all the steps here and see if that helps.