整了一个星期多了,一点头绪都没有,所以想请教下各位要如何成功地编译linphone。我之前是在10.7系统&xcode4.1下编译,最后一步编译静态库make all的时候,出现error错误。。
然后换成10.7.4+xcode4.3.3/4.4.1,在执行sudo port install coreutils automake autoconf libtool intltool wget pkgconfig cmake gmake yasm grep doxygen ImageMagick optipng
的时候报错如下
Error: No Xcode installation was found.
Error: Please install Xcode and/or run xcode-select to specify its location.
Error: 
Warning: xcodebuild exists but failed to execute
Warning: Xcode does not appear to be installed; most ports will likely fail to build.
请问各位都是怎么样变异的呢?感谢赐教!!

解决方案 »

  1.   

    Please install Xcode and/or run xcode-select to specify its location.错误原因写的很明白了.  在终端里运行xcode-select命令去指定xcode的具体路径.然后再运行就应该ok了.
      

  2.   

    谢谢,我指定了xcode 的路径了,不过编译还是报错了,这个报错我看不懂,是怎么回事呢??making links in engines...
    making links in engines/ccgost...
    make[4]: Nothing to be done for `links'.
    making links in apps...
    make[3]: Nothing to be done for `links'.
    making links in test...
    make[3]: Nothing to be done for `links'.
    making links in tools...
    make[3]: Nothing to be done for `links'.
    generating dummy tests (if needed)...
    make[3]: Nothing to be done for `generate'.Configured for BSD-generic32.
    cd /Users/magicstudio/Desktop/linphone-iphone2/submodules/build/../build-armv7s-apple-darwin/externals/openssl &&  host_alias=armv7s-apple-darwin . /Users/magicstudio/Desktop/linphone-iphone2/submodules/build/..//build/iphone-config.site \
    && make CC="$CC" build_crypto build_ssl libcrypto.pc libssl.pc\
    && cp -r include  /Users/magicstudio/Desktop/linphone-iphone2/submodules/build/..//../liblinphone-sdk/armv7s-apple-darwin/ \
    && cp lib*.a  /Users/magicstudio/Desktop/linphone-iphone2/submodules/build/..//../liblinphone-sdk/armv7s-apple-darwin/lib \
    && cp libcrypto.pc /Users/magicstudio/Desktop/linphone-iphone2/submodules/build/..//../liblinphone-sdk/armv7s-apple-darwin/lib/pkgconfig/. \
    && cp libssl.pc /Users/magicstudio/Desktop/linphone-iphone2/submodules/build/..//../liblinphone-sdk/armv7s-apple-darwin/lib/pkgconfig/. \Loading config.site for iPhone platform=OS version=4.0
    /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk
    Selecting SDK path = /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk
    making all in crypto...
    ( echo "#ifndef MK1MF_BUILD"; \
    echo '  /* auto-generated by crypto/Makefile for crypto/cversion.c */'; \
    echo '  #define CFLAGS "xcrun clang -std=c99  -arch armv7s  -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk -miphoneos-version-min=4.0 -DTARGET_OS_IPHONE=1 -D__IOS -DOPENSSL_THREADS -pthread -D_THREAD_SAFE -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -DTERMIOS -O3 -fomit-frame-pointer -Wall"'; \
    echo '  #define PLATFORM "BSD-generic32"'; \
    echo "  #define DATE \"`LC_ALL=C LC_TIME=C date`\""; \
    echo '#endif' ) >buildinf.h
    xcrun clang -std=c99  -arch armv7s  -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk -miphoneos-version-min=4.0 -DTARGET_OS_IPHONE=1 -D__IOS -I. -I.. -I../include  -DOPENSSL_THREADS -pthread -D_THREAD_SAFE -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -DTERMIOS -O3 -fomit-frame-pointer -Wall   -c -o cryptlib.o cryptlib.c
    clang: error: invalid arch name '-arch armv7s'
    make[3]: *** [cryptlib.o] Error 1
    make[2]: *** [build_crypto] Error 1
    make[1]: *** [build-openssl] Error 2
    make: *** [build] Error 2
      

  3.   

    用了xcode4.6就编译好了,奉劝后来者使用较新版的xcode,编译了一个半小时