2016-01-28 54 views
1

我試圖在ios中配置ChatSecure。 當我構建OTRKit並且還爲CPAProxy出現錯誤時。請幫助。還有一個疑問,那就是它將爲迅速bash ./Submodules/OTRKit/scripts/build-all.sh configure:error:C編譯器無法創建可執行文件

$ bash ./Submodules/OTRKit/scripts/build-all.sh 

支持我安裝命令行工具也。(的Xcode 7.1,OS X 10.11)

這就是我得到

Jayaraj-iMac:ChatSecure-iOS jayaraj$ bash ./Submodules/OTRKit/scripts/build-all.sh 
No iOS SDK specified. Using the only one available: 9.1 
Building architectures: i386 x86_64 armv7 arm64 
Building libraries: gpg-error gcrypt otr 
Building gpg-error for i386... 
% Total % Received % Xferd Average Speed Time Time  Time Current 
          Dload Upload Total Spent Left Speed 
100 752k 100 752k 0  0 185k  0 0:00:04 0:00:04 --:--:-- 185k 
~/Desktop/ChatSecure-iOS/Submodules/OTRKit/scripts/build/libgpg-error-1.20  ~/Desktop/ChatSecure-iOS/Submodules/OTRKit/scripts/build 
checking for a BSD-compatible install... /usr/local/bin/ginstall -c 
checking whether build environment is sane... yes 
checking for i386-apple-darwin-strip... no 
checking for strip... strip 
checking for a thread-safe mkdir -p... /usr/local/bin/gmkdir -p 
checking for gawk... no 
checking for mawk... no 
checking for nawk... no 
checking for awk... awk 
checking whether make sets $(MAKE)... yes 
checking whether make supports nested variables... yes 
checking whether to enable maintainer-specific portions of Makefiles... no 
checking whether make supports nested variables... (cached) yes 
checking build system type... x86_64-apple-darwin15.0.0 
checking host system type... i386-apple-darwin 
configure: autobuild project... libgpg-error 
configure: autobuild revision... 1.20 
configure: autobuild hostname... Irudayarajs-iMac.local 
configure: autobuild timestamp... 20160128-102754 
checking for i386-apple-darwin-gcc... cc 
checking whether the C compiler works... no 
configure: error: in `/Users/jayaraj/Desktop/ChatSecure- iOS/Submodules/OTRKit/scripts/build/libgpg-error-1.20': 
configure: error: C compiler cannot create executables 
See `config.log' for more details 

這是config.log

This file contains any messages produced by compilers while 
running configure, to aid debugging if configure makes a mistake. 

It was created by libgpg-error configure 1.20, which was 
generated by GNU Autoconf 2.69. Invocation command line was 

$ ./configure --disable-shared --enable-static --with-pic --enable-threads=posix --host i386-apple-darwin --with-sysroot=/Applications/Xcode 3.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.1.sdk --prefix=/Users/jayaraj/Desktop/ChatSecure-iOS/Submodules/OTRKit/scripts/build/iPhoneSimulator-9.1-i386 LDFLAGS=-L/Users/jayaraj/Desktop/ChatSecure-iOS/Submodules/OTRKit/scripts/built/i386/lib -fPIE -miphoneos-version-min=8.0 CFLAGS= -arch i386 -fPIE -isysroot /Applications/Xcode  3.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.1.sdk -I/Users/jayaraj/Desktop/ChatSecure-iOS/Submodules/OTRKit/scripts/built/i386/include -miphoneos-version-min=8.0 CPPLAGS= -arch i386 -fPIE -isysroot /Applications/Xcode 3.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.1.sdk -I/Users/jayaraj/Desktop/ChatSecure-iOS/Submodules/OTRKit/scripts/built/i386/include -miphoneos-version-min=8.0 

## --------- ## 
## Platform. ## 
## --------- ## 

hostname = Irudayarajs-iMac.local 
uname -m = x86_64 
uname -r = 15.0.0 
uname -s = Darwin 
uname -v = Darwin Kernel Version 15.0.0: Wed Aug 26 16:57:32 PDT 2015;  root:xnu-3247.1.106~1/RELEASE_X86_64 

/usr/bin/uname -p = i386 
/bin/uname -X  = unknown 

/bin/arch    = unknown 
/usr/bin/arch -k  = unknown 
/usr/convex/getsysinfo = unknown 
/usr/bin/hostinfo  = Mach kernel version: 
    Darwin Kernel Version 15.0.0: Wed Aug 26 16:57:32 PDT 2015; root:xnu- 3247.1.106~1/RELEASE_X86_64 
Kernel configured for up to 4 processors. 
4 processors are physically available. 
4 processors are logically available. 
Processor type: x86_64h (Intel x86-64h Haswell) 
Processors active: 0 1 2 3 
Primary memory available: 8.00 gigabytes 
Default processor set: 251 tasks, 1124 threads, 4 processors 
Load average: 1.54, Mach factor: 2.44 
/bin/machine   = unknown 
/usr/bin/oslevel  = unknown 
/bin/universe   = unknown 

PATH: /usr/local/bin 
PATH: /usr/bin 
PATH: /bin 
PATH: /usr/sbin 
PATH: /sbin 
PATH: /opt/X11/bin 
PATH: /usr/local/MacGPG2/bin 


## ----------- ## 
## Core tests. ## 
## ----------- ## 

configure:2647: checking for a BSD-compatible install 
configure:2715: result: /usr/local/bin/ginstall -c 
configure:2726: checking whether build environment is sane 
configure:2781: result: yes 
configure:2840: checking for i386-apple-darwin-strip 
configure:2870: result: no 
configure:2880: checking for strip 
configure:2896: found /usr/bin/strip 
configure:2907: result: strip 
configure:2932: checking for a thread-safe mkdir -p 
configure:2971: result: /usr/local/bin/gmkdir -p 
configure:2978: checking for gawk 
configure:3008: result: no 
configure:2978: checking for mawk 
configure:3008: result: no 
configure:2978: checking for nawk 
configure:3008: result: no 
configure:2978: checking for awk 
configure:2994: found /usr/bin/awk 
configure:3005: result: awk 
configure:3016: checking whether make sets $(MAKE) 
configure:3038: result: yes 
configure:3067: checking whether make supports nested variables 
configure:3084: result: yes 
configure:3211: checking whether to enable maintainer-specific portions of  Makefiles 
configure:3220: result: no 
configure:3248: checking whether make supports nested variables 
configure:3265: result: yes 
configure:3283: checking build system type 
configure:3297: result: x86_64-apple-darwin15.0.0 
configure:3317: checking host system type 
configure:3330: result: i386-apple-darwin 
configure:3354: autobuild project... libgpg-error 
configure:3356: autobuild revision... 1.20 
configure:3360: autobuild hostname... Irudayarajs-iMac.local 
configure:3369: autobuild timestamp... 20160128-095704 
configure:3383: checking for i386-apple-darwin-gcc 
configure:3410: result: gcc 
configure:3679: checking for C compiler version 
configure:3688: gcc --version >&5 
Apple LLVM version 7.0.0 (clang-700.1.76) 
Target: x86_64-apple-darwin15.0.0 
Thread model: posix 
Configured with: --prefix=/Applications/Xcode 3.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1 
configure:3699: $? = 0 
configure:3688: gcc -v >&5 
Configured with: --prefix=/Applications/Xcode 3.app/Contents/Developer/usr -- with-gxx-include-dir=/usr/include/c++/4.2.1 
Apple LLVM version 7.0.0 (clang-700.1.76) 
Target: x86_64-apple-darwin15.0.0 
Thread model: posix 
configure:3699: $? = 0 
configure:3688: gcc -V >&5 
clang: error: argument to '-V' is missing (expected 1 value) 
clang: error: no input files 
configure:3699: $? = 1 
configure:3688: gcc -qversion >&5 
clang: error: unknown argument: '-qversion' 
clang: error: no input files 
configure:3699: $? = 1 
configure:3719: checking whether the C compiler works 
configure:3741: gcc -arch i386 -fPIE -isysroot /Applications/Xcode  3.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.1.sdk -I/Users/jayaraj/Desktop/ChatSecure-iOS/Submodules/OTRKit/scripts/built/i386/include -miphoneos-version-min=8.0 -L/Users/jayaraj/Desktop/ChatSecure-iOS/Submodules/OTRKit/scripts/built/i386/lib -fPIE -miphoneos-version-min=8.0 conftest.c >&5 
clang: error: no such file or directory:  '3.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPho neSimulator9.1.sdk' 
clang: warning: no such sysroot directory: '/Applications/Xcode' 
configure:3745: $? = 1 
configure:3783: result: no 
configure: failed program was: 
| /* confdefs.h */ 
| #define PACKAGE_NAME "libgpg-error" 
| #define PACKAGE_TARNAME "libgpg-error" 
| #define PACKAGE_VERSION "1.20" 
| #define PACKAGE_STRING "libgpg-error 1.20" 
| #define PACKAGE_BUGREPORT "http://bugs.gnupg.org" 
| #define PACKAGE_URL "" 
| #define PACKAGE "libgpg-error" 
| #define VERSION "1.20" 
| /* end confdefs.h. */ 
| 
| int 
| main() 
| { 
| 
| ; 
| return 0; 
| } 
configure:3788: error: in `/Users/jayaraj/Desktop/ChatSecure-  iOS/Submodules/OTRKit/scripts/build/libgpg-error-1.20': 
configure:3790: error: C compiler cannot create executables 
See `config.log' for more details 

