Skip to content

Instantly share code, notes, and snippets.

@dhilowitz
Last active February 12, 2024 18:07
Show Gist options
  • Save dhilowitz/bf12ac1f6931068a92211850fdde1f81 to your computer and use it in GitHub Desktop.
Save dhilowitz/bf12ac1f6931068a92211850fdde1f81 to your computer and use it in GitHub Desktop.
Brief instructions on how to compile LoopAuditioneer on Mac

Install (compilation) instructions for LoopAuditioneer under Mac OS X

You'll need standard development tools for C++, wxWidgets 3.0 and ALSA, be sure to check the external libraries installation files for more details on what might be needed.

Install XCode and the XCode command-line development tools.

Install Homebrew.

Install wxWidgets using Homebrew:

brew install wxwidgets

Compile and prepare libsndfile:

in lib-src/libsndfile folder: ./configure --disable-external-libs make in lib-src folder ln -sf libsndfile/src/.libs/libsndfile.a .

Compile rtaudio:

in lib-src/rtaudio folder: ./configure --with-core make in lib-src folder ln -sf rtaudio/.libs/librtaudio.a .

Compile libsamplerate:

cd lib-src/libsamplerate

./configure
make
cd ..
ln -sf libsamplerate/src/.libs/libsamplerate.a .

Go back out to the source directory and compile the whole thing:

cd ../src
g++ -D__MACOSX_CORE__ -o LoopAuditioneer LoopAuditioneer.cpp MyFrame.cpp MyPanel.cpp CueMarkers.cpp LoopMarkers.cpp FileHandling.cpp MySound.cpp WaveformDrawer.cpp LoopParametersDialog.cpp BatchProcessDialog.cpp AutoLoopDialog.cpp AutoLooping.cpp PitchDialog.cpp CrossfadeDialog.cpp LoopOverlay.cpp FFT.cpp StopHarmonicDialog.cpp CutNFadeDialog.cpp MyListCtrl.cpp MyResampler.cpp ListInfoDialog.cpp -I../lib-src/libsndfile/src -I../lib-src/rtaudio -I../lib-src/libsamplerate/src -I../build/src/FreePixelIcons -I../resources/icons ../lib-src/libsndfile.a ../lib-src/librtaudio.a ../lib-src/libsamplerate.a -framework CoreAudio -framework AudioToolbox -lpthread -lm `wx-config --cxxflags --unicode=yes --libs`

Once this completes, you can run this on the command line like this:

WXSUPPRESS_SIZER_FLAGS_CHECK=1 ./LoopAuditioneer

To reduce executable size:

strip --strip-all LoopAuditioneer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment