[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Linphone-developers] Failed to Build after Git Checkout to tags/2.1
From: |
Guillaume BIENKOWSKI |
Subject: |
Re: [Linphone-developers] Failed to Build after Git Checkout to tags/2.1.2 |
Date: |
Fri, 21 Mar 2014 08:47:59 +0100 |
Hello,
After the checkout, try a git clean -xdi to clean up the non-removed paths.
Also, you should use git submodule sync && git submodule update --recursive
--init
If you want to save yourself the burden next time, issue a :
git clone git://git.linphone.org/linphone-iphone -b V2.1.2 --recursive
Cheers,
Guillaume
Le 21 mars 2014 à 04:28, powerqian <address@hidden> a écrit :
> Hi,
>
> I want to build a stable version of Linphone, so I checkout to the
> tags/2.1.2 and tried to build. Here's what I did:
>
> 1. git checkout tags/2.1.2
> Git gave me the following info
>
> warning: unable to rmdir submodules/cunit: Directory not empty
> warning: unable to rmdir submodules/msisac: Directory not empty
> M submodules/bcg729
> M submodules/belle-sip
> M submodules/externals/libvpx
> M submodules/externals/polarssl
> M submodules/externals/srtp
> M submodules/externals/zrtpcpp
> M submodules/linphone
> M submodules/msx264
> Note: checking out 'tags/2.1.2'.
>
> 2. cd submodules/build and make all.
> Failed immediately with the following error:
>
> ---------ERROR BEGIN---------
> make -f builder-iphone-simulator.mk enable_gpl_third_parties=yes
> enable_zrtp=no enable_opus=yes enable_debug=no enable_ffmpeg=yes all \
> && make -f builder-iphone-os.mk enable_gpl_third_parties=yes
> enable_zrtp=no enable_opus=yes enable_debug=no enable_ffmpeg=yes all \
> && make -f builder-iphone-os.mk host=armv7s-apple-darwin
> enable_gpl_third_parties=yes enable_zrtp=no enable_opus=yes
> enable_debug=no enable_ffmpeg=yes all \
> && make -f builder-iphone-os.mk delivery-sdk
> mkdir -p
> /Users/qianli/Documents/Development/Linphone-iphone-2.1.2/linphone-iphone/submodules/build/..//../liblinphone-sdk/i386-apple-darwin/include
> mkdir -p
> /Users/qianli/Documents/Development/Linphone-iphone-2.1.2/linphone-iphone/submodules/build/..//../liblinphone-sdk/i386-apple-darwin/lib/pkgconfig
> make[1]: *** No rule to make target
> `/Users/qianli/Documents/Development/Linphone-iphone-2.1.2/linphone-iphone/submodules/build/..//externals/polarssl/Makefile',
> needed by `update-tree'. Stop.
> make: *** [build] Error 2
> ---------ERROR END---------
>
> 3. I thought the error was maybe related to the submodules stuff or
> something, so I git submodule update --init --recursive, and then make all.
> It started to build. But failed with the following error:
>
> ---------ERROR BEGIN---------
> Making all in tester
> CC belle_sip_tester-belle_sip_tester.o
> CC belle_sip_tester-belle_sdp_tester.o
> CC belle_sip_tester-belle_sip_uri_tester.o
> CC belle_sip_tester-belle_sip_headers_tester.o
> CC belle_sip_tester-belle_sip_message_tester.o
> CC belle_sip_tester-auth_helper_tester.o
> CC belle_sip_tester-cast_test.o
> CC belle_sip_tester-belle_sip_register_tester.o
> CC belle_sip_tester-belle_sip_dialog_tester.o
> CC belle_sip_tester-belle_sip_refresher_tester.o
> CC belle_sip_tester-belle_sip_resolver_tester.o
> CCLD belle_sip_tester
> ld: warning: directory not found for option
> '-L/Users/qianli/Documents/Development/Linphone-iphone-2.1.2/linphone-iphone/submodules/build-i386-apple-darwin/cunit/CUnit/Sources'
> Undefined symbols for architecture i386:
> "_CFReadStreamClose", referenced from:
> _stream_channel_close in
> libbellesip.a(libbellesip_la-stream_channel.o)
> "_CFReadStreamOpen", referenced from:
> _finalize_stream_connection in
> libbellesip.a(libbellesip_la-stream_channel.o)
> "_CFReadStreamSetProperty", referenced from:
> _finalize_stream_connection in
> libbellesip.a(libbellesip_la-stream_channel.o)
> "_CFRelease", referenced from:
> _stream_channel_close in
> libbellesip.a(libbellesip_la-stream_channel.o)
> "_CFStreamCreatePairWithSocket", referenced from:
> _finalize_stream_connection in
> libbellesip.a(libbellesip_la-stream_channel.o)
> "_CFWriteStreamClose", referenced from:
> _stream_channel_close in
> libbellesip.a(libbellesip_la-stream_channel.o)
> "_CFWriteStreamOpen", referenced from:
> _finalize_stream_connection in
> libbellesip.a(libbellesip_la-stream_channel.o)
> "_CFWriteStreamSetProperty", referenced from:
> _finalize_stream_connection in
> libbellesip.a(libbellesip_la-stream_channel.o)
> "_kCFAllocatorDefault", referenced from:
> _finalize_stream_connection in
> libbellesip.a(libbellesip_la-stream_channel.o)
> "_kCFStreamNetworkServiceType", referenced from:
> _finalize_stream_connection in
> libbellesip.a(libbellesip_la-stream_channel.o)
> "_kCFStreamNetworkServiceTypeVoIP", referenced from:
> _finalize_stream_connection in
> libbellesip.a(libbellesip_la-stream_channel.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]: *** [belle_sip_tester] Error 1
> make[3]: *** [all-recursive] Error 1
> make[2]: *** [all] Error 2
> make[1]: *** [build-belle-sip] Error 2
> make: *** [build] Error 2
> ---------ERROR END---------
>
>
> I think the CUnit stuff is introduced to Linphone repo just recently. Not
> sure why it looked for that directory in the old branch.
>
> What should I do to correctly build a stable version of Linphone?
>
> Thanks!
>
>
>
> --
> View this message in context:
> http://nongnu.13855.n7.nabble.com/Failed-to-Build-after-Git-Checkout-to-tags-2-1-2-tp180704.html
> Sent from the linphone-developers mailing list archive at Nabble.com.
>
> _______________________________________________
> Linphone-developers mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/linphone-developers