mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
made install.md Unix friendly
This commit is contained in:
parent
c766ff95d0
commit
2ead95b56b
38
INSTALL.md
38
INSTALL.md
|
@ -1,7 +1,7 @@
|
|||
#Install Instructions
|
||||
|
||||
- [Installation](#installation)
|
||||
- [Linux](#linux)
|
||||
- [Unix like (Linux)](#unix)
|
||||
- [OS X](#osx)
|
||||
- [Homebrew](#homebrew)
|
||||
- [Non-Homebrew](#non-homebrew)
|
||||
|
@ -10,11 +10,15 @@
|
|||
<a name="installation" />
|
||||
##Installation
|
||||
|
||||
<a name="linux" />
|
||||
###Linux:
|
||||
<a name="unix" />
|
||||
###Most Unix like OSes (Linux):
|
||||
|
||||
Build dependencies:
|
||||
|
||||
Note: package fetching commands may vary by OS.
|
||||
|
||||
On Ubuntu:
|
||||
|
||||
```bash
|
||||
sudo apt-get install build-essential libtool autotools-dev automake libconfig-dev ncurses-dev checkinstall check git libswscale-dev libsdl-dev libopenal-dev libopus-dev libvpx-dev yasm
|
||||
```
|
||||
|
@ -24,7 +28,7 @@ On Fedora:
|
|||
```bash
|
||||
yum groupinstall "Development Tools"
|
||||
yum install libtool autoconf automake libconfig-devel ncurses-devel check check-devel
|
||||
```
|
||||
```
|
||||
|
||||
Note that `libconfig-dev` should be >= 1.4.
|
||||
|
||||
|
@ -54,7 +58,7 @@ make check
|
|||
sudo make install
|
||||
cd ..
|
||||
```
|
||||
If your default prefix is /usr/local and you happen to get an error that says "error while loading shared libraries: libtoxcore.so.0: cannot open shared object file: No such file or directory", then you can try running ```sudo ldconfig```. If that doesn't fix it, run:
|
||||
If your default prefix is /usr/local and you happen to get an error that says "error while loading shared libraries: libtoxcore.so.0: cannot open shared object file: No such file or directory", then you can try running ```sudo ldconfig```, this is an issue common on Linux. If that doesn't fix it, run:
|
||||
```
|
||||
echo '/usr/local/lib/' | sudo tee -a /etc/ld.so.conf.d/locallib.conf
|
||||
sudo ldconfig
|
||||
|
@ -100,13 +104,6 @@ The following libraries are required along with libsodium and cmake for Mountain
|
|||
There are no binaries/executables going to /bin/ or /usr/bin/ now. Everything is compiled and ran from the inside your local branch. See [Usage](#usage) below.
|
||||
<a name="homebrew" />
|
||||
####Homebrew:
|
||||
To install from the formula:
|
||||
```bash
|
||||
brew tap Tox/tox
|
||||
brew install --HEAD libtoxcore
|
||||
```
|
||||
|
||||
To do it manually:
|
||||
```
|
||||
brew install libtool automake autoconf libconfig libsodium check
|
||||
```
|
||||
|
@ -119,21 +116,6 @@ autoreconf -i
|
|||
make
|
||||
make install
|
||||
```
|
||||
|
||||
If execution fails with errors like "dyld: Library not loaded: /opt/tox-im/lib/libtoxcore.0.dylib", you may need to specify libsodium path:
|
||||
|
||||
Determine paths:
|
||||
```
|
||||
brew list libsodium
|
||||
```
|
||||
|
||||
Configure include and lib folder and build again:
|
||||
```bash
|
||||
./configure--with-libsodium-headers=/usr/local/Cellar/libsodium/0.4.5/include/ --with-libsodium-libs=/usr/local/Cellar/libsodium/0.4.5/lib/
|
||||
make
|
||||
make install
|
||||
```
|
||||
|
||||
Advance configure options:
|
||||
- --prefix=/where/to/install
|
||||
- --with-libsodium-headers=/path/to/libsodium/include/
|
||||
|
@ -201,7 +183,7 @@ You should install:
|
|||
- [MinGW](http://sourceforge.net/projects/mingw/)
|
||||
|
||||
When installing MinGW, make sure to select the MSYS option in the installer.
|
||||
MinGW will install an "MinGW shell" (you should get a shortcut for it), make sure to perform all operations (i.e. generating/running configure script, compiling, etc.) from the MinGW shell.
|
||||
MinGW will install an "MinGW shell" (you should get a shortcut for it), make sure to perform all opeartions (i.e. generating/running configure script, compiling, etc.) from the MinGW shell.
|
||||
|
||||
First download the source tarball from http://download.libsodium.org/libsodium/releases/ and build it.
|
||||
Assuming that you got the libsodium-0.4.2.tar.gz release:
|
||||
|
|
Loading…
Reference in New Issue
Block a user