| 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 with CMake |
| 13 |
|
Use of relative paths with CMake on Windows |
| 14 |
|
Testing with runtest.bat |
| 15 |
Building under Windows with BCC5.5 |
Building under Windows with BCC5.5 |
| 16 |
Building PCRE on OpenVMS |
Building PCRE on OpenVMS |
| 17 |
|
|
| 86 |
ucptable.h |
ucptable.h |
| 87 |
|
|
| 88 |
(5) Also ensure that you have the following file, which is #included as source |
(5) Also ensure that you have the following file, which is #included as source |
| 89 |
when building a debugging version of PCRE and is also used by pcretest. |
when building a debugging version of PCRE, and is also used by pcretest. |
| 90 |
|
|
| 91 |
pcre_printint.src |
pcre_printint.src |
| 92 |
|
|
| 171 |
have been cases where the test program has just died silently. See your linker |
have been cases where the test program has just died silently. See your linker |
| 172 |
documentation for how to increase stack size if you experience problems. The |
documentation for how to increase stack size if you experience problems. The |
| 173 |
Linux default of 8Mb is a reasonable choice for the stack, though even that can |
Linux default of 8Mb is a reasonable choice for the stack, though even that can |
| 174 |
be too small for some pattern/subject combinations. |
be too small for some pattern/subject combinations. |
| 175 |
|
|
| 176 |
PCRE has a compile configuration option to disable the use of stack for |
PCRE has a compile configuration option to disable the use of stack for |
| 177 |
recursion so that heap is used instead. However, pattern matching is |
recursion so that heap is used instead. However, pattern matching is |
| 291 |
11. The build directory should now contain a usable build system, be it a |
11. The build directory should now contain a usable build system, be it a |
| 292 |
solution file for Visual Studio, makefiles for MinGW, etc. |
solution file for Visual Studio, makefiles for MinGW, etc. |
| 293 |
|
|
| 294 |
Testing with RunTest.bat |
|
| 295 |
|
USE OF RELATIVE PATHS WITH CMAKE ON WINDOWS |
| 296 |
|
|
| 297 |
|
A PCRE user comments as follows: |
| 298 |
|
|
| 299 |
|
I thought that others may want to know the current state of |
| 300 |
|
CMAKE_USE_RELATIVE_PATHS support on Windows. |
| 301 |
|
|
| 302 |
|
Here it is: |
| 303 |
|
-- AdditionalIncludeDirectories is only partially modified (only the |
| 304 |
|
first path - see below) |
| 305 |
|
-- Only some of the contained file paths are modified - shown below for |
| 306 |
|
pcre.vcproj |
| 307 |
|
-- It properly modifies |
| 308 |
|
|
| 309 |
|
I am sure CMake people can fix that if they want to. Until then one will |
| 310 |
|
need to replace existing absolute paths in project files with relative |
| 311 |
|
paths manually (e.g. from VS) - relative to project file location. I did |
| 312 |
|
just that before being told to try CMAKE_USE_RELATIVE_PATHS. Not a big |
| 313 |
|
deal. |
| 314 |
|
|
| 315 |
|
AdditionalIncludeDirectories="E:\builds\pcre\build;E:\builds\pcre\pcre-7.5;" |
| 316 |
|
AdditionalIncludeDirectories=".;E:\builds\pcre\pcre-7.5;" |
| 317 |
|
|
| 318 |
|
RelativePath="pcre.h"> |
| 319 |
|
RelativePath="pcre_chartables.c"> |
| 320 |
|
RelativePath="pcre_chartables.c.rule"> |
| 321 |
|
|
| 322 |
|
|
| 323 |
|
TESTING WITH RUNTEST.BAT |
| 324 |
|
|
| 325 |
1. Copy RunTest.bat into the directory where pcretest.exe has been created. |
1. Copy RunTest.bat into the directory where pcretest.exe has been created. |
| 326 |
|
|
| 335 |
|
|
| 336 |
4. To test pcrecpp, run pcrecpp_unittest.exe, pcre_stringpiece_unittest.exe and |
4. To test pcrecpp, run pcrecpp_unittest.exe, pcre_stringpiece_unittest.exe and |
| 337 |
pcre_scanner_unittest.exe. |
pcre_scanner_unittest.exe. |
| 338 |
|
|
| 339 |
|
|
| 340 |
BUILDING UNDER WINDOWS WITH BCC5.5 |
BUILDING UNDER WINDOWS WITH BCC5.5 |
| 341 |
|
|
| 415 |
$! |
$! |
| 416 |
========================= |
========================= |
| 417 |
|
|
| 418 |
Last Updated: 21 September 2007 |
Last Updated: 20 January 2008 |
| 419 |
**** |
**** |