Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Build #73

Open
zackmark29 opened this issue Apr 29, 2020 · 10 comments
Open

New Build #73

zackmark29 opened this issue Apr 29, 2020 · 10 comments

Comments

@zackmark29
Copy link

Can someone share new build for windows?

@mengmo
Copy link
Contributor

mengmo commented Apr 30, 2020

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
Copy link

C0ldF commented May 13, 2020

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?

@mengmo
Copy link
Contributor

mengmo commented May 13, 2020

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
Copy link

C0ldF commented May 13, 2020

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

@mengmo
Copy link
Contributor

mengmo commented May 13, 2020

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

@electricfist
Copy link

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?

@mengmo
Copy link
Contributor

mengmo commented May 30, 2020

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

@electricfist
Copy link

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

@mengmo
Copy link
Contributor

mengmo commented Jun 6, 2020

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

@WuvorWenda
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants