2014-06-24 17:35:23 +02:00
# Toxic [](https://travis-ci.org/Tox/toxic)
2014-07-04 14:25:22 -04:00
Toxic is a [Tox ](https://tox.im )-based instant messenging client which formerly resided in the [Tox core repository ](https://github.com/irungentoo/toxcore ), and is now available as a standalone application.
2014-06-24 05:54:14 -07:00
2014-07-27 03:36:06 -04:00
.
2013-08-23 11:57:16 +03:00
2014-03-04 03:08:04 -05:00
## Installation
2013-08-23 11:57:16 +03:00
2014-06-24 05:54:14 -07:00
### Dependencies
##### Base
* [libtoxcore ](https://github.com/irungentoo/toxcore )
2014-06-24 17:46:52 +02:00
* [ncurses ](https://www.gnu.org/software/ncurses ) (for Debian based systems, 'libncursesw5-dev')
2014-07-21 14:19:01 +02:00
* [libconfig ](http://www.hyperrealm.com/libconfig ) (for Debian based systems, 'libconfig-dev')
2013-08-23 11:57:16 +03:00
2014-06-24 05:54:14 -07:00
##### Audio
2014-07-30 14:14:13 +02:00
* libtoxav ([libtoxcore ](https://github.com/irungentoo/toxcore ) compiled with audio support)
2014-07-23 15:15:14 -04:00
* [openal ](http://openal.org ) (for Debian based systems, 'libopenal-dev')
2013-10-31 12:46:13 -04:00
2014-07-21 14:19:01 +02:00
##### Sound notifications
2014-07-30 14:14:13 +02:00
* [openal ](http://openal.org ) (for Debian based systems, 'libopenal-dev')
2014-07-23 15:15:14 -04:00
* [openalut ](http://openal.org ) (for Debian based systems, 'libalut-dev')
2014-07-21 14:19:01 +02:00
2014-07-30 14:14:13 +02:00
##### Desktop notifications
* [libnotify ](https://developer.gnome.org/libnotify ) (for Debian based systems, 'libnotify-dev')
2014-06-24 12:28:56 +02:00
### Compiling
2014-06-24 05:54:14 -07:00
1. `cd build/`
2014-06-25 09:13:57 +02:00
2. `make PREFIX="/where/to/install"`
3. `sudo make install PREFIX="/where/to/install"`
2014-06-24 05:54:14 -07:00
### Compilation Notes
* You can add specific flags to the Makefile with `USER_CFLAGS=""` and/or `USER_LDFLAGS=""`
* You can pass your own flags to the Makefile with `CFLAGS=""` and/or `LDFLAGS=""` (this will supersede the default ones)
2014-07-30 14:14:13 +02:00
* Additional features are automatically enabled if all dependencies are found, but you can disable them by using special variables:
* `DISABLE_AV=1` → build toxic without audio call support
* `DISABLE_SOUND_NOTIFY=1` → build toxic without sound notifications support
* `DISABLE_DESKTOP_NOTIFY=1` → build toxic without desktop notifications support
2014-06-24 12:28:56 +02:00
2014-06-25 09:13:57 +02:00
### Packaging
2014-06-25 10:54:05 +02:00
* For packaging purpose, you can use `DESTDIR=""` to specify a directory where to store installed files
2014-06-25 09:13:57 +02:00
* `DESTDIR=""` can be used in addition to `PREFIX=""` :
2014-06-25 10:54:05 +02:00
* `DESTDIR=""` is meant to specify a directory where to store installed files (ex: "/tmp/build/pkg")
2014-06-25 09:13:57 +02:00
* `PREFIX=""` is meant to specify a prefix directory for binaries and data files (ex: "/usr/local")
2014-06-24 12:28:56 +02:00
### Troubleshooting
2014-06-24 05:54:14 -07:00
If your default prefix is "/usr/local" and you receive the following:
2014-06-24 12:45:14 +02:00
```
error while loading shared libraries: libtoxcore.so.0: cannot open shared object file: No such file or directory
```
2014-06-24 05:54:14 -07:00
you can attempt to correct it by running `sudo ldconfig` . If that doesn't work, run:
2013-10-31 12:46:13 -04:00
```
2013-11-15 13:07:02 -05:00
echo '/usr/local/lib/' | sudo tee -a /etc/ld.so.conf.d/locallib.conf
2013-10-31 12:46:13 -04:00
sudo ldconfig
```
2014-06-24 12:28:56 +02:00
2014-07-24 13:05:56 +02:00
## Precompiled binaries
You can download precompiled binaries from [jenkins ](https://jenkins.libtoxcore.so ):
* [Linux 32 bit ](https://jenkins.libtoxcore.so/job/toxic_linux_i386/lastSuccessfulBuild/artifact/toxic_linux_i386.tar.xz )
* [Linux 64 bit ](https://jenkins.libtoxcore.so/job/toxic_linux_amd64/lastSuccessfulBuild/artifact/toxic_linux_amd64.tar.xz )
2014-04-08 02:17:19 -04:00
## Settings
2014-06-24 05:54:14 -07:00
Running Toxic for the first time creates an empty file called toxic.conf in your home configuration directory ("~/.config/tox" for Linux users). Adding options to this file allows you to enable auto-logging, change the time format (12/24 hour), and much more.
2014-06-28 18:04:10 +02:00
You can view our example config file [here ](misc/toxic.conf.example ).
2014-06-24 17:35:23 +02:00