## ---------------- ## 
## Cache variables. ## 
## ---------------- ## 

ac_cv_build=x86_64-apple-darwin15.0.0 
ac_cv_env_CC_FOR_BUILD_set= 
ac_cv_env_CC_FOR_BUILD_value= 
ac_cv_env_CC_set=set 
ac_cv_env_CC_value=gcc 
ac_cv_env_CFLAGS_set=set 
ac_cv_env_CFLAGS_value=' -arch i386 -fPIE -isysroot /Applications/Xcode  3.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.1.sdk -I/Users/jayaraj/Desktop/ChatSecure- iOS/Submodules/OTRKit/scripts/built/i386/include -miphoneos-version-min=8.0' 
ac_cv_env_CPPFLAGS_set= 
ac_cv_env_CPPFLAGS_value= 
ac_cv_env_CPP_set= 
ac_cv_env_CPP_value= 
ac_cv_env_LDFLAGS_set=set 
ac_cv_env_LDFLAGS_value='-L/Users/jayaraj/Desktop/ChatSecure- iOS/Submodules/OTRKit/scripts/built/i386/lib -fPIE -miphoneos-version-min=8.0' 
ac_cv_env_LIBS_set= 
ac_cv_env_LIBS_value= 
ac_cv_env_build_alias_set= 
ac_cv_env_build_alias_value= 
ac_cv_env_host_alias_set=set 
ac_cv_env_host_alias_value=i386-apple-darwin 
ac_cv_env_target_alias_set= 
ac_cv_env_target_alias_value= 
ac_cv_host=i386-apple-darwin 
ac_cv_path_install='/usr/local/bin/ginstall -c' 
ac_cv_path_mkdir=/usr/local/bin/gmkdir 
ac_cv_prog_AWK=awk 
ac_cv_prog_CC=gcc 
ac_cv_prog_ac_ct_STRIP=strip 
ac_cv_prog_make_make_set=yes 
am_cv_make_support_nested_variables=yes 

## ----------------- ## 
## Output variables. ## 
## ----------------- ## 

