【背景】
折腾:
【记录】Cygwin下用arm-xscale-linux-gnueabi交叉编译libhttpd
期间,发现libhttpd需要用到pcre。
所以,此处在,cygwin下,用arm-xscale-linux-gnueabi,去交叉编译pcre。
【折腾过程】
1.去官网:
下载
得到2.01MB的pcre-8.33.zip
2.解压后,去看看配置如何:
CLi@PC-CLI-1 ~/develop/pcre/pcre-8.33 $ ./configure --help `configure' configures PCRE 8.33 to adapt to many kinds of systems. Usage: ./configure [OPTION]... [VAR=VALUE]... To assign environment variables (e.g., CC, CFLAGS...), specify them as VAR=VALUE. See below for descriptions of some of the useful variables. Defaults for the options are specified in brackets. Configuration: -h, --help display this help and exit --help=short display options specific to this package --help=recursive display the short help of all the included packages -V, --version display version information and exit -q, --quiet, --silent do not print `checking ...' messages --cache-file=FILE cache test results in FILE [disabled] -C, --config-cache alias for `--cache-file=config.cache' -n, --no-create do not create output files --srcdir=DIR find the sources in DIR [configure dir or `..'] Installation directories: --prefix=PREFIX install architecture-independent files in PREFIX [/usr/local] --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX [PREFIX] By default, `make install' will install all the files in `/usr/local/bin', `/usr/local/lib' etc. You can specify an installation prefix other than `/usr/local' using `--prefix', for instance `--prefix=$HOME'. For better control, use the options below. Fine tuning of the installation directories: --bindir=DIR user executables [EPREFIX/bin] --sbindir=DIR system admin executables [EPREFIX/sbin] --libexecdir=DIR program executables [EPREFIX/libexec] --sysconfdir=DIR read-only single-machine data [PREFIX/etc] --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] --localstatedir=DIR modifiable single-machine data [PREFIX/var] --libdir=DIR object code libraries [EPREFIX/lib] --includedir=DIR C header files [PREFIX/include] --oldincludedir=DIR C header files for non-gcc [/usr/include] --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] --datadir=DIR read-only architecture-independent data [DATAROOTDIR] --infodir=DIR info documentation [DATAROOTDIR/info] --localedir=DIR locale-dependent data [DATAROOTDIR/locale] --mandir=DIR man documentation [DATAROOTDIR/man] --docdir=DIR documentation root [DATAROOTDIR/doc/pcre] --htmldir=DIR html documentation [DOCDIR] --dvidir=DIR dvi documentation [DOCDIR] --pdfdir=DIR pdf documentation [DOCDIR] --psdir=DIR ps documentation [DOCDIR] Program names: --program-prefix=PREFIX prepend PREFIX to installed program names --program-suffix=SUFFIX append SUFFIX to installed program names --program-transform-name=PROGRAM run sed PROGRAM on installed program names System types: --build=BUILD configure for building on BUILD [guessed] --host=HOST cross-compile to build programs to run on HOST [BUILD] Optional Features: --disable-option-checking ignore unrecognized --enable/--with options --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) --enable-FEATURE[=ARG] include FEATURE [ARG=yes] --enable-silent-rules less verbose build output (undo: "make V=1") --disable-silent-rules verbose build output (undo: "make V=0") --enable-dependency-tracking do not reject slow dependency extractors --disable-dependency-tracking speeds up one-time build --enable-shared[=PKGS] build shared libraries [default=yes] --enable-static[=PKGS] build static libraries [default=yes] --enable-fast-install[=PKGS] optimize for fast installation [default=yes] --disable-libtool-lock avoid locking (might break parallel builds) --disable-pcre8 disable 8 bit character support --enable-pcre16 enable 16 bit character support --enable-pcre32 enable 32 bit character support --disable-cpp disable C++ support --enable-jit enable Just-In-Time compiling support --disable-pcregrep-jit disable JIT support in pcregrep --enable-rebuild-chartables rebuild character tables in current locale --enable-utf8 another name for --enable-utf. Kept only for compatibility reasons --enable-utf enable UTF-8/16/32 support (incompatible with --enable-ebcdic) --enable-unicode-properties enable Unicode properties support (implies --enable-utf) --enable-newline-is-cr use CR as newline character --enable-newline-is-lf use LF as newline character (default) --enable-newline-is-crlf use CRLF as newline sequence --enable-newline-is-anycrlf use CR, LF, or CRLF as newline sequence --enable-newline-is-any use any valid Unicode newline sequence --enable-bsr-anycrlf \R matches only CR, LF, CRLF by default --enable-ebcdic assume EBCDIC coding rather than ASCII; incompatible with --enable-utf; use only in (uncommon) EBCDIC environments; it implies --enable-rebuild-chartables --enable-ebcdic-nl25 set EBCDIC code for NL to 0x25 instead of 0x15; it implies --enable-ebcdic --disable-stack-for-recursion don't use stack recursion when matching --enable-pcregrep-libz link pcregrep with libz to handle .gz files --enable-pcregrep-libbz2 link pcregrep with libbz2 to handle .bz2 files --enable-pcretest-libedit link pcretest with libedit --enable-pcretest-libreadline link pcretest with libreadline --enable-valgrind valgrind support --enable-coverage enable code coverage reports using gcov Optional Packages: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use both] --with-gnu-ld assume the C compiler uses GNU ld [default=no] --with-sysroot=DIR Search for dependent libraries within DIR (or the compiler's sysroot if not specified). --with-pcregrep-bufsize=N pcregrep buffer size (default=20480) --with-posix-malloc-threshold=NBYTES threshold for POSIX malloc usage (default=10) --with-link-size=N internal link size (2, 3, or 4 allowed; default=2) --with-match-limit=N default limit on internal looping (default=10000000) --with-match-limit-recursion=N default limit on internal recursion (default=MATCH_LIMIT) Some influential environment variables: CC C compiler command CFLAGS C compiler flags LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a nonstandard directory <lib dir> LIBS libraries to pass to the linker, e.g. -l<library> CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if you have headers in a nonstandard directory <include dir> CXX C++ compiler command CXXFLAGS C++ compiler flags CPP C preprocessor CXXCPP C++ preprocessor PKG_CONFIG path to pkg-config utility PKG_CONFIG_PATH directories to add to pkg-config's search path PKG_CONFIG_LIBDIR path overriding pkg-config's built-in search path VALGRIND_CFLAGS C compiler flags for VALGRIND, overriding pkg-config VALGRIND_LIBS linker flags for VALGRIND, overriding pkg-config LCOV the ltp lcov program GENHTML the ltp genhtml program Use these variables to override the choices made by `configure' or to help it to find libraries and programs with nonstandard names/locations. Report bugs to the package provider. CLi@PC-CLI-1 ~/develop/pcre/pcre-8.33 $
3.去配置:
./configure --prefix=$HOME/develop/crosstool-ng/x-tools/armxscalepcre --build=i686-pc-cygwin --target=arm-xscale-linux-gnueabi --host=arm-xscale-linux-gnueabi CC=arm-xscale-linux-gnueabi-gcc
过程为:
CLi@PC-CLI-1 ~/develop/pcre/pcre-8.33 $ ./configure --prefix=$HOME/develop/crosstool-ng/x-tools/armxscalepcre --build=i686-pc-cygwin --target=arm-xscale-linux-gnueabi --host=arm-xscale-linux-gnueabi CC=arm-xscale-linux-gnueabi-gcc checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for arm-xscale-linux-gnueabi-strip... arm-xscale-linux-gnueabi-strip checking for a thread-safe mkdir -p... /usr/bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking whether make supports nested variables... (cached) yes checking for style of include used by make... GNU checking for arm-xscale-linux-gnueabi-gcc... arm-xscale-linux-gnueabi-gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... yes checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether arm-xscale-linux-gnueabi-gcc accepts -g... yes checking for arm-xscale-linux-gnueabi-gcc option to accept ISO C89... none needed checking dependency style of arm-xscale-linux-gnueabi-gcc... gcc3 checking for arm-xscale-linux-gnueabi-ar... arm-xscale-linux-gnueabi-ar checking the archiver (arm-xscale-linux-gnueabi-ar) interface... ar checking for arm-xscale-linux-gnueabi-gcc... (cached) arm-xscale-linux-gnueabi-gcc checking whether we are using the GNU C compiler... (cached) yes checking whether arm-xscale-linux-gnueabi-gcc accepts -g... (cached) yes checking for arm-xscale-linux-gnueabi-gcc option to accept ISO C89... (cached) none needed checking dependency style of arm-xscale-linux-gnueabi-gcc... (cached) gcc3 checking for arm-xscale-linux-gnueabi-g++... arm-xscale-linux-gnueabi-g++ checking whether we are using the GNU C++ compiler... yes checking whether arm-xscale-linux-gnueabi-g++ accepts -g... yes checking dependency style of arm-xscale-linux-gnueabi-g++... gcc3 checking whether arm-xscale-linux-gnueabi-gcc and cc understand -c and -o together... yes checking how to run the C preprocessor... arm-xscale-linux-gnueabi-gcc -E checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking for int64_t... yes checking build system type... i686-pc-cygwin checking host system type... arm-xscale-linux-gnueabi checking how to print strings... printf checking for a sed that does not truncate output... /usr/bin/sed checking for fgrep... /usr/bin/grep -F checking for ld used by arm-xscale-linux-gnueabi-gcc... /home/CLi/develop/crosstool-ng/x-tools/arm-xscale-linux-gnueabi/arm-xscale-linux-gnueabi/bin/ld.exe checking if the linker (/home/CLi/develop/crosstool-ng/x-tools/arm-xscale-linux-gnueabi/arm-xscale-linux-gnueabi/bin/ld.exe) is GNU ld... yes checking for BSD- or MS-compatible name lister (nm)... /home/CLi/develop/crosstool-ng/x-tools/arm-xscale-linux-gnueabi/bin/arm-xscale-linux-gnueabi-nm -B checking the name lister (/home/CLi/develop/crosstool-ng/x-tools/arm-xscale-linux-gnueabi/bin/arm-xscale-linux-gnueabi-nm -B) interface... BSD nm checking whether ln -s works... yes checking the maximum length of command line arguments... 8192 checking whether the shell understands some XSI constructs... yes checking whether the shell understands "+="... yes checking how to convert i686-pc-cygwin file names to arm-xscale-linux-gnueabi format... func_convert_file_noop checking how to convert i686-pc-cygwin file names to toolchain format... func_convert_file_noop checking for /home/CLi/develop/crosstool-ng/x-tools/arm-xscale-linux-gnueabi/arm-xscale-linux-gnueabi/bin/ld.exe option to reload object files... -r checking for arm-xscale-linux-gnueabi-objdump... objdump checking how to recognize dependent libraries... pass_all checking for arm-xscale-linux-gnueabi-dlltool... dlltool checking how to associate runtime and link libraries... printf %s\n checking for arm-xscale-linux-gnueabi-ar... (cached) arm-xscale-linux-gnueabi-ar checking for archiver @FILE support... @ checking for arm-xscale-linux-gnueabi-strip... (cached) arm-xscale-linux-gnueabi-strip checking for arm-xscale-linux-gnueabi-ranlib... arm-xscale-linux-gnueabi-ranlib checking command to parse /home/CLi/develop/crosstool-ng/x-tools/arm-xscale-linux-gnueabi/bin/arm-xscale-linux-gnueabi-nm -B output from arm-xscale-linux-gnueabi-gcc object... ok checking for sysroot... no checking for arm-xscale-linux-gnueabi-mt... no checking for mt... mt configure: WARNING: using cross tools not prefixed with host triplet checking if mt is a manifest tool... no checking for dlfcn.h... yes checking for objdir... .libs checking if arm-xscale-linux-gnueabi-gcc supports -fno-rtti -fno-exceptions... no checking for arm-xscale-linux-gnueabi-gcc option to produce PIC... -fPIC -DPIC checking if arm-xscale-linux-gnueabi-gcc PIC flag -fPIC -DPIC works... yes checking if arm-xscale-linux-gnueabi-gcc static flag -static works... yes checking if arm-xscale-linux-gnueabi-gcc supports -c -o file.o... yes checking if arm-xscale-linux-gnueabi-gcc supports -c -o file.o... (cached) yes checking whether the arm-xscale-linux-gnueabi-gcc linker (/home/CLi/develop/crosstool-ng/x-tools/arm-xscale-linux-gnueabi/arm-xscale-linux-gnueabi/bin/ld.exe) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... yes checking how to run the C++ preprocessor... arm-xscale-linux-gnueabi-g++ -E checking for ld used by arm-xscale-linux-gnueabi-g++... /home/CLi/develop/crosstool-ng/x-tools/arm-xscale-linux-gnueabi/arm-xscale-linux-gnueabi/bin/ld.exe checking if the linker (/home/CLi/develop/crosstool-ng/x-tools/arm-xscale-linux-gnueabi/arm-xscale-linux-gnueabi/bin/ld.exe) is GNU ld... yes checking whether the arm-xscale-linux-gnueabi-g++ linker (/home/CLi/develop/crosstool-ng/x-tools/arm-xscale-linux-gnueabi/arm-xscale-linux-gnueabi/bin/ld.exe) supports shared libraries... yes checking for arm-xscale-linux-gnueabi-g++ option to produce PIC... -fPIC -DPIC checking if arm-xscale-linux-gnueabi-g++ PIC flag -fPIC -DPIC works... yes checking if arm-xscale-linux-gnueabi-g++ static flag -static works... yes checking if arm-xscale-linux-gnueabi-g++ supports -c -o file.o... yes checking if arm-xscale-linux-gnueabi-g++ supports -c -o file.o... (cached) yes checking whether the arm-xscale-linux-gnueabi-g++ linker (/home/CLi/develop/crosstool-ng/x-tools/arm-xscale-linux-gnueabi/arm-xscale-linux-gnueabi/bin/ld.exe) supports shared libraries... yes checking dynamic linker characteristics... (cached) GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether ln -s works... yes checking whether the -Werror option is usable... yes checking for simple visibility declarations... yes checking for ANSI C header files... (cached) yes checking limits.h usability... yes checking limits.h presence... yes checking for limits.h... yes checking for sys/types.h... (cached) yes checking for sys/stat.h... (cached) yes checking dirent.h usability... yes checking dirent.h presence... yes checking for dirent.h... yes checking windows.h usability... no checking windows.h presence... no checking for windows.h... no checking for alias support in the linker... no checking for alias support in the linker... no checking string usability... yes checking string presence... yes checking for string... yes checking bits/type_traits.h usability... no checking bits/type_traits.h presence... no checking for bits/type_traits.h... no checking type_traits.h usability... no checking type_traits.h presence... no checking for type_traits.h... no checking for strtoq... yes checking for long long... yes checking for unsigned long long... yes checking for an ANSI C-conforming const... yes checking for size_t... yes checking for bcopy... yes checking for memmove... yes checking for strerror... yes checking zlib.h usability... no checking zlib.h presence... no checking for zlib.h... no checking for gzopen in -lz... no checking bzlib.h usability... no checking bzlib.h presence... no checking for bzlib.h... no checking for libbz2... no checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: creating libpcre.pc config.status: creating libpcre16.pc config.status: creating libpcre32.pc config.status: creating libpcreposix.pc config.status: creating libpcrecpp.pc config.status: creating pcre-config config.status: creating pcre.h config.status: creating pcre_stringpiece.h config.status: creating pcrecpparg.h config.status: creating config.h config.status: executing depfiles commands config.status: executing libtool commands config.status: executing script-chmod commands config.status: executing delete-old-chartables commands pcre-8.33 configuration summary: Install prefix .................. : /home/CLi/develop/crosstool-ng/x-tools/armxscalepcre C preprocessor .................. : arm-xscale-linux-gnueabi-gcc -E C compiler ...................... : arm-xscale-linux-gnueabi-gcc C++ preprocessor ................ : arm-xscale-linux-gnueabi-g++ -E C++ compiler .................... : arm-xscale-linux-gnueabi-g++ Linker .......................... : /home/CLi/develop/crosstool-ng/x-tools/arm-xscale-linux-gnueabi/arm-xscale-linux-gnueabi/bin/ld.exe C preprocessor flags ............ : C compiler flags ................ : -g -O2 -fvisibility=hidden C++ compiler flags .............. : -O2 -fvisibility=hidden -fvisibility-inlines-hidden Linker flags .................... : Extra libraries ................. : Build 8 bit pcre library ........ : yes Build 16 bit pcre library ....... : no Build 32 bit pcre library ....... : no Build C++ library ............... : yes Enable JIT compiling support .... : no Enable UTF-8/16/32 support ...... : no Unicode properties .............. : no Newline char/sequence ........... : lf \R matches only ANYCRLF ......... : no EBCDIC coding ................... : no EBCDIC code for NL .............. : n/a Rebuild char tables ............. : no Use stack recursion ............. : yes POSIX mem threshold ............. : 10 Internal link size .............. : 2 Match limit ..................... : 10000000 Match limit recursion ........... : MATCH_LIMIT Build shared libs ............... : yes Build static libs ............... : yes Use JIT in pcregrep ............. : no Buffer size for pcregrep ........ : 20480 Link pcregrep with libz ......... : no Link pcregrep with libbz2 ....... : no Link pcretest with libedit ...... : no Link pcretest with libreadline .. : no Valgrind support ................ : no Code coverage ................... : no CLi@PC-CLI-1 ~/develop/pcre/pcre-8.33 $
4.再去make编译:
CLi@PC-CLI-1 ~/develop/pcre/pcre-8.33 $ make rm -f pcre_chartables.c ln -s ./pcre_chartables.c.dist pcre_chartables.c make all-am make[1]: Entering directory `/home/CLi/develop/pcre/pcre-8.33' CC libpcre_la-pcre_byte_order.lo CC libpcre_la-pcre_compile.lo CC libpcre_la-pcre_config.lo CC libpcre_la-pcre_dfa_exec.lo CC libpcre_la-pcre_exec.lo CC libpcre_la-pcre_fullinfo.lo CC libpcre_la-pcre_get.lo CC libpcre_la-pcre_globals.lo CC libpcre_la-pcre_jit_compile.lo CC libpcre_la-pcre_maketables.lo CC libpcre_la-pcre_newline.lo CC libpcre_la-pcre_ord2utf8.lo CC libpcre_la-pcre_refcount.lo CC libpcre_la-pcre_string_utils.lo CC libpcre_la-pcre_study.lo CC libpcre_la-pcre_tables.lo CC libpcre_la-pcre_ucd.lo CC libpcre_la-pcre_valid_utf8.lo CC libpcre_la-pcre_version.lo CC libpcre_la-pcre_xclass.lo CC libpcre_la-pcre_chartables.lo CCLD libpcre.la CC libpcreposix_la-pcreposix.lo CCLD libpcreposix.la CXX libpcrecpp_la-pcrecpp.lo CXX libpcrecpp_la-pcre_scanner.lo CXX libpcrecpp_la-pcre_stringpiece.lo CXXLD libpcrecpp.la CC pcretest-pcretest.o CC pcretest-pcre_printint.o CCLD pcretest CC pcregrep-pcregrep.o CCLD pcregrep CXX pcrecpp_unittest-pcrecpp_unittest.o CXXLD pcrecpp_unittest CXX pcre_scanner_unittest-pcre_scanner_unittest.o CXXLD pcre_scanner_unittest CXX pcre_stringpiece_unittest-pcre_stringpiece_unittest.o CXXLD pcre_stringpiece_unittest make[1]: Leaving directory `/home/CLi/develop/pcre/pcre-8.33' CLi@PC-CLI-1 ~/develop/pcre/pcre-8.33 $
5.再去make install安装:
CLi@PC-CLI-1 ~/develop/pcre/pcre-8.33 $ make install make install-am make[1]: Entering directory `/home/CLi/develop/pcre/pcre-8.33' make[2]: Entering directory `/home/CLi/develop/pcre/pcre-8.33' /usr/bin/mkdir -p '/home/CLi/develop/crosstool-ng/x-tools/armxscalepcre/lib' /bin/sh ./libtool --mode=install /usr/bin/install -c libpcre.la libpcreposix.la libpcrecpp.la '/home/CLi/develop/crosstool-ng/x-tools/armxscalepcre/lib' libtool: install: /usr/bin/install -c .libs/libpcre.so.1.2.1 /home/CLi/develop/crosstool-ng/x-tools/armxscalepcre/lib/libpcre.so.1.2.1 libtool: install: (cd /home/CLi/develop/crosstool-ng/x-tools/armxscalepcre/lib && { ln -s -f libpcre.so.1.2.1 libpcre.so.1 || { rm -f libpcre.so.1 && ln -s libpcre.so.1.2.1 libpcre.so.1; }; }) libtool: install: (cd /home/CLi/develop/crosstool-ng/x-tools/armxscalepcre/lib && { ln -s -f libpcre.so.1.2.1 libpcre.so || { rm -f libpcre.so && ln -s libpcre.so.1.2.1 libpcre.so; }; }) libtool: install: /usr/bin/install -c .libs/libpcre.lai /home/CLi/develop/crosstool-ng/x-tools/armxscalepcre/lib/libpcre.la libtool: install: warning: relinking `libpcreposix.la' libtool: install: (cd /home/CLi/develop/pcre/pcre-8.33; /bin/sh /home/CLi/develop/pcre/pcre-8.33/libtool --silent --tag CC --mode=relink arm-xscale-linux-gnueabi-gcc -fvisibility=hidden -g -O2 -version-info 0:2:0 -o libpcreposix.la -rpath /home/CLi/develop/crosstool-ng/x-tools/armxscalepcre/lib libpcreposix_la-pcreposix.lo libpcre.la ) libtool: install: /usr/bin/install -c .libs/libpcreposix.so.0.0.2T /home/CLi/develop/crosstool-ng/x-tools/armxscalepcre/lib/libpcreposix.so.0.0.2 libtool: install: (cd /home/CLi/develop/crosstool-ng/x-tools/armxscalepcre/lib && { ln -s -f libpcreposix.so.0.0.2 libpcreposix.so.0 || { rm -f libpcreposix.so.0 && ln -s libpcreposix.so.0.0.2 libpcreposix.so.0; }; }) libtool: install: (cd /home/CLi/develop/crosstool-ng/x-tools/armxscalepcre/lib && { ln -s -f libpcreposix.so.0.0.2 libpcreposix.so || { rm -f libpcreposix.so && ln -s libpcreposix.so.0.0.2 libpcreposix.so; }; }) libtool: install: /usr/bin/install -c .libs/libpcreposix.lai /home/CLi/develop/crosstool-ng/x-tools/armxscalepcre/lib/libpcreposix.la libtool: install: warning: relinking `libpcrecpp.la' libtool: install: (cd /home/CLi/develop/pcre/pcre-8.33; /bin/sh /home/CLi/develop/pcre/pcre-8.33/libtool --silent --tag CXX --mode=relink arm-xscale-linux-gnueabi-g++ -fvisibility=hidden -fvisibility-inlines-hidden -O2 -version-info 0:0:0 -o libpcrecpp.la -rpath /home/CLi/develop/crosstool-ng/x-tools/armxscalepcre/lib libpcrecpp_la-pcrecpp.lo libpcrecpp_la-pcre_scanner.lo libpcrecpp_la-pcre_stringpiece.lo libpcre.la ) libtool: install: /usr/bin/install -c .libs/libpcrecpp.so.0.0.0T /home/CLi/develop/crosstool-ng/x-tools/armxscalepcre/lib/libpcrecpp.so.0.0.0 libtool: install: (cd /home/CLi/develop/crosstool-ng/x-tools/armxscalepcre/lib && { ln -s -f libpcrecpp.so.0.0.0 libpcrecpp.so.0 || { rm -f libpcrecpp.so.0 && ln -s libpcrecpp.so.0.0.0 libpcrecpp.so.0; }; }) libtool: install: (cd /home/CLi/develop/crosstool-ng/x-tools/armxscalepcre/lib && { ln -s -f libpcrecpp.so.0.0.0 libpcrecpp.so || { rm -f libpcrecpp.so && ln -s libpcrecpp.so.0.0.0 libpcrecpp.so; }; }) libtool: install: /usr/bin/install -c .libs/libpcrecpp.lai /home/CLi/develop/crosstool-ng/x-tools/armxscalepcre/lib/libpcrecpp.la libtool: install: /usr/bin/install -c .libs/libpcre.a /home/CLi/develop/crosstool-ng/x-tools/armxscalepcre/lib/libpcre.a libtool: install: chmod 644 /home/CLi/develop/crosstool-ng/x-tools/armxscalepcre/lib/libpcre.a libtool: install: arm-xscale-linux-gnueabi-ranlib /home/CLi/develop/crosstool-ng/x-tools/armxscalepcre/lib/libpcre.a libtool: install: /usr/bin/install -c .libs/libpcreposix.a /home/CLi/develop/crosstool-ng/x-tools/armxscalepcre/lib/libpcreposix.a libtool: install: chmod 644 /home/CLi/develop/crosstool-ng/x-tools/armxscalepcre/lib/libpcreposix.a libtool: install: arm-xscale-linux-gnueabi-ranlib /home/CLi/develop/crosstool-ng/x-tools/armxscalepcre/lib/libpcreposix.a libtool: install: /usr/bin/install -c .libs/libpcrecpp.a /home/CLi/develop/crosstool-ng/x-tools/armxscalepcre/lib/libpcrecpp.a libtool: install: chmod 644 /home/CLi/develop/crosstool-ng/x-tools/armxscalepcre/lib/libpcrecpp.a libtool: install: arm-xscale-linux-gnueabi-ranlib /home/CLi/develop/crosstool-ng/x-tools/armxscalepcre/lib/libpcrecpp.a libtool: finish: PATH="/home/CLi/develop/crosstool-ng/x-tools/arm-xscale-linux-gnueabi/bin:/opt/crosstool-ng/bin:/home/CLi/develop/crosstool-ng/x-tools/armxscalecurl/bin:/usr/local/bin:/usr/bin:/cygdrive/d/tmp/dev_install_root/Python27_x64:/cygdrive/d/tmp/dev_install_root/Python27_x64/Lib/site-packages/PyQt4:/cygdrive/d/tmp/dev_install_root/Perl64/site/bin:/cygdrive/d/tmp/dev_install_root/Perl64/bin:/cygdrive/c/Program Files/Common Files/Microsoft Shared/Windows Live:/cygdrive/c/Program Files (x86)/Common Files/Microsoft Shared/Windows Live:/cygdrive/c/Windows/system32:/cygdrive/c/Windows:/cygdrive/c/Windows/System32/Wbem:/cygdrive/c/Windows/System32/WindowsPowerShell/v1.0:/cygdrive/c/Program Files (x86)/Microsoft SQL Server/100/Tools/Binn:/cygdrive/c/Program Files/Microsoft SQL Server/100/Tools/Binn:/cygdrive/c/Program Files/Microsoft SQL Server/100/DTS/Binn:/cygdrive/d/tmp/WordPress/mysql/mysql-5.5.18/MySQL/MySQL Server 5.5/bin:/cygdrive/d/tmp/WordPress/DevRoot/MySQL/MySQL Server 5.5/bin:/cygdrive/d/tmp/WordPress/DevRoot/php-5.3.6-Win32-VC9-x64:/cygdrive/d/tmp/WordPress/DevRoot/php-5.3.6-Win32-VC9-x64/ext:/cygdrive/d/tmp/WordPress/DevRoot/Python27:/cygdrive/c/Program Files (x86)/Common Files/Acronis/SnapAPI:/cygdrive/c/Program Files (x86)/Windows Live/Shared:/cygdrive/c/Program Files/Java/jdk1.7.0_11/bin:/home/CLi/develop/docbook/tools/fop/lib:/home/CLi/develop/docbook/tools/fop:/cygdrive/d/DevInstallRoot/FF/DD_IDE_1.1.2/TOK/BIN:/cygdrive/d/DevInstallRoot/FF/DD_IDE_1.2.0/TOK/BIN:/cygdrive/d/DevRoot/EmbeddedDevelop/trunk/Research/CLI/FF/FBK/develop/tools/develop-tools:/cygdrive/d/tmp/WordPress/DevRoot/Python27/Scripts:/cygdrive/d/tmp/dev_install_root/PostgreSQL/8.3/bin:/cygdrive/d/tmp/dev_install_root/ant/apache-ant-1.8.4/bin:/cygdrive/c/Program Files/nodejs:/cygdrive/c/Program Files/Microsoft/Web Platform Installer:/cygdrive/c/Program Files/TortoiseSVN/bin:/cygdrive/d/DevRoot/IndustrialMobileAutomation/HandheldDataSetter/ANTLR/batchFile:/cygdrive/c/Program Files (x86)/QuickTime/QTSystem:/cygdrive/d/tmp/tmp_dev_root/android/adt-bundle-windows/sdk/platform-tools:/cygdrive/d/tmp/dev_install_root/Tesseract-OCR:/cygdrive/d/tmp/dev_install_root/jython2.5.3/bin:/cygdrive/d/devinstallroot/gnuarm/bin:/cygdrive/d/tmp/dev_install_root/HTML Help Workshop:/cygdrive/c/Users/CLi/AppData/Roaming/npm:/usr/lib/lapack:/sbin" ldconfig -n /home/CLi/develop/crosstool-ng/x-tools/armxscalepcre/lib /home/CLi/develop/pcre/pcre-8.33/libtool: line 1099: ldconfig: command not found ---------------------------------------------------------------------- Libraries have been installed in: /home/CLi/develop/crosstool-ng/x-tools/armxscalepcre/lib If you ever happen to want to link against installed libraries in a given directory, LIBDIR, you must either use libtool, and specify the full pathname of the library, or use the `-LLIBDIR' flag during linking and do at least one of the following: - add LIBDIR to the `LD_LIBRARY_PATH' environment variable during execution - add LIBDIR to the `LD_RUN_PATH' environment variable during linking - use the `-Wl,-rpath -Wl,LIBDIR' linker flag - have your system administrator run these commands: See any operating system documentation about shared libraries for more information, such as the ld(1) and ld.so(8) manual pages. ---------------------------------------------------------------------- /usr/bin/mkdir -p '/home/CLi/develop/crosstool-ng/x-tools/armxscalepcre/bin' /bin/sh ./libtool --mode=install /usr/bin/install -c pcretest pcregrep '/home/CLi/develop/crosstool-ng/x-tools/armxscalepcre/bin' libtool: install: /usr/bin/install -c .libs/pcretest /home/CLi/develop/crosstool-ng/x-tools/armxscalepcre/bin/pcretest libtool: install: /usr/bin/install -c .libs/pcregrep /home/CLi/develop/crosstool-ng/x-tools/armxscalepcre/bin/pcregrep /usr/bin/mkdir -p '/home/CLi/develop/crosstool-ng/x-tools/armxscalepcre/bin' /usr/bin/install -c pcre-config '/home/CLi/develop/crosstool-ng/x-tools/armxscalepcre/bin' /usr/bin/mkdir -p '/home/CLi/develop/crosstool-ng/x-tools/armxscalepcre/share/doc/pcre' /usr/bin/install -c -m 644 doc/pcre.txt doc/pcre-config.txt doc/pcregrep.txt doc/pcretest.txt AUTHORS COPYING ChangeLog LICENCE NEWS README '/home/CLi/develop/crosstool-ng/x-tools/armxscalepcre/share/doc/pcre' /usr/bin/mkdir -p '/home/CLi/develop/crosstool-ng/x-tools/armxscalepcre/share/doc/pcre/html' /usr/bin/install -c -m 644 doc/html/NON-AUTOTOOLS-BUILD.txt doc/html/README.txt doc/html/index.html doc/html/pcre-config.html doc/html/pcre.html doc/html/pcre16.html doc/html/pcre32.html doc/html/pcre_assign_jit_stack.html doc/html/pcre_compile.html doc/html/pcre_compile2.html doc/html/pcre_config.html doc/html/pcre_copy_named_substring.html doc/html/pcre_copy_substring.html doc/html/pcre_dfa_exec.html doc/html/pcre_exec.html doc/html/pcre_free_study.html doc/html/pcre_free_substring.html doc/html/pcre_free_substring_list.html doc/html/pcre_fullinfo.html doc/html/pcre_get_named_substring.html doc/html/pcre_get_stringnumber.html doc/html/pcre_get_stringtable_entries.html doc/html/pcre_get_substring.html doc/html/pcre_get_substring_list.html doc/html/pcre_jit_exec.html doc/html/pcre_jit_stack_alloc.html doc/html/pcre_jit_stack_free.html doc/html/pcre_maketables.html doc/html/pcre_pattern_to_host_byte_order.html doc/html/pcre_refcount.html doc/html/pcre_study.html doc/html/pcre_utf16_to_host_byte_order.html doc/html/pcre_utf32_to_host_byte_order.html doc/html/pcre_version.html doc/html/pcreapi.html doc/html/pcrebuild.html doc/html/pcrecallout.html doc/html/pcrecompat.html doc/html/pcredemo.html doc/html/pcregrep.html '/home/CLi/develop/crosstool-ng/x-tools/armxscalepcre/share/doc/pcre/html' /usr/bin/install -c -m 644 doc/html/pcrejit.html doc/html/pcrelimits.html doc/html/pcrematching.html doc/html/pcrepartial.html doc/html/pcrepattern.html doc/html/pcreperform.html doc/html/pcreposix.html doc/html/pcreprecompile.html doc/html/pcresample.html doc/html/pcrestack.html doc/html/pcresyntax.html doc/html/pcretest.html doc/html/pcreunicode.html '/home/CLi/develop/crosstool-ng/x-tools/armxscalepcre/share/doc/pcre/html' /usr/bin/mkdir -p '/home/CLi/develop/crosstool-ng/x-tools/armxscalepcre/share/doc/pcre/html' /usr/bin/install -c -m 644 doc/html/pcrecpp.html '/home/CLi/develop/crosstool-ng/x-tools/armxscalepcre/share/doc/pcre/html' /usr/bin/mkdir -p '/home/CLi/develop/crosstool-ng/x-tools/armxscalepcre/include' /usr/bin/install -c -m 644 pcreposix.h pcrecpp.h pcre_scanner.h '/home/CLi/develop/crosstool-ng/x-tools/armxscalepcre/include' /usr/bin/mkdir -p '/home/CLi/develop/crosstool-ng/x-tools/armxscalepcre/share/man/man1' /usr/bin/install -c -m 644 doc/pcre-config.1 doc/pcregrep.1 doc/pcretest.1 '/home/CLi/develop/crosstool-ng/x-tools/armxscalepcre/share/man/man1' /usr/bin/mkdir -p '/home/CLi/develop/crosstool-ng/x-tools/armxscalepcre/share/man/man3' /usr/bin/install -c -m 644 doc/pcre.3 doc/pcre16.3 doc/pcre32.3 doc/pcre_assign_jit_stack.3 doc/pcre_compile.3 doc/pcre_compile2.3 doc/pcre_config.3 doc/pcre_copy_named_substring.3 doc/pcre_copy_substring.3 doc/pcre_dfa_exec.3 doc/pcre_exec.3 doc/pcre_free_study.3 doc/pcre_free_substring.3 doc/pcre_free_substring_list.3 doc/pcre_fullinfo.3 doc/pcre_get_named_substring.3 doc/pcre_get_stringnumber.3 doc/pcre_get_stringtable_entries.3 doc/pcre_get_substring.3 doc/pcre_get_substring_list.3 doc/pcre_jit_exec.3 doc/pcre_jit_stack_alloc.3 doc/pcre_jit_stack_free.3 doc/pcre_maketables.3 doc/pcre_pattern_to_host_byte_order.3 doc/pcre_refcount.3 doc/pcre_study.3 doc/pcre_utf16_to_host_byte_order.3 doc/pcre_utf32_to_host_byte_order.3 doc/pcre_version.3 doc/pcreapi.3 doc/pcrebuild.3 doc/pcrecallout.3 doc/pcrecompat.3 doc/pcredemo.3 doc/pcrejit.3 doc/pcrelimits.3 doc/pcrematching.3 doc/pcrepartial.3 doc/pcrepattern.3 '/home/CLi/develop/crosstool-ng/x-tools/armxscalepcre/share/man/man3' /usr/bin/install -c -m 644 doc/pcreperform.3 doc/pcreposix.3 doc/pcreprecompile.3 doc/pcresample.3 doc/pcrestack.3 doc/pcresyntax.3 doc/pcreunicode.3 doc/pcrecpp.3 '/home/CLi/develop/crosstool-ng/x-tools/armxscalepcre/share/man/man3' /usr/bin/mkdir -p '/home/CLi/develop/crosstool-ng/x-tools/armxscalepcre/include' /usr/bin/install -c -m 644 pcre.h pcrecpparg.h pcre_stringpiece.h '/home/CLi/develop/crosstool-ng/x-tools/armxscalepcre/include' /usr/bin/mkdir -p '/home/CLi/develop/crosstool-ng/x-tools/armxscalepcre/lib/pkgconfig' /usr/bin/install -c -m 644 libpcre.pc libpcreposix.pc libpcrecpp.pc '/home/CLi/develop/crosstool-ng/x-tools/armxscalepcre/lib/pkgconfig' make install-data-hook make[3]: Entering directory `/home/CLi/develop/pcre/pcre-8.33' ln -sf pcre_assign_jit_stack.3 /home/CLi/develop/crosstool-ng/x-tools/armxscalepcre/share/man/man3/pcre16_assign_jit_stack.3 ln -sf pcre_compile.3 /home/CLi/develop/crosstool-ng/x-tools/armxscalepcre/share/man/man3/pcre16_compile.3 ln -sf pcre_compile2.3 /home/CLi/develop/crosstool-ng/x-tools/armxscalepcre/share/man/man3/pcre16_compile2.3 ln -sf pcre_config.3 /home/CLi/develop/crosstool-ng/x-tools/armxscalepcre/share/man/man3/pcre16_config.3 ln -sf pcre_copy_named_substring.3 /home/CLi/develop/crosstool-ng/x-tools/armxscalepcre/share/man/man3/pcre16_copy_named_substring.3 ln -sf pcre_copy_substring.3 /home/CLi/develop/crosstool-ng/x-tools/armxscalepcre/share/man/man3/pcre16_copy_substring.3 ln -sf pcre_dfa_exec.3 /home/CLi/develop/crosstool-ng/x-tools/armxscalepcre/share/man/man3/pcre16_dfa_exec.3 ln -sf pcre_exec.3 /home/CLi/develop/crosstool-ng/x-tools/armxscalepcre/share/man/man3/pcre16_exec.3 ln -sf pcre_free_study.3 /home/CLi/develop/crosstool-ng/x-tools/armxscalepcre/share/man/man3/pcre16_free_study.3 ln -sf pcre_free_substring.3 /home/CLi/develop/crosstool-ng/x-tools/armxscalepcre/share/man/man3/pcre16_free_substring.3 ln -sf pcre_free_substring_list.3 /home/CLi/develop/crosstool-ng/x-tools/armxscalepcre/share/man/man3/pcre16_free_substring_list.3 ln -sf pcre_fullinfo.3 /home/CLi/develop/crosstool-ng/x-tools/armxscalepcre/share/man/man3/pcre16_fullinfo.3 ln -sf pcre_get_named_substring.3 /home/CLi/develop/crosstool-ng/x-tools/armxscalepcre/share/man/man3/pcre16_get_named_substring.3 ln -sf pcre_get_stringnumber.3 /home/CLi/develop/crosstool-ng/x-tools/armxscalepcre/share/man/man3/pcre16_get_stringnumber.3 ln -sf pcre_get_stringtable_entries.3 /home/CLi/develop/crosstool-ng/x-tools/armxscalepcre/share/man/man3/pcre16_get_stringtable_entries.3 ln -sf pcre_get_substring.3 /home/CLi/develop/crosstool-ng/x-tools/armxscalepcre/share/man/man3/pcre16_get_substring.3 ln -sf pcre_get_substring_list.3 /home/CLi/develop/crosstool-ng/x-tools/armxscalepcre/share/man/man3/pcre16_get_substring_list.3 ln -sf pcre_jit_exec.3 /home/CLi/develop/crosstool-ng/x-tools/armxscalepcre/share/man/man3/pcre16_jit_exec.3 ln -sf pcre_jit_stack_alloc.3 /home/CLi/develop/crosstool-ng/x-tools/armxscalepcre/share/man/man3/pcre16_jit_stack_alloc.3 ln -sf pcre_jit_stack_free.3 /home/CLi/develop/crosstool-ng/x-tools/armxscalepcre/share/man/man3/pcre16_jit_stack_free.3 ln -sf pcre_maketables.3 /home/CLi/develop/crosstool-ng/x-tools/armxscalepcre/share/man/man3/pcre16_maketables.3 ln -sf pcre_pattern_to_host_byte_order.3 /home/CLi/develop/crosstool-ng/x-tools/armxscalepcre/share/man/man3/pcre16_pattern_to_host_byte_order.3 ln -sf pcre_refcount.3 /home/CLi/develop/crosstool-ng/x-tools/armxscalepcre/share/man/man3/pcre16_refcount.3 ln -sf pcre_study.3 /home/CLi/develop/crosstool-ng/x-tools/armxscalepcre/share/man/man3/pcre16_study.3 ln -sf pcre_utf16_to_host_byte_order.3 /home/CLi/develop/crosstool-ng/x-tools/armxscalepcre/share/man/man3/pcre16_utf16_to_host_byte_order.3 ln -sf pcre_version.3 /home/CLi/develop/crosstool-ng/x-tools/armxscalepcre/share/man/man3/pcre16_version.3 ln -sf pcre_assign_jit_stack.3 /home/CLi/develop/crosstool-ng/x-tools/armxscalepcre/share/man/man3/pcre32_assign_jit_stack.3 ln -sf pcre_compile.3 /home/CLi/develop/crosstool-ng/x-tools/armxscalepcre/share/man/man3/pcre32_compile.3 ln -sf pcre_compile2.3 /home/CLi/develop/crosstool-ng/x-tools/armxscalepcre/share/man/man3/pcre32_compile2.3 ln -sf pcre_config.3 /home/CLi/develop/crosstool-ng/x-tools/armxscalepcre/share/man/man3/pcre32_config.3 ln -sf pcre_copy_named_substring.3 /home/CLi/develop/crosstool-ng/x-tools/armxscalepcre/share/man/man3/pcre32_copy_named_substring.3 ln -sf pcre_copy_substring.3 /home/CLi/develop/crosstool-ng/x-tools/armxscalepcre/share/man/man3/pcre32_copy_substring.3 ln -sf pcre_dfa_exec.3 /home/CLi/develop/crosstool-ng/x-tools/armxscalepcre/share/man/man3/pcre32_dfa_exec.3 ln -sf pcre_exec.3 /home/CLi/develop/crosstool-ng/x-tools/armxscalepcre/share/man/man3/pcre32_exec.3 ln -sf pcre_free_study.3 /home/CLi/develop/crosstool-ng/x-tools/armxscalepcre/share/man/man3/pcre32_free_study.3 ln -sf pcre_free_substring.3 /home/CLi/develop/crosstool-ng/x-tools/armxscalepcre/share/man/man3/pcre32_free_substring.3 ln -sf pcre_free_substring_list.3 /home/CLi/develop/crosstool-ng/x-tools/armxscalepcre/share/man/man3/pcre32_free_substring_list.3 ln -sf pcre_fullinfo.3 /home/CLi/develop/crosstool-ng/x-tools/armxscalepcre/share/man/man3/pcre32_fullinfo.3 ln -sf pcre_get_named_substring.3 /home/CLi/develop/crosstool-ng/x-tools/armxscalepcre/share/man/man3/pcre32_get_named_substring.3 ln -sf pcre_get_stringnumber.3 /home/CLi/develop/crosstool-ng/x-tools/armxscalepcre/share/man/man3/pcre32_get_stringnumber.3 ln -sf pcre_get_stringtable_entries.3 /home/CLi/develop/crosstool-ng/x-tools/armxscalepcre/share/man/man3/pcre32_get_stringtable_entries.3 ln -sf pcre_get_substring.3 /home/CLi/develop/crosstool-ng/x-tools/armxscalepcre/share/man/man3/pcre32_get_substring.3 ln -sf pcre_get_substring_list.3 /home/CLi/develop/crosstool-ng/x-tools/armxscalepcre/share/man/man3/pcre32_get_substring_list.3 ln -sf pcre_jit_exec.3 /home/CLi/develop/crosstool-ng/x-tools/armxscalepcre/share/man/man3/pcre32_jit_exec.3 ln -sf pcre_jit_stack_alloc.3 /home/CLi/develop/crosstool-ng/x-tools/armxscalepcre/share/man/man3/pcre32_jit_stack_alloc.3 ln -sf pcre_jit_stack_free.3 /home/CLi/develop/crosstool-ng/x-tools/armxscalepcre/share/man/man3/pcre32_jit_stack_free.3 ln -sf pcre_maketables.3 /home/CLi/develop/crosstool-ng/x-tools/armxscalepcre/share/man/man3/pcre32_maketables.3 ln -sf pcre_pattern_to_host_byte_order.3 /home/CLi/develop/crosstool-ng/x-tools/armxscalepcre/share/man/man3/pcre32_pattern_to_host_byte_order.3 ln -sf pcre_refcount.3 /home/CLi/develop/crosstool-ng/x-tools/armxscalepcre/share/man/man3/pcre32_refcount.3 ln -sf pcre_study.3 /home/CLi/develop/crosstool-ng/x-tools/armxscalepcre/share/man/man3/pcre32_study.3 ln -sf pcre_utf32_to_host_byte_order.3 /home/CLi/develop/crosstool-ng/x-tools/armxscalepcre/share/man/man3/pcre32_utf32_to_host_byte_order.3 ln -sf pcre_version.3 /home/CLi/develop/crosstool-ng/x-tools/armxscalepcre/share/man/man3/pcre32_version.3 make[3]: Leaving directory `/home/CLi/develop/pcre/pcre-8.33' make[2]: Leaving directory `/home/CLi/develop/pcre/pcre-8.33' make[1]: Leaving directory `/home/CLi/develop/pcre/pcre-8.33' CLi@PC-CLI-1 ~/develop/pcre/pcre-8.33 $
即可。
【总结】
此处交叉编译的:
1.配置:
./configure --prefix=$HOME/develop/crosstool-ng/x-tools/armxscalepcre --build=i686-pc-cygwin --target=arm-xscale-linux-gnueabi --host=arm-xscale-linux-gnueabi CC=arm-xscale-linux-gnueabi-gcc
2.编译:
make
3.安装:
make install