cppcheck/build-pcre.txt

58 lines
1.6 KiB
Plaintext
Raw Normal View History

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
2010-12-12 11:56:22 +01:00
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
2010-12-12 11:56:22 +01:00
MINGW (Qt 4.7 SDK)
I downloaded pcre-8.0-lib.zip from here: http://software-download.name/pcre-library-windows/
2010-12-12 11:56:22 +01:00
Linux
The normal Makefile should work
Install pcre on ubuntu might be needed:
2010-12-12 11:56:22 +01:00
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