最新消息:20210917 已从crifan.com换到crifan.org

【记录】Ubuntu下用arm-xscale-linux-gnueabi交叉编译pcre

CrossCompiler crifan 3228浏览 0评论

【背景】

之前已经折腾过:

【记录】Ubuntu下用arm-xscale-linux-gnueabi交叉编译xmlrpc

【记录】Ubuntu下用arm-xscale-linux-gnueabi交叉编译curl(libcurl)

【记录】Ubuntu下用arm-xscale-linux-gnueabi交叉编译libxml2

【记录】Ubuntu下用arm-xscale-linux-gnueabi交叉编译expat

【记录】Ubuntu下用arm-xscale-linux-gnueabi交叉编译log4c

【记录】Ubuntu下用arm-xscale-linux-gnueabi交叉编译libcgi

以及:

【记录】Ubuntu下用交叉编译器arm-xscale-linux-gnueabi交叉编译WirelessHART项目

了,现在继续去交叉编译pcre。

 

继续参考之前的:

【记录】cygwin下用arm-xscale-linux-gnueabi交叉编译pcre

去折腾。

 

【折腾过程】

1.去官网:

http://www.pcre.org/

打算用svn下载源码(因为直接下载是zip,在Ubuntu下不方便解压):

【已解决】Ubuntu下安装svn

2.上面虽然svn安装成功,但是由于连不上服务器,所以还是无法通过svn下载代码。

只能手动去下载源码了。

下载:

pcre-8.33.tar.bz2

得到源码了:

