/[pcre]/code/trunk/NON-UNIX-USE
ViewVC logotype

Diff of /code/trunk/NON-UNIX-USE

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 315 by ph10, Mon Jan 21 15:22:09 2008 UTC revision 316 by ph10, Fri Jan 25 17:38:26 2008 UTC
# Line 9  This document contains the following sec Line 9  This document contains the following sec
9    Building for virtual Pascal    Building for virtual Pascal
10    Stack size in Windows environments    Stack size in Windows environments
11    Comments about Win32 builds    Comments about Win32 builds
12    Building PCRE with CMake    Building PCRE on Windows with CMake
13    Use of relative paths with CMake on Windows    Use of relative paths with CMake on Windows
14    Testing with runtest.bat    Testing with runtest.bat
15    Building under Windows with BCC5.5    Building under Windows with BCC5.5
# Line 33  library consists entirely of code writte Line 33  library consists entirely of code writte
33  successfully on any system that has a Standard C compiler and library. The C++  successfully on any system that has a Standard C compiler and library. The C++
34  wrapper functions are a separate issue (see below).  wrapper functions are a separate issue (see below).
35    
36  The PCRE distribution includes support for CMake. This support is relatively  The PCRE distribution includes a "configure" file for use by the Configure/Make
37  new, but has already been used successfully to build PCRE in multiple build  build system, as found in many Unix-like environments. There is also support
38  environments on Windows. There are some instructions in the section entitled  support for CMake, which some users prefer, in particular in Windows
39  "Building PCRE with CMake" below.  environments. There are some instructions for CMake under Windows in the
40    section entitled "Building PCRE with CMake" below. CMake can also be used to
41    build PCRE in Unix-like systems.
42    
43    
44  GENERIC INSTRUCTIONS FOR THE PCRE C LIBRARY  GENERIC INSTRUCTIONS FOR THE PCRE C LIBRARY
# Line 184  COMMENTS ABOUT WIN32 BUILDS (see also "B Line 186  COMMENTS ABOUT WIN32 BUILDS (see also "B
186  There are two ways of building PCRE using the "configure, make, make install"  There are two ways of building PCRE using the "configure, make, make install"
187  paradigm on Windows systems: using MinGW or using Cygwin. These are not at all  paradigm on Windows systems: using MinGW or using Cygwin. These are not at all
188  the same thing; they are completely different from each other. There is also  the same thing; they are completely different from each other. There is also
189  some experimental, undocumented support for building using "cmake", which you  support for building using CMake, which some users find a more straightforward
190  might like to try if you are familiar with "cmake". However, at the present  way of building PCRE under Windows. However, the tests are not run
191  time, the "cmake" process builds only a static library (not a dll), and the  automatically when CMake is used.
 tests are not automatically run.  
192    
193  The MinGW home page (http://www.mingw.org/) says this:  The MinGW home page (http://www.mingw.org/) says this:
194    
# Line 254  terminators in order to get some of the Line 255  terminators in order to get some of the
255  things in this area in future.  things in this area in future.
256    
257    
258  BUILDING PCRE WITH CMAKE  BUILDING PCRE ON WINDOWS WITH CMAKE
259    
260  CMake is an alternative build facility that can be used instead of the  CMake is an alternative build facility that can be used instead of the
261  traditional Unix "configure". CMake version 2.4.7 supports Borland makefiles,  traditional Unix "configure". CMake version 2.4.7 supports Borland makefiles,
# Line 262  MinGW makefiles, MSYS makefiles, NMake m Line 263  MinGW makefiles, MSYS makefiles, NMake m
263  6, Visual Studio 7, Visual Studio 8, and Watcom W8. The following instructions  6, Visual Studio 7, Visual Studio 8, and Watcom W8. The following instructions
264  were contributed by a PCRE user.  were contributed by a PCRE user.
265    
266  1. Download CMake 2.4.7 or above from http://www.cmake.org/, install and ensure  1.  Download CMake 2.4.7 or above from http://www.cmake.org/, install and ensure
267     that cmake\bin is on your path.      that cmake\bin is on your path.
268    
269  2. Unzip (retaining folder structure) the PCRE source tree into a source  2.  Unzip (retaining folder structure) the PCRE source tree into a source
270     directory such as C:\pcre.      directory such as C:\pcre.
271    
272  3. Create a new, empty build directory: C:\pcre\build\  3.  Create a new, empty build directory: C:\pcre\build\
273    
274  4. Run CMakeSetup from the Shell envirornment of your build tool, e.g., Msys  4.  Run CMakeSetup from the Shell envirornment of your build tool, e.g., Msys
275     for Msys/MinGW or Visual Studio Command Prompt for VC/VC++      for Msys/MinGW or Visual Studio Command Prompt for VC/VC++
276    
277  5. Enter C:\pcre\pcre-xx and C:\pcre\build for the source and build  5.  Enter C:\pcre\pcre-xx and C:\pcre\build for the source and build
278     directories, respectively      directories, respectively
279    
280  6. Hit the "Configure" button.  6.  Hit the "Configure" button.
281    
282  7. Select the particular IDE / build tool that you are using (Visual Studio,  7.  Select the particular IDE / build tool that you are using (Visual Studio,
283     MSYS makefiles, MinGW makefiles, etc.)      MSYS makefiles, MinGW makefiles, etc.)
284    
285  8. The GUI will then list several configuration options. This is where you can  8.  The GUI will then list several configuration options. This is where you can
286     enable UTF-8 support, etc.      enable UTF-8 support, etc.
287    
288  9. Hit "Configure" again. The adjacent "OK" button should now be active.  9.  Hit "Configure" again. The adjacent "OK" button should now be active.
289    
290  10. Hit "OK".  10. Hit "OK".
291    
# Line 415  $! Locale could not be set to fr Line 416  $! Locale could not be set to fr
416  $!  $!
417  =========================  =========================
418    
419  Last Updated: 20 January 2008  Last Updated: 25 January 2008
420  ****  ****

Legend:
Removed from v.315  
changed lines
  Added in v.316

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12