File: build-pcre.txt

package info (click to toggle)
cppcheck 2.17.1-2
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 25,384 kB
  • sloc: cpp: 263,341; python: 19,737; ansic: 7,953; sh: 1,018; makefile: 996; xml: 994; cs: 291
file content (63 lines) | stat: -rw-r--r-- 1,359 bytes parent folder | download
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
59
60
61
62
63
PCRE is a library that is used by the optional "rules" feature for the command
line version of cppcheck. It is readily available on Linux and Mac OS X, but
must be obtained separately for Windows.

Build instructions
------------------

Windows
-------

Visual Studio

To build PCRE, download the source code from www.pcre.org and
CMake (https://cmake.org/download/). We assume you use Visual Studio 2015 -
otherwise adapt the commands for your version.

VS Solution file
  cmake . -G "Visual Studio 14 2015"
  Open PCRE.sln with VS IDE or via cmd:
    call "%VS140COMNTOOLS%..\..\VC\vcvarsall.bat" x86
    MSBuild PCRE.sln /target:Build /property:Configuration="Release"

  For 64-bit target: cmake . -G "Visual Studio 14 2015 Win64"

or using NMake
  call "%VS140COMNTOOLS%..\..\VC\vcvarsall.bat" x86
  cmake . -G "NMake Makefiles"
  nmake

or using MSYS
  cmake . -G "MSYS Makefiles"
  make


Linux
-----

The normal Makefile should work.

Install PCRE on Ubuntu might be needed:
  sudo apt-get install libpcre3 libpcre3-dev


Mac OSX
-------

Install PCRE:

homebre
  brew install pcre

or macport
  sudo port install pcre

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

for homebrew
  export CXXFLAGS=${CXXFLAGS}:/usr/local/include

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

Or for MSVC copy pcre.lib and pcre.h in /externals directory.