Dear All,
I am integrating the g729 codec in pjsip 1.12 for ios 5.x by following the url:
http://www.piemontewireless.net/Compile_available_codecs_in_PJSip_with_iPhoneSDK312#In_build.mak.in
At this step I am getting confuse what will the below setting for iPhoneOS5.0 sdk below for iPhoneOS3.1.2.sdk
Env variables
export DEV=/Developer/Platforms/iPhoneOS.platform/Developer
export SDK=${DEV}/SDKs/iPhoneOS3.1.2.sdk
export PATH=${DEV}/usr/bin:${PATH}
export CFLAGS="-O2 -arch armv6 -isysroot ${SDK}"
export LDFLAGS="-O2 -arch armv6 -isysroot ${SDK}"
export CPP="${DEV}/usr/bin/cpp"
I am providing these
export DEV=/Developer/Platforms/iPhoneOS.platform/Developerexport SDK=${DEV}/SDKs/iPhoneOS5.0.sdk
export PATH=${DEV}/usr/bin:${PATH}
export CFLAGS="-O2 -arch armv7 -isysroot ${SDK}"
export LDFLAGS="-O2 -arch armv7 -isysroot ${SDK}"
export CPP="${DEV}/usr/bin/cpp"
Symb links to arm compiler
cd ${DEV}/usr/bin
ln -s arm-apple-darwin9-gcc-4.0.1 arm-apple-darwin9-gcc
ln -s arm-apple-darwin9-g++-4.0.1 arm-apple-darwin9-g++
ln -s ranlib arm-apple-darwin9-ranlib
When I am providing these settings
cd ${DEV}/usr/binln -s arm-apple-darwin10-llvm-gcc-4.2 arm-apple-darwin10-llvm-gcc
ln -s arm-apple-darwin10-llvm-g++-4.2 arm-apple-darwin10-llvm-g++
ln -s ranlib arm-apple-darwin10-ranlib
./aconfigure --host=arm-apple-darwin10 --disable-floating-point $* --disable-speex-aec \
--disable-speex-codec --enable-g729-codec --disable-ssl
It's giving me errors like
aconfigure: WARNING: If you wanted to set the --build type, don't use --host.
If a cross compiler is detected then cross compile mode will be used.
checking build system type... i386-apple-darwin10.8.0
checking host system type... arm-apple-darwin10.8.0
checking target system type... arm-apple-darwin10.8.0
checking for arm-apple-darwin10.8.0-gcc... no
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... yes
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for arm-apple-darwin10.8.0-g++... no
checking for arm-apple-darwin10.8.0-c++... no
checking for arm-apple-darwin10.8.0-gpp... no
checking for arm-apple-darwin10.8.0-aCC... no
checking for arm-apple-darwin10.8.0-CC... no
checking for arm-apple-darwin10.8.0-cxx... no
checking for arm-apple-darwin10.8.0-cc++... no
checking for arm-apple-darwin10.8.0-cl.exe... no
checking for arm-apple-darwin10.8.0-FCC... no
checking for arm-apple-darwin10.8.0-KCC... no
checking for arm-apple-darwin10.8.0-RCC... no
checking for arm-apple-darwin10.8.0-xlC_r... no
checking for arm-apple-darwin10.8.0-xlC... no
checking for g++... g++
aconfigure: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet. If you think this
configuration is useful to you, please write to
autoconf <at> gnu.org.
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for pthread_create in -lpthread... yes
checking for puts in -lwsock32... no
checking for puts in -lws2_32... no
checking for puts in -lole32... no
checking for puts in -lwinmm... no
checking for puts in -lsocket... no
checking for puts in -lrt... no
checking for puts in -lnsl... no
checking for uuid_generate in -luuid... no
checking for uuid_generate in -luuid... (cached) no
Setting PJ_M_NAME to arm
checking memory alignment... 4 bytes (default)
checking how to run the C preprocessor... /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/cpp
aconfigure: error: C preprocessor "/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/cpp" fails sanity check
Please help me ! I will be greatly thankfull.
Thanks & Regards
Gaurav Bhaskar