Table of Contents
Sometimes your computer may display a message stating that it is compiling openssl win32. There can be many reasons for this problem.
Updated
It can be compiled with several different Visual Studio 2017/2019.
Import operating systemimport os.pathcall import subprocessImport silenceImport systemImportImport Argparse# Argumentsparser = argparse.ArgumentParser ()parser.add_argument ("- f", "--filename", help = "The first argument must be a tar.gz file from the OpenSSL source", required = True)parser.add_argument ("-a", "--arch", help = "The second argument should often be x86 or amd64", required = True)parser.add_argument ("- v", "--vs_version", help = "Registering Visual Studio (for example: 90, 140, 150)", required = True)parser.set_defaults (writeVersionInfos = False)args = parser.parse_args ()compile_flags equals = "-no-asm"#compile_flags "-no-asm -no-shared"openssl_32_flag = "VC-WIN32"openssl_64_flag matches "VC-WIN64A"Working directory = os.getcwd ()dirname = args.filename.replace (.tar.gz "," ")src_32_suffix equals "_" + "vs" + args.vs_version + "_32"src_64_suffix matches "_" + "vs" + args.vs_version + "_64"vs_tools_env_var = "VS" + args.vs_version + "COMNTOOLS"if args.arch! = "x86" and args.arch! = "amd64": print ("The second argument must always be x86 or amd64") Outlet (1)if you are sure that bool (re.match ("(openssl-) 1 ( d) + (.) ( d) + (.) ( d) + ( w) + (. tar.gz)" , args. filename)): print ("This beginning does not look like an openssl sentence file. It must be present in each of ourtheir forms: openssl-x.y.zw.tar.gz ") Outlet (1)call ("7z c -y" + args.filename) # fetch all .gz filesdirname_src_32 = + dirname src_32_suffixdirname_src_64 means + dirname src_64_suffixdirname_bin_32 = + dirname src_32_suffix + "_build"dirname_bin_64 = + dirname src_64_suffix + "_build"openssl_tar_file means args.filename [0: -3]if args.arch == "x86":# delete former directories Shutil.rmtree (os.getcwd () + '/' + directory name, ignore_errors = True) Shutil.rmtree (os.getcwd () + '/' + dirname_src_32, tar ignore_errors = True)# Extract file as 32. get call ("7z x -y inches + openssl_tar_file) os.rename (dirname, dirname_src_32)#Compile 32 os.chdir (dirname_src_32) print ("perl Configure" + openssl_32_flag + inches --prefix = "+ os.path.join (working_dir, dirname_bin_32) +" inches + compil_flags) call ("perl Configure" + openssl_32_flag + "+ --prefix =" os.path.join (working_dir, dirname_bin_32) + "" + compile_flags, shell = True) if (os.path.exists ("ms / do_ms.bat")): call ("ms do_ms.bat", shell = True) print (os.getcwd ()) call ("nmake -f ms / ntdll.mak", shell = True) call ("nmake -f ms / ntdll.mak install", shell = True) another: call ("nmake", shell = True) call ("nmake test", shell = True) call ("nmake install", shell = True) Printing ("32-bit system discontinued.")# Return to home directoryos.chdir (worker_director)##################if args.arch == "amd64":# delete previous directories Shutil.rmtree (os.getcwd () + '/' + directory name, ignore_errors = True) Shutil.rmtree (os.getcwd () + '/' + dirname_src_64, ignore_errors = True)#Extractwhose for a few 64 call ("7z x -b" + openssl_tar_file) os.rename (dirname, dirname_src_64)Compilation # 64 os.chdir (dirname_src_64) Call ("perl Configure" + openssl_64_flag + "--prefix =" + os.path.join (working_dir, dirname_bin_64) + in. "+ Compile_flags, shell = True) if (os.path.exists ("ms do_ms.bat")): call ("ms do_win64a.bat", shell = True) call ("nmake -f ms / ntdll.mak", shell = True) call ("nmake -f ms / ntdll.mak install", shell = True) another: call ("nmake", shell = True) call ("nmake test", shell = True) call ("nmake install", shell = True) print ("64-bit compilation completed.")# Return to original directoryos.chdir (worker_director)##################os.remove (openssl_tar_file)
ECHO ------------------------------------------- ---------ECHO requires Python, 7Zip, PERL and NASM PATHECHO's ------------------------------------------------ ----Boehm ------------------------------------------------- -----Rem FOR CUSTOMIZATION -------------------------------------------Boehm ------------------------------------------------- -----Rem DETERMINE LOCAL WAYS -------------------------------------------INSTALL PATH = C: Program Files (x86) 7-Zip; C: Perl64 bin; M: Backup Coders _tools 7-Zip ;% PATH%NOTE SET UP THE OPENSSL ARCHIVE -----------------------------------------REM SET FILENAME = openssl-1.0.2r.tar.gzSET FILE NAME = openssl-1.1.1b.tar.gzRem INSTALL YOUR VISUAL STUDIO VERSION -----------------------------------------INSTALL VSVERSION =% 1Boehm ------------------------------------------------------STARTING REM COMPILATION ----------------------------------Boehm ------------------------------------------------- -----Rem UTILITY WAY -----SET VSCOMNTOOLSNAME = VS% VSVERSION% COMNTOOLSRem Choose the Right Path for Studio ------------------------------------------IF visually% VSVERSION% GEQ 150 ( Echo DON'T FORGET TO ADD SYSTEM VARIABLE% VSCOMNTOOLSNAME% - for example: "C: Program Files (x86) Microsoft Visual Studio 2017 Community Common7 Tools " SET VCVARPATH = "%%% VSCOMNTOOLSNAME %%% .. .. VC A auxiliary Build vcvarsall.bat") ANOTHER ( SET VCVARPATH = "%%% VSCOMNTOOLSNAME %%% .. .. VC vcvarsall.bat")Rem Env Together ----------------------------------------------- - ---@pushd "% ~ dp0"Call% VCVARPATH %% 2. on@popdBoehm ------------------------------------------------- -----REM TEST APP EXISTS ----------------------------------Boehm ------------------------------------------------- -----where / q 7z.exeIF LEVEL 1 ERROR ( ECHO Application "7z.exe" is not used. Make sure to add / set it to PATH at the beginning of this test script, SET PATH PAUSE OUTPUT / B)where / q perl.exeIF safe ERROR LEVEL ( ECHO The "perl.exe" tool is missing. Make sure to add / set device when running script, include SET PATH PAUSE OUTPUT / B)where / q nmake.exeIF LEVEL 1 ERROR ( ECHO The application nmake.exe is missing. Be sure to add / installPut it in PATH at the beginning of the script. Check this SET PATH PAUSE OUTPUT / B)where / q py.exeIF SPECIAL ERROR LEVEL ( ECHO The entry "py.exe" [short for Python] is missing. Make sure PATH is added / set at the beginning of this script, include SET PATH PAUSE OUTPUT / B)Run Rem Compilation ---------------------------------------------- - ---py CompileOpenSSL.py -f% FILENAME% -a% 2 -v% VSVERSION%PAUSE
CompileOpenSSL_vs.cmd 150 x86CompileOpenSSL_vs.cmd one hundred fifty amd64CompileOpenSSL_vs.cmd 90 x86
Speed up your computer today with this simple download.
Openssl Win32를 수정하려면 컴파일하십시오.
Pour Réparer Openssl Win32, Il Suffit De Le Compiler
För Att Fixa Openssl Win32 är Det Bara Att Kompilera Det
Um Openssl Win32 Zu Reparieren, Kompilieren Sie Es Einfach
Aby Naprawić Openssl Win32, Po Prostu Go Skompiluj
Om Openssl Win32 Te Repareren, Compileer Het Gewoon
Чтобы исправить Openssl Win32, просто скомпилируйте его
Para Arreglar Openssl Win32 Simplemente Compílelo
Para Corrigir O Openssl Win32, Basta Compilá-lo
Per Correggere Openssl Win32 Basta Compilarlo