bbc / audiowaveform

C++ program to generate waveform data and render waveform images from audio files
https://waveform.prototyping.bbc.co.uk
GNU General Public License v3.0
1.9k stars 242 forks source link

Static Build on MacOS Failing #207

Open ndeshpande2022 opened 3 months ago

ndeshpande2022 commented 3 months ago

When creating a static build for Mac I'm running into a few issues. The first set of issues involved building a few dependencies myself (not a problem).

I was able to run: cmake -D BUILD_STATIC=1 .. No problems.

When I go to run the make command after this step, I hit this error:

1 warning generated. [ 34%] Building CXX object CMakeFiles/audiowaveform.dir/src/WavFileWriter.cpp.o [ 35%] Building C object CMakeFiles/audiowaveform.dir/src/madlld-1.1p1/bstdfile.c.o [ 36%] Building C object CMakeFiles/audiowaveform.dir/src/pdjson/pdjson.c.o [ 37%] Linking CXX executable audiowaveform clang: warning: argument unused during compilation: '-no-pie' [-Wunused-command-line-argument] ld: library not found for -licudata clang: error: linker command failed with exit code 1 (use -v to see invocation)

I can't locate licudata anywhere, any ideas?

ndeshpande2022 commented 3 months ago

I've been trying to work through these issues and I've hit a new issue...

Undefined symbols for architecture x86_64: "boost::filesystem::path::extension() const", referenced from: getFileExtension(boost::filesystem::path const&) in Options.cpp.o OptionHandler::generateWaveformData(boost::filesystem::path const&, FileFormat::FileFormat, boost::filesystem::path const&, FileFormat::FileFormat, Options const&) in OptionHandler.cpp.o OptionHandler::convertWaveformData(boost::filesystem::path const&, FileFormat::FileFormat, boost::filesystem::path const&, FileFormat::FileFormat, Options const&) in OptionHandler.cpp.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)

I'm wondering if there was any more guidance on building a static version for MacOS