Build + Use OpenSSL with Visual Studio 2019 or 2017 | Static & Shared | x32 & x64

Build + Use OpenSSL with Visual Studio 2019 or 2017 | Static & Shared | x32 & x64

TroubleChute

4 года назад

57,615 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Ben Allen
Ben Allen - 10.08.2023 02:18

Immediately after doing this vscode (and VS) forgot how std::namespace worked. So, if std::cout is throwing you errors too for no reason.
Go to File->Preferences->Settings and Search "Intellisense". There should be a config dropdown for "Engine" - Select Tag Parser.

Yes it will look less cool, but if basic errors are showing in your projects then you may wish to consider downgrading as this downgrade does not throw false positive errors.
Wow, these downloads took a while huh? I spent the entire day just downloading libraries 😭

Ответить
Zintom v1
Zintom v1 - 22.07.2023 20:40

For those wondering, if you want to use the shared version (.DLL), just add the .DLL files to your project directory, right click them and change their "Item Type" to "Copy File", which will ensure the two required .DLL files are copied to your output directory with your .EXE

Ответить
Zintom v1
Zintom v1 - 22.07.2023 18:04

Thanks so much for this. I do wonder why on earth they don't distribute the binaries independently??

Ответить
duo duoo
duo duoo - 19.05.2023 12:43

what happen if i skip cleaning before building for another arch(x32)?

Ответить
Unknown
Unknown - 18.05.2023 13:03

Very helpful, thank you

Ответить
Anil Singh
Anil Singh - 05.05.2023 16:55

Extremely helpful...How to use shared openssl binaries ? Any example of it ?

Ответить
Алан Ибрагимов
Алан Ибрагимов - 17.04.2023 13:14

Thank you!

Ответить
AlberTesla
AlberTesla - 25.01.2023 16:55

Thanks for the help, I wasted hours trying to find the solution. Although I found the solution online, but This was better than that.

Ответить
Mezo ozeM
Mezo ozeM - 02.01.2023 21:57

if you face the issue "Can't open perl script "Configure": No such file or directory" just go to the directory where perl is and put in the full location of the Configure command such as "perl F:\Programs\openssl-master\Configure VC-WIN64A --prefix=F:\Programs\openssl-out\out\DLL\Release\x64 --openssldir=F:\Programs\openssl-out\out\SSL" (this is based on my directories check your will be different)

also, you might face an error still if you do make sure to run the CMD as Administrator.

Ответить
Andrew Crawford
Andrew Crawford - 02.01.2023 03:59

Thank you so much for making this video!

Ответить
unhandledException
unhandledException - 28.11.2022 12:48

great explanation. thank you very much

Ответить
SatanIsTheLord
SatanIsTheLord - 28.10.2022 12:48

m$crap is pathetic

Ответить
0xFF
0xFF - 07.09.2022 19:19

When i compile i get this error for function i try to call:
MD5: Since OpenSSL 3.0
SHA256_Init: Since OpenSSL 3.0
Ecc... someone can help ?

Ответить
Whatever yh
Whatever yh - 28.08.2022 12:27

For anyone doing this now, you should now that cpan -i Text::Template has been changed to just cpan Text::Template.

Why do they have to change stuff like this?

Ответить
Gisbert 12843
Gisbert 12843 - 31.07.2022 13:08

I got a question if i may.. how do i update these compiled libraries once im done? do i have to run the bat everytime the master branch gets an update?

Ответить
Gisbert 12843
Gisbert 12843 - 31.07.2022 03:10

how in the living fuck did you figure all that out.. ive been through hundrets of sites and stackoverflow questions regarding that topic for the last 3 days..

Ответить
yu pence
yu pence - 21.07.2022 13:56

nice job

Ответить
Conor C
Conor C - 06.07.2022 06:08

Thanks so much!

Ответить
Nestor
Nestor - 13.02.2022 23:08

you sound like "I did a thing" who went through puberty a couple of extra times.


Great video though

Ответить
Slawomir Piernikowski
Slawomir Piernikowski - 13.02.2022 01:57

* Installing runtime libraries
Cannot create directory C:/Program Files/OpenSSL: Permission denied
NMAKE : fatal error U1077: „C:\berrybrew\5.32.1_64\perl\bin\perl.exe”: kod powrotu „0x2” When : perl5.32.1 Configure VC-WIN64A --debug --prefix-C:\out\DLL\x64\Debug --openssldir=C:\out\SSL

Ответить
Fabricio Franco
Fabricio Franco - 17.09.2021 13:30

One question: I have maked all commands, but in my case i'm not getting right results. So, including the correct directories, doesn't need the openssl folder in the root folder of project?

Ответить
The Rawi
The Rawi - 13.07.2021 06:58

I found out that there is an issue with the embedded paths inside the static libraries themselves.
They embed the selected source and the destination building paths inside the libraries. How can i remove these paths?

Ответить
Mạnh Dũng Nguyễn
Mạnh Dũng Nguyễn - 07.06.2021 11:34