ACLOCAL='${SHELL} /Users/jayaraj/Desktop/ChatSecure-iOS/Submodules/OTRKit/scripts/build/libgpg-error-1.20/build-aux/missing aclocal-1.14' 
AMDEPBACKSLASH='' 
AMDEP_FALSE='' 
AMDEP_TRUE='' 
AMTAR='$${TAR-tar}' 
AM_BACKSLASH='\' 
AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 
AM_DEFAULT_VERBOSITY='1' 
AM_V='$(V)' 
AR='' 
AS='' 
AUTOCONF='${SHELL} /Users/jayaraj/Desktop/ChatSecure-iOS/Submodules/OTRKit/scripts/build/libgpg-error-1.20/build-aux/missing  autoconf' 
AUTOHEADER='${SHELL} /Users/jayaraj/Desktop/ChatSecure-iOS/Submodules/OTRKit/scripts/build/libgpg-error-1.20/build-aux/missing autoheader' 
AUTOMAKE='${SHELL} /Users/jayaraj/Desktop/ChatSecure-iOS/Submodules/OTRKit/scripts/build/libgpg-error-1.20/build-aux/missing  automake-1.14' 
AWK='awk' 
BUILD_DOC_FALSE='' 
BUILD_DOC_TRUE='' 
BUILD_FILEVERSION='' 
BUILD_REVISION='' 
BUILD_TIMESTAMP='' 
BUILD_VERSION='' 
CC='gcc' 
CCDEPMODE='' 
CC_FOR_BUILD='' 
CFLAGS=' -arch i386 -fPIE -isysroot /Applications/Xcode  3.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.1.sdk -I/Users/jayaraj/Desktop/ChatSecure-iOS/Submodules/OTRKit/scripts/built/i386/include -miphoneos-version-min=8.0' 
CPP='' 
CPPFLAGS='' 
CROSS_COMPILING_FALSE='' 
CROSS_COMPILING_TRUE='' 
CYGPATH_W='echo' 
DEFS='' 
DEPDIR='' 
DLLTOOL='' 
DSYMUTIL='' 
DUMPBIN='' 
ECHO_C='\c' 
ECHO_N='' 
ECHO_T='' 
EGREP='' 
EXEEXT='' 
FGREP='' 
FORCE_USE_SYSCFG_FALSE='' 
FORCE_USE_SYSCFG_TRUE='' 
GETTEXT_MACRO_VERSION='' 
GMSGFMT='' 
GMSGFMT_015='' 
GPG_ERROR_CONFIG_CFLAGS='' 
GPG_ERROR_CONFIG_HOST='' 
GPG_ERROR_CONFIG_ISUBDIRAFTER='' 
GPG_ERROR_CONFIG_LIBS='' 
GPG_ERROR_CONFIG_MT_CFLAGS='' 
GPG_ERROR_CONFIG_MT_LIBS='' 
GREP='' 
HAVE_LD_VERSION_SCRIPT_FALSE='' 
HAVE_LD_VERSION_SCRIPT_TRUE='' 
HAVE_W32CE_SYSTEM_FALSE='' 
HAVE_W32CE_SYSTEM_TRUE='' 
HAVE_W32_SYSTEM_FALSE='' 
HAVE_W32_SYSTEM_TRUE='' 
HAVE_W64_SYSTEM_FALSE='' 
HAVE_W64_SYSTEM_TRUE='' 
INSTALL_DATA='${INSTALL} -m 644' 
INSTALL_PROGRAM='${INSTALL}' 
INSTALL_SCRIPT='${INSTALL}' 
INSTALL_STRIP_PROGRAM='$(install_sh) -c -s' 
INTLLIBS='' 
INTL_MACOSX_LIBS='' 
LANGUAGES_SOME_FALSE='' 
LANGUAGES_SOME_TRUE='' 
LD='' 
LDFLAGS='-L/Users/jayaraj/Desktop/ChatSecure-iOS/Submodules/OTRKit/scripts/built/i386/lib -fPIE -miphoneos-version-min=8.0' 
LIBGPG_ERROR_LT_AGE='16' 
LIBGPG_ERROR_LT_CURRENT='16' 
LIBGPG_ERROR_LT_REVISION='0' 
LIBICONV='' 
LIBINTL='' 
LIBMULTITHREAD='' 
LIBOBJS='' 
LIBS='' 
LIBTHREAD='' 
LIBTOOL='' 
LIPO='' 
LN_S='' 
LTLIBICONV='' 
LTLIBINTL='' 
LTLIBMULTITHREAD='' 
LTLIBOBJS='' 
LTLIBTHREAD='' 
MAINT='#' 
MAINTAINER_MODE_FALSE='' 
MAINTAINER_MODE_TRUE='#' 
MAKEINFO='${SHELL} /Users/jayaraj/Desktop/ChatSecure- iOS/Submodules/OTRKit/scripts/build/libgpg-error-1.20/build-aux/missing  makeinfo' 
MANIFEST_TOOL='' 
MKDIR_P='/usr/local/bin/gmkdir -p' 
MSGFMT='' 
MSGFMT_015='' 
MSGMERGE='' 
NM='' 
NMEDIT='' 
OBJDUMP='' 
OBJEXT='' 
OTOOL64='' 
OTOOL='' 
PACKAGE='libgpg-error' 
PACKAGE_BUGREPORT='http://bugs.gnupg.org' 
PACKAGE_NAME='libgpg-error' 
PACKAGE_STRING='libgpg-error 1.20' 
PACKAGE_TARNAME='libgpg-error' 
PACKAGE_URL='' 
PACKAGE_VERSION='1.20' 
PATH_SEPARATOR=':' 
POSUB='' 
RANLIB='' 
RC='' 
SED='' 
SET_MAKE='' 
SHELL='/bin/sh' 
STRIP='strip' 
USE_NLS='' 
VERSION='1.20' 
VERSION_NUMBER='0x011400' 
XGETTEXT='' 
XGETTEXT_015='' 
XGETTEXT_EXTRA_OPTIONS='' 
ac_ct_AR='' 
ac_ct_CC='' 
ac_ct_DUMPBIN='' 
am__EXEEXT_FALSE='' 
am__EXEEXT_TRUE='' 
am__fastdepCC_FALSE='' 
am__fastdepCC_TRUE='' 
am__include='' 
am__isrc='' 
am__leading_dot='.' 
am__nodep='' 
am__quote='' 
am__tar='$${TAR-tar} chof - "$$tardir"' 
am__untar='$${TAR-tar} xf -' 
bindir='${exec_prefix}/bin' 
build='x86_64-apple-darwin15.0.0' 
build_alias='' 
build_cpu='x86_64' 
build_os='darwin15.0.0' 
build_vendor='apple' 
datadir='${datarootdir}' 
datarootdir='${prefix}/share' 
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 
dvidir='${docdir}' 
exec_prefix='NONE' 
host='i386-apple-darwin' 
host_alias='i386-apple-darwin' 
host_cpu='i386' 
host_os='darwin' 
host_vendor='apple' 
htmldir='${docdir}' 
includedir='${prefix}/include' 
infodir='${datarootdir}/info' 
install_sh='${SHELL} /Users/jayaraj/Desktop/ChatSecure- iOS/Submodules/OTRKit/scripts/build/libgpg-error-1.20/build-aux/install-sh' 
libdir='${exec_prefix}/lib' 
libexecdir='${exec_prefix}/libexec' 
localedir='${datarootdir}/locale' 
localstatedir='${prefix}/var' 
mandir='${datarootdir}/man' 
mkdir_p='$(MKDIR_P)' 
oldincludedir='/usr/include' 
pdfdir='${docdir}' 
prefix='/Users/jayaraj/Desktop/ChatSecure- iOS/Submodules/OTRKit/scripts/build/iPhoneSimulator-9.1-i386' 
program_transform_name='s,x,x,' 
psdir='${docdir}' 
sbindir='${exec_prefix}/sbin' 
sharedstatedir='${prefix}/com' 
sysconfdir='${prefix}/etc' 
target_alias='' 

