diff options
author | irungentoo <irungentoo@gmail.com> | 2013-07-18 13:33:10 -0700 |
---|---|---|
committer | irungentoo <irungentoo@gmail.com> | 2013-07-18 13:33:10 -0700 |
commit | fa8852ad02e62ec0f16bbea5a61ee971a41de83d (patch) | |
tree | ab6fe2b7c5a5197682242cbe7e6ee66650ad8d33 /INSTALL.md | |
parent | c8d7044efb35a9d9b241adbe8346492965e0b054 (diff) | |
parent | 70da85875832a06fe6ad14822ae52a43781ba2d5 (diff) |
Merge pull request #49 from nurupo/master
Added installation guide
Diffstat (limited to 'INSTALL.md')
-rw-r--r-- | INSTALL.md | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/INSTALL.md b/INSTALL.md new file mode 100644 index 00000000..b4e28379 --- /dev/null +++ b/INSTALL.md | |||
@@ -0,0 +1,52 @@ | |||
1 | ##Installation | ||
2 | |||
3 | ###Linux: | ||
4 | |||
5 | You should get and install [libsodium](https://github.com/jedisct1/libsodium): | ||
6 | ```bash | ||
7 | git clone git://github.com/jedisct1/libsodium.git | ||
8 | cd libsodium | ||
9 | git checkout tags/0.4.2 | ||
10 | ./autogen.sh | ||
11 | ./configure && make check | ||
12 | sudo make install | ||
13 | sudo ldconfig | ||
14 | ``` | ||
15 | |||
16 | Then clone this repo and run: | ||
17 | ```bash | ||
18 | cmake CMakeLists.txt | ||
19 | ``` | ||
20 | |||
21 | Then you can build any of the [`/testing`](/testing) and [`/other`](/other) by running: | ||
22 | ```bash | ||
23 | make name_of_c_file | ||
24 | ``` | ||
25 | For example, to build [`Messenger_test.c`](/others/Messenger_test.c) you would run: | ||
26 | ```bash | ||
27 | make Messenger_test | ||
28 | ``` | ||
29 | |||
30 | ###Windows: | ||
31 | |||
32 | You should install: | ||
33 | - [MinGW](http://sourceforge.net/projects/mingw/)'s C compiler | ||
34 | - [CMake](http://www.cmake.org/cmake/resources/software.html) | ||
35 | |||
36 | Then you should either clone this repo by using git, or just download a [zip of current Master branch](https://github.com/irungentoo/ProjectTox-Core/archive/master.zip) and extract it somewhere. | ||
37 | |||
38 | After that you should get precompiled packages of libsodium from [here](https://download.libsodium.org/libsodium/releases/) and extract the archive into this repo's root. That is, `sodium` folder should be along with `core`, `testing` and other folders. | ||
39 | |||
40 | Navigate in `cmd` to this repo and run: | ||
41 | ```cmd | ||
42 | cmake -G "MinGW Makefiles" CMakeLists.txt | ||
43 | ``` | ||
44 | |||
45 | Then you can build any of the [`/testing`](/testing) and [`/other`](/other) by running: | ||
46 | ```cmd | ||
47 | mingw32-make name_of_c_file | ||
48 | ``` | ||
49 | For example, to build [`Messenger_test.c`](/others/Messenger_test.c) you would run: | ||
50 | ```cmd | ||
51 | mingw32-make Messenger_test | ||
52 | ``` \ No newline at end of file | ||