soxr icon indicating copy to clipboard operation
soxr copied to clipboard

how to build for Mac use least code form source forge?

Open xuandu opened this issue 2 years ago • 1 comments

hello ,this code may be just for resample ,but the least have the audio effect . so how to build it ?

xuandu avatar Sep 01 '22 09:09 xuandu

https://github.com/chirlu/soxr/blob/master/INSTALL shows you basic commands. The default ./go intent to work well on latest macos. If you want to customize some options, https://github.com/chirlu/soxr/blob/945b592b70470e29f917f4de89b4281fbbd540c0/INSTALL#L70 shows you that you can call cmake directly. If you're working on latest macos with M1, you may need to add -DWITH_CR32S=OFF in your command to avoid error due to arm/neon rather than avx.
The full command will looks like
mkdir -p build && cd build && cmake .. -Wno-dev -DCMAKE_BUILD_TYPE=Release -DWITH_CR32S=OFF

wangyoucao577 avatar Sep 14 '22 14:09 wangyoucao577