Refactorized readme files.

This commit is contained in:
PKEuS 2015-07-29 10:21:04 +02:00
parent bf75ee9aed
commit 421d42c838
4 changed files with 18 additions and 51 deletions

View File

@ -26,10 +26,12 @@ When building the command line tool, [PCRE](http://www.pcre.org/) is optional. I
There are multiple compilation choices: There are multiple compilation choices:
* qmake - cross platform build tool * qmake - cross platform build tool
* Windows: Visual Studio (VS 2010 and above) or Qt Creator or MinGW * cmake - cross platform build tool
* Windows: Visual Studio (VS 2010 and above)
* Windows: Qt Creator + mingw
* gnu make * gnu make
* g++ 4.4 (and above) * g++ 4.6 (or later)
* clang++ 2.9 (and above) * clang++
### qmake ### qmake
@ -43,14 +45,9 @@ make
### Visual Studio ### Visual Studio
Use the cppcheck.sln file. The rules are normally enabled. Use the cppcheck.sln file. The file is configured for Visual Studio 2013, but the platform toolset can be changed easily to older or newer versions. The solution contains platform targets for both x86 and x64.
To compile with rules (PCRE dependency): To compile with rules, select "Release-PCRE" or "Debug-PCRE" configuration. pcre.lib (pcre64.lib for x64 builds) and pcre.h are expected to be in /extlibs then.
* the PCRE dll is needed. It can be downloaded from [here](http://cppcheck.sourceforge.net/pcre-8.10-vs.zip).
To compile without rules (no dependencies):
* remove the preprocessor define `HAVE_RULES` from the project
* remove the pcre.lib from the project
### Qt Creator + MinGW ### Qt Creator + MinGW

View File

@ -25,10 +25,12 @@ Compiling
There are multiple compilation choices: There are multiple compilation choices:
* qmake - cross platform build tool * qmake - cross platform build tool
* cmake - cross platform build tool
* Windows: Visual Studio * Windows: Visual Studio
* Windows: Qt Creator + mingw * Windows: Qt Creator + mingw
* gnu make * gnu make
* g++ * g++ 4.6 (or later)
* clang++
qmake qmake
===== =====
@ -39,15 +41,12 @@ Compiling
Visual Studio Visual Studio
============= =============
Use the cppcheck.sln file. The rules are normally enabled. Use the cppcheck.sln file. The file is configured for Visual Studio 2013, but the platform
toolset can be changed easily to older or newer versions. The solution contains platform
targets for both x86 and x64.
To compile with rules (pcre dependency): To compile with rules, select "Release-PCRE" or "Debug-PCRE" configuration.
* the pcre dll is needed. it can be downloaded from: pcre.lib (pcre64.lib for x64 builds) and pcre.h are expected to be in /extlibs then.
http://cppcheck.sourceforge.net/pcre-8.10-vs.zip
To compile without rules (no dependencies):
* remove the preprocessor define HAVE_RULES from the project
* remove the pcre.lib from the project
Qt Creator + mingw Qt Creator + mingw
================== ==================

View File

@ -1,32 +0,0 @@
Cppcheck for 64-bit Windows
===========================
This is quick start to get you started with compiling Cppcheck for 64-bit
Windows with free VS Express editions.
Software needed:
- Visual Studio 2010 (or later) Express edition
- Only for VS2010: Windows SDK 7.1
LIB, CLI and testsuite
----------------------
Visual Studio 2010 and later:
Just open cppcheck.sln, choose "x64" as platform and compile.
GUI
---
Software needed:
- Visual Studio 2010 Express edition
- Windows SDK 7.1 (containing x64 compiler)
- latest Qt SDK (4.7.0 or later, earlier versions don't support VS 2010)
Turns out you just need to use Windows SDK's Command prompt and 64-bit
environment to configure and build Qt. No extra steps needed. But of course you
should build 64-bit Qt to different folder than 32-bit Qt.
Compiling 64-bit GUI works fine from Windows SDK Console. With VS2010 Express IDE
everything works fine after adding new x64 platform for the project.

View File

@ -46,6 +46,9 @@ These commands generate makefiles to actually build the software. After that
the actual building is done in IDE or command line as usual. Note that you the actual building is done in IDE or command line as usual. Note that you
don't need to run qmake again unless you add/remove files from the project. don't need to run qmake again unless you add/remove files from the project.
The Visual Studio solution does not contain a configuration for x64 platform, but
it can be added easily.
Tests Tests
----- -----
There are tests for the GUI in gui/test -directory. There is test.pro There are tests for the GUI in gui/test -directory. There is test.pro