openssl/openssl

Failed to build on windows arm

Open

#29,014 opened on Oct 28, 2025

View on GitHub
 (3 comments) (0 reactions) (0 assignees)C (11,262 forks)batch import
help wantedtriaged: bug

Repository metrics

Stars
 (30,157 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

Built OpenSSL using the following instructions.

C:\Strawberry\perl\bin\perl.exe Configure VC-WIN64-ARM no-ssl2 no-ssl3 no-autoload-config enable-brotli no-brotli-dynamic --with-brotli-include="path_to_brotli_include" --with-brotli-lib="path_to_brotli_lib"

. Many LNK error has occurred. error LNK2019: unresolved external symbol BrotliDecoderCreateInstance referenced in function brotli_stateful_init. The results of using perl.exe configdata.pm --dump are as follows: Config target attributes:

AR => "lib", 
ARFLAGS => "/nologo", 
CC => "cl", 
CFLAGS => "/W3 /wd4090 /nologo /O2", 
CPP => "\$(CC) /EP /C", 
HASHBANGPERL => "/usr/bin/env perl", 
LD => "link", 
LDFLAGS => "/nologo /debug", 
MT => "mt", 
MTFLAGS => "-nologo", 
RANLIB => "CODE(0x214d9c0)", 
RC => "rc", 
ar_resp_delim => "
", 
aroutflag => "/out:", 
bin_cflags => "/Zi /Fdapp.pdb", 
bin_lflags => "setargv.obj /subsystem:console /opt:ref", bn_ops => "SIXTY_FOUR_BIT RC4_CHAR", 
build_file => "makefile", 
build_scheme => [ "unified", "windows", "VC-common" ], 
cflags => "/Gs0 /GF /Gy /MD", 
coutflag => "/Fo", 
cppflags => "", 
defines => [ "OPENSSL_BUILDING_OPENSSL", "BROTLI", "OPENSSL_SYS_WIN32", "WIN32_LEAN_AND_MEAN", "UNICODE", "_UNICODE", "_CRT_SECURE_NO_DEPRECATE", "_WINSOCK_DEPRECATED_NO_WARNINGS", "_ARM_WINAPI_PARTITION_DESKTOP_SDK_AVAILABLE", "OPENSSL_SYS_WIN_CORE" ], 
disable => [ ], 
dso_cflags => "/Zi /Fddso.pdb",
dso_scheme => "win32",
enable => [ ],
ex_libs => "onecore.lib",
includes => [ "path_to_brotli_include" ],
ld_implib_flag => "/implib:",
ld_resp_delim => ". 

Why are there no brotli-related libraries in ex_libs? This problem can only be encountered when compiling for the arm architecture.

Contributor guide