Skip to content

Commit 3701cd5

Browse files
update README.md
1 parent 8c7a0e2 commit 3701cd5

File tree

1 file changed

+78
-44
lines changed

1 file changed

+78
-44
lines changed

README.md

Lines changed: 78 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,88 +1,122 @@
11
# cids-servers
2+
23
center server ,mirror server and driver
34

45

5-
dir
6-
----cids-server
7-
----rapidjson
8-
----nanodbc
9-
----muduo
6+
7+
your project path and other library project path should be like this:
8+
9+
10+
11+
- dir
12+
13+
- cids-server
14+
15+
- rapidjson
16+
- nanodbc
17+
18+
- muduo
19+
20+
1021

1122
after clone this project
1223

13-
Imporve projectPath
1424

15-
-- mkdir lib #to find libraries
16-
-- mkdir include #to find headers
1725

18-
Compile rapidJson
26+
## Imporve projectPath
27+
28+
```bash
29+
-- mkdir lib #to find libraries
30+
31+
-- mkdir include #to find headers
32+
```
33+
34+
------
35+
36+
37+
38+
## Compile rapidJson
39+
40+
```bash
41+
git clone <https://github.com/Tencent/rapidjson.git> #download rapidjson
42+
43+
cd rapidjson #change to rapidjson dir
44+
45+
mkdir build #Put compiler output in build file
46+
47+
cd build #change to build dir
48+
49+
cmake .. #generate Makefile
1950

20-
git clone https://github.com/Tencent/rapidjson.git #download rapidjson
51+
make #generate other things you can add '-j4' after 'make' to make it faster
2152

22-
cd rapidjson #change to rapidjson dir
53+
sudo make install #generate lib files and put them in /usr/lib(maybe)
54+
```
2355

24-
mkdir build #Put compiler output in build file
56+
------
2557

26-
cd build #change to build dir
2758

28-
cmake .. #generate Makefile
2959

30-
make #generate other things you can add '-j4' after 'make' to make it faster
60+
## Compile nanodbc
3161

32-
sudo make install #generate lib files and put them in /usr/lib(maybe)
62+
```bash
63+
git clone <https://github.com/nanodbc/nanodbc.git> #download nanodbc
3364

65+
cd nanodbc #change to nanodbc dir
3466

35-
Compile nanodbc
67+
cp -r nanodbc ../cids-servser/include #copy include file to projectPath/include
3668

37-
git clone https://github.com/nanodbc/nanodbc.git #download nanodbc
69+
mkdir build #Put compiler output in build file
3870

39-
cd nanodbc #change to nanodbc dir
71+
cd build #change to build dir
4072

41-
cp -r nanodbc ../cids-servser/include #copy include file to projectPath/include
73+
cmake .. #generate Makefile
4274

43-
mkdir build #Put compiler output in build file
75+
make #generate other things you can add '-j4' after 'make' to make it faster
4476

45-
cd build #change to build dir
77+
cp libnanodbc.a ../../cids-servers/lib #copy library file to projectPath/lib
78+
```
4679

47-
cmake .. #generate Makefile
80+
------
4881

49-
make #generate other things you can add '-j4' after 'make' to make it faster
5082

51-
cp libnanodbc.a ../../cids-servers/lib #copy library file to projectPath/lib
5283

84+
## Compiler muduo
5385

54-
Compiler muduo
86+
```bash
87+
git clone <https://github.com/chenshuo/muduo.git> #download muduo
5588

56-
git clone https://github.com/chenshuo/muduo.git #download muduo
89+
cd muduo #change to muduo dir
5790

58-
cd muduo #change to muduo dir
91+
cp -r muduo ../cids-servser/include #copy include file to projectPath/include
5992

60-
cp -r muduo ../cids-servser/include #copy include file to projectPath/include
93+
mkdir build #Put compiler output in build file
6194

62-
mkdir build #Put compiler output in build file
95+
cd build #change to build dir
6396

64-
cd build #change to build dir
97+
cmake .. #generate Makefile
6598

66-
cmake .. #generate Makefile
99+
make #generate other things you can add '-j4' after 'make' to make it faster
67100

68-
make #generate other things you can add '-j4' after 'make' to make it faster
101+
cd lib #change to lib dir
69102

70-
cd lib #change to lib dir
103+
cp * ../../../cids-servsers/lib #put lib file to projectPath/lib
71104

72-
cp * ../../../cids-servsers/lib #put lib file to projectPath/lib
105+
```
73106

107+
------
74108

75-
now your project will like this:
76109

77-
cids-servsers
78-
----include
79-
----muduo
80-
----net
81-
----base
82-
----nanodbc
83-
----lib
84-
----libxxx.a #10 lib files
85110

111+
## now your project will like this:
86112

113+
- cids-servsers
114+
- include
115+
- muduo
116+
- net
117+
- base
118+
- nanodbc
119+
- lib
120+
- libxxx.a #10 lib files
87121

88122

0 commit comments

Comments
 (0)