Monday, January 04, 2021

Apple Silicon Fldigi but no sound yet

The x86 version of Fldigi for macOS doesn't run on an Apple Silicon Mac. It's the first thing I've run in to that didn't work in emulation. Prompted by a tweet from @xssfox, who had done a native build but run into sound problems, I have also been able to build. 


Looks good but when I try to select PortAudio...

I see this in standard out:

||PaMacCore (AUHAL)|| AUHAL component not found.||PaMacCore (AUHAL)|| OpenStream @ 8000 returned: -9999: Unanticipated host error

Here's how I got it to build

Xcode is installed. Homebrew is installed.

brew install automake

brew install libsamplerate

brew install portaudio

brew install fltk

brew install libsndfile # I already had this

brew install hamlet

brew install xmlrpc-c

brew install pkg-config

brew install zlib

brew install lzlib

brew install libpng

brew install --build-from-source portaudio libsamplerate hamlib libpng fftw

export CPPFLAGS='-I/opt/homebrew/include/'

export PKG_CONFIG_PATH=/opt/homebrew/Cellar/zlib/1.2.11/lib/pkgconfig

export LDFLAGS='-L/opt/homebrew/lib'

mkdir ~/Developer

cd ~/Developer

# get the source code whichever way you prefer

cd fldigi-fldigi

autoreconf

automake --add-missing

./configure

make

./src/fldigi # to run!

It looks like this is an issue with PortAudio on macOS 11 when built against the macOS 11 SDK. "PA/CoreAudio uses some "deprecated" APIs which fail on Mac OS 11.0 #218".

This issue in PortAudio that deals with the issue.

No comments:

Post a Comment