From 3913adedb0343e10f50d271a5858f0a7e7c7d19b Mon Sep 17 00:00:00 2001 From: Ansa89 Date: Tue, 24 Jun 2014 12:06:13 +0200 Subject: [PATCH 1/6] Update .travis.yml: cosmetic fixes --- .travis.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 4d4f74c..aa6392c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,7 +7,7 @@ before_script: # Installing yasm (needed for compiling vpx) and openal - sudo apt-get -yq install yasm libopenal-dev # Installing libsodium, needed for toxcore - - git clone git://github.com/jedisct1/libsodium.git > /dev/null + - git clone https://github.com/jedisct1/libsodium.git libsodium - cd libsodium - git checkout tags/0.4.2 > /dev/null - ./autogen.sh > /dev/null @@ -16,7 +16,7 @@ before_script: - sudo make install > /dev/null - cd .. # Installing libopus, needed for audio encoding/decoding - - wget http://downloads.xiph.org/releases/opus/opus-1.0.3.tar.gz > /dev/null + - wget http://downloads.xiph.org/releases/opus/opus-1.0.3.tar.gz - tar xzf opus-1.0.3.tar.gz > /dev/null - cd opus-1.0.3 - ./configure > /dev/null @@ -24,7 +24,7 @@ before_script: - sudo make install > /dev/null - cd .. # Installing vpx - - git clone http://git.chromium.org/webm/libvpx.git > /dev/null + - git clone http://git.chromium.org/webm/libvpx.git libvpx - cd libvpx - ./configure --enable-shared > /dev/null - make -j2 || make || exit 1 > /dev/null From 449b6fa5ffd1c5ac893c475cdebedb9ae0c1cd92 Mon Sep 17 00:00:00 2001 From: Ansa89 Date: Tue, 24 Jun 2014 12:28:56 +0200 Subject: [PATCH 2/6] Update README.md --- README.md | 39 +++++++++++++++++++++++++-------------- 1 file changed, 25 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index 168a646..198093e 100644 --- a/README.md +++ b/README.md @@ -1,25 +1,36 @@ # Toxic +Toxic is an ncurses based instant messaging client for [Tox](https://tox.im) which formerly resided in the [Tox core repository](https://github.com/irungentoo/toxcore) and is now available as a standalone program. It looks like [this](http://i.imgur.com/hL7WhVl.png). -Toxic is an ncurses based instant messaging client for [Tox](http://tox.im) which formerly resided in the [Tox core repository](https://github.com/irungentoo/ProjectTox-Core) and is now available as a standalone program. It looks like [this](http://i.imgur.com/hL7WhVl.png). ## Installation -* Generate the configure script by running the ```autoreconf -i``` command. -* Execute the configure script with ```./configure``` (you may need to pass it the location of your dependency libraries, i.e.): -```./configure --prefix=/where/to/install --with-libtoxcore-headers=/path/to/ProjectTox-Core/toxcore --with-libtoxcore-libs=/path/to/ProjectTox-Core/build/.libs --with-libsodium-headers=/path/to/libsodium/include/ --with-libsodium-libs=/path/to/sodiumtest/lib/ ``` +### Base dependencies +* libtoxcore +* ncurses (for Debian based systems: libncurses5-dev libncursesw5-dev) -* Audio calling support requires openal installed -* Compile with --disable-av to build without audio call support -* Compile and install the program with ```make && sudo make install``` +### Audio dependencies +* libtoxav +* openal -#### Notes -If your default prefix is /usr/local and you get the error: "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: +### Compiling +* `cd build/` +* `make` +* `sudo make install DESTDIR="/path/you/like" + +* You can add specific flags to makefile with `USER_CFLAGS=""` and/or `USER_LDFLAGS=""` +* You can pass your own flags to makefile with `CFLAGS=""` and/or `LDFLAGS=""` (this will supersede the defaults one) + +* Audio calling support is automatically enabled if all dependencies are found + +### Troubleshooting +If your default prefix is "/usr/local" and you get the error: +`error while loading shared libraries: libtoxcore.so.0: cannot open shared object file: No such file or directory` +you can try fix it running `sudo ldconfig`. +If that doesn't fix it, run: ``` echo '/usr/local/lib/' | sudo tee -a /etc/ld.so.conf.d/locallib.conf sudo ldconfig ``` -If you dont already have them, you may need to install the ncurses libraries. For Debian based systems: -``` -sudo apt-get install libncurses5-dev libncursesw5-dev -``` + ## Settings -After running Toxic for the first time an empty file called toxic.conf should reside in your home configuration directory (~/.config/tox for Linux users). For an example on how to use this config file to save settings such as auto-logging and time format see: toxic/misc/toxic.conf +After running Toxic for the first time an empty file called toxic.conf should reside in your home configuration directory ("~/.config/tox" for Linux users). +For an example on how to use this config file to save settings such as auto-logging and time format see: [toxic/misc/toxic.conf](toxic/misc/toxic.conf). From 46e4ddfaf1a9a7fb80d1ca85e82f21b0a7d559f1 Mon Sep 17 00:00:00 2001 From: Ansa89 Date: Tue, 24 Jun 2014 12:30:33 +0200 Subject: [PATCH 3/6] Update README.md --- README.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 198093e..cb0765c 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ Toxic is an ncurses based instant messaging client for [Tox](https://tox.im) whi ### Compiling * `cd build/` * `make` -* `sudo make install DESTDIR="/path/you/like" +* `sudo make install DESTDIR="/path/you/like"` * You can add specific flags to makefile with `USER_CFLAGS=""` and/or `USER_LDFLAGS=""` * You can pass your own flags to makefile with `CFLAGS=""` and/or `LDFLAGS=""` (this will supersede the defaults one) @@ -32,5 +32,4 @@ sudo ldconfig ``` ## Settings -After running Toxic for the first time an empty file called toxic.conf should reside in your home configuration directory ("~/.config/tox" for Linux users). -For an example on how to use this config file to save settings such as auto-logging and time format see: [toxic/misc/toxic.conf](toxic/misc/toxic.conf). +After running Toxic for the first time an empty file called toxic.conf should reside in your home configuration directory ("~/.config/tox" for Linux users). For an example on how to use this config file to save settings such as auto-logging and time format see: [misc/toxic.conf](misc/toxic.conf). From 2bbc47d3f76767bee09536892025103127ba2044 Mon Sep 17 00:00:00 2001 From: Ansa89 Date: Tue, 24 Jun 2014 12:37:43 +0200 Subject: [PATCH 4/6] Update .gitignore: remove autotools --- .gitignore | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/.gitignore b/.gitignore index 69a7bdb..3ee8312 100644 --- a/.gitignore +++ b/.gitignore @@ -9,19 +9,10 @@ *.app *.swp *.la -m4/* -!m4/pkg.m4 -configure -configure_aux -Makefile.in -aclocal.m4 -config.h* -config.log -config.status stamp-h1 -autom4te.cache .deps .libs *.orig build/toxic -Makefile +build/*.o +build/*.d From c3dfaa593533e1d9051fa830fd6fa80c93c9e3b9 Mon Sep 17 00:00:00 2001 From: Ansa89 Date: Tue, 24 Jun 2014 12:45:14 +0200 Subject: [PATCH 5/6] Update README.md --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index cb0765c..0253220 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,9 @@ Toxic is an ncurses based instant messaging client for [Tox](https://tox.im) whi ### Troubleshooting If your default prefix is "/usr/local" and you get the error: -`error while loading shared libraries: libtoxcore.so.0: cannot open shared object file: No such file or directory` +``` +error while loading shared libraries: libtoxcore.so.0: cannot open shared object file: No such file or directory +``` you can try fix it running `sudo ldconfig`. If that doesn't fix it, run: ``` From f66b9137e88f542b1a68b64545c27697511b4903 Mon Sep 17 00:00:00 2001 From: Ansa89 Date: Tue, 24 Jun 2014 12:46:18 +0200 Subject: [PATCH 6/6] Update README.md --- README.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/README.md b/README.md index 0253220..7ca7450 100644 --- a/README.md +++ b/README.md @@ -15,10 +15,8 @@ Toxic is an ncurses based instant messaging client for [Tox](https://tox.im) whi * `cd build/` * `make` * `sudo make install DESTDIR="/path/you/like"` - * You can add specific flags to makefile with `USER_CFLAGS=""` and/or `USER_LDFLAGS=""` * You can pass your own flags to makefile with `CFLAGS=""` and/or `LDFLAGS=""` (this will supersede the defaults one) - * Audio calling support is automatically enabled if all dependencies are found ### Troubleshooting