toxic icon indicating copy to clipboard operation
toxic copied to clipboard

Please add "resources.txt"

Open viertelb opened this issue 4 years ago • 2 comments

I want to install the package in Linux and it seems that I have to copy and paste each of the libraries under "Dependencies" from the installation advice, which is annoying. Please add a resources.txt file that can be used to install all of these with a simple copy and paste into sudo apt install <stuff>. If I am wrong please consider putting some advice on how to make with dependencies. After cloning on Ubuntu 20.04 and make I get:

 $ make
/home/benjamin/Clones/toxic/cfg/checks/audio.mk:18: WARNING -- Toxic will be compiled without audio support
/home/benjamin/Clones/toxic/cfg/checks/audio.mk:19: WARNING -- You need these libraries for audio support
/home/benjamin/Clones/toxic/cfg/checks/audio.mk:20: WARNING -- openal
/home/benjamin/Clones/toxic/cfg/checks/video.mk:18: WARNING -- Toxic will be compiled without video support
/home/benjamin/Clones/toxic/cfg/checks/video.mk:19: WARNING -- You will need these libraries for video support
/home/benjamin/Clones/toxic/cfg/checks/video.mk:20: WARNING -- openal vpx
/home/benjamin/Clones/toxic/cfg/checks/sound_notifications.mk:18: WARNING -- Toxic will be compiled without sound notifications support
/home/benjamin/Clones/toxic/cfg/checks/sound_notifications.mk:19: WARNING -- You need these libraries for sound notifications support
/home/benjamin/Clones/toxic/cfg/checks/sound_notifications.mk:20: WARNING -- openal freealut
/home/benjamin/Clones/toxic/cfg/checks/desktop_notifications.mk:12: WARNING -- Toxic will be compiled without desktop notifications support
/home/benjamin/Clones/toxic/cfg/checks/desktop_notifications.mk:13: WARNING -- You need these libraries for desktop notifications support
/home/benjamin/Clones/toxic/cfg/checks/desktop_notifications.mk:14: WARNING -- libnotify
/home/benjamin/Clones/toxic/cfg/checks/qr.mk:12: WARNING -- Toxic will be compiled without QR export support
/home/benjamin/Clones/toxic/cfg/checks/qr.mk:13: WARNING -- You need these libraries for QR export support
/home/benjamin/Clones/toxic/cfg/checks/qr.mk:14: WARNING -- libqrencode
/home/benjamin/Clones/toxic/cfg/checks/qr_png.mk:12: WARNING -- Toxic will be compiled without QR exported as PNG support
/home/benjamin/Clones/toxic/cfg/checks/qr_png.mk:13: WARNING -- You need these libraries for QR exported as PNG support
/home/benjamin/Clones/toxic/cfg/checks/qr_png.mk:14: WARNING -- libpng
/home/benjamin/Clones/toxic/cfg/checks/check_features.mk:62: ERROR -- Cannot compile Toxic
/home/benjamin/Clones/toxic/cfg/checks/check_features.mk:63: ERROR -- You need these libraries
/home/benjamin/Clones/toxic/cfg/checks/check_features.mk:64: ERROR -- toxcore ncursesw libconfig libcurl
/home/benjamin/Clones/toxic/cfg/checks/check_features.mk:65: *** ERROR.  Schluss.

Apart from that I am excited to see another tox client, especially such an old school one!

EDIT: After installing all the dependencies I still get the following error. Please consider putting the right toxcore into the dependencies (probably libtoxcore-dev. Also, vpx seems to be missing from the dependencies.

 $ make
/home/benjamin/Clones/toxic/cfg/checks/video.mk:18: WARNING -- Toxic will be compiled without video support
/home/benjamin/Clones/toxic/cfg/checks/video.mk:19: WARNING -- You will need these libraries for video support
/home/benjamin/Clones/toxic/cfg/checks/video.mk:20: WARNING -- vpx
/home/benjamin/Clones/toxic/cfg/checks/check_features.mk:62: ERROR -- Cannot compile Toxic
/home/benjamin/Clones/toxic/cfg/checks/check_features.mk:63: ERROR -- You need these libraries
/home/benjamin/Clones/toxic/cfg/checks/check_features.mk:64: ERROR -- toxcore
/home/benjamin/Clones/toxic/cfg/checks/check_features.mk:65: *** ERROR.  Schluss.

 $ sudo apt-cache search toxcore
libtoxcore-dev - Distributed, secure messenger - development headers
libtoxcore2 - Distributed, secure messenger
toxcore-utils - Distributed, secure messenger - DHT bootstrap tools
utox - lightest and fluffiest Tox client

viertelb avatar Aug 08 '20 09:08 viertelb

Please add a resources.txt file that can be used to install all of these with a simple copy and paste into sudo apt install .

That would require a different file for every OS and distro which is not something I'm willing to maintain myself. The dependencies list is just there to get people on track. It's up to you to figure out which package you need for your specific system.

Toxcore is listed as the first the dependency. VPX is optional and not required to compile. Only the dependencies marked as BASE are required.

JFreegman avatar Oct 11 '20 15:10 JFreegman

Not sure about Ubuntu, however on Debian (which is Ubuntu's upstream) you can simply sudo apt-get build-dep toxic. This will install all packages necessary to build toxic. I have tried it on Debian Bullseye (current "testing") and it compiles, albeit not without a small nuance:

./toxic --version
Toxic version 0.10.1_r1977
Toxcore version 0.2.12

savchenko avatar Jan 22 '21 10:01 savchenko