Note that there are some explanatory texts on larger screens.

plurals
  1. POAndroid : Help in compiling SoundTouch lib in android
    primarykey
    data
    text
    <p>I am trying to compile the <a href="http://www.surina.net/soundtouch/" rel="nofollow noreferrer">SoundTouch </a> lib with Android NDK. I got some instruction from <a href="http://www.surina.net/soundtouch/faq.html#compiling" rel="nofollow noreferrer">Here</a> to compile this lib in android. </p> <p>But when I try to compile it with <code>ndk-build</code> command it show errors in various source files of SoundTouch lib something like this: <img src="https://i.stack.imgur.com/TWOg9.png" alt="enter image description here"></p> <p>I tried to Switch off exception handling as mentioned in the instructions but it doesn't seems to work.</p> <p>I copied all the files from SoundTouch source to JNI folder of my project. Here is my <code>android.mk</code> file : </p> <pre><code>LOCAL_PATH:= $(call my-dir) include $(CLEAR_VARS) LOCAL_CFLAGS :- -frtti -fexceptions LOCAL_SRC_FILES := AAFilter.cpp BPMDetect.cpp cpu_detect_x86.cpp FIFOSampleBuffer.cpp FIRFilter.cpp main.cpp mmx_optimized.cpp PeakFinder.cpp RateTransposer.cpp RunParameters.cpp SoundTouch.cpp sse_optimized.cpp TDStretch.cpp WavFile.cpp LOCAL_LDLIBS := -lpcap LOCAL_MODULE := libSoundTouch LOCAL_C_INCLUDES := BPMDetect.h FIFOSampleBuffer.h FIFOSamplePipe.h SoundTouch.h STTypes.h include $(BUILD_SHARED_LIBRARY) </code></pre> <p>Can anyone please help me to compile and use SoundTouch lib on android?</p> <p><strong>UPDATE :</strong></p> <p>I changed my <code>android.mk</code> file as below </p> <pre><code>LOCAL_PATH:= $(call my-dir) include $(CLEAR_VARS) LOCAL_CPP_FEATURES += -fno-exceptions LOCAL_SRC_FILES := \ SoundTouch/AAFilter.cpp \ SoundTouch/BPMDetect.cpp \ SoundTouch/cpu_detect_x86.cpp\ SoundTouch/FIFOSampleBuffer.cpp \ SoundTouch/FIRFilter.cpp \ SoundTouch/mmx_optimized.cpp \ SoundTouch/PeakFinder.cpp \ SoundTouch/RateTransposer.cpp \ SoundTouch/SoundTouch.cpp \ SoundTouch/sse_optimized.cpp \ SoundTouch/TDStretch.cpp LOCAL_MODULE := libSoundTouch LOCAL_C_INCLUDES := include/BPMDetect.h include/FIFOSampleBuffer.h include/FIFOSamplePipe.h include/SoundTouch.h include/STTypes.h include $(BUILD_SHARED_LIBRARY) </code></pre> <p>And now its working all fine. Thank you</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload