log4plus编译之ios

叶叶叶 发布于 2014/02/17 17:38
阅读 590
收藏 0
  $ ./configure --prefix=/Users/admin/Desktop/库的编译/log4cplus-1.0.4/build/armv6 -host= i386-apple-darwin -disable-shared -enable-static -build=x86_64-apple-darwin10.8.0 CC=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc -std=c99 -arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk


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


hostname = admintekiMac-mini.local
uname -m = x86_64
uname -r = 12.5.0
uname -s = Darwin
uname -v = Darwin Kernel Version 12.5.0: Mon Jul 29 16:33:49 PDT 2013; root:xnu-2050.48.11~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 12.5.0: Mon Jul 29 16:33:49 PDT 2013; root:xnu-2050.48.11~1/RELEASE_X86_64
Kernel configured for up to 8 processors.
4 processors are physically available.
8 processors are logically available.
Processor type: i486 (Intel 80486)
Processors active: 0 1 2 3 4 5 6 7
Primary memory available: 4.00 gigabytes
Default processor set: 99 tasks, 644 threads, 8 processors
Load average: 1.08, Mach factor: 6.91
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown


PATH: /usr/bin
PATH: /bin
PATH: /usr/sbin
PATH: /sbin
PATH: /usr/local/bin
PATH: /Users/admin/Desktop/depot_tools
PATH: /usr/local/git/bin




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


configure:2473: checking build system type
configure:2487: result: x86_64-apple-darwin10.8.0
configure:2507: checking host system type
configure:2520: result: x86_64-apple-darwin10.8.0
configure:2540: checking target system type
configure:2553: result: i386-apple-darwin
configure:2597: checking for a BSD-compatible install
configure:2665: result: /usr/bin/install -c
configure:2676: checking whether build environment is sane
configure:2726: result: yes
configure:2867: checking for a thread-safe mkdir -p
configure:2906: result: ./install-sh -c -d
configure:2919: checking for gawk
configure:2949: result: no
configure:2919: checking for mawk
configure:2949: result: no
configure:2919: checking for nawk
configure:2949: result: no
configure:2919: checking for awk
configure:2935: found /usr/bin/awk
configure:2946: result: awk
configure:2957: checking whether make sets $(MAKE)
configure:2979: result: yes
configure:3165: checking for g++
configure:3181: found /usr/bin/g++
configure:3192: result: g++
configure:3219: checking for C++ compiler version
configure:3228: g++ --version >&5
Configured with: --prefix=/Volumes/Xcode/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
xcrun: Error: could not stat active Xcode path '/Volumes/Xcode/Xcode.app/Contents/Developer'. (No such file or directory)
configure:3239: $? = 0
configure:3228: g++ -v >&5
Configured with: --prefix=/Volumes/Xcode/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
xcrun: Error: could not stat active Xcode path '/Volumes/Xcode/Xcode.app/Contents/Developer'. (No such file or directory)
configure:3239: $? = 0
configure:3228: g++ -V >&5
xcrun: Error: could not stat active Xcode path '/Volumes/Xcode/Xcode.app/Contents/Developer'. (No such file or directory)
configure:3239: $? = 0
configure:3228: g++ -qversion >&5
xcrun: Error: could not stat active Xcode path '/Volumes/Xcode/Xcode.app/Contents/Developer'. (No such file or directory)
configure:3239: $? = 0
configure:3259: checking whether the C++ compiler works
configure:3281: g++    conftest.cpp  >&5
xcrun: Error: could not stat active Xcode path '/Volumes/Xcode/Xcode.app/Contents/Developer'. (No such file or directory)
configure:3285: $? = 0
configure:3323: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "log4cplus"
| #define PACKAGE_TARNAME "log4cplus"
| #define PACKAGE_VERSION "1.0.4"
| #define PACKAGE_STRING "log4cplus 1.0.4"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| /* end confdefs.h.  */

| int
| main ()
| {

|   ;
|   return 0;
| }
configure:3328: error: in `/Users/admin/Desktop/log4cplus-1.0.4':
configure:3330: error: C++ compiler cannot create executables
See `config.log' for more details


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


ac_cv_build=x86_64-apple-darwin10.8.0
ac_cv_env_CCC_set=
ac_cv_env_CCC_value=
ac_cv_env_CC_set=set
ac_cv_env_CC_value='/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc -std=c99 -arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk'
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_CXXCPP_set=
ac_cv_env_CXXCPP_value=
ac_cv_env_CXXFLAGS_set=
ac_cv_env_CXXFLAGS_value=
ac_cv_env_CXX_set=
ac_cv_env_CXX_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_build_alias_set=set
ac_cv_env_build_alias_value=x86_64-apple-darwin10.8.0
ac_cv_env_host_alias_set=set
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=set
ac_cv_env_target_alias_value=i386-apple-darwin
ac_cv_host=x86_64-apple-darwin10.8.0
ac_cv_path_install='/usr/bin/install -c'
ac_cv_prog_AWK=awk
ac_cv_prog_ac_ct_CXX=g++
ac_cv_prog_make_make_set=yes
ac_cv_target=i386-apple-darwin


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


ACLOCAL='${SHELL} /Users/admin/Desktop/log4cplus-1.0.4/missing --run aclocal-1.11'
AMDEPBACKSLASH=''
AMDEP_FALSE=''
AMDEP_TRUE=''
AMTAR='${SHELL} /Users/admin/Desktop/log4cplus-1.0.4/missing --run tar'
AR=''
AS=''
AUTOCONF='${SHELL} /Users/admin/Desktop/log4cplus-1.0.4/missing --run autoconf'
AUTOHEADER='${SHELL} /Users/admin/Desktop/log4cplus-1.0.4/missing --run autoheader'
AUTOMAKE='${SHELL} /Users/admin/Desktop/log4cplus-1.0.4/missing --run automake-1.11'
AWK='awk'
CC='/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc -std=c99 -arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk'
CCDEPMODE=''
CFLAGS=''
CPP=''
CPPFLAGS=''
CXX='g++'
CXXCPP=''
CXXDEPMODE=''
CXXFLAGS=''
CYGPATH_W='echo'
DEFS=''
DEPDIR=''
DLLTOOL=''
DSYMUTIL=''
DUMPBIN=''
ECHO_C='\c'
ECHO_N=''
ECHO_T=''
EGREP=''
EXEEXT=''
FGREP=''
GREP=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
LD=''
LDFLAGS=''
LIBOBJS=''
LIBS=''
LIBTOOL=''
LIPO=''
LN_S=''
LOG4CPLUS_NDEBUG='-DNDEBUG'
LTLIBOBJS=''
LT_VERSION='4:0:0'
MAKEINFO='${SHELL} /Users/admin/Desktop/log4cplus-1.0.4/missing --run makeinfo'
MKDIR_P='./install-sh -c -d'
MULTI_THREADED_FALSE=''
MULTI_THREADED_TRUE=''
NM=''
NMEDIT=''
OBJDUMP=''
OBJEXT=''
OTOOL64=''
OTOOL=''
PACKAGE='log4cplus'
PACKAGE_BUGREPORT=''
PACKAGE_NAME='log4cplus'
PACKAGE_STRING='log4cplus 1.0.4'
PACKAGE_TARNAME='log4cplus'
PACKAGE_URL=''
PACKAGE_VERSION='1.0.4'
PATH_SEPARATOR=':'
PTHREAD_CC=''
PTHREAD_CFLAGS=''
PTHREAD_LIBS=''
RANLIB=''
SED=''
SET_MAKE=''
SHELL='/bin/sh'
STRIP=''
VERSION='1.0.4'
WINSOCK_SOCKETS_FALSE=''
WINSOCK_SOCKETS_TRUE=''
ac_ct_CC=''
ac_ct_CXX='g++'
ac_ct_DUMPBIN=''
am__EXEEXT_FALSE=''
am__EXEEXT_TRUE=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE=''
am__fastdepCXX_FALSE=''
am__fastdepCXX_TRUE=''
am__include=''
am__isrc=''
am__leading_dot='.'
am__quote=''
am__tar='${AMTAR} chof - "$$tardir"'
am__untar='${AMTAR} xf -'
ax_pthread_config=''
bindir='${exec_prefix}/bin'
build='x86_64-apple-darwin10.8.0'
build_alias='x86_64-apple-darwin10.8.0'
build_cpu='x86_64'
build_os='darwin10.8.0'
build_vendor='apple'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='NONE'
host='x86_64-apple-darwin10.8.0'
host_alias=''
host_cpu='x86_64'
host_os='darwin10.8.0'
host_vendor='apple'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
install_sh='${SHELL} /Users/admin/Desktop/log4cplus-1.0.4/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
mkdir_p='$(top_builddir)/./install-sh -c -d'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='/Users/admin/Desktop/库的编译/log4cplus-1.0.4/build/armv6'
program_transform_name='s&^&i386-apple-darwin-&'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target='i386-apple-darwin'
target_alias='i386-apple-darwin'
target_cpu='i386'
target_os='darwin'
target_vendor='apple'


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


/* confdefs.h */
#define PACKAGE_NAME "log4cplus"
#define PACKAGE_TARNAME "log4cplus"
#define PACKAGE_VERSION "1.0.4"
#define PACKAGE_STRING "log4cplus 1.0.4"
#define PACKAGE_BUGREPORT ""
#define PACKAGE_URL ""


configure: exit 77

 
这是编译后的日志,安装log4cplus失败,xcrun: Error: could not stat active Xcode path '/Volumes/Xcode/Xcode.app/Contents/Developer'. (No such file or directory)
这路径怎么修改呢?


好吧,终于找到一个,可是接着执行的时候又有二个错误,
 conftest.cpp:9:10: fatal error: 'ac_nonexistent.h' file not found

clang: error: argument to '-V' is missing (expected 1 value)


加载中
返回顶部
顶部