Skip to content

Tons of repeated OpenSSL-related errors when building #1641

Description

@Destroy666x

Operating System Info

Windows 10

Other OS

No response

OBS Studio Version

32.1.2

Advanced Scene Switcher Version

master

Plugin settings

No response

OBS Studio Log URL

No response

OBS Studio Crash Log URL

No response

Expected Behavior

The build should go through.

Current Behavior

There are lots of errors such as:

D:\Dev\Repositories\git\OBS-AdvancedSceneSwitcher\deps\cpp-httplib\httplib.h(8700,21): warning C4996: 'X509_NAME_get_text_by_NID': Since OpenSSL 4.0 [D:\Dev\Repositories\git\
OBS-AdvancedSceneSwitcher\build_x64\plugins\http\advanced-scene-switcher-http.vcxproj]
D:\Dev\Repositories\git\OBS-AdvancedSceneSwitcher\deps\cpp-httplib\httplib.h(8700,21): error C2220: następujące ostrzeżenie jest traktowane jako błąd [D:\Dev\Repositories\git
\OBS-AdvancedSceneSwitcher\build_x64\plugins\http\advanced-scene-switcher-http.vcxproj]
D:\Dev\Repositories\git\OBS-AdvancedSceneSwitcher\deps\asio\asio\include\asio\ssl\impl\rfc2818_verification.ipp(65,11): error C2027: wykorzystanie niezdefiniowanego przez uży
tkownika typu "asn1_string_st" [D:\Dev\Repositories\git\OBS-AdvancedSceneSwitcher\build_x64\plugins\twitch\advanced-scene-switcher-twitch.vcxproj]

when attempting to build with OpenSSL 4.0.1 installed on Windows 10, which I guess is chosen with include(cmake/windows/wingetssl.cmake).

Steps to Reproduce

  1. Install OpenSSL 4 in Windows
  2. Run .github/scripts/Build-Windows.ps1

Anything else we should know?

Adding add_definitions(-DOPENSSL_API_COMPAT=10101) to AdvSS CMakeLists.txt gets rid of first 2 errors, but the 3rd is still there and a very common occurence. Not sure if that's any sort of a solution even if it fixed all 3. Is there any better workaround?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions