From dc1dcb40e64dad0bed5d72ec21bb1d178aaf0f3c Mon Sep 17 00:00:00 2001 From: Sean Date: Thu, 31 Oct 2013 03:57:51 -0700 Subject: [PATCH 1/4] Pretty sure Travis has more cores --- .travis.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index 25ee6e2..506c29c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,14 +9,14 @@ before_script: - cd libsodium - git checkout tags/0.4.2 - ./autogen.sh - - ./configure && make check -j3 + - ./configure && make check -j4 - sudo make install - cd .. # installing libconfig, needed for DHT_bootstrap_daemon - wget http://www.hyperrealm.com/libconfig/libconfig-1.4.9.tar.gz - tar -xvzf libconfig-1.4.9.tar.gz - cd libconfig-1.4.9 - - ./configure && make -j3 + - ./configure && make -j4 - sudo make install - cd .. # creating librarys' links and updating cache @@ -30,13 +30,13 @@ before_script: - cd toxcore - autoreconf -i - ./configure - - make -j2 + - make -j4 - sudo make install - cd .. script: - autoreconf -i - ./configure - - make -j2 + - make -j4 notifications: email: false From 9017e52d3b49389ad05b94a5b187e23f4bc4c32a Mon Sep 17 00:00:00 2001 From: Sean Date: Thu, 31 Oct 2013 04:09:23 -0700 Subject: [PATCH 2/4] Lets speed things up --- .travis.yml | 22 +++++----------------- 1 file changed, 5 insertions(+), 17 deletions(-) diff --git a/.travis.yml b/.travis.yml index 506c29c..eeb5972 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,34 +9,22 @@ before_script: - cd libsodium - git checkout tags/0.4.2 - ./autogen.sh - - ./configure && make check -j4 - - sudo make install - - cd .. -# installing libconfig, needed for DHT_bootstrap_daemon - - wget http://www.hyperrealm.com/libconfig/libconfig-1.4.9.tar.gz - - tar -xvzf libconfig-1.4.9.tar.gz - - cd libconfig-1.4.9 - - ./configure && make -j4 - - sudo make install + - ./configure && make check -j2 + - sudo make install & - cd .. # creating librarys' links and updating cache - sudo ldconfig -# installing sphinx, needed for documentation - - sudo apt-get install python-sphinx -# installing check, needed for unit tests - - sudo apt-get install check - - git clone https://github.com/irungentoo/ProjectTox-Core.git toxcore - cd toxcore - autoreconf -i - - ./configure - - make -j4 + - ./configure --disable-tests --disable-ntox --disable-dht-bootstrap-daemon + - make -j2 - sudo make install - cd .. script: - autoreconf -i - ./configure - - make -j4 + - make -j2 notifications: email: false From 781386b87ff7f8790137ac3dc8effc898bc113e6 Mon Sep 17 00:00:00 2001 From: Sean Date: Thu, 31 Oct 2013 04:15:16 -0700 Subject: [PATCH 3/4] We can assume cosmic rays have not hurt travis and not check --- .travis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index eeb5972..eea7a69 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,8 +9,8 @@ before_script: - cd libsodium - git checkout tags/0.4.2 - ./autogen.sh - - ./configure && make check -j2 - - sudo make install & + - ./configure && make -j3 + - sudo make install - cd .. # creating librarys' links and updating cache - sudo ldconfig From 93ab16ce8f8247ba6e76f0eff502f0397bdf3d2f Mon Sep 17 00:00:00 2001 From: fr0sty Date: Thu, 31 Oct 2013 12:46:13 -0400 Subject: [PATCH 4/4] Offer solution for "error while loading shared libraries: libtoxcore.so.0: cannot open shared object file: No such file or directory" Offer solution for "error while loading shared libraries: libtoxcore.so.0: cannot open shared object file: No such file or directory" --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index 94515a9..1e92ac5 100644 --- a/README.md +++ b/README.md @@ -7,3 +7,10 @@ To compile, first generate the configure script by running the ```autoreconf -i` Then execute the configure script (you'll probably have to pass it the location of your dependency libraries, i.e.): ``` ./configure --prefix=/where/to/install --with-libtoxcore-headers=/path/to/ProjectTox-Core/core --with-libtoxcore-libs=/path/to/ProjectTox-Core/build/core --with-libsodium-headers=/path/to/libsodium/include/ --with-libsodium-libs=/path/to/sodiumtest/lib/ + +``` +*Note:* 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: +``` +sudo echo "/usr/local/lib/" >> /etc/ld.so.conf.d/locallib.conf +sudo ldconfig +```