/[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 257 by ph10, Mon Sep 17 11:05:37 2007 UTC revision 258 by ph10, Wed Sep 19 09:27:50 2007 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
13    Building under Windows with BCC5.5    Building under Windows with BCC5.5
14    Building PCRE on OpenVMS    Building PCRE on OpenVMS
15    
# Line 31  successfully on any system that has a St Line 32  successfully on any system that has a St
32  wrapper functions are a separate issue (see below).  wrapper functions are a separate issue (see below).
33    
34  The PCRE distribution contains some experimental support for "cmake", but this  The PCRE distribution contains some experimental support for "cmake", but this
35  is incomplete and not documented. However if you are a "cmake" user you might  is incomplete and not fully documented. However if you are a "cmake" user you
36  like to try building with "cmake".  might like to try building with "cmake". There are some instructions in the
37    section entitled "Building PCRE with Cmake" below.
38    
39    
40  GENERIC INSTRUCTIONS FOR THE PCRE C LIBRARY  GENERIC INSTRUCTIONS FOR THE PCRE C LIBRARY
# Line 246  terminators in order to get some of the Line 248  terminators in order to get some of the
248  things in this area in future.  things in this area in future.
249    
250    
251    BUILDING PCRE WITH CMAKE
252    
253    These instructions were contributed by a PCRE user.
254    
255    1. Download CMake 2.4.7 or above from http://www.cmake.org/, install and ensure
256       that cmake\bin is on your path.
257    
258    2. Unzip (retaining folder structure) the PCRE source tree into a source
259       directory such as C:\pcre.
260    
261    3. Create a new, empty build directory: C:\pcre\build\
262    
263    4. Run CMakeSetup from the Shell envirornment of your build tool, e.g., Msys
264       for Msys/MinGW or Visual Studio Command Prompt for VC/VC++
265    
266    5. Enter C:\pcre\pcre-xx and C:\pcre\build for the source and build
267       directories, respectively
268    
269    6. Hit the "Configure" button.
270    
271    7. Select the particular IDE / build tool that you are using (Visual Studio,
272       MSYS makefiles, MinGW makefiles, etc.)
273    
274    8. The GUI will then list several configuration options. This is where you can
275       enable UTF-8 support, etc.
276    
277    9. Hit "Configure" again. The adjacent "OK" button should now be active.
278    
279    10. Hit "OK".
280    
281    11. The build directory should now contain a usable build system, be it a
282        solution file for Visual Studio, makefiles for MinGW, etc.
283    
284    Testing with RunTest.bat
285    
286    1. Copy RunTest.bat into the directory where pcretest.exe has been created.
287    
288    2. Edit RunTest.bat and insert a line that indentifies the relative location of
289       the pcre source, e.g.:
290    
291       set srcdir=..\pcre-7.4-RC3
292    
293    3. Run RunTest.bat from a command shell environment. Test outputs will
294       automatically be compared to expected results, and discrepancies will
295       identified in the console output.
296    
297    4. To test pcrecpp, run pcrecpp_unittest.exe, pcre_stringpiece_unittest.exe and
298       pcre_scanner_unittest.exe.
299    
300    
301  BUILDING UNDER WINDOWS WITH BCC5.5  BUILDING UNDER WINDOWS WITH BCC5.5
302    
303  Michael Roy sent these comments about building PCRE under Windows with BCC5.5:  Michael Roy sent these comments about building PCRE under Windows with BCC5.5:
# Line 258  Michael Roy sent these comments about bu Line 310  Michael Roy sent these comments about bu
310    When linking a project with BCC5.5, pcre.lib must be included before any of    When linking a project with BCC5.5, pcre.lib must be included before any of
311    the libraries cw32.lib, cw32i.lib, cw32mt.lib, and cw32mti.lib on the command    the libraries cw32.lib, cw32i.lib, cw32mt.lib, and cw32mti.lib on the command
312    line.    line.
313    
314    
315  BUILDING PCRE ON OPENVMS  BUILDING PCRE ON OPENVMS
316    

Legend:
Removed from v.257  
changed lines
  Added in v.258

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12