Edward-Wu / srt-live-server

srt live server for low latency
Other
644 stars 192 forks source link

Compiling issues installing on Mac #112

Open ebirder opened 2 years ago

ebirder commented 2 years ago

I'm trying to install on my Mac but having repeated errors compiling. I'm on OSX 12.1 (21C52), and I installed SRT using homebrew before trying to install here.

The first compiling error I get when I "sudo make" is:

c++ -c -g -w -fcompare-debug-second  slscore/SLSLog.cpp -o obj/SLSLog.o 
clang: error: unknown argument: '-fcompare-debug-second'
make: *** [obj/SLSLog.o] Error 1

I then went into the makefile to remove '-fcompare-debug-second' to see if that was nonessential somehow, and then when I try sudo make again I get

c++ -c -g -w slscore/SLSLog.cpp -o obj/SLSLog.o 
c++ -c -g -w slscore/common.cpp -o obj/common.o 
c++ -c -g -w slscore/conf.cpp -o obj/conf.o 
c++ -c -g -w slscore/SLSThread.cpp -o obj/SLSThread.o 
c++ -c -g -w slscore/SLSEpollThread.cpp -o obj/SLSEpollThread.o 
In file included from slscore/SLSEpollThread.cpp:30:
slscore/SLSEpollThread.hpp:29:10: fatal error: 'srt/srt.h' file not found
#include <srt/srt.h>
         ^~~~~~~~~~~
1 error generated.
make: *** [obj/SLSEpollThread.o] Error 1

Any help much appreciated!