thank u for your helpful video

Ответить
oblivioncth
oblivioncth - 16.05.2021 00:22

For people watching in 2021, you probably want to get one of their tarballs for 1.1.1 because at this time the GitHub repo is hosting the version 3 alpha that is not intended for production.

Ответить
MAsLO ARTIST
MAsLO ARTIST - 12.05.2021 08:55

Я просто не понимаю некоторых разработчиков опен сурс библиотек с их подходом к компилингу библиотек на хостовой машине. Серьёзно, чтобы создать одну бляцкую библиотечку для sha256 нужно чуть ли не пентагон ломать, почему нельзя сделать хедеры как в boost и не ебать мозг всем своей компиляцией из-за каких-то двух с половиной плат, которыми пользуется такое же количество людей, на которые даже этого пёрла с насмом нету. И я даже не говорю что за тихий ужас внутри этих либ творится, на дворе 2021 а в файлах тусовка хипарей из дефайнов, екстернов сишного языка и зависимостей, архитектуре которой позавидуют лучшие спагетти прямиком из Италии, ну так хули давайте уже сразу на машинном коде писать чтобы наверняка каждая микроволновка умела шифровать свой трафик

Ответить
Saman Samani
Saman Samani - 08.05.2021 22:19

thank you, you saved me

Ответить
EverGreen
EverGreen - 28.04.2021 14:37

This command "cpan -i Test::More" is very important?. Because i get error on this

">(error): Could not expand [Text::More]. Check the module name."
">(error): Skipping Text::More because I couldn't find a matching namespace."

Ответить
Абылай Суев
Абылай Суев - 12.04.2021 17:49

only this video could help me! Thank you bro

Ответить
Ксения Калита
Ксения Калита - 22.02.2021 22:47

Thank you! It works for me and Visual Studio 2019 though i did it (building libraries with nasm and perl) for the first time. I waste a lot of time because i haven't watched the video till the end before doing it:)
TIPS:
* watch the whole video first (or just timestamps).
* DON'T write command by command (in Native tools, creating libraries) if you don't have enough time. You can create a .bat with all this commands and run it (just go next, to timestamps "Automating" in the video).
* For me it took about 3 hours for x64 version and the same for x32.

BTW, why didn't we use SHARED ?

Ответить
kaba4ok
kaba4ok - 21.02.2021 18:29

error SHA256_Init': Since OpenSSL 3.0

Ответить
FakeNoodles
FakeNoodles - 14.01.2021 04:21

my openssl crashes when running nmake test, any clue on what might be happening?

Ответить
Steve Stallman
Steve Stallman - 12.01.2021 13:34

tnx, the voice is annoying :D

Ответить
Steve Stallman
Steve Stallman - 11.01.2021 12:46

Hello, thanks for the video. I want to use ASN1 how could it be possible? I have a string that I want to decode it via ASN1 module.

Ответить
Veln
Veln - 17.12.2020 18:15

I'm getting the error

'SHA256_Init': Since OpenSSL 3.0

What did I do wrong?

Ответить
Kunal Aarya
Kunal Aarya - 07.11.2020 20:03

You helped me a lot, I was stuck in my project, But your video helped me to update openssl to 1.1.1h, thanks.

Ответить
FreeDom Sy
FreeDom Sy - 12.10.2020 17:46

Extremely helpful just like always <3

Ответить
JMRC
JMRC - 06.10.2020 12:08

Thanks again!

Ответить
AldiTasche Plastick
AldiTasche Plastick - 02.10.2020 16:06

Did anyone tried a Client Tls Psk Connection?

Ответить
Timahy Dagon
Timahy Dagon - 29.09.2020 05:59

When I run nmake test, the terminal hangs on 70-test_sslmessages.t. Does anyone have any advice/know how to fix this? I've gotten the most recent version of perl and nasm as well

Ответить
Gabriel Dias
Gabriel Dias - 21.09.2020 01:06

extremely helpful, you're my hero lol

Ответить
Trym Oterholm
Trym Oterholm - 11.09.2020 23:01

This was really amazing. Thank you so much for the trouble of doing this!

Ответить
Ненадо МеняЗнать
Ненадо МеняЗнать - 11.09.2020 14:34

Спасибо большое! Все получилось!

Ответить
Arda Aras
Arda Aras - 10.09.2020 10:35

Thank you very much dear friend, works perfect

Ответить
Lisa Bradshaw
Lisa Bradshaw - 27.08.2020 23:48

when I run "perl --version", I get: "This is perl, v5.10.1 (*) built for i686-cygwin-thread-multi-64int"
This then errors out when I run the "perl Configure VC-WIN64A" command I get the following: "This perl implementation doesn't produce Windows like paths"
How can I force the perl install to work with win32? I noticed yours says "built for MSWIN32-x64...."

Ответить
a1997zz
a1997zz - 19.08.2020 07:16

Only through a batch file everything is compiled for me. Win7.

Ответить