Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 59 lines (32 sloc) 1.604 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58
PCRE is a library that is used by the optional "rules" feature. (It adds
some additional features to the command line client.) It's readily available
on Linux and Mac OS X, but must be obtained separately for Windows.

If you're using qmake to generate makefiles, the following behavior applies:

- If you're not on Windows, it assumes by default that you have PCRE and want
    to enable rules support.

- If you're not on Windows, you can disable rules support (removing the PCRE
    dependency) by passing HAVE_RULES=no to qmake.

- If you are on Windows, but have PCRE available, you can enable rules support
    by passing HAVE_RULES=yes to qmake.

    - Note: This includes using build.bat since it calls qmake - to use PCRE and
        build.bat, you need to run set HAVE_RULES=yes before each run of build.bat


Some temporary build instructions. This is work in progress.


Windows

Visual Studio

To build pcre I downloaded the sourcecode from www.pcre.org. I downloaded cmake 2.8.
Then I built the lib with:
    cmake .
    nmake

The resulting files can be downloaded here (please try if it works):
    http://cppcheck.sf.net/pcre-8.10-vs.zip


MINGW (Qt 4.7 SDK)

I downloaded pcre-8.0-lib.zip from here: http://software-download.name/pcre-library-windows/


Linux

The normal Makefile should work

Install pcre on ubuntu might be needed:
sudo apt-get install libpcre3 libpcre3-dev


Mac OSX

Install pcre:

    sudo port install pcre

Ensure /path/to/pcre.h is in CXXFLAGS, e.g:

    export CXXFLAGS=${CXXFLAGS}:/opt/local/include

Something went wrong with that request. Please try again.