@@ -13,6 +13,21 @@ Join us on Slack: http://slack.cpp-netlib.org/
13
13
14
14
Subscribe to the mailing list: https://groups.google.com/forum/#!forum/cpp-netlib
15
15
16
+ Downloading cpp-netlib
17
+ ----------------------
18
+
19
+ You can find official release packages of the library at::
20
+
21
+ http://github.com/cpp-netlib/cpp-netlib/downloads
22
+
23
+ If you want the latest code from the master branch of the project, you can
24
+ follow these instructions for cloning the project repository::
25
+
26
+ $ git clone https://github.com/cpp-netlib/cpp-netlib
27
+ $ cd cpp-netlib
28
+ $ git submodule init
29
+ $ git submodule update
30
+
16
31
Introduction
17
32
------------
18
33
@@ -35,41 +50,31 @@ This library is released under the Boost Software License (please see
35
50
http://boost.org/LICENSE_1_0.txt or the accompanying LICENSE_1_0.txt file
36
51
for the full text.
37
52
38
- Downloading cpp-netlib
39
- ----------------------
40
-
41
- You can find official release packages of the library at::
42
-
43
- http://github.com/cpp-netlib/cpp-netlib/downloads
44
-
45
53
Building and Installing
46
54
-----------------------
47
55
48
- Building with CMake
49
- ~~~~~~~~~~~~~~~~~~~
50
-
51
- To build the libraries and run the tests with CMake, you will need to
52
- have CMake version 2.8 or higher installed appropriately in your
53
- system.
56
+ To build the libraries you will need to have CMake version 2.8 or higher
57
+ installed appropriately in your system.
54
58
55
59
::
56
60
57
61
$ cmake --version
58
62
cmake version 2.8.1
59
63
60
- Inside the cpp-netlib directory, you can issue the following statements to
61
- configure and generate the Makefiles, and build the tests ::
64
+ It is recommended that you build cpp-netlib outside of the source directory, to
65
+ avoid having issues with CMake generated files polluting the source directory ::
62
66
63
- $ cd ~/cpp-netlib # we're assuming it's where cpp-netlib is
67
+ $ mkdir ~/cpp-netlib-build
68
+ $ cd ~/cpp-netlib-build
64
69
$ cmake -DCMAKE_BUILD_TYPE=Debug \
65
70
> -DCMAKE_C_COMPILER=clang \
66
71
> -DCMAKE_CXX_COMPILER=clang++ \
67
- > .
72
+ > $HOME/cpp-netlib # we're assuming this is where cpp-netlib is .
68
73
69
74
Once CMake is done with generating the Makefiles and configuring the project,
70
75
you can now build the tests and run them::
71
76
72
- $ cd ~/cpp-netlib
77
+ $ cd ~/cpp-netlib-build
73
78
$ make
74
79
$ make test
75
80
@@ -85,8 +90,8 @@ Running Tests
85
90
If you want to run the tests that come with cpp-netlib, there are a few things
86
91
you will need. These are:
87
92
88
- * A compiler (GCC 4.x, Clang 2.8 , MSVC 2008)
89
- * A build tool (CMake _ recommended, Boost.Build also an option )
93
+ * A compiler (GCC 4.x, Clang 3.6 , MSVC 2008)
94
+ * A build tool (CMake _ is required )
90
95
* OpenSSL headers (optional)
91
96
92
97
.. note :: This assumes that you have cpp-netlib at the top-level of
@@ -96,11 +101,13 @@ you will need. These are:
96
101
Hacking on cpp-netlib
97
102
---------------------
98
103
99
- cpp-netlib is being developed with the git _ distributed SCM system.
104
+ cpp-netlib uses git _ for tracking work, and is hosted on GitHub _.
100
105
cpp-netlib is hosted on GitHub _ following the GitHub recommended practice of
101
106
forking the repository and submitting pull requests to the source repository.
102
107
You can read more about the forking _ process and submitting `pull requests `_ if
103
- you're not familiar with either process yet.
108
+ you're not familiar with either process yet. cpp-netib follows the GitHub pull
109
+ request model for accepting patches. You can read more about the process at
110
+ http://cpp-netlib.org/process.html#pull-requests.
104
111
105
112
.. _git : http://git-scm.com/
106
113
.. _GitHub : http://github.com/
@@ -114,19 +121,10 @@ copyright notices are at the top of each file in the project.
114
121
115
122
.. _`Boost Software License` : http://www.boost.org/LICENSE_1_0.txt
116
123
117
- At the time of writing, there are no coding conventions being followed but if
118
- you write in the general style that is already existing in the project that
119
- would be greatly appreciated. Copious amounts of comments will be called out,
120
- but code that is not self-explanatory typically at least requires a rationale
121
- documentation in comments explaining "why" the code is written that way.
122
-
123
- The main "upstream" repository is the one hosted by the original maintainer of
124
- the project (Dean Michael Berris) at http://github.com/deanberris/cpp-netlib.
125
- The "official" release repository is maintained at
126
- http://github.com/cpp-netlib/cpp-netlib -- which is a fork of the upstream
127
- repository. It is recommended that forks be made against the upstream repostory
128
- and pull requests be submitted against the upstream repository so that patches
129
- and other implementations can be curated by the original maintainer.
124
+ You can read about the cpp-netlib style guide at
125
+ http://cpp-netlib.org/style-guide.html.
126
+
127
+ The main "upstream" repository is at http://github.com/cpp-netlib/cpp-netlib.
130
128
131
129
Contact and Support
132
130
-------------------
0 commit comments