qtox
Ceci est une ancienne révision du document !
Table des matières
qTox
Compilation
La procédure d'installation sur Github donne les différentes étapes pour compiler qTox.
ToxCore
Avant de compiler qTox, il faut compiler ToxCore.
Installation des dépendances, sur Debian :
# apt-get install libtool autotools-dev automake checkinstall check \
libopus-dev libvpx-dev libsodium-dev libavdevice-dev
root@laptop:/home/simon# mkdir Programmes root@laptop:/home/simon# cd Programmes/ root@laptop:/home/simon/Programmes# git clone https://github.com/toktok/c-toxcore.git toxcore Clonage dans 'toxcore'... remote: Counting objects: 22397, done. remote: Total 22397 (delta 0), reused 0 (delta 0), pack-reused 22397 Réception d'objets: 100% (22397/22397), 10.29 MiB | 1.02 MiB/s, fait. Résolution des deltas: 100% (15662/15662), fait. root@laptop:/home/simon/Programmes# cd toxcore/ root@laptop:/home/simon/Programmes/toxcore# git checkout v0.1.10 Note : extraction de 'v0.1.10'. Vous êtes dans l'état « HEAD détachée ». Vous pouvez visiter, faire des modifications expérimentales et les valider. Il vous suffit de faire une autre extraction pour abandonner les commits que vous faites dans cet état sans impacter les autres branches Si vous voulez créer une nouvelle branche pour conserver les commits que vous créez, il vous suffit d'utiliser « checkout -b » (maintenant ou plus tard) comme ceci : git checkout -b <nom-de-la-nouvelle-branche> HEAD est maintenant sur 6295d28a... Release v0.1.10 root@laptop:/home/simon/Programmes/toxcore# autoreconf -if libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, 'configure_aux'. libtoolize: copying file 'configure_aux/ltmain.sh' libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'. libtoolize: copying file 'm4/libtool.m4' libtoolize: copying file 'm4/ltoptions.m4' libtoolize: copying file 'm4/ltsugar.m4' libtoolize: copying file 'm4/ltversion.m4' libtoolize: copying file 'm4/lt~obsolete.m4' configure.ac:280: installing 'configure_aux/ar-lib' configure.ac:196: installing 'configure_aux/compile' configure.ac:281: installing 'configure_aux/config.guess' configure.ac:281: installing 'configure_aux/config.sub' configure.ac:9: installing 'configure_aux/install-sh' configure.ac:9: installing 'configure_aux/missing' build/Makefile.am: installing 'configure_aux/depcomp' parallel-tests: installing 'configure_aux/test-driver' root@laptop:/home/simon/Programmes/toxcore# ./configure checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking whether UID '0' is supported by ustar format... yes checking whether GID '0' is supported by ustar format... yes checking how to create a ustar tar archive... gnutar checking whether make supports nested variables... (cached) yes checking for pkg-config... /usr/bin/pkg-config checking pkg-config is at least version 0.9.0... yes checking for style of include used by make... GNU checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking whether gcc understands -c and -o together... yes checking dependency style of gcc... gcc3 checking how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking linux/version.h usability... yes checking linux/version.h presence... yes checking for linux/version.h... yes checking for Linux epoll(7) interface... yes checking for gcc option to accept ISO C99... none needed checking for ar... ar checking the archiver (ar) interface... ar checking build system type... x86_64-pc-linux-gnu checking host system type... x86_64-pc-linux-gnu checking how to print strings... printf checking for a sed that does not truncate output... /bin/sed checking for fgrep... /bin/grep -F checking for ld used by gcc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B checking the name lister (/usr/bin/nm -B) interface... BSD nm checking whether ln -s works... yes checking the maximum length of command line arguments... 1572864 checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop checking for /usr/bin/ld option to reload object files... -r checking for objdump... objdump checking how to recognize dependent libraries... pass_all checking for dlltool... dlltool checking how to associate runtime and link libraries... printf %s\n checking for archiver @FILE support... @ checking for strip... strip checking for ranlib... ranlib checking command to parse /usr/bin/nm -B output from gcc object... ok checking for sysroot... no checking for a working dd... /bin/dd checking how to truncate binary pipes... /bin/dd bs=4096 count=1 checking for mt... mt checking if mt is a manifest tool... no checking for dlfcn.h... yes checking for objdir... .libs checking if gcc supports -fno-rtti -fno-exceptions... no checking for gcc option to produce PIC... -fPIC -DPIC checking if gcc PIC flag -fPIC -DPIC works... yes checking if gcc static flag -static works... yes checking if gcc supports -c -o file.o... yes checking if gcc supports -c -o file.o... (cached) yes checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... yes checking for LIBSODIUM... yes checking arpa/inet.h usability... yes checking arpa/inet.h presence... yes checking for arpa/inet.h... yes checking fcntl.h usability... yes checking fcntl.h presence... yes checking for fcntl.h... yes checking netdb.h usability... yes checking netdb.h presence... yes checking for netdb.h... yes checking netinet/in.h usability... yes checking netinet/in.h presence... yes checking for netinet/in.h... yes checking for stdint.h... (cached) yes checking for stdlib.h... (cached) yes checking for string.h... (cached) yes checking sys/socket.h usability... yes checking sys/socket.h presence... yes checking for sys/socket.h... yes checking sys/time.h usability... yes checking sys/time.h presence... yes checking for sys/time.h... yes checking for unistd.h... (cached) yes checking for stdbool.h that conforms to C99... yes checking for _Bool... yes checking for int16_t... yes checking for int32_t... yes checking for pid_t... yes checking for size_t... yes checking for uint16_t... yes checking for uint32_t... yes checking for uint64_t... yes checking for uint8_t... yes checking whether byte ordering is bigendian... no checking vfork.h usability... no checking vfork.h presence... no checking for vfork.h... no checking for fork... yes checking for vfork... yes checking for working fork... yes checking for working vfork... (cached) yes checking for gettimeofday... yes checking for memset... yes checking for socket... yes checking for strchr... yes checking for malloc... yes checking for clock_gettime in -lrt... yes checking for the pthreads library -lpthreads... no checking whether pthreads work without any flags... no checking whether pthreads work with -Kthread... no checking whether pthreads work with -kthread... no checking for the pthreads library -llthread... no checking whether pthreads work with -pthread... yes checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE checking if more special flags are required for pthreads... no checking for PTHREAD_PRIO_INHERIT... yes checking for pthread_self in -lpthread... yes checking for OPUS... yes checking for VPX... yes checking for CHECK... yes checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: creating build/Makefile config.status: creating libtoxcore.pc config.status: creating tox.spec config.status: creating libtoxav.pc config.status: creating config.h config.status: executing depfiles commands config.status: executing libtool commands root@laptop:/home/simon/Programmes/toxcore# make -j$(nproc) make all-recursive make[1] : on entre dans le répertoire « /home/simon/Programmes/toxcore » Making all in build make[2] : on entre dans le répertoire « /home/simon/Programmes/toxcore/build » CC ../toxcore/libtoxcore_la-DHT.lo CC ../toxcore/libtoxcore_la-network.lo CC ../toxcore/libtoxcore_la-crypto_core.lo CC ../toxcore/libtoxcore_la-crypto_core_mem.lo CC ../toxcore/libtoxcore_la-ping_array.lo CC ../toxcore/libtoxcore_la-net_crypto.lo CC ../toxcore/libtoxcore_la-friend_requests.lo CC ../toxcore/libtoxcore_la-LAN_discovery.lo CC ../toxcore/libtoxcore_la-friend_connection.lo CC ../toxcore/libtoxcore_la-Messenger.lo CC ../toxcore/libtoxcore_la-ping.lo CC ../toxcore/libtoxcore_la-tox.lo CC ../toxcore/libtoxcore_la-tox_api.lo CC ../toxcore/libtoxcore_la-util.lo CC ../toxcore/libtoxcore_la-group.lo CC ../toxcore/libtoxcore_la-onion.lo CC ../toxcore/libtoxcore_la-logger.lo CC ../toxcore/libtoxcore_la-onion_announce.lo CC ../toxcore/libtoxcore_la-onion_client.lo CC ../toxcore/libtoxcore_la-TCP_client.lo CC ../toxcore/libtoxcore_la-TCP_server.lo CC ../toxcore/libtoxcore_la-TCP_connection.lo CC ../toxcore/libtoxcore_la-list.lo CC ../toxdns/libtoxdns_la-toxdns.lo CC ../toxencryptsave/libtoxencryptsave_la-toxencryptsave.lo CC ../toxav/libtoxav_la-rtp.lo CC ../toxav/libtoxav_la-msi.lo CC ../toxav/libtoxav_la-groupav.lo CC ../toxav/libtoxav_la-audio.lo CC ../toxav/libtoxav_la-video.lo CC ../toxav/libtoxav_la-bwcontroller.lo CC ../toxav/libtoxav_la-ring_buffer.lo CC ../toxav/libtoxav_la-toxav.lo CC ../toxav/libtoxav_la-toxav_old.lo CC ../testing/DHT_test-DHT_test.o CC ../testing/Messenger_test-Messenger_test.o CC ../testing/dns3_test-dns3_test.o CC ../testing/tox_sync-tox_sync.o CC ../testing/tox_shell-tox_shell.o CC ../testing/irc_syncbot-irc_syncbot.o CCLD libtoxcore.la ar: `u' modifier ignored since `D' is the default (see `U') CCLD libtoxdns.la CCLD libtoxencryptsave.la ar: `u' modifier ignored since `D' is the default (see `U') ar: `u' modifier ignored since `D' is the default (see `U') CCLD libtoxav.la CCLD DHT_test CCLD Messenger_test ar: `u' modifier ignored since `D' is the default (see `U') CCLD dns3_test CCLD tox_sync CCLD tox_shell CCLD irc_syncbot make[2] : on quitte le répertoire « /home/simon/Programmes/toxcore/build » make[2] : on entre dans le répertoire « /home/simon/Programmes/toxcore » make[2] : on quitte le répertoire « /home/simon/Programmes/toxcore » make[1] : on quitte le répertoire « /home/simon/Programmes/toxcore » root@laptop:/home/simon/Programmes/toxcore# make install make install-recursive make[1] : on entre dans le répertoire « /home/simon/Programmes/toxcore » Making install in build make[2] : on entre dans le répertoire « /home/simon/Programmes/toxcore/build » make[3] : on entre dans le répertoire « /home/simon/Programmes/toxcore/build » /bin/mkdir -p '/usr/local/lib' /bin/bash ../libtool --mode=install /usr/bin/install -c libtoxcore.la libtoxdns.la libtoxencryptsave.la libtoxav.la '/usr/local/lib' libtool: install: /usr/bin/install -c .libs/libtoxcore.so.1.10.0 /usr/local/lib/libtoxcore.so.1.10.0 libtool: install: (cd /usr/local/lib && { ln -s -f libtoxcore.so.1.10.0 libtoxcore.so.1 || { rm -f libtoxcore.so.1 && ln -s libtoxcore.so.1.10.0 libtoxcore.so.1; }; }) libtool: install: (cd /usr/local/lib && { ln -s -f libtoxcore.so.1.10.0 libtoxcore.so || { rm -f libtoxcore.so && ln -s libtoxcore.so.1.10.0 libtoxcore.so; }; }) libtool: install: /usr/bin/install -c .libs/libtoxcore.lai /usr/local/lib/libtoxcore.la libtool: warning: relinking 'libtoxdns.la' libtool: install: (cd /home/simon/Programmes/toxcore/build; /bin/bash "/home/simon/Programmes/toxcore/libtool" --silent --tag CC --mode=relink gcc -I.. -I../toxcore -pthread -g -O2 -version-info 11:0:10 -lm -lrt -o libtoxdns.la -rpath /usr/local/lib ../toxdns/libtoxdns_la-toxdns.lo -lsodium libtoxcore.la ) libtool: install: /usr/bin/install -c .libs/libtoxdns.so.1.10.0T /usr/local/lib/libtoxdns.so.1.10.0 libtool: install: (cd /usr/local/lib && { ln -s -f libtoxdns.so.1.10.0 libtoxdns.so.1 || { rm -f libtoxdns.so.1 && ln -s libtoxdns.so.1.10.0 libtoxdns.so.1; }; }) libtool: install: (cd /usr/local/lib && { ln -s -f libtoxdns.so.1.10.0 libtoxdns.so || { rm -f libtoxdns.so && ln -s libtoxdns.so.1.10.0 libtoxdns.so; }; }) libtool: install: /usr/bin/install -c .libs/libtoxdns.lai /usr/local/lib/libtoxdns.la libtool: warning: relinking 'libtoxencryptsave.la' libtool: install: (cd /home/simon/Programmes/toxcore/build; /bin/bash "/home/simon/Programmes/toxcore/libtool" --silent --tag CC --mode=relink gcc -I.. -I../toxcore -pthread -g -O2 -version-info 11:0:10 -lm -lrt -o libtoxencryptsave.la -rpath /usr/local/lib ../toxencryptsave/libtoxencryptsave_la-toxencryptsave.lo -lsodium libtoxcore.la ) libtool: install: /usr/bin/install -c .libs/libtoxencryptsave.so.1.10.0T /usr/local/lib/libtoxencryptsave.so.1.10.0 libtool: install: (cd /usr/local/lib && { ln -s -f libtoxencryptsave.so.1.10.0 libtoxencryptsave.so.1 || { rm -f libtoxencryptsave.so.1 && ln -s libtoxencryptsave.so.1.10.0 libtoxencryptsave.so.1; }; }) libtool: install: (cd /usr/local/lib && { ln -s -f libtoxencryptsave.so.1.10.0 libtoxencryptsave.so || { rm -f libtoxencryptsave.so && ln -s libtoxencryptsave.so.1.10.0 libtoxencryptsave.so; }; }) libtool: install: /usr/bin/install -c .libs/libtoxencryptsave.lai /usr/local/lib/libtoxencryptsave.la libtool: warning: relinking 'libtoxav.la' libtool: install: (cd /home/simon/Programmes/toxcore/build; /bin/bash "/home/simon/Programmes/toxcore/libtool" --silent --tag CC --mode=relink gcc -I../toxcore -I../toxav -I/usr/include/opus -pthread -g -O2 -version-info 11:0:10 -o libtoxav.la -rpath /usr/local/lib ../toxav/libtoxav_la-rtp.lo ../toxav/libtoxav_la-msi.lo ../toxav/libtoxav_la-groupav.lo ../toxav/libtoxav_la-audio.lo ../toxav/libtoxav_la-video.lo ../toxav/libtoxav_la-bwcontroller.lo ../toxav/libtoxav_la-ring_buffer.lo ../toxav/libtoxav_la-toxav.lo ../toxav/libtoxav_la-toxav_old.lo libtoxcore.la -lsodium -lopus -lvpx -lm ) libtool: install: /usr/bin/install -c .libs/libtoxav.so.1.10.0T /usr/local/lib/libtoxav.so.1.10.0 libtool: install: (cd /usr/local/lib && { ln -s -f libtoxav.so.1.10.0 libtoxav.so.1 || { rm -f libtoxav.so.1 && ln -s libtoxav.so.1.10.0 libtoxav.so.1; }; }) libtool: install: (cd /usr/local/lib && { ln -s -f libtoxav.so.1.10.0 libtoxav.so || { rm -f libtoxav.so && ln -s libtoxav.so.1.10.0 libtoxav.so; }; }) libtool: install: /usr/bin/install -c .libs/libtoxav.lai /usr/local/lib/libtoxav.la libtool: install: /usr/bin/install -c .libs/libtoxcore.a /usr/local/lib/libtoxcore.a libtool: install: chmod 644 /usr/local/lib/libtoxcore.a libtool: install: ranlib /usr/local/lib/libtoxcore.a libtool: install: /usr/bin/install -c .libs/libtoxdns.a /usr/local/lib/libtoxdns.a libtool: install: chmod 644 /usr/local/lib/libtoxdns.a libtool: install: ranlib /usr/local/lib/libtoxdns.a libtool: install: /usr/bin/install -c .libs/libtoxencryptsave.a /usr/local/lib/libtoxencryptsave.a libtool: install: chmod 644 /usr/local/lib/libtoxencryptsave.a libtool: install: ranlib /usr/local/lib/libtoxencryptsave.a libtool: install: /usr/bin/install -c .libs/libtoxav.a /usr/local/lib/libtoxav.a libtool: install: chmod 644 /usr/local/lib/libtoxav.a libtool: install: ranlib /usr/local/lib/libtoxav.a libtool: finish: PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/sbin" ldconfig -n /usr/local/lib ---------------------------------------------------------------------- Libraries have been installed in: /usr/local/lib If you ever happen to want to link against installed libraries in a given directory, LIBDIR, you must either use libtool, and specify the full pathname of the library, or use the '-LLIBDIR' flag during linking and do at least one of the following: - add LIBDIR to the 'LD_LIBRARY_PATH' environment variable during execution - add LIBDIR to the 'LD_RUN_PATH' environment variable during linking - use the '-Wl,-rpath -Wl,LIBDIR' linker flag - have your system administrator add LIBDIR to '/etc/ld.so.conf' See any operating system documentation about shared libraries for more information, such as the ld(1) and ld.so(8) manual pages. ---------------------------------------------------------------------- /bin/mkdir -p '/usr/local/bin' /bin/mkdir -p '/usr/local/include/tox' /usr/bin/install -c -m 644 ../toxav/toxav.h '/usr/local/include/tox' /bin/mkdir -p '/usr/local/include/tox' /usr/bin/install -c -m 644 ../toxcore/tox.h '/usr/local/include/tox' /bin/mkdir -p '/usr/local/include/tox' /usr/bin/install -c -m 644 ../toxdns/toxdns.h '/usr/local/include/tox' /bin/mkdir -p '/usr/local/include/tox' /usr/bin/install -c -m 644 ../toxencryptsave/toxencryptsave.h '/usr/local/include/tox' make[3] : on quitte le répertoire « /home/simon/Programmes/toxcore/build » make[2] : on quitte le répertoire « /home/simon/Programmes/toxcore/build » make[2] : on entre dans le répertoire « /home/simon/Programmes/toxcore » make[3] : on entre dans le répertoire « /home/simon/Programmes/toxcore » make[3]: rien à faire pour « install-exec-am ». /bin/mkdir -p '/usr/local/lib/pkgconfig' /usr/bin/install -c -m 644 ./libtoxcore.pc ./libtoxav.pc '/usr/local/lib/pkgconfig' make[3] : on quitte le répertoire « /home/simon/Programmes/toxcore » make[2] : on quitte le répertoire « /home/simon/Programmes/toxcore » make[1] : on quitte le répertoire « /home/simon/Programmes/toxcore » root@laptop:/home/simon/Programmes/toxcore# echo '/usr/local/lib/' | sudo tee -a /etc/ld.so.conf.d/locallib.conf /usr/local/lib/ root@laptop:/home/simon/Programmes/toxcore# ldconfig
qTox
Une fois ToxCore installé, on peut s'attaquer à la compilation de qTox en lui-même.
Dépendances :
sudo apt-get install build-essential cmake ffmpeg libexif-dev libgdk-pixbuf2.0-dev \ libglib2.0-dev libgtk2.0-dev libopenal-dev libqrencode-dev libqt5opengl5-dev \ libqt5svg5-dev libsqlcipher-dev libxss-dev pkg-config qrencode qt5-default \ qttools5-dev qttools5-dev-tools yasm
qtox.1507722172.txt.gz · Dernière modification : 2020/08/09 12:59 (modification externe)