Skip to content

Commit 78b8ff5

Browse files
author
jin1xiao3long2
committed
update README.md
1 parent 02248f3 commit 78b8ff5

File tree

2 files changed

+89
-0
lines changed

2 files changed

+89
-0
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
build/
2+
lib/
3+
include/

README.md

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,88 @@
11
# cids-servers
22
center server ,mirror server and driver
3+
4+
5+
dir
6+
----cids-server
7+
----rapidjson
8+
----nanodbc
9+
----muduo
10+
11+
after clone this project
12+
13+
Imporve projectPath
14+
15+
-- mkdir lib #to find libraries
16+
-- mkdir include #to find headers
17+
18+
Compile rapidJson
19+
20+
git clone https://github.com/Tencent/rapidjson.git #download rapidjson
21+
22+
cd rapidjson #change to rapidjson dir
23+
24+
mkdir build #Put compiler output in build file
25+
26+
cd build #change to build dir
27+
28+
cmake .. #generate Makefile
29+
30+
make #generate other things you can add '-j4' after 'make' to make it faster
31+
32+
sudo make install #generate lib files and put them in /usr/lib(maybe)
33+
34+
35+
Compile nanodbc
36+
37+
git clone https://github.com/nanodbc/nanodbc.git #download nanodbc
38+
39+
cd nanodbc #change to nanodbc dir
40+
41+
cp -r nanodbc ../cids-servser/include #copy include file to projectPath/include
42+
43+
mkdir build #Put compiler output in build file
44+
45+
cd build #change to build dir
46+
47+
cmake .. #generate Makefile
48+
49+
make #generate other things you can add '-j4' after 'make' to make it faster
50+
51+
cp libnanodbc.a ../../cids-servers/lib #copy library file to projectPath/lib
52+
53+
54+
Compiler muduo
55+
56+
git clone https://github.com/chenshuo/muduo.git #download muduo
57+
58+
cd muduo #change to muduo dir
59+
60+
cp -r muduo ../cids-servser/include #copy include file to projectPath/include
61+
62+
mkdir build #Put compiler output in build file
63+
64+
cd build #change to build dir
65+
66+
cmake .. #generate Makefile
67+
68+
make #generate other things you can add '-j4' after 'make' to make it faster
69+
70+
cd lib #change to lib dir
71+
72+
cp * ../../../cids-servsers/lib #put lib file to projectPath/lib
73+
74+
75+
now your project will like this:
76+
77+
cids-servsers
78+
----include
79+
----muduo
80+
----net
81+
----base
82+
----nanodbc
83+
----lib
84+
----libxxx.a #10 lib files
85+
86+
87+
88+

0 commit comments

Comments
 (0)