crifan@ubuntu:pcre$ ls
pcre-8.33.tar.bz2
crifan@ubuntu:pcre$ tar xvf pcre-8.33.tar.bz2 
pcre-8.33/
pcre-8.33/pcre32_version.c
pcre-8.33/configure.ac
pcre-8.33/pcre16_compile.c
pcre-8.33/cmake/
pcre-8.33/cmake/COPYING-CMAKE-SCRIPTS
pcre-8.33/cmake/FindEditline.cmake
pcre-8.33/cmake/FindReadline.cmake
pcre-8.33/cmake/FindPackageHandleStandardArgs.cmake
pcre-8.33/pcre_get.c
pcre-8.33/doc/
pcre-8.33/doc/pcre.txt
pcre-8.33/doc/pcre_jit_stack_free.3
pcre-8.33/doc/pcre_assign_jit_stack.3
pcre-8.33/doc/pcretest.txt
pcre-8.33/doc/index.html.src
pcre-8.33/doc/perltest.txt
pcre-8.33/doc/pcreposix.3
pcre-8.33/doc/pcre.3
pcre-8.33/doc/pcre_study.3
pcre-8.33/doc/pcre_fullinfo.3
pcre-8.33/doc/pcre_free_study.3
pcre-8.33/doc/pcredemo.3
pcre-8.33/doc/pcre_get_substring_list.3
pcre-8.33/doc/pcre_get_stringnumber.3
pcre-8.33/doc/pcre32.3
pcre-8.33/doc/pcrelimits.3
pcre-8.33/doc/pcrecpp.3
pcre-8.33/doc/pcre_utf32_to_host_byte_order.3
pcre-8.33/doc/pcre_maketables.3
pcre-8.33/doc/pcrepartial.3
pcre-8.33/doc/pcre_compile2.3
pcre-8.33/doc/pcreapi.3
pcre-8.33/doc/pcrecallout.3
pcre-8.33/doc/pcresyntax.3
pcre-8.33/doc/pcre_get_substring.3
pcre-8.33/doc/pcre_exec.3
pcre-8.33/doc/pcre_free_substring_list.3
pcre-8.33/doc/pcre16.3
pcre-8.33/doc/pcre_free_substring.3
pcre-8.33/doc/pcre_version.3
pcre-8.33/doc/pcregrep.1
pcre-8.33/doc/pcre_compile.3
pcre-8.33/doc/pcresample.3
pcre-8.33/doc/pcre_pattern_to_host_byte_order.3
pcre-8.33/doc/pcreunicode.3
pcre-8.33/doc/pcregrep.txt
pcre-8.33/doc/pcre_get_stringtable_entries.3
pcre-8.33/doc/pcrecompat.3
pcre-8.33/doc/pcre_utf16_to_host_byte_order.3
pcre-8.33/doc/pcre_copy_substring.3
pcre-8.33/doc/pcre-config.1
pcre-8.33/doc/pcre_config.3
pcre-8.33/doc/pcre_dfa_exec.3
pcre-8.33/doc/pcreperform.3
pcre-8.33/doc/pcre_refcount.3
pcre-8.33/doc/pcre_jit_stack_alloc.3
pcre-8.33/doc/pcre_get_named_substring.3
pcre-8.33/doc/pcre_jit_exec.3
pcre-8.33/doc/pcre_copy_named_substring.3
pcre-8.33/doc/pcrebuild.3
pcre-8.33/doc/pcrematching.3
pcre-8.33/doc/pcreprecompile.3
pcre-8.33/doc/pcretest.1
pcre-8.33/doc/pcrestack.3
pcre-8.33/doc/pcrejit.3
pcre-8.33/doc/pcre-config.txt
pcre-8.33/doc/html/
pcre-8.33/doc/html/pcre_get_named_substring.html
pcre-8.33/doc/html/pcre_assign_jit_stack.html
pcre-8.33/doc/html/pcre_free_study.html
pcre-8.33/doc/html/pcre16.html
pcre-8.33/doc/html/pcre_refcount.html
pcre-8.33/doc/html/pcreapi.html
pcre-8.33/doc/html/pcredemo.html
pcre-8.33/doc/html/pcre_free_substring.html
pcre-8.33/doc/html/pcrebuild.html
pcre-8.33/doc/html/pcresample.html
pcre-8.33/doc/html/pcresyntax.html
pcre-8.33/doc/html/pcre_get_stringtable_entries.html
pcre-8.33/doc/html/pcre.html
pcre-8.33/doc/html/pcre_free_substring_list.html
pcre-8.33/doc/html/pcrematching.html
pcre-8.33/doc/html/pcre_jit_exec.html
pcre-8.33/doc/html/pcre_compile2.html
pcre-8.33/doc/html/pcrepartial.html
pcre-8.33/doc/html/pcre_study.html
pcre-8.33/doc/html/pcre_get_stringnumber.html
pcre-8.33/doc/html/pcre_utf32_to_host_byte_order.html
pcre-8.33/doc/html/pcre_jit_stack_alloc.html
pcre-8.33/doc/html/README.txt
pcre-8.33/doc/html/pcre32.html
pcre-8.33/doc/html/pcre_fullinfo.html
pcre-8.33/doc/html/pcrejit.html
pcre-8.33/doc/html/pcregrep.html
pcre-8.33/doc/html/pcreperform.html
pcre-8.33/doc/html/pcre_copy_substring.html
pcre-8.33/doc/html/pcre_utf16_to_host_byte_order.html
pcre-8.33/doc/html/pcrecpp.html
pcre-8.33/doc/html/pcre_dfa_exec.html
pcre-8.33/doc/html/NON-AUTOTOOLS-BUILD.txt
pcre-8.33/doc/html/index.html
pcre-8.33/doc/html/pcre_jit_stack_free.html
pcre-8.33/doc/html/pcrecompat.html
pcre-8.33/doc/html/pcreunicode.html
pcre-8.33/doc/html/pcre_maketables.html
pcre-8.33/doc/html/pcre-config.html
pcre-8.33/doc/html/pcre_exec.html
pcre-8.33/doc/html/pcrelimits.html
pcre-8.33/doc/html/pcre_get_substring.html
pcre-8.33/doc/html/pcre_config.html
pcre-8.33/doc/html/pcre_compile.html
pcre-8.33/doc/html/pcrecallout.html
pcre-8.33/doc/html/pcre_copy_named_substring.html
pcre-8.33/doc/html/pcrestack.html
pcre-8.33/doc/html/pcreprecompile.html
pcre-8.33/doc/html/pcre_version.html
pcre-8.33/doc/html/pcrepattern.html
pcre-8.33/doc/html/pcre_pattern_to_host_byte_order.html
pcre-8.33/doc/html/pcretest.html
pcre-8.33/doc/html/pcre_get_substring_list.html
pcre-8.33/doc/html/pcreposix.html
pcre-8.33/doc/pcrepattern.3
pcre-8.33/pcre32_dfa_exec.c
pcre-8.33/pcreposix.c
pcre-8.33/README
pcre-8.33/pcre16_exec.c
pcre-8.33/pcre_scanner.cc
pcre-8.33/pcre16_chartables.c
pcre-8.33/pcre_config.c
pcre-8.33/pcre16_dfa_exec.c
pcre-8.33/pcre_ord2utf8.c
pcre-8.33/NEWS
pcre-8.33/sljit/
pcre-8.33/sljit/sljitNativeX86_64.c
pcre-8.33/sljit/sljitConfig.h
pcre-8.33/sljit/sljitNativePPC_common.c
pcre-8.33/sljit/sljitNativeMIPS_32.c
pcre-8.33/sljit/sljitExecAllocator.c
pcre-8.33/sljit/sljitNativeSPARC_32.c
pcre-8.33/sljit/sljitNativeARM_Thumb2.c
pcre-8.33/sljit/sljitLir.h
pcre-8.33/sljit/sljitNativeARM_v5.c
pcre-8.33/sljit/sljitNativeX86_common.c
pcre-8.33/sljit/sljitNativeSPARC_common.c
pcre-8.33/sljit/sljitUtils.c
pcre-8.33/sljit/sljitNativeMIPS_common.c
pcre-8.33/sljit/sljitNativePPC_64.c
pcre-8.33/sljit/sljitLir.c
pcre-8.33/sljit/sljitNativeX86_32.c
pcre-8.33/sljit/sljitNativePPC_32.c
pcre-8.33/sljit/sljitConfigInternal.h
pcre-8.33/config.guess
pcre-8.33/pcre.h.generic
pcre-8.33/pcre16_printint.c
pcre-8.33/pcre32_exec.c
pcre-8.33/pcre_version.c
pcre-8.33/ucp.h
pcre-8.33/config.h.in
pcre-8.33/pcre16_jit_compile.c
pcre-8.33/pcre16_get.c
pcre-8.33/pcrecpparg.h.in
pcre-8.33/pcre32_ucd.c
pcre-8.33/AUTHORS
pcre-8.33/pcre_jit_compile.c
pcre-8.33/pcre32_globals.c
pcre-8.33/pcre_newline.c
pcre-8.33/pcre32_string_utils.c
pcre-8.33/pcre_compile.c
pcre-8.33/pcre_xclass.c
pcre-8.33/pcre_globals.c
pcre-8.33/test-driver
pcre-8.33/m4/
pcre-8.33/m4/libtool.m4
pcre-8.33/m4/ltoptions.m4
pcre-8.33/m4/lt~obsolete.m4
pcre-8.33/m4/ax_pthread.m4
pcre-8.33/m4/ltsugar.m4
pcre-8.33/m4/ltversion.m4
pcre-8.33/m4/pcre_visibility.m4
pcre-8.33/pcre_scanner.h
pcre-8.33/CMakeLists.txt
pcre-8.33/makevp.bat
pcre-8.33/pcre_stringpiece.h.in
pcre-8.33/aclocal.m4
pcre-8.33/pcre_stringpiece_unittest.cc
pcre-8.33/pcre32_utf32_utils.c
pcre-8.33/pcre16_refcount.c
pcre-8.33/pcretest.c
pcre-8.33/config-cmake.h.in
pcre-8.33/Makefile.in
pcre-8.33/libpcreposix.pc.in
pcre-8.33/libpcre16.pc.in
pcre-8.33/pcre32_maketables.c
pcre-8.33/pcre16_globals.c
pcre-8.33/RunTest.bat
pcre-8.33/pcregrep.c
pcre-8.33/libpcre.pc.in
pcre-8.33/pcre32_ord2utf32.c
pcre-8.33/pcre_scanner_unittest.cc
pcre-8.33/pcre_internal.h
pcre-8.33/libpcrecpp.pc.in
pcre-8.33/NON-AUTOTOOLS-BUILD
pcre-8.33/pcre16_valid_utf16.c
pcre-8.33/pcre32_study.c
pcre-8.33/pcre_study.c
pcre-8.33/COPYING
pcre-8.33/pcrecpp_unittest.cc
pcre-8.33/pcre32_valid_utf32.c
pcre-8.33/NON-UNIX-USE
pcre-8.33/pcrecpp.h
pcre-8.33/pcre_dfa_exec.c
pcre-8.33/ChangeLog
pcre-8.33/pcre32_jit_compile.c
pcre-8.33/pcre16_xclass.c
pcre-8.33/RunTest
pcre-8.33/Makefile.am
pcre-8.33/pcre16_config.c
pcre-8.33/dftables.c
pcre-8.33/pcre32_byte_order.c
pcre-8.33/pcre_jit_test.c
pcre-8.33/pcre_refcount.c
pcre-8.33/ltmain.sh
pcre-8.33/testdata/
pcre-8.33/testdata/testinput13
pcre-8.33/testdata/testinput4
pcre-8.33/testdata/testoutput25
pcre-8.33/testdata/grepbinary
pcre-8.33/testdata/grepinputx
pcre-8.33/testdata/testoutput21-16
pcre-8.33/testdata/testoutput22-16
pcre-8.33/testdata/testoutput11-32
pcre-8.33/testdata/saved16BE-1
pcre-8.33/testdata/testinput5
pcre-8.33/testdata/testinputEBC
pcre-8.33/testdata/testinput2
pcre-8.33/testdata/grepoutputN
pcre-8.33/testdata/saved32
pcre-8.33/testdata/testoutput13
pcre-8.33/testdata/testinput24
pcre-8.33/testdata/testoutput18-32
pcre-8.33/testdata/saved32BE-2
pcre-8.33/testdata/testoutput8
pcre-8.33/testdata/testoutput21-32
pcre-8.33/testdata/testoutput24
pcre-8.33/testdata/testoutput9
pcre-8.33/testdata/testoutput7
pcre-8.33/testdata/testinput8
pcre-8.33/testdata/testoutput11-16
pcre-8.33/testdata/testoutput20
pcre-8.33/testdata/testoutput19
pcre-8.33/testdata/saved8
pcre-8.33/testdata/testinput11
pcre-8.33/testdata/testoutputEBC
pcre-8.33/testdata/testoutput6
pcre-8.33/testdata/testinput14
pcre-8.33/testdata/testoutput23
pcre-8.33/testdata/saved32LE-2
pcre-8.33/testdata/testoutput2
pcre-8.33/testdata/testoutput15
pcre-8.33/testdata/testinput19
pcre-8.33/testdata/grepinput3
pcre-8.33/testdata/testoutput26
pcre-8.33/testdata/grepinput
pcre-8.33/testdata/testinput9
pcre-8.33/testdata/testinput21
pcre-8.33/testdata/saved16LE-2
pcre-8.33/testdata/testoutput5
pcre-8.33/testdata/testoutput11-8
pcre-8.33/testdata/grepoutput
pcre-8.33/testdata/wintestinput3
pcre-8.33/testdata/testoutput17
pcre-8.33/testdata/saved32LE-1
pcre-8.33/testdata/testinput15
pcre-8.33/testdata/testoutput1
pcre-8.33/testdata/saved16LE-1
pcre-8.33/testdata/testoutput4
pcre-8.33/testdata/greplist
pcre-8.33/testdata/testinput25
pcre-8.33/testdata/testoutput16
pcre-8.33/testdata/testoutput10
pcre-8.33/testdata/grepfilelist
pcre-8.33/testdata/testinput16
pcre-8.33/testdata/grepinput8
pcre-8.33/testdata/testinput26
pcre-8.33/testdata/testinput12
pcre-8.33/testdata/testinput10
pcre-8.33/testdata/saved32BE-1
pcre-8.33/testdata/testinput23
pcre-8.33/testdata/testinput22
pcre-8.33/testdata/testoutput12
pcre-8.33/testdata/testinput18
pcre-8.33/testdata/testinput3
pcre-8.33/testdata/testinput7
pcre-8.33/testdata/testinput6
pcre-8.33/testdata/testoutput14
pcre-8.33/testdata/testoutput22-32
pcre-8.33/testdata/testinput17
pcre-8.33/testdata/greppatN4
pcre-8.33/testdata/testinput1
pcre-8.33/testdata/testoutput3
pcre-8.33/testdata/saved16
pcre-8.33/testdata/testoutput18-16
pcre-8.33/testdata/testinput20
pcre-8.33/testdata/grepinputv
pcre-8.33/testdata/grepoutput8
pcre-8.33/testdata/wintestoutput3
pcre-8.33/testdata/saved16BE-2
pcre-8.33/RunGrepTest
pcre-8.33/pcre16_maketables.c
pcre-8.33/pcre32_refcount.c
pcre-8.33/pcre_string_utils.c
pcre-8.33/pcre32_compile.c
pcre-8.33/config.h.generic
pcre-8.33/pcre_byte_order.c
pcre-8.33/perltest.pl
pcre-8.33/pcre32_xclass.c
pcre-8.33/pcre32_chartables.c
pcre-8.33/pcre32_newline.c
pcre-8.33/INSTALL
pcre-8.33/pcre-config.in
pcre-8.33/pcreposix.h
pcre-8.33/132html
pcre-8.33/pcre_tables.c
pcre-8.33/config.sub
pcre-8.33/pcre_chartables.c.dist
pcre-8.33/pcre16_newline.c
pcre-8.33/libpcre32.pc.in
pcre-8.33/pcre.h.in
pcre-8.33/pcre16_tables.c
pcre-8.33/compile
pcre-8.33/pcre_ucd.c
pcre-8.33/pcre_maketables.c
pcre-8.33/ar-lib
pcre-8.33/LICENCE
pcre-8.33/pcre16_string_utils.c
pcre-8.33/configure
pcre-8.33/pcregexp.pas
pcre-8.33/pcre32_fullinfo.c
pcre-8.33/missing
pcre-8.33/pcre_exec.c
pcre-8.33/CleanTxt
pcre-8.33/pcre16_version.c
pcre-8.33/pcre16_ord2utf16.c
pcre-8.33/pcre32_get.c
pcre-8.33/pcre32_tables.c
pcre-8.33/PrepareRelease
pcre-8.33/pcre_stringpiece.cc
pcre-8.33/install-sh
pcre-8.33/pcre16_utf16_utils.c
pcre-8.33/HACKING
pcre-8.33/pcre_fullinfo.c
pcre-8.33/makevp_l.txt
pcre-8.33/pcre_printint.c
pcre-8.33/pcre16_fullinfo.c
pcre-8.33/depcomp
pcre-8.33/pcrecpp_internal.h
pcre-8.33/pcre16_study.c
pcre-8.33/pcre32_config.c
pcre-8.33/pcre16_ucd.c
pcre-8.33/Detrail
pcre-8.33/CheckMan
pcre-8.33/pcrecpp.cc
pcre-8.33/pcre_valid_utf8.c
pcre-8.33/pcre16_byte_order.c
pcre-8.33/pcre32_printint.c
pcre-8.33/makevp_c.txt
pcre-8.33/pcredemo.c
crifan@ubuntu:pcre$ cd pcre-8.33/
crifan@ubuntu:pcre-8.33$ ls -lh
total 4.3M
-rwxr-xr-x 1 crifan crifan 6.8K Oct  5  2009 132html
-rw-r--r-- 1 crifan crifan  48K May 27 08:55 aclocal.m4
-rwxr-xr-x 1 crifan crifan 5.7K May 27 08:56 ar-lib
-rw-r--r-- 1 crifan crifan  851 Apr 28 08:44 AUTHORS
-rw-r--r-- 1 crifan crifan 242K May 28 02:09 ChangeLog
-rwxr-xr-x 1 crifan crifan 1.5K Jan 11  2011 CheckMan
-rwxr-xr-x 1 crifan crifan 2.9K Mar  8  2007 CleanTxt
drwxr-xr-x 2 crifan crifan 4.0K May 28 02:14 cmake
-rw-r--r-- 1 crifan crifan  32K Dec  8  2012 CMakeLists.txt
-rwxr-xr-x 1 crifan crifan 7.2K May 27 08:56 compile
-rw-r--r-- 1 crifan crifan 1.4K Dec  8  2012 config-cmake.h.in
-rwxr-xr-x 1 crifan crifan  44K May 27 08:56 config.guess
-rw-r--r-- 1 crifan crifan  14K May 28 02:14 config.h.generic
-rw-r--r-- 1 crifan crifan  14K May 27 08:55 config.h.in
-rwxr-xr-x 1 crifan crifan  35K May 27 08:56 config.sub
-rwxr-xr-x 1 crifan crifan 658K May 27 08:55 configure
-rw-r--r-- 1 crifan crifan  40K May 27 08:54 configure.ac
-rw-r--r-- 1 crifan crifan   95 Mar 29  2007 COPYING
-rwxr-xr-x 1 crifan crifan  23K May 27 08:56 depcomp
-rwxr-xr-x 1 crifan crifan  643 Mar  8  2007 Detrail
-rw-r--r-- 1 crifan crifan 6.9K Nov 11  2012 dftables.c
drwxr-xr-x 3 crifan crifan 4.0K May 28 02:14 doc
-rw-r--r-- 1 crifan crifan  21K Nov  6  2012 HACKING
-rw-r--r-- 1 crifan crifan  16K May 27 08:56 INSTALL
-rwxr-xr-x 1 crifan crifan  14K May 27 08:56 install-sh
-rw-r--r-- 1 crifan crifan  331 Jan  1  2012 libpcre16.pc.in
-rw-r--r-- 1 crifan crifan  331 Oct 17  2012 libpcre32.pc.in
-rw-r--r-- 1 crifan crifan  288 Sep  1  2009 libpcrecpp.pc.in
-rw-r--r-- 1 crifan crifan  326 Dec 28  2011 libpcre.pc.in
-rw-r--r-- 1 crifan crifan  330 Sep  1  2009 libpcreposix.pc.in
-rw-r--r-- 1 crifan crifan 3.1K Apr 28 08:59 LICENCE
-rw-r--r-- 1 crifan crifan 277K May 27 08:55 ltmain.sh
drwxr-xr-x 2 crifan crifan 4.0K May 28 02:14 m4
-rw-r--r-- 1 crifan crifan  27K May 14 06:59 Makefile.am
-rw-r--r-- 1 crifan crifan 207K May 28 02:09 Makefile.in
-rw-r--r-- 1 crifan crifan 2.2K Aug 27  2008 makevp.bat
-rw-r--r-- 1 crifan crifan  345 May 13 08:27 makevp_c.txt
-rw-r--r-- 1 crifan crifan  598 May 13 08:28 makevp_l.txt
-rwxr-xr-x 1 crifan crifan 6.8K May 27 08:56 missing
-rw-r--r-- 1 crifan crifan  25K May 27 09:03 NEWS
-rw-r--r-- 1 crifan crifan  30K May 14 07:29 NON-AUTOTOOLS-BUILD
-rw-r--r-- 1 crifan crifan  229 Jun 18  2012 NON-UNIX-USE
-rw-r--r-- 1 crifan crifan 2.2K Dec 28  2011 pcre16_byte_order.c
-rw-r--r-- 1 crifan crifan 2.2K Dec 28  2011 pcre16_chartables.c
-rw-r--r-- 1 crifan crifan 2.2K Dec 28  2011 pcre16_compile.c
-rw-r--r-- 1 crifan crifan 2.2K Dec 28  2011 pcre16_config.c
-rw-r--r-- 1 crifan crifan 2.2K Dec 28  2011 pcre16_dfa_exec.c
-rw-r--r-- 1 crifan crifan 2.2K Dec 28  2011 pcre16_exec.c
-rw-r--r-- 1 crifan crifan 2.2K Dec 28  2011 pcre16_fullinfo.c
-rw-r--r-- 1 crifan crifan 2.2K Dec 28  2011 pcre16_get.c
-rw-r--r-- 1 crifan crifan 2.2K Dec 28  2011 pcre16_globals.c
-rw-r--r-- 1 crifan crifan 2.2K Dec 28  2011 pcre16_jit_compile.c
-rw-r--r-- 1 crifan crifan 2.2K Dec 28  2011 pcre16_maketables.c
-rw-r--r-- 1 crifan crifan 2.2K Dec 28  2011 pcre16_newline.c
-rw-r--r-- 1 crifan crifan 3.2K Oct 19  2012 pcre16_ord2utf16.c
-rw-r--r-- 1 crifan crifan 2.2K Dec 28  2011 pcre16_printint.c
-rw-r--r-- 1 crifan crifan 2.2K Dec 28  2011 pcre16_refcount.c
-rw-r--r-- 1 crifan crifan 2.2K Dec 28  2011 pcre16_string_utils.c
-rw-r--r-- 1 crifan crifan 2.2K Dec 28  2011 pcre16_study.c
-rw-r--r-- 1 crifan crifan 2.2K Dec 28  2011 pcre16_tables.c
-rw-r--r-- 1 crifan crifan 2.2K Dec 28  2011 pcre16_ucd.c
-rw-r--r-- 1 crifan crifan 4.8K Sep 10  2012 pcre16_utf16_utils.c
-rw-r--r-- 1 crifan crifan 4.5K Feb 27 08:11 pcre16_valid_utf16.c
-rw-r--r-- 1 crifan crifan 2.2K Dec 28  2011 pcre16_version.c
-rw-r--r-- 1 crifan crifan 2.2K Dec 28  2011 pcre16_xclass.c
-rw-r--r-- 1 crifan crifan 2.2K Oct 17  2012 pcre32_byte_order.c
-rw-r--r-- 1 crifan crifan 2.2K Oct 17  2012 pcre32_chartables.c
-rw-r--r-- 1 crifan crifan 2.2K Oct 17  2012 pcre32_compile.c
-rw-r--r-- 1 crifan crifan 2.2K Oct 17  2012 pcre32_config.c
-rw-r--r-- 1 crifan crifan 2.2K Oct 17  2012 pcre32_dfa_exec.c
-rw-r--r-- 1 crifan crifan 2.2K Oct 17  2012 pcre32_exec.c
-rw-r--r-- 1 crifan crifan 2.2K Oct 17  2012 pcre32_fullinfo.c
-rw-r--r-- 1 crifan crifan 2.2K Oct 17  2012 pcre32_get.c
-rw-r--r-- 1 crifan crifan 2.2K Oct 17  2012 pcre32_globals.c
-rw-r--r-- 1 crifan crifan 2.2K Oct 17  2012 pcre32_jit_compile.c
-rw-r--r-- 1 crifan crifan 2.2K Oct 17  2012 pcre32_maketables.c
-rw-r--r-- 1 crifan crifan 2.2K Oct 17  2012 pcre32_newline.c
-rw-r--r-- 1 crifan crifan 3.1K Oct 19  2012 pcre32_ord2utf32.c
-rw-r--r-- 1 crifan crifan 2.2K Oct 17  2012 pcre32_printint.c
-rw-r--r-- 1 crifan crifan 2.2K Oct 17  2012 pcre32_refcount.c
-rw-r--r-- 1 crifan crifan 2.2K Oct 17  2012 pcre32_string_utils.c
-rw-r--r-- 1 crifan crifan 2.2K Oct 17  2012 pcre32_study.c
-rw-r--r-- 1 crifan crifan 2.2K Oct 17  2012 pcre32_tables.c
-rw-r--r-- 1 crifan crifan 2.2K Oct 17  2012 pcre32_ucd.c
-rw-r--r-- 1 crifan crifan 5.0K Oct 21  2012 pcre32_utf32_utils.c
-rw-r--r-- 1 crifan crifan 4.1K Feb 27 08:12 pcre32_valid_utf32.c
-rw-r--r-- 1 crifan crifan 2.2K Oct 17  2012 pcre32_version.c
-rw-r--r-- 1 crifan crifan 2.2K Oct 17  2012 pcre32_xclass.c
-rw-r--r-- 1 crifan crifan 9.0K Apr 23 04:05 pcre_byte_order.c
-rw-r--r-- 1 crifan crifan 7.7K Dec 28  2011 pcre_chartables.c.dist
-rw-r--r-- 1 crifan crifan 272K May 10 07:04 pcre_compile.c
-rw-r--r-- 1 crifan crifan 4.8K Oct 17  2012 pcre_config.c
-rw-r--r-- 1 crifan crifan 2.5K Oct 17  2012 pcre-config.in
-rw-r--r-- 1 crifan crifan 6.8K Nov 12  2007 pcrecpparg.h.in
-rw-r--r-- 1 crifan crifan  32K Nov 11  2012 pcrecpp.cc
-rw-r--r-- 1 crifan crifan  26K Jan  2  2010 pcrecpp.h
-rw-r--r-- 1 crifan crifan 2.9K Aug 24  2008 pcrecpp_internal.h
-rw-r--r-- 1 crifan crifan  39K Aug 21  2011 pcrecpp_unittest.cc
-rw-r--r-- 1 crifan crifan  16K Feb 29  2012 pcredemo.c
-rw-r--r-- 1 crifan crifan 123K May 15 09:45 pcre_dfa_exec.c
-rw-r--r-- 1 crifan crifan 214K May 10 07:04 pcre_exec.c
-rw-r--r-- 1 crifan crifan 7.6K May  4 03:43 pcre_fullinfo.c
-rw-r--r-- 1 crifan crifan  23K Oct 17  2012 pcre_get.c
-rw-r--r-- 1 crifan crifan  26K Mar  2  2010 pcregexp.pas
-rw-r--r-- 1 crifan crifan 3.7K Jan  5  2012 pcre_globals.c
-rw-r--r-- 1 crifan crifan  91K May 28 02:09 pcregrep.c
-rw-r--r-- 1 crifan crifan  31K May 28 02:14 pcre.h.generic
-rw-r--r-- 1 crifan crifan  31K Apr 24 02:23 pcre.h.in
-rw-r--r-- 1 crifan crifan 109K May  1 09:37 pcre_internal.h
-rw-r--r-- 1 crifan crifan 300K May 10 07:04 pcre_jit_compile.c
-rw-r--r-- 1 crifan crifan  68K Apr  2 08:52 pcre_jit_test.c
-rw-r--r-- 1 crifan crifan 5.6K Oct 17  2012 pcre_maketables.c
-rw-r--r-- 1 crifan crifan 6.1K Nov 11  2012 pcre_newline.c
-rw-r--r-- 1 crifan crifan 3.2K Nov 11  2012 pcre_ord2utf8.c
-rw-r--r-- 1 crifan crifan  16K May  1 09:37 pcreposix.c
-rw-r--r-- 1 crifan crifan 5.4K Dec 28  2011 pcreposix.h
-rw-r--r-- 1 crifan crifan  22K Nov 11  2012 pcre_printint.c
-rw-r--r-- 1 crifan crifan 3.7K Oct 17  2012 pcre_refcount.c
-rw-r--r-- 1 crifan crifan 5.5K Jun  1  2010 pcre_scanner.cc
-rw-r--r-- 1 crifan crifan 6.5K Jan 21  2008 pcre_scanner.h
-rw-r--r-- 1 crifan crifan 5.2K May  1  2011 pcre_scanner_unittest.cc
-rw-r--r-- 1 crifan crifan 1.9K Sep 11  2007 pcre_stringpiece.cc
-rw-r--r-- 1 crifan crifan 6.2K Nov 26  2010 pcre_stringpiece.h.in
-rw-r--r-- 1 crifan crifan 3.5K Nov 26  2010 pcre_stringpiece_unittest.cc
-rw-r--r-- 1 crifan crifan 5.3K May 28 02:09 pcre_string_utils.c
-rw-r--r-- 1 crifan crifan  45K Nov 11  2012 pcre_study.c
-rw-r--r-- 1 crifan crifan  25K Feb 26 09:27 pcre_tables.c
-rw-r--r-- 1 crifan crifan 162K May 28 02:09 pcretest.c
-rw-r--r-- 1 crifan crifan 186K Oct  1  2012 pcre_ucd.c
-rw-r--r-- 1 crifan crifan  10K Feb 27 08:14 pcre_valid_utf8.c
-rw-r--r-- 1 crifan crifan 4.2K Mar  3 09:59 pcre_version.c
-rw-r--r-- 1 crifan crifan 6.3K May 28 02:09 pcre_xclass.c
-rwxr-xr-x 1 crifan crifan 6.1K Sep 25  2012 perltest.pl
-rwxr-xr-x 1 crifan crifan 7.2K May 28 02:13 PrepareRelease
-rw-r--r-- 1 crifan crifan  44K May  1 09:37 README
-rwxr-xr-x 1 crifan crifan  26K May 10 03:54 RunGrepTest
-rwxr-xr-x 1 crifan crifan  30K May  1 09:37 RunTest
-rw-r--r-- 1 crifan crifan  18K May 10 07:04 RunTest.bat
drwxr-xr-x 2 crifan crifan 4.0K May 28 02:14 sljit
drwxr-xr-x 2 crifan crifan 4.0K May 28 02:14 testdata
-rwxr-xr-x 1 crifan crifan 3.9K May 27 08:56 test-driver
-rw-r--r-- 1 crifan crifan 4.6K Nov 11  2012 ucp.h
crifan@ubuntu:pcre-8.33$ 