## ----------- ## 
## confdefs.h. ## 
## ----------- ## 

/* confdefs.h */ 
#define PACKAGE_NAME "libgpg-error" 
#define PACKAGE_TARNAME "libgpg-error" 
#define PACKAGE_VERSION "1.20" 
#define PACKAGE_STRING "libgpg-error 1.20" 
#define PACKAGE_BUGREPORT "http://bugs.gnupg.org" 
#define PACKAGE_URL "" 
#define PACKAGE "libgpg-error" 
#define VERSION "1.20" 

configure: exit 77 

回答

0

安裝XCode命令行工具後,您必須同意Xcode/iOS Lice在gcc之前執行。您可以在命令行上通過運行

sudo /usr/bin/gcc 

並按照提示進行操作。現在,再次運行該命令,你應該看到這樣的輸出:

clang: error: no input files 

如果你看到上面的輸出,這意味着你已經成功地答應了Xcode中/ iOS的許可,你就可以運行你原來的命令:

bash ./Submodules/OTRKit/scripts/build-all.sh 
+0

我輸入了「$ sudo/usr/bin/gcc」。首先它問我密碼,然後我輸入。我得到了「叮鐺聲:錯誤:沒有輸入文件」。我再次運行「$ sudo/usr/bin/gcc」。但是,我又得到了「鏗鏘聲:錯誤:沒有輸入文件」 –

+0

對不起,響應緩慢;我在國外。我已更新原始文章以闡明下一步。 –

+0

感謝您的回覆。我發現了這個問題。我有4個Xcode。最新的一個是Xcode 3.所以我不得不刪除其他Xcode並將最新的一個更名爲Xcode。之後,我重置命令行中的路徑。現在它工作完美。 –

相關問題