Hi!
I am back to try to learn how to use Csound API on iOS.
The Examples project works, but when I am following the instructions on:
https://flossmanual.csound.com/csound-and-other-programming-languages/csound-in-ios
to create my own Xcode project
everything goes fine until when building the app. The error reported is:
Undefined symbols for architecture arm64:
“_vDSP_create_fftsetup”, referenced from:
_csoundRealFFT2Setup in libcsound.a(fftlib.o)
“_vDSP_destroy_fftsetup”, referenced from:
_setupDispose in libcsound.a(fftlib.o)
“_vDSP_fft_zrip”, referenced from:
_csoundRealFFT2 in libcsound.a(fftlib.o)
_vDSP_DCT_execute in libcsound.a(fftlib.o)
ld: symbol(s) not found for architecture arm64
For any case I copy the linker command below.
I had the same when I was trying to link a Qt C++ project against libcsound.a
When I checked libcsound.a to see which symbols are in there:
nm -a /Users/tarmojohannes/Documents/src/csound-iOS-6.18.0/Csound\ iOS\ Obj-C\ Examples/csound-iOS/libs/libcsound.a | grep _vDSP
it seems to be correct:
---------------- T _vDSP_DCT_execute
U _vDSP_create_fftsetup
U _vDSP_destroy_fftsetup
U _vDSP_fft_zrip
I did not find out how to check about the architecture.
This is the official csound-ios-6.18.0 package downloaded from Csound web site.
I tried also to build the iOS folder from sources myself but it failed, since weather the option
-T buildsystem=1
bothered make or without it I got error:
CMake Error in CMakeLists.txt:
The custom command generating
/Users/tarmojohannes/Documents/src/csound-6.18.1/iOS/cs6iOS/csound_orclex.c
is attached to multiple targets:
CsoundLib
CsoundLib-static
but none of these is a common dependency of the other(s). This is not
allowed by the Xcode “new build system”.
I had the same problem some months ago and then gave up. Can someone who knows more about the iOS development test the libcsound library?
The strange thing is that the demo project builds, so there might be some flags or settings I cannot guess that must be given…
Thanks!
tarmo