3.去配置:

crifan@ubuntu:pcre-8.33$ ./configure --prefix=/opt/crosscompile/pcre --build=i686-pc-linux-gnu --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... /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... /bin/grep
checking for egrep... /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-linux-gnu
checking host system type... arm-xscale-linux-gnueabi
checking how to print strings... printf
checking for a sed that does not truncate output... /bin/sed
checking for fgrep... /bin/grep -F
checking for ld used by arm-xscale-linux-gnueabi-gcc... /opt/crosscompile/xscale/gcc-4.6.0-glibc-2.9/arm-xscale-linux-gnueabi/bin/ld
checking if the linker (/opt/crosscompile/xscale/gcc-4.6.0-glibc-2.9/arm-xscale-linux-gnueabi/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /opt/crosscompile/xscale/gcc-4.6.0-glibc-2.9/bin/arm-xscale-linux-gnueabi-nm -B
checking the name lister (/opt/crosscompile/xscale/gcc-4.6.0-glibc-2.9/bin/arm-xscale-linux-gnueabi-nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert i686-pc-linux-gnu file names to arm-xscale-linux-gnueabi format... func_convert_file_noop
checking how to convert i686-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /opt/crosscompile/xscale/gcc-4.6.0-glibc-2.9/arm-xscale-linux-gnueabi/bin/ld 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 /opt/crosscompile/xscale/gcc-4.6.0-glibc-2.9/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 (/opt/crosscompile/xscale/gcc-4.6.0-glibc-2.9/arm-xscale-linux-gnueabi/bin/ld) 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++... /opt/crosscompile/xscale/gcc-4.6.0-glibc-2.9/arm-xscale-linux-gnueabi/bin/ld
checking if the linker (/opt/crosscompile/xscale/gcc-4.6.0-glibc-2.9/arm-xscale-linux-gnueabi/bin/ld) is GNU ld... yes
checking whether the arm-xscale-linux-gnueabi-g++ linker (/opt/crosscompile/xscale/gcc-4.6.0-glibc-2.9/arm-xscale-linux-gnueabi/bin/ld) 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 (/opt/crosscompile/xscale/gcc-4.6.0-glibc-2.9/arm-xscale-linux-gnueabi/bin/ld) 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 .................. : /opt/crosscompile/pcre
    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 .......................... : /opt/crosscompile/xscale/gcc-4.6.0-glibc-2.9/arm-xscale-linux-gnueabi/bin/ld
    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

crifan@ubuntu:pcre-8.33$ 

4.去编译:

crifan@ubuntu: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/crifan/develop/crosscompile/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/crifan/develop/crosscompile/pcre/pcre-8.33'
crifan@ubuntu:pcre-8.33$ 

5.去安装:

crifan@ubuntu:pcre-8.33$ make install
make  install-am
make[1]: Entering directory `/home/crifan/develop/crosscompile/pcre/pcre-8.33'
make[2]: Entering directory `/home/crifan/develop/crosscompile/pcre/pcre-8.33'
 /bin/mkdir -p '/opt/crosscompile/pcre/lib'
 /bin/bash ./libtool   --mode=install /usr/bin/install -c   libpcre.la libpcreposix.la libpcrecpp.la '/opt/crosscompile/pcre/lib'
libtool: install: /usr/bin/install -c .libs/libpcre.so.1.2.1 /opt/crosscompile/pcre/lib/libpcre.so.1.2.1
libtool: install: (cd /opt/crosscompile/pcre/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 /opt/crosscompile/pcre/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 /opt/crosscompile/pcre/lib/libpcre.la
libtool: install: warning: relinking `libpcreposix.la'
libtool: install: (cd /home/crifan/develop/crosscompile/pcre/pcre-8.33; /bin/bash /home/crifan/develop/crosscompile/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 /opt/crosscompile/pcre/lib libpcreposix_la-pcreposix.lo libpcre.la )
libtool: install: /usr/bin/install -c .libs/libpcreposix.so.0.0.2T /opt/crosscompile/pcre/lib/libpcreposix.so.0.0.2
libtool: install: (cd /opt/crosscompile/pcre/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 /opt/crosscompile/pcre/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 /opt/crosscompile/pcre/lib/libpcreposix.la
libtool: install: warning: relinking `libpcrecpp.la'
libtool: install: (cd /home/crifan/develop/crosscompile/pcre/pcre-8.33; /bin/bash /home/crifan/develop/crosscompile/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 /opt/crosscompile/pcre/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 /opt/crosscompile/pcre/lib/libpcrecpp.so.0.0.0
libtool: install: (cd /opt/crosscompile/pcre/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 /opt/crosscompile/pcre/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 /opt/crosscompile/pcre/lib/libpcrecpp.la
libtool: install: /usr/bin/install -c .libs/libpcre.a /opt/crosscompile/pcre/lib/libpcre.a
libtool: install: chmod 644 /opt/crosscompile/pcre/lib/libpcre.a
libtool: install: arm-xscale-linux-gnueabi-ranlib /opt/crosscompile/pcre/lib/libpcre.a
libtool: install: /usr/bin/install -c .libs/libpcreposix.a /opt/crosscompile/pcre/lib/libpcreposix.a
libtool: install: chmod 644 /opt/crosscompile/pcre/lib/libpcreposix.a
libtool: install: arm-xscale-linux-gnueabi-ranlib /opt/crosscompile/pcre/lib/libpcreposix.a
libtool: install: /usr/bin/install -c .libs/libpcrecpp.a /opt/crosscompile/pcre/lib/libpcrecpp.a
libtool: install: chmod 644 /opt/crosscompile/pcre/lib/libpcrecpp.a
libtool: install: arm-xscale-linux-gnueabi-ranlib /opt/crosscompile/pcre/lib/libpcrecpp.a
libtool: finish: PATH="/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/opt/crosstool-ng/bin:/opt/crosscompile/xscale/gcc-4.6.0-glibc-2.9/bin:/opt/crosscompile/curl/bin:/sbin" ldconfig -n /opt/crosscompile/pcre/lib
----------------------------------------------------------------------
Libraries have been installed in:
   /opt/crosscompile/pcre/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 add LIBDIR to `/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
 /bin/mkdir -p '/opt/crosscompile/pcre/bin'
  /bin/bash ./libtool   --mode=install /usr/bin/install -c pcretest pcregrep '/opt/crosscompile/pcre/bin'
libtool: install: /usr/bin/install -c .libs/pcretest /opt/crosscompile/pcre/bin/pcretest
libtool: install: /usr/bin/install -c .libs/pcregrep /opt/crosscompile/pcre/bin/pcregrep
 /bin/mkdir -p '/opt/crosscompile/pcre/bin'
 /usr/bin/install -c pcre-config '/opt/crosscompile/pcre/bin'
 /bin/mkdir -p '/opt/crosscompile/pcre/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 '/opt/crosscompile/pcre/share/doc/pcre'
 /bin/mkdir -p '/opt/crosscompile/pcre/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 '/opt/crosscompile/pcre/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 '/opt/crosscompile/pcre/share/doc/pcre/html'
 /bin/mkdir -p '/opt/crosscompile/pcre/share/doc/pcre/html'
 /usr/bin/install -c -m 644 doc/html/pcrecpp.html '/opt/crosscompile/pcre/share/doc/pcre/html'
 /bin/mkdir -p '/opt/crosscompile/pcre/include'
 /usr/bin/install -c -m 644 pcreposix.h pcrecpp.h pcre_scanner.h '/opt/crosscompile/pcre/include'
 /bin/mkdir -p '/opt/crosscompile/pcre/share/man/man1'
 /usr/bin/install -c -m 644 doc/pcre-config.1 doc/pcregrep.1 doc/pcretest.1 '/opt/crosscompile/pcre/share/man/man1'
 /bin/mkdir -p '/opt/crosscompile/pcre/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 '/opt/crosscompile/pcre/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 '/opt/crosscompile/pcre/share/man/man3'
 /bin/mkdir -p '/opt/crosscompile/pcre/include'
 /usr/bin/install -c -m 644 pcre.h pcrecpparg.h pcre_stringpiece.h '/opt/crosscompile/pcre/include'
 /bin/mkdir -p '/opt/crosscompile/pcre/lib/pkgconfig'
 /usr/bin/install -c -m 644 libpcre.pc libpcreposix.pc libpcrecpp.pc '/opt/crosscompile/pcre/lib/pkgconfig'
make  install-data-hook
make[3]: Entering directory `/home/crifan/develop/crosscompile/pcre/pcre-8.33'
ln -sf pcre_assign_jit_stack.3		 /opt/crosscompile/pcre/share/man/man3/pcre16_assign_jit_stack.3
ln -sf pcre_compile.3			 /opt/crosscompile/pcre/share/man/man3/pcre16_compile.3
ln -sf pcre_compile2.3			 /opt/crosscompile/pcre/share/man/man3/pcre16_compile2.3
ln -sf pcre_config.3			 /opt/crosscompile/pcre/share/man/man3/pcre16_config.3
ln -sf pcre_copy_named_substring.3	 /opt/crosscompile/pcre/share/man/man3/pcre16_copy_named_substring.3
ln -sf pcre_copy_substring.3		 /opt/crosscompile/pcre/share/man/man3/pcre16_copy_substring.3
ln -sf pcre_dfa_exec.3			 /opt/crosscompile/pcre/share/man/man3/pcre16_dfa_exec.3
ln -sf pcre_exec.3			 /opt/crosscompile/pcre/share/man/man3/pcre16_exec.3
ln -sf pcre_free_study.3		 /opt/crosscompile/pcre/share/man/man3/pcre16_free_study.3
ln -sf pcre_free_substring.3		 /opt/crosscompile/pcre/share/man/man3/pcre16_free_substring.3
ln -sf pcre_free_substring_list.3	 /opt/crosscompile/pcre/share/man/man3/pcre16_free_substring_list.3
ln -sf pcre_fullinfo.3			 /opt/crosscompile/pcre/share/man/man3/pcre16_fullinfo.3
ln -sf pcre_get_named_substring.3	 /opt/crosscompile/pcre/share/man/man3/pcre16_get_named_substring.3
ln -sf pcre_get_stringnumber.3		 /opt/crosscompile/pcre/share/man/man3/pcre16_get_stringnumber.3
ln -sf pcre_get_stringtable_entries.3	 /opt/crosscompile/pcre/share/man/man3/pcre16_get_stringtable_entries.3
ln -sf pcre_get_substring.3		 /opt/crosscompile/pcre/share/man/man3/pcre16_get_substring.3
ln -sf pcre_get_substring_list.3	 /opt/crosscompile/pcre/share/man/man3/pcre16_get_substring_list.3
ln -sf pcre_jit_exec.3			 /opt/crosscompile/pcre/share/man/man3/pcre16_jit_exec.3
ln -sf pcre_jit_stack_alloc.3		 /opt/crosscompile/pcre/share/man/man3/pcre16_jit_stack_alloc.3
ln -sf pcre_jit_stack_free.3		 /opt/crosscompile/pcre/share/man/man3/pcre16_jit_stack_free.3
ln -sf pcre_maketables.3		 /opt/crosscompile/pcre/share/man/man3/pcre16_maketables.3
ln -sf pcre_pattern_to_host_byte_order.3 /opt/crosscompile/pcre/share/man/man3/pcre16_pattern_to_host_byte_order.3
ln -sf pcre_refcount.3			 /opt/crosscompile/pcre/share/man/man3/pcre16_refcount.3
ln -sf pcre_study.3			 /opt/crosscompile/pcre/share/man/man3/pcre16_study.3
ln -sf pcre_utf16_to_host_byte_order.3	 /opt/crosscompile/pcre/share/man/man3/pcre16_utf16_to_host_byte_order.3
ln -sf pcre_version.3			 /opt/crosscompile/pcre/share/man/man3/pcre16_version.3
ln -sf pcre_assign_jit_stack.3		 /opt/crosscompile/pcre/share/man/man3/pcre32_assign_jit_stack.3
ln -sf pcre_compile.3			 /opt/crosscompile/pcre/share/man/man3/pcre32_compile.3
ln -sf pcre_compile2.3			 /opt/crosscompile/pcre/share/man/man3/pcre32_compile2.3
ln -sf pcre_config.3			 /opt/crosscompile/pcre/share/man/man3/pcre32_config.3
ln -sf pcre_copy_named_substring.3	 /opt/crosscompile/pcre/share/man/man3/pcre32_copy_named_substring.3
ln -sf pcre_copy_substring.3		 /opt/crosscompile/pcre/share/man/man3/pcre32_copy_substring.3
ln -sf pcre_dfa_exec.3			 /opt/crosscompile/pcre/share/man/man3/pcre32_dfa_exec.3
ln -sf pcre_exec.3			 /opt/crosscompile/pcre/share/man/man3/pcre32_exec.3
ln -sf pcre_free_study.3		 /opt/crosscompile/pcre/share/man/man3/pcre32_free_study.3
ln -sf pcre_free_substring.3		 /opt/crosscompile/pcre/share/man/man3/pcre32_free_substring.3
ln -sf pcre_free_substring_list.3	 /opt/crosscompile/pcre/share/man/man3/pcre32_free_substring_list.3
ln -sf pcre_fullinfo.3			 /opt/crosscompile/pcre/share/man/man3/pcre32_fullinfo.3
ln -sf pcre_get_named_substring.3	 /opt/crosscompile/pcre/share/man/man3/pcre32_get_named_substring.3
ln -sf pcre_get_stringnumber.3		 /opt/crosscompile/pcre/share/man/man3/pcre32_get_stringnumber.3
ln -sf pcre_get_stringtable_entries.3	 /opt/crosscompile/pcre/share/man/man3/pcre32_get_stringtable_entries.3
ln -sf pcre_get_substring.3		 /opt/crosscompile/pcre/share/man/man3/pcre32_get_substring.3
ln -sf pcre_get_substring_list.3	 /opt/crosscompile/pcre/share/man/man3/pcre32_get_substring_list.3
ln -sf pcre_jit_exec.3			 /opt/crosscompile/pcre/share/man/man3/pcre32_jit_exec.3
ln -sf pcre_jit_stack_alloc.3		 /opt/crosscompile/pcre/share/man/man3/pcre32_jit_stack_alloc.3
ln -sf pcre_jit_stack_free.3		 /opt/crosscompile/pcre/share/man/man3/pcre32_jit_stack_free.3
ln -sf pcre_maketables.3		 /opt/crosscompile/pcre/share/man/man3/pcre32_maketables.3
ln -sf pcre_pattern_to_host_byte_order.3 /opt/crosscompile/pcre/share/man/man3/pcre32_pattern_to_host_byte_order.3
ln -sf pcre_refcount.3			 /opt/crosscompile/pcre/share/man/man3/pcre32_refcount.3
ln -sf pcre_study.3			 /opt/crosscompile/pcre/share/man/man3/pcre32_study.3
ln -sf pcre_utf32_to_host_byte_order.3	 /opt/crosscompile/pcre/share/man/man3/pcre32_utf32_to_host_byte_order.3
ln -sf pcre_version.3			 /opt/crosscompile/pcre/share/man/man3/pcre32_version.3
make[3]: Leaving directory `/home/crifan/develop/crosscompile/pcre/pcre-8.33'
make[2]: Leaving directory `/home/crifan/develop/crosscompile/pcre/pcre-8.33'
make[1]: Leaving directory `/home/crifan/develop/crosscompile/pcre/pcre-8.33'
crifan@ubuntu:pcre-8.33$ 

6.再去验证一下:

crifan@ubuntu:pcre-8.33$ ls /opt/crosscompile/pcre/ -lh
total 16K
drwxrwxr-x 2 crifan crifan 4.0K Aug 12 00:34 bin
drwxrwxr-x 2 crifan crifan 4.0K Aug 12 00:34 include
drwxrwxr-x 3 crifan crifan 4.0K Aug 12 00:34 lib
drwxrwxr-x 4 crifan crifan 4.0K Aug 12 00:34 share
crifan@ubuntu:pcre-8.33$ ls /opt/crosscompile/pcre/bin -lh
total 204K
-rwxr-xr-x 1 crifan crifan 2.4K Aug 12 00:34 pcre-config
-rwxr-xr-x 1 crifan crifan  71K Aug 12 00:34 pcregrep
-rwxr-xr-x 1 crifan crifan 126K Aug 12 00:34 pcretest
crifan@ubuntu:pcre-8.33$ ls /opt/crosscompile/pcre/include/ -lh
total 92K
-rw-r--r-- 1 crifan crifan 6.7K Aug 12 00:34 pcrecpparg.h
-rw-r--r-- 1 crifan crifan  26K Aug 12 00:34 pcrecpp.h
-rw-r--r-- 1 crifan crifan  31K Aug 12 00:34 pcre.h
-rw-r--r-- 1 crifan crifan 5.4K Aug 12 00:34 pcreposix.h
-rw-r--r-- 1 crifan crifan 6.5K Aug 12 00:34 pcre_scanner.h
-rw-r--r-- 1 crifan crifan 6.2K Aug 12 00:34 pcre_stringpiece.h
crifan@ubuntu:pcre-8.33$ ls /opt/crosscompile/pcre/lib -lh
total 876K
-rw-r--r-- 1 crifan crifan 415K Aug 12 00:34 libpcre.a
-rw-r--r-- 1 crifan crifan  35K Aug 12 00:34 libpcrecpp.a
-rwxr-xr-x 1 crifan crifan 1.1K Aug 12 00:34 libpcrecpp.la
lrwxrwxrwx 1 crifan crifan   19 Aug 12 00:34 libpcrecpp.so -> libpcrecpp.so.0.0.0
lrwxrwxrwx 1 crifan crifan   19 Aug 12 00:34 libpcrecpp.so.0 -> libpcrecpp.so.0.0.0
-rwxr-xr-x 1 crifan crifan  60K Aug 12 00:34 libpcrecpp.so.0.0.0
-rwxr-xr-x 1 crifan crifan  929 Aug 12 00:34 libpcre.la
-rw-r--r-- 1 crifan crifan  14K Aug 12 00:34 libpcreposix.a
-rwxr-xr-x 1 crifan crifan 1002 Aug 12 00:34 libpcreposix.la
lrwxrwxrwx 1 crifan crifan   21 Aug 12 00:34 libpcreposix.so -> libpcreposix.so.0.0.2
lrwxrwxrwx 1 crifan crifan   21 Aug 12 00:34 libpcreposix.so.0 -> libpcreposix.so.0.0.2
-rwxr-xr-x 1 crifan crifan  16K Aug 12 00:34 libpcreposix.so.0.0.2
lrwxrwxrwx 1 crifan crifan   16 Aug 12 00:34 libpcre.so -> libpcre.so.1.2.1
lrwxrwxrwx 1 crifan crifan   16 Aug 12 00:34 libpcre.so.1 -> libpcre.so.1.2.1
-rwxr-xr-x 1 crifan crifan 314K Aug 12 00:34 libpcre.so.1.2.1
drwxrwxr-x 2 crifan crifan 4.0K Aug 12 00:34 pkgconfig
crifan@ubuntu:pcre-8.33$ ls /opt/crosscompile/pcre/share/ -lh
total 8.0K
drwxrwxr-x 3 crifan crifan 4.0K Aug 12 00:34 doc
drwxrwxr-x 4 crifan crifan 4.0K Aug 12 00:34 man
crifan@ubuntu:pcre-8.33$ 

截图:

successfully installed pcre

 

【总结】

Ubuntu下,交叉编译pcre:

1.配置:

./configure --prefix=/opt/crosscompile/pcre --build=i686-pc-linux-gnu --target=arm-xscale-linux-gnueabi --host=arm-xscale-linux-gnueabi CC=arm-xscale-linux-gnueabi-gcc

2.编译

make

3.安装:

make install

即可。

转载请注明:在路上 » 【记录】Ubuntu下用arm-xscale-linux-gnueabi交叉编译pcre

发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

网友最新评论 (2)

  1. 作者你好,我现在在交叉编译pcre,新手嵌入式的。我自己到交叉工具链是没有问题到,不知道./configure哪里到底怎么弄。build,host,target所表示到意思都懂 方便教下我不。小白求救。。。Q401867404
    Itachi9年前 (2014-12-27)回复
    • 加我的技术qq群:104028266
      crifan9年前 (2015-01-01)回复
97 queries in 0.187 seconds, using 23.71MB memory