selsta/hlsdl

New Build

zackmark29 opened this issue · 10 comments

Can someone share new build for windows?

Please make sure you are using the latest hlsdl source code
Please DO NOT change any file of hlsdl except which in description below
Please DO NOT put any other file into hlsdl source directory until you successfully build hlsdl
Please DO NOT do any wise tricks unless you really know what you will do
Please EXACTLY follow these steps

A quick build guide for MINGW64 of MSYS2

install build dependency
pacman -S mingw-w64-x86_64-gcc mingw-w64-x86_64-make mingw-w64-x86_64-curl

download curl-x.xx.x-win64-mingw.zip from https://curl.haxx.se/windows/ into hlsdl source directory
unzip -j curl-x.xx.x-win64-mingw.zip "curl-x.xx.x-win64-mingw/lib/libcurl.a" -d ./lib

modify

hlsdl/makefile

Line 30 in 06e24ac

LDFLAGS+=-Wl,-Bstatic -lpthread -lcurl -lnghttp2 -lssh2 -lbrotlidec-static -lbrotlicommon-static -lssl -lcrypto -lcrypt32 -lwsock32 -lws2_32 -lwldap32 -lz
as
LDFLAGS+=-L./lib -Wl,-Bstatic,-s -lpthread -lcurl -lnghttp2 -lssh2 -lbrotlidec-static -lbrotlicommon-static -lssl -lcrypto -lcrypt32 -lwsock32 -lws2_32 -lwldap32 -lz

build
mingw32-make

C0ldF commented

a quick build guide for msys2/mingw64

install build dependency
pacman -S mingw-w64-x86_64-gcc mingw-w64-x86_64-make mingw-w64-x86_64-curl

download curl-x.xx.x-win64-mingw.zip from https://curl.haxx.se/windows/ into hlsdl source directory
unzip -j curl-x.xx.x-win64-mingw.zip "curl-x.xx.x-win64-mingw/lib/libcurl.a" -d ./lib

modify

hlsdl/makefile

Line 30 in 06e24ac

LDFLAGS+=-Wl,-Bstatic -lpthread -lcurl -lnghttp2 -lssh2 -lbrotlidec-static -lbrotlicommon-static -lssl -lcrypto -lcrypt32 -lwsock32 -lws2_32 -lwldap32 -lz

as
LDFLAGS+=-L./lib -Wl,-Bstatic,-s -lpthread -lcurl -lnghttp2 -lssh2 -lbrotlidec-static -lbrotlicommon-static -lssl -lcrypto -lcrypt32 -lwsock32 -lws2_32 -lwldap32 -lz

build
mingw32-make

Hi, can you help, i made all steps, but when i try use mingw32-make, show: command not found.

can you help?

a quick build guide for msys2/mingw64

install build dependency
pacman -S mingw-w64-x86_64-gcc mingw-w64-x86_64-make mingw-w64-x86_64-curl

download curl-x.xx.x-win64-mingw.zip from https://curl.haxx.se/windows/ into hlsdl source directory
unzip -j curl-x.xx.x-win64-mingw.zip "curl-x.xx.x-win64-mingw/lib/libcurl.a" -d ./lib

modify

hlsdl/makefile

Line 30 in 06e24ac

LDFLAGS+=-Wl,-Bstatic -lpthread -lcurl -lnghttp2 -lssh2 -lbrotlidec-static -lbrotlicommon-static -lssl -lcrypto -lcrypt32 -lwsock32 -lws2_32 -lwldap32 -lz

as
LDFLAGS+=-L./lib -Wl,-Bstatic,-s -lpthread -lcurl -lnghttp2 -lssh2 -lbrotlidec-static -lbrotlicommon-static -lssl -lcrypto -lcrypt32 -lwsock32 -lws2_32 -lwldap32 -lz

build
mingw32-make

Hi, can you help, i made all steps, but when i try use mingw32-make, show: command not found.

can you help?

did you mingw32-make in MINGW64

C0ldF commented

a quick build guide for msys2/mingw64
install build dependency
pacman -S mingw-w64-x86_64-gcc mingw-w64-x86_64-make mingw-w64-x86_64-curl
download curl-x.xx.x-win64-mingw.zip from https://curl.haxx.se/windows/ into hlsdl source directory
unzip -j curl-x.xx.x-win64-mingw.zip "curl-x.xx.x-win64-mingw/lib/libcurl.a" -d ./lib
modify

hlsdl/makefile

Line 30 in 06e24ac

LDFLAGS+=-Wl,-Bstatic -lpthread -lcurl -lnghttp2 -lssh2 -lbrotlidec-static -lbrotlicommon-static -lssl -lcrypto -lcrypt32 -lwsock32 -lws2_32 -lwldap32 -lz

as
LDFLAGS+=-L./lib -Wl,-Bstatic,-s -lpthread -lcurl -lnghttp2 -lssh2 -lbrotlidec-static -lbrotlicommon-static -lssl -lcrypto -lcrypt32 -lwsock32 -lws2_32 -lwldap32 -lz
build
mingw32-make

