This repository has been archived by the owner on May 31, 2019. It is now read-only.
forked from selsta/hlsdl
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathBUID_WINDOWS.txt
executable file
·75 lines (45 loc) · 2.07 KB
/
BUID_WINDOWS.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
######################################################################
# Install utilities
######################################################################
git:
https://git-scm.com/download/win
Visual Studio 2017
https://visualstudio.microsoft.com/pl/downloads/
community
C++
cmake:
https://cmake.org/download/
cmake-3.13.0-rc2-win64-x64.msi
######################################################################
# Download & Build
######################################################################
# clonse hlsdl
git clone https://github.com/samsamsam-iptvplayer/hlsdl.git
# Download OpenSSL MSCVC
https://www.npcglib.org/~stathis/blog/precompiled-openssl/
# Download pthreads
https://sourceware.org/pthreads-win32/
ftp://sourceware.org/pub/pthreads-win32/pthreads-w32-2-9-1-release.zip
# Build pthreads
cd pthreads-w32-2-9-1-release\pthreads.2
"c:\Program Files (x86)\Microsoft Visual Studio\2017\Community\\vc\Auxiliary\Build\vcvarsall.bat" x64
set cl=/D_TIMESPEC_DEFINED
nmake clean VC-static
copy pthreadVC2.lib ..\Pre-built.2\lib\x64\pthreadVC2MT.lib
nmake clean VC-static-debug
copy pthreadVC2.lib ..\Pre-built.2\lib\x64\pthreadVC2MTd.lib
# clone curl
https://medium.com/@chuy.max/compile-libcurl-on-windows-with-visual-studio-2017-x64-and-ssl-winssl-cff41ac7971d
git clone https://github.com/curl/curl.git
cd curl
git checkout tags/curl-7_62_0
# build curl
buildconf.bat
"c:\Program Files (x86)\Microsoft Visual Studio\2017\Community\\vc\Auxiliary\Build\vcvarsall.bat" x64
copy ..\hlsdl\vs2017\curl\MakefileBuild.vc winbuild\MakefileBuild.vc
cd winbuild
nmake /f Makefile.vc mode=dll WITH_SSL=dll SSL_PATH=../../openssl-1.1.0f-vs2017 DEBUG=yes MACHINE=x64
nmake /f Makefile.vc mode=dll WITH_SSL=dll SSL_PATH=../../openssl-1.1.0f-vs2017 DEBUG=no MACHINE=x64
nmake /f Makefile.vc mode=static WITH_SSL=static SSL_PATH=../../openssl-1.1.0f-vs2017 DEBUG=no MACHINE=x64
..\builds\libcurl-vc-x64-release-dll-ipv6-sspi-winssl\bin\curl.exe --version
# Open project solution hlsdl.sln