summaryrefslogtreecommitdiff
path: root/INSTALL.md
diff options
context:
space:
mode:
authorirungentoo <irungentoo@gmail.com>2013-07-18 13:33:10 -0700
committerirungentoo <irungentoo@gmail.com>2013-07-18 13:33:10 -0700
commitfa8852ad02e62ec0f16bbea5a61ee971a41de83d (patch)
treeab6fe2b7c5a5197682242cbe7e6ee66650ad8d33 /INSTALL.md
parentc8d7044efb35a9d9b241adbe8346492965e0b054 (diff)
parent70da85875832a06fe6ad14822ae52a43781ba2d5 (diff)
Merge pull request #49 from nurupo/master
Added installation guide
Diffstat (limited to 'INSTALL.md')
-rw-r--r--INSTALL.md52
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
5You should get and install [libsodium](https://github.com/jedisct1/libsodium):
6```bash
7git clone git://github.com/jedisct1/libsodium.git
8cd libsodium
9git checkout tags/0.4.2
10./autogen.sh
11./configure && make check
12sudo make install
13sudo ldconfig
14```
15
16Then clone this repo and run:
17```bash
18cmake CMakeLists.txt
19```
20
21Then you can build any of the [`/testing`](/testing) and [`/other`](/other) by running:
22```bash
23make name_of_c_file
24```
25For example, to build [`Messenger_test.c`](/others/Messenger_test.c) you would run:
26```bash
27make Messenger_test
28```
29
30###Windows:
31
32You should install:
33 - [MinGW](http://sourceforge.net/projects/mingw/)'s C compiler
34 - [CMake](http://www.cmake.org/cmake/resources/software.html)
35
36Then 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
38After 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
40Navigate in `cmd` to this repo and run:
41```cmd
42cmake -G "MinGW Makefiles" CMakeLists.txt
43```
44
45Then you can build any of the [`/testing`](/testing) and [`/other`](/other) by running:
46```cmd
47mingw32-make name_of_c_file
48```
49For example, to build [`Messenger_test.c`](/others/Messenger_test.c) you would run:
50```cmd
51mingw32-make Messenger_test
52``` \ No newline at end of file