|
From: | BIENKOWSKI Guillaume |
Subject: | Re: [Linphone-developers] Building linphone-iphone w/ XCode4.2 / SL 10.6.8 |
Date: | Wed, 18 Dec 2013 09:29:40 +0100 |
Hi,
After cloning linphone-iphone.git, I followed the build procedure in README, but I'm unable to build Linphone for iOS.
The first problem is:
[ 11%] Building CXX object src/CMakeFiles/zrtpcppcore.dir/Zrtp.cpp.obj
cd /Users/saumar/Documents/linphone-iphone/submodules/build-i386-apple-darwin/externals/zrtpcpp/src && /Developer/usr/bin/clang -arch i386 -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk -miphoneos-version-min=4.0 -DTARGET_OS_IPHONE=1 -D__IOS -fms-extensions -I/Users/saumar/Documents/linphone-iphone/submodules/externals/zrtpcpp/src -I/Users/saumar/Documents/linphone-iphone/submodules/build-i386-apple-darwin/externals/zrtpcpp -I/opt/local/include -g -O2 -fno-strict-aliasing -o CMakeFiles/zrtpcppcore.dir/Zrtp.cpp.obj -c /Users/saumar/Documents/linphone-iphone/submodules/externals/zrtpcpp/src/Zrtp.cpp
In file included from /Users/saumar/Documents/linphone-iphone/submodules/externals/zrtpcpp/src/Zrtp.cpp:21:
In file included from /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk/usr/include/c++/4.2.1/sstream:43:
In file included from /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk/usr/include/c++/4.2.1/istream:43:
In file included from /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk/usr/include/c++/4.2.1/ios:49:
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk/usr/include/c++/4.2.1/bits/basic_ios.h:242:26: error:
expected ')'
exceptions(iostate __except)
^
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk/usr/include/c++/4.2.1/bits/basic_ios.h:242:17: note: to
match this '('
exceptions(iostate __except)
^
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk/usr/include/c++/4.2.1/bits/basic_ios.h:244:24: error:
expected _expression_
_M_exception = __except;
^
2 errors generated.
make[4]: *** [src/CMakeFiles/zrtpcppcore.dir/Zrtp.cpp.obj] Error 1
make[3]: *** [src/CMakeFiles/zrtpcppcore.dir/all] Error 2
make[2]: *** [all] Error 2
make[1]: *** [build-zrtpcpp] Error 2
make: *** [build] Error 2
(all arrows ^ above points to __except)
Calling make with arguments doesn't solve the problem (enable_gpl_third_parties=no or enable_zrtp=no).
Reading this support group I was able to pass this point by editing builder-iphone-os.mk directly and removing zrtpcpp:
#SUBMODULES_LIST := polarssl libantlr belle-sip srtp zrtpcpp speex libgsm libvpx libxml2 ffmpeg opus
SUBMODULES_LIST := polarssl libantlr belle-sip srtp speex libgsm libvpx libxml2 ffmpeg opus
After this change, make veryclean && make all stops on speex:
/bin/sh ../libtool --tag=CC --mode=link xcrun clang -std=c99 -arch i386 -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk -miphoneos-version-min=4.0 -DTARGET_OS_IPHONE=1 -D__IOS -fms-extensions -O2 -fvisibility=hidden -o testenc testenc.o libspeex.la libspeexdsp.la -lm
libtool: link: xcrun clang -std=c99 -arch i386 -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk -miphoneos-version-min=4.0 -DTARGET_OS_IPHONE=1 -D__IOS -fms-extensions -O2 -fvisibility=hidden -o testenc testenc.o ./.libs/libspeex.a ./.libs/libspeexdsp.a -lm
clang: warning: argument unused during compilation: '-std=c99'
Undefined symbols for architecture i386:
"_x", referenced from:
_main in testenc.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[4]: *** [testenc] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all] Error 2
make[1]: *** [build-speex] Error 2
make: *** [build] Error 2
Any help is appreciated.
Cheers
sh
_______________________________________________
Linphone-developers mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/linphone-developers
[Prev in Thread] | Current Thread | [Next in Thread] |