Hi, can you help, i made all steps, but when i try use mingw32-make, show: command not found.
can you help?

did you mingw32-make in MINGW64

Hi, Can you tell me where I'm going wrong? https://i.imgur.com/QogRE9m.png

** yes, i did the first step "pacman -S mingw-w64-x86_64-gcc mingw-w64-x86_64-make mingw-w64-x86_64-curl" **

EDIT: I did the process in a version prior to the last "verified" update and it worked, thanks. This is the version: https://i.imgur.com/ttw34VE.png

a quick build guide for msys2/mingw64
install build dependency
pacman -S mingw-w64-x86_64-gcc mingw-w64-x86_64-make mingw-w64-x86_64-curl
download curl-x.xx.x-win64-mingw.zip from https://curl.haxx.se/windows/ into hlsdl source directory
unzip -j curl-x.xx.x-win64-mingw.zip "curl-x.xx.x-win64-mingw/lib/libcurl.a" -d ./lib
modify

hlsdl/makefile

Line 30 in 06e24ac

LDFLAGS+=-Wl,-Bstatic -lpthread -lcurl -lnghttp2 -lssh2 -lbrotlidec-static -lbrotlicommon-static -lssl -lcrypto -lcrypt32 -lwsock32 -lws2_32 -lwldap32 -lz

as
LDFLAGS+=-L./lib -Wl,-Bstatic,-s -lpthread -lcurl -lnghttp2 -lssh2 -lbrotlidec-static -lbrotlicommon-static -lssl -lcrypto -lcrypt32 -lwsock32 -lws2_32 -lwldap32 -lz
build
mingw32-make

Hi, can you help, i made all steps, but when i try use mingw32-make, show: command not found.
can you help?

did you mingw32-make in MINGW64

Hi, Can you tell me where I'm going wrong? https://i.imgur.com/QogRE9m.png

** yes, i did the first step "pacman -S mingw-w64-x86_64-gcc mingw-w64-x86_64-make mingw-w64-x86_64-curl" **

EDIT: I did the process in a version prior to the last "verified" update and it worked, thanks. This is the version: https://i.imgur.com/ttw34VE.png

the latest codes in master branch work fine for me

a quick build guide for msys2/mingw64

install build dependency
pacman -S mingw-w64-x86_64-gcc mingw-w64-x86_64-make mingw-w64-x86_64-curl

download curl-x.xx.x-win64-mingw.zip from https://curl.haxx.se/windows/ into hlsdl source directory
unzip -j curl-x.xx.x-win64-mingw.zip "curl-x.xx.x-win64-mingw/lib/libcurl.a" -d ./lib

modify

hlsdl/makefile

Line 30 in 06e24ac

LDFLAGS+=-Wl,-Bstatic -lpthread -lcurl -lnghttp2 -lssh2 -lbrotlidec-static -lbrotlicommon-static -lssl -lcrypto -lcrypt32 -lwsock32 -lws2_32 -lwldap32 -lz

as
LDFLAGS+=-L./lib -Wl,-Bstatic,-s -lpthread -lcurl -lnghttp2 -lssh2 -lbrotlidec-static -lbrotlicommon-static -lssl -lcrypto -lcrypt32 -lwsock32 -lws2_32 -lwldap32 -lz
build
mingw32-make

I'm following your steps and when I get to mingw32-make I get this error https://imgur.com/XyrjB1j
Any idea what the cause is?

a quick build guide for msys2/mingw64

install build dependency
pacman -S mingw-w64-x86_64-gcc mingw-w64-x86_64-make mingw-w64-x86_64-curl

download curl-x.xx.x-win64-mingw.zip from https://curl.haxx.se/windows/ into hlsdl source directory
unzip -j curl-x.xx.x-win64-mingw.zip "curl-x.xx.x-win64-mingw/lib/libcurl.a" -d ./lib

modify

hlsdl/makefile

Line 30 in 06e24ac

LDFLAGS+=-Wl,-Bstatic -lpthread -lcurl -lnghttp2 -lssh2 -lbrotlidec-static -lbrotlicommon-static -lssl -lcrypto -lcrypt32 -lwsock32 -lws2_32 -lwldap32 -lz

as
LDFLAGS+=-L./lib -Wl,-Bstatic,-s -lpthread -lcurl -lnghttp2 -lssh2 -lbrotlidec-static -lbrotlicommon-static -lssl -lcrypto -lcrypt32 -lwsock32 -lws2_32 -lwldap32 -lz
build
mingw32-make

I'm following your steps and when I get to mingw32-make I get this error https://imgur.com/XyrjB1j
Any idea what the cause is?

Please ls /mingw64/bin/cc.exe check if /mingw64/bin/cc.exe exists
If /mingw64/bin/cc.exe does not exist, install/reinstall mingw-w64-x86_64-gcc
If /mingw64/bin/cc.exe exists, close and reopen MINGW64 may help

