M17Client
M17Client copied to clipboard
MacOS Build Issues
I'm working on porting to MacOS...is this a fools errand? I have gotten through the various dependencies (I think). I'm using the default clang
install on Big Sur and I get a fairly clean build of the daemon up until this:
echo "const char *gitversion = \"0a6ab81c506b3e8e223b228d4ecebd03e9cc0b62\";" > GitVersion.h
c++ -g -O3 -Wall -std=c++17 -pthread -I/opt/homebrew/include -DUSE_PULSEAUDIO -c -o codec2/codebooks.o codec2/codebooks.cpp
c++ -g -O3 -Wall -std=c++17 -pthread -I/opt/homebrew/include -DUSE_PULSEAUDIO -c -o codec2/codec2.o codec2/codec2.cpp
c++ -g -O3 -Wall -std=c++17 -pthread -I/opt/homebrew/include -DUSE_PULSEAUDIO -c -o codec2/kiss_fft.o codec2/kiss_fft.cpp
c++ -g -O3 -Wall -std=c++17 -pthread -I/opt/homebrew/include -DUSE_PULSEAUDIO -c -o codec2/lpc.o codec2/lpc.cpp
c++ -g -O3 -Wall -std=c++17 -pthread -I/opt/homebrew/include -DUSE_PULSEAUDIO -c -o codec2/nlp.o codec2/nlp.cpp
c++ -g -O3 -Wall -std=c++17 -pthread -I/opt/homebrew/include -DUSE_PULSEAUDIO -c -o codec2/pack.o codec2/pack.cpp
c++ -g -O3 -Wall -std=c++17 -pthread -I/opt/homebrew/include -DUSE_PULSEAUDIO -c -o codec2/qbase.o codec2/qbase.cpp
c++ -g -O3 -Wall -std=c++17 -pthread -I/opt/homebrew/include -DUSE_PULSEAUDIO -c -o codec2/quantise.o codec2/quantise.cpp
c++ -g -O3 -Wall -std=c++17 -pthread -I/opt/homebrew/include -DUSE_PULSEAUDIO -c -o CodePlug.o CodePlug.cpp
c++ -g -O3 -Wall -std=c++17 -pthread -I/opt/homebrew/include -DUSE_PULSEAUDIO -c -o Conf.o Conf.cpp
c++ -g -O3 -Wall -std=c++17 -pthread -I/opt/homebrew/include -DUSE_PULSEAUDIO -c -o Golay24128.o Golay24128.cpp
c++ -g -O3 -Wall -std=c++17 -pthread -I/opt/homebrew/include -DUSE_PULSEAUDIO -c -o GPIO.o GPIO.cpp
c++ -g -O3 -Wall -std=c++17 -pthread -I/opt/homebrew/include -DUSE_PULSEAUDIO -c -o GPSD.o GPSD.cpp
c++ -g -O3 -Wall -std=c++17 -pthread -I/opt/homebrew/include -DUSE_PULSEAUDIO -c -o HamLib.o HamLib.cpp
c++ -g -O3 -Wall -std=c++17 -pthread -I/opt/homebrew/include -DUSE_PULSEAUDIO -c -o Log.o Log.cpp
c++ -g -O3 -Wall -std=c++17 -pthread -I/opt/homebrew/include -DUSE_PULSEAUDIO -c -o M17Client.o M17Client.cpp
c++ -g -O3 -Wall -std=c++17 -pthread -I/opt/homebrew/include -DUSE_PULSEAUDIO -c -o M17Convolution.o M17Convolution.cpp
c++ -g -O3 -Wall -std=c++17 -pthread -I/opt/homebrew/include -DUSE_PULSEAUDIO -c -o M17CRC.o M17CRC.cpp
c++ -g -O3 -Wall -std=c++17 -pthread -I/opt/homebrew/include -DUSE_PULSEAUDIO -c -o M17LSF.o M17LSF.cpp
c++ -g -O3 -Wall -std=c++17 -pthread -I/opt/homebrew/include -DUSE_PULSEAUDIO -c -o M17RX.o M17RX.cpp
c++ -g -O3 -Wall -std=c++17 -pthread -I/opt/homebrew/include -DUSE_PULSEAUDIO -c -o M17TX.o M17TX.cpp
In file included from M17TX.cpp:14:
./M17TX.h:83:29: warning: private field 'm_sendingGPS' is not used [-Wunused-private-field]
bool m_sendingGPS;
^
1 warning generated.
c++ -g -O3 -Wall -std=c++17 -pthread -I/opt/homebrew/include -DUSE_PULSEAUDIO -c -o M17Utils.o M17Utils.cpp
c++ -g -O3 -Wall -std=c++17 -pthread -I/opt/homebrew/include -DUSE_PULSEAUDIO -c -o Modem.o Modem.cpp
Modem.cpp:2017:11: error: no member named 'setNonblock' in 'IModemPort'
m_port->setNonblock(true);
~~~~~~ ^
1 error generated.
make: *** [Modem.o] Error 1
Any ideas why this might be happening?