Csound Csound-dev Csound-tekno Search About

[Cs-dev] Trying to build CSound iOS 5.19

Date2014-10-26 16:50
Fromlppier
Subject[Cs-dev] Trying to build CSound iOS 5.19
Hi, 

I'm trying to build CSound iOS 5.19 on OS X as I want the arm64
architecture, and 5.19 specifically. I have downloaded CSound 5.19.1 from
the source forge website. 
I have CMake and libsndfile installed from
http://www.mega-nerd.com/libsndfile/
I proceeded to run build.sh in the iOS directory of the source. 

I see the following error messages. (sorry it's a little long) Where is
sndfile.h supposed to be located? how can I resolve this build error? 

Thanks for your help. 

CompileC
ios/cs5iOS/Csound.build/Release-iphonesimulator/csound-static.build/Objects-normal/i386/cfgvar.o
Engine/cfgvar.c normal i386 c com.apple.compilers.llvm.clang.1_0.compiler
    cd /Users/pier/Downloads/Csound5.19.01
    export LANG=en_US.US-ASCII
    export
PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/opt/local/bin:/opt/local/sbin:/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:/Users/pier/android-sdk-macosx/tools:/Users/pier/.rvm/gems/ruby-1.9.2-p318/bin:/Users/pier/.rvm/gems/ruby-1.9.2-p318@global/bin:/Users/pier/.rvm/rubies/ruby-1.9.2-p318/bin:/Users/pier/.rvm/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/usr/local/CrossPack-AVR/bin:/usr/local/git/bin"
   
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
-x c -arch i386 -fmessage-length=80 -fdiagnostics-show-note-include-stack
-fmacro-backtrace-limit=0 -fcolor-diagnostics -Wno-trigraphs
-fpascal-strings -O3 -Wno-missing-field-initializers -Wno-missing-prototypes
-Wno-return-type -Wno-missing-braces -Wparentheses -Wswitch
-Wno-unused-function -Wno-unused-label -Wno-unused-parameter
-Wno-unused-variable -Wunused-value -Wno-empty-body -Wno-uninitialized
-Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion
-Wno-constant-conversion -Wno-int-conversion -Wno-bool-conversion
-Wno-enum-conversion -Wno-shorten-64-to-32 -Wpointer-sign -Wno-newline-eof
-DCMAKE_INTDIR=\"Release-iphonesimulator\" -D_CSOUND_RELEASE_
-DCS_DEFAULT_PLUGINDIR=\"/Library/Frameworks/CsoundLib.framework/Versions/5.2/Resources/Opcodes\"
-DUSE_LRINT -DMACOSX -DPIPES -isysroot
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.1.sdk
-fexceptions -fasm-blocks -fstrict-aliasing -Wdeprecated-declarations
-Wno-sign-conversion -mios-simulator-version-min=5.0
-I/Users/pier/Downloads/Csound5.19.01/ios/cs5iOS/Release/include
-I/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.1.sdk/usr/local/include
-I/Users/pier/Downloads/Csound5.19.01/H
-I/Users/pier/Downloads/Csound5.19.01/Engine
-I/Users/pier/Downloads/Csound5.19.01
-I/Users/pier/Downloads/Csound5.19.01/ios/cs5iOS
-I/Users/pier/Downloads/Csound5.19.01/ios/cs5iOS/Csound.build/Release-iphonesimulator/csound-static.build/DerivedSources/i386
-I/Users/pier/Downloads/Csound5.19.01/ios/cs5iOS/Csound.build/Release-iphonesimulator/csound-static.build/DerivedSources
-Wmost -Wno-four-char-constants -Wno-unknown-pragmas
-F/Users/pier/Downloads/Csound5.19.01/ios/cs5iOS/Release -DNDEBUG
-D__BUILDING_LIBCSOUND -DENABLE_NEW_PARSER -DPARCS -DHAVE_DIRENT_H
-DHAVE_FCNTL_H -DHAVE_UNISTD_H -DHAVE_STDINT_H -DHAVE_SYS_TIME_H
-DHAVE_SYS_TYPES_H -DHAVE_TERMIOS_H -MMD -MT dependencies -MF
/Users/pier/Downloads/Csound5.19.01/ios/cs5iOS/Csound.build/Release-iphonesimulator/csound-static.build/Objects-normal/i386/cfgvar.d
--serialize-diagnostics
/Users/pier/Downloads/Csound5.19.01/ios/cs5iOS/Csound.build/Release-iphonesimulator/csound-static.build/Objects-normal/i386/cfgvar.dia
-c /Users/pier/Downloads/Csound5.19.01/Engine/cfgvar.c -o
/Users/pier/Downloads/Csound5.19.01/ios/cs5iOS/Csound.build/Release-iphonesimulator/csound-static.build/Objects-normal/i386/cfgvar.o
In file included from
/Users/pier/Downloads/Csound5.19.01/Engine/cfgvar.c:30:
In file included from
/Users/pier/Downloads/Csound5.19.01/H/csoundCore.h:743:
/Users/pier/Downloads/Csound5.19.01/H/prototyp.h:27:10: fatal error: 
      'sndfile.h' file not found
#include 
         ^
1 error generated.

CompileC
ios/cs5iOS/Csound.build/Release-iphonesimulator/csound-static.build/Objects-normal/i386/auxfd.o
Engine/auxfd.c normal i386 c com.apple.compilers.llvm.clang.1_0.compiler
    cd /Users/pier/Downloads/Csound5.19.01
    export LANG=en_US.US-ASCII
    export
PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/opt/local/bin:/opt/local/sbin:/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:/Users/pier/android-sdk-macosx/tools:/Users/pier/.rvm/gems/ruby-1.9.2-p318/bin:/Users/pier/.rvm/gems/ruby-1.9.2-p318@global/bin:/Users/pier/.rvm/rubies/ruby-1.9.2-p318/bin:/Users/pier/.rvm/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/usr/local/CrossPack-AVR/bin:/usr/local/git/bin"
   
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
-x c -arch i386 -fmessage-length=80 -fdiagnostics-show-note-include-stack
-fmacro-backtrace-limit=0 -fcolor-diagnostics -Wno-trigraphs
-fpascal-strings -O3 -Wno-missing-field-initializers -Wno-missing-prototypes
-Wno-return-type -Wno-missing-braces -Wparentheses -Wswitch
-Wno-unused-function -Wno-unused-label -Wno-unused-parameter
-Wno-unused-variable -Wunused-value -Wno-empty-body -Wno-uninitialized
-Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion
-Wno-constant-conversion -Wno-int-conversion -Wno-bool-conversion
-Wno-enum-conversion -Wno-shorten-64-to-32 -Wpointer-sign -Wno-newline-eof
-DCMAKE_INTDIR=\"Release-iphonesimulator\" -D_CSOUND_RELEASE_
-DCS_DEFAULT_PLUGINDIR=\"/Library/Frameworks/CsoundLib.framework/Versions/5.2/Resources/Opcodes\"
-DUSE_LRINT -DMACOSX -DPIPES -isysroot
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.1.sdk
-fexceptions -fasm-blocks -fstrict-aliasing -Wdeprecated-declarations
-Wno-sign-conversion -mios-simulator-version-min=5.0
-I/Users/pier/Downloads/Csound5.19.01/ios/cs5iOS/Release/include
-I/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.1.sdk/usr/local/include
-I/Users/pier/Downloads/Csound5.19.01/H
-I/Users/pier/Downloads/Csound5.19.01/Engine
-I/Users/pier/Downloads/Csound5.19.01
-I/Users/pier/Downloads/Csound5.19.01/ios/cs5iOS
-I/Users/pier/Downloads/Csound5.19.01/ios/cs5iOS/Csound.build/Release-iphonesimulator/csound-static.build/DerivedSources/i386
-I/Users/pier/Downloads/Csound5.19.01/ios/cs5iOS/Csound.build/Release-iphonesimulator/csound-static.build/DerivedSources
-Wmost -Wno-four-char-constants -Wno-unknown-pragmas
-F/Users/pier/Downloads/Csound5.19.01/ios/cs5iOS/Release -DNDEBUG
-D__BUILDING_LIBCSOUND -DENABLE_NEW_PARSER -DPARCS -DHAVE_DIRENT_H
-DHAVE_FCNTL_H -DHAVE_UNISTD_H -DHAVE_STDINT_H -DHAVE_SYS_TIME_H
-DHAVE_SYS_TYPES_H -DHAVE_TERMIOS_H -MMD -MT dependencies -MF
/Users/pier/Downloads/Csound5.19.01/ios/cs5iOS/Csound.build/Release-iphonesimulator/csound-static.build/Objects-normal/i386/auxfd.d
--serialize-diagnostics
/Users/pier/Downloads/Csound5.19.01/ios/cs5iOS/Csound.build/Release-iphonesimulator/csound-static.build/Objects-normal/i386/auxfd.dia
-c /Users/pier/Downloads/Csound5.19.01/Engine/auxfd.c -o
/Users/pier/Downloads/Csound5.19.01/ios/cs5iOS/Csound.build/Release-iphonesimulator/csound-static.build/Objects-normal/i386/auxfd.o
In file included from /Users/pier/Downloads/Csound5.19.01/Engine/auxfd.c:24:
In file included from
/Users/pier/Downloads/Csound5.19.01/H/csoundCore.h:743:
/Users/pier/Downloads/Csound5.19.01/H/prototyp.h:27:10: fatal error: 
      'sndfile.h' file not found
#include 
         ^
1 error generated.

CompileC
ios/cs5iOS/Csound.build/Release-iphonesimulator/csound-static.build/Objects-normal/i386/corfiles.o
Engine/corfiles.c normal i386 c com.apple.compilers.llvm.clang.1_0.compiler
    cd /Users/pier/Downloads/Csound5.19.01
    export LANG=en_US.US-ASCII
    export
PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/opt/local/bin:/opt/local/sbin:/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:/Users/pier/android-sdk-macosx/tools:/Users/pier/.rvm/gems/ruby-1.9.2-p318/bin:/Users/pier/.rvm/gems/ruby-1.9.2-p318@global/bin:/Users/pier/.rvm/rubies/ruby-1.9.2-p318/bin:/Users/pier/.rvm/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/usr/local/CrossPack-AVR/bin:/usr/local/git/bin"
   
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
-x c -arch i386 -fmessage-length=80 -fdiagnostics-show-note-include-stack
-fmacro-backtrace-limit=0 -fcolor-diagnostics -Wno-trigraphs
-fpascal-strings -O3 -Wno-missing-field-initializers -Wno-missing-prototypes
-Wno-return-type -Wno-missing-braces -Wparentheses -Wswitch
-Wno-unused-function -Wno-unused-label -Wno-unused-parameter
-Wno-unused-variable -Wunused-value -Wno-empty-body -Wno-uninitialized
-Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion
-Wno-constant-conversion -Wno-int-conversion -Wno-bool-conversion
-Wno-enum-conversion -Wno-shorten-64-to-32 -Wpointer-sign -Wno-newline-eof
-DCMAKE_INTDIR=\"Release-iphonesimulator\" -D_CSOUND_RELEASE_
-DCS_DEFAULT_PLUGINDIR=\"/Library/Frameworks/CsoundLib.framework/Versions/5.2/Resources/Opcodes\"
-DUSE_LRINT -DMACOSX -DPIPES -isysroot
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.1.sdk
-fexceptions -fasm-blocks -fstrict-aliasing -Wdeprecated-declarations
-Wno-sign-conversion -mios-simulator-version-min=5.0
-I/Users/pier/Downloads/Csound5.19.01/ios/cs5iOS/Release/include
-I/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.1.sdk/usr/local/include
-I/Users/pier/Downloads/Csound5.19.01/H
-I/Users/pier/Downloads/Csound5.19.01/Engine
-I/Users/pier/Downloads/Csound5.19.01
-I/Users/pier/Downloads/Csound5.19.01/ios/cs5iOS
-I/Users/pier/Downloads/Csound5.19.01/ios/cs5iOS/Csound.build/Release-iphonesimulator/csound-static.build/DerivedSources/i386
-I/Users/pier/Downloads/Csound5.19.01/ios/cs5iOS/Csound.build/Release-iphonesimulator/csound-static.build/DerivedSources
-Wmost -Wno-four-char-constants -Wno-unknown-pragmas
-F/Users/pier/Downloads/Csound5.19.01/ios/cs5iOS/Release -DNDEBUG
-D__BUILDING_LIBCSOUND -DENABLE_NEW_PARSER -DPARCS -DHAVE_DIRENT_H
-DHAVE_FCNTL_H -DHAVE_UNISTD_H -DHAVE_STDINT_H -DHAVE_SYS_TIME_H
-DHAVE_SYS_TYPES_H -DHAVE_TERMIOS_H -MMD -MT dependencies -MF
/Users/pier/Downloads/Csound5.19.01/ios/cs5iOS/Csound.build/Release-iphonesimulator/csound-static.build/Objects-normal/i386/corfiles.d
--serialize-diagnostics
/Users/pier/Downloads/Csound5.19.01/ios/cs5iOS/Csound.build/Release-iphonesimulator/csound-static.build/Objects-normal/i386/corfiles.dia
-c /Users/pier/Downloads/Csound5.19.01/Engine/corfiles.c -o
/Users/pier/Downloads/Csound5.19.01/ios/cs5iOS/Csound.build/Release-iphonesimulator/csound-static.build/Objects-normal/i386/corfiles.o
In file included from
/Users/pier/Downloads/Csound5.19.01/Engine/corfiles.c:24:
In file included from
/Users/pier/Downloads/Csound5.19.01/H/csoundCore.h:743:
/Users/pier/Downloads/Csound5.19.01/H/prototyp.h:27:10: fatal error: 
      'sndfile.h' file not found
#include 
         ^
1 error generated.

CompileC
ios/cs5iOS/Csound.build/Release-iphonesimulator/csound-static.build/Objects-normal/i386/cs_par_base.o
Engine/cs_par_base.c normal i386 c
com.apple.compilers.llvm.clang.1_0.compiler
    cd /Users/pier/Downloads/Csound5.19.01
    export LANG=en_US.US-ASCII
    export
PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/opt/local/bin:/opt/local/sbin:/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:/Users/pier/android-sdk-macosx/tools:/Users/pier/.rvm/gems/ruby-1.9.2-p318/bin:/Users/pier/.rvm/gems/ruby-1.9.2-p318@global/bin:/Users/pier/.rvm/rubies/ruby-1.9.2-p318/bin:/Users/pier/.rvm/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/usr/local/CrossPack-AVR/bin:/usr/local/git/bin"
   
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
-x c -arch i386 -fmessage-length=80 -fdiagnostics-show-note-include-stack
-fmacro-backtrace-limit=0 -fcolor-diagnostics -Wno-trigraphs
-fpascal-strings -O3 -Wno-missing-field-initializers -Wno-missing-prototypes
-Wno-return-type -Wno-missing-braces -Wparentheses -Wswitch
-Wno-unused-function -Wno-unused-label -Wno-unused-parameter
-Wno-unused-variable -Wunused-value -Wno-empty-body -Wno-uninitialized
-Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion
-Wno-constant-conversion -Wno-int-conversion -Wno-bool-conversion
-Wno-enum-conversion -Wno-shorten-64-to-32 -Wpointer-sign -Wno-newline-eof
-DCMAKE_INTDIR=\"Release-iphonesimulator\" -D_CSOUND_RELEASE_
-DCS_DEFAULT_PLUGINDIR=\"/Library/Frameworks/CsoundLib.framework/Versions/5.2/Resources/Opcodes\"
-DUSE_LRINT -DMACOSX -DPIPES -isysroot
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.1.sdk
-fexceptions -fasm-blocks -fstrict-aliasing -Wdeprecated-declarations
-Wno-sign-conversion -mios-simulator-version-min=5.0
-I/Users/pier/Downloads/Csound5.19.01/ios/cs5iOS/Release/include
-I/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.1.sdk/usr/local/include
-I/Users/pier/Downloads/Csound5.19.01/H
-I/Users/pier/Downloads/Csound5.19.01/Engine
-I/Users/pier/Downloads/Csound5.19.01
-I/Users/pier/Downloads/Csound5.19.01/ios/cs5iOS
-I/Users/pier/Downloads/Csound5.19.01/ios/cs5iOS/Csound.build/Release-iphonesimulator/csound-static.build/DerivedSources/i386
-I/Users/pier/Downloads/Csound5.19.01/ios/cs5iOS/Csound.build/Release-iphonesimulator/csound-static.build/DerivedSources
-Wmost -Wno-four-char-constants -Wno-unknown-pragmas
-F/Users/pier/Downloads/Csound5.19.01/ios/cs5iOS/Release -DNDEBUG
-D__BUILDING_LIBCSOUND -DENABLE_NEW_PARSER -DPARCS -DHAVE_DIRENT_H
-DHAVE_FCNTL_H -DHAVE_UNISTD_H -DHAVE_STDINT_H -DHAVE_SYS_TIME_H
-DHAVE_SYS_TYPES_H -DHAVE_TERMIOS_H -MMD -MT dependencies -MF
/Users/pier/Downloads/Csound5.19.01/ios/cs5iOS/Csound.build/Release-iphonesimulator/csound-static.build/Objects-normal/i386/cs_par_base.d
--serialize-diagnostics
/Users/pier/Downloads/Csound5.19.01/ios/cs5iOS/Csound.build/Release-iphonesimulator/csound-static.build/Objects-normal/i386/cs_par_base.dia
-c /Users/pier/Downloads/Csound5.19.01/Engine/cs_par_base.c -o
/Users/pier/Downloads/Csound5.19.01/ios/cs5iOS/Csound.build/Release-iphonesimulator/csound-static.build/Objects-normal/i386/cs_par_base.o
In file included from
/Users/pier/Downloads/Csound5.19.01/Engine/cs_par_base.c:27:
In file included from
/Users/pier/Downloads/Csound5.19.01/H/csoundCore.h:743:
/Users/pier/Downloads/Csound5.19.01/H/prototyp.h:27:10: fatal error: 
      'sndfile.h' file not found
#include 
         ^
1 error generated.

** BUILD FAILED **


The following build commands failed:
	CompileC
ios/cs5iOS/Csound.build/Release-iphonesimulator/csound-static.build/Objects-normal/i386/cfgvar.o
Engine/cfgvar.c normal i386 c com.apple.compilers.llvm.clang.1_0.compiler
	CompileC
ios/cs5iOS/Csound.build/Release-iphonesimulator/csound-static.build/Objects-normal/i386/auxfd.o
Engine/auxfd.c normal i386 c com.apple.compilers.llvm.clang.1_0.compiler
	CompileC
ios/cs5iOS/Csound.build/Release-iphonesimulator/csound-static.build/Objects-normal/i386/corfiles.o
Engine/corfiles.c normal i386 c com.apple.compilers.llvm.clang.1_0.compiler
	CompileC
ios/cs5iOS/Csound.build/Release-iphonesimulator/csound-static.build/Objects-normal/i386/cs_par_base.o
Engine/cs_par_base.c normal i386 c
com.apple.compilers.llvm.clang.1_0.compiler
(4 failures)
fatal error:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lipo:
libcsound-device.a and Release/libcsound.a have the same architectures
(armv7) and can't be in the same fat output file



--
View this message in context: http://csound.1045644.n5.nabble.com/Trying-to-build-CSound-iOS-5-19-tp5738128.html
Sent from the Csound - Dev mailing list archive at Nabble.com.

------------------------------------------------------------------------------
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2014-10-30 04:51
Fromlppier
SubjectRe: [Cs-dev] Trying to build CSound iOS 5.19
I ran into additional niggies trying to compile the csound project, after
using the libcsound.a library from the compiled csound build for iOS. 

Undefined symbols for architecture armv7:
  "_csp_set_count", referenced from:
      _csp_dag_build in libcsound.a(cs_par_dispatch.o)
  "_csp_set_get_num", referenced from:
      _csp_locks_insert in libcsound.a(cs_par_dispatch.o)
  "_csp_dag_is_finished", referenced from:
      _kperfThread in libcsound.a(csound.o)
      _kperf in libcsound.a(csound.o)
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see
invocation)

So what I did was to look for the individual files cs_par_dispatch.h ,
cs_par_base.h where the above functions were defined. For some reason,
building on osx10.10, the clang compiler doesn't recognise the "inline"
statement fully. http://clang.llvm.org/compatibility.html#inline Removed the
inline from the front of the function, and rebuilt csound for iOS. 
Is there any consequence to doing this? 

Used the new libcsound.a and it works now with arm64 in the valid
architectures of the iOS project. Still testing it out but so far it seems
ok. 

I'm a happy guy! 




--
View this message in context: http://csound.1045644.n5.nabble.com/Trying-to-build-CSound-iOS-5-19-tp5738128p5738197.html
Sent from the Csound - Dev mailing list archive at Nabble.com.

------------------------------------------------------------------------------
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net