a quick build guide for msys2/mingw64
install build dependency
pacman -S mingw-w64-x86_64-gcc mingw-w64-x86_64-make mingw-w64-x86_64-curl
download curl-x.xx.x-win64-mingw.zip from https://curl.haxx.se/windows/ into hlsdl source directory
unzip -j curl-x.xx.x-win64-mingw.zip "curl-x.xx.x-win64-mingw/lib/libcurl.a" -d ./lib
modify

hlsdl/makefile

Line 30 in 06e24ac

LDFLAGS+=-Wl,-Bstatic -lpthread -lcurl -lnghttp2 -lssh2 -lbrotlidec-static -lbrotlicommon-static -lssl -lcrypto -lcrypt32 -lwsock32 -lws2_32 -lwldap32 -lz

as
LDFLAGS+=-L./lib -Wl,-Bstatic,-s -lpthread -lcurl -lnghttp2 -lssh2 -lbrotlidec-static -lbrotlicommon-static -lssl -lcrypto -lcrypt32 -lwsock32 -lws2_32 -lwldap32 -lz
build
mingw32-make

I'm following your steps and when I get to mingw32-make I get this error https://imgur.com/XyrjB1j
Any idea what the cause is?

Please ls /mingw64/bin/cc.exe check if /mingw64/bin/cc.exe exists
If /mingw64/bin/cc.exe does not exist, install/reinstall mingw-w64-x86_64-gcc
If /mingw64/bin/cc.exe exists, close and reopen MINGW64 may help

Thanks, I was able to get mingw32-make to run but now I'm facing another error https://imgur.com/aFO7hWg.
Sorry, kind of new to the whole thing

a quick build guide for msys2/mingw64
install build dependency
pacman -S mingw-w64-x86_64-gcc mingw-w64-x86_64-make mingw-w64-x86_64-curl
download curl-x.xx.x-win64-mingw.zip from https://curl.haxx.se/windows/ into hlsdl source directory
unzip -j curl-x.xx.x-win64-mingw.zip "curl-x.xx.x-win64-mingw/lib/libcurl.a" -d ./lib
modify

hlsdl/makefile

Line 30 in 06e24ac

LDFLAGS+=-Wl,-Bstatic -lpthread -lcurl -lnghttp2 -lssh2 -lbrotlidec-static -lbrotlicommon-static -lssl -lcrypto -lcrypt32 -lwsock32 -lws2_32 -lwldap32 -lz

as
LDFLAGS+=-L./lib -Wl,-Bstatic,-s -lpthread -lcurl -lnghttp2 -lssh2 -lbrotlidec-static -lbrotlicommon-static -lssl -lcrypto -lcrypt32 -lwsock32 -lws2_32 -lwldap32 -lz
build
mingw32-make

I'm following your steps and when I get to mingw32-make I get this error https://imgur.com/XyrjB1j
Any idea what the cause is?

Please ls /mingw64/bin/cc.exe check if /mingw64/bin/cc.exe exists
If /mingw64/bin/cc.exe does not exist, install/reinstall mingw-w64-x86_64-gcc
If /mingw64/bin/cc.exe exists, close and reopen MINGW64 may help

Thanks, I was able to get mingw32-make to run but now I'm facing another error https://imgur.com/aFO7hWg.
Sorry, kind of new to the whole thing

please gcc -v, if your gcc version is 10.1.0

http://repo.msys2.org/mingw/x86_64/mingw-w64-x86_64-gcc-9.3.0-2-any.pkg.tar.xz
http://repo.msys2.org/mingw/x86_64/mingw-w64-x86_64-gcc-libs-9.3.0-2-any.pkg.tar.xz
download the two files above

pacman -U mingw-w64-x86_64-gcc-9.3.0-2-any.pkg.tar.xz mingw-w64-x86_64-gcc-libs-9.3.0-2-any.pkg.tar.xz
mingw32-make clean && mingw32-make

I use a simple bat file to complile DLL's are in Z:/bin
@del *.o
@gcc -Wall -Wno-unused-function -c aes.c -fPIE -pie
@gcc -Wall -Wno-unused-function -c aes_openssl.c -fPIE -pie
@gcc -Wall -Wno-unused-function -c curl.c -fPIE -pie
@gcc -Wall -Wno-unused-function -c getopt.c -fPIE -pie
@gcc -Wall -Wno-unused-function -c hls.c -fPIE -pie
@gcc -Wall -Wno-unused-function -c main.c -fPIE -pie
@gcc -Wall -Wno-unused-function -c memmem.c -fPIE -pie
@gcc -Wall -Wno-unused-function -c mpegts.c -fPIE -pie
@gcc -Wall -Wno-unused-function -c misc.c -fPIE -pie
@gcc -Wall -Wno-unused-function -c msg.c -fPIE -pie
gcc -Wall -Wno-unused-function -O4 aes.o aes_openssl.o curl.o getopt.o hls.o main.o memmem.o misc.o mpegts.o msg.o -ohlsdl64 -LZ:/bin -lcrypto.dll -lcurl.dll -static -L. -s -fPIE -pie -Wl,--dynamicbase -Wl,-emainCRTStartup