mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
1.5 KiB
1.5 KiB
##Installation
###Linux:
You should get and install libsodium:
git clone git://github.com/jedisct1/libsodium.git
cd libsodium
git checkout tags/0.4.2
./autogen.sh
./configure && make check
sudo make install
sudo ldconfig
Then clone this repo and run:
cmake CMakeLists.txt
Then you can build any of the /testing
and /other
by running:
make name_of_c_file
For example, to build Messenger_test.c
you would run:
make Messenger_test
###Windows:
You should install:
Then you should either clone this repo by using git, or just download a zip of current Master branch and extract it somewhere.
After that you should get precompiled packages of libsodium from here and extract the archive into this repo's root. That is, sodium
folder should be along with core
, testing
and other folders.
Navigate in cmd
to this repo and run:
cmake -G "MinGW Makefiles" CMakeLists.txt
Then you can build any of the /testing
and /other
by running:
mingw32-make name_of_c_file
For example, to build Messenger_test.c
you would run:
mingw32-make Messenger_test