7-8-9 Identification des problèmes de construction
apt install automake pkg-config autoconf build-essential libtool (permet d’installer les paquets nécessaires pour la construction, voir doc du prof ‘3 Ressources’ -> “Plus spécifiquement la construction” à la page 8)
-> cd genpl
autoreconf --install
./configure
apt install autoconf-archive
Problèmes de ./configure :
/!\ nouvelle erreur :
checking for LIBCPPUNIT... no configure: error: Package requirements (cppunit >= 1.13 ) were not met:
No package 'cppunit' found
Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix.
-->apt install libcppunit-dev
Fin des problèmes pour le ./configure
Problèmes de make :
Première Erreur :
root@conf-construction:~/genpl# make
Making all in src
make[1] : on entre dans le répertoire « /root/genpl/src »
make all-recursive
make[2] : on entre dans le répertoire « /root/genpl/src »
Making all in .
make[3] : on entre dans le répertoire « /root/genpl/src »
g++ -DHAVE_CONFIG_H -I. -I../src -g -O2 -MT genpl-Analyzer.o -MD -MP -MF .deps/genpl-Analyzer.Tpo -c -o genpl-Analyzer.o test -f 'Analyzer.cc' || echo './'
Analyzer.cc
In file included from Analyzer.cc:20:
Analyzer.h:28:10: fatal error: log4cxx/logger.h: Aucun fichier ou dossier de ce type
#include <log4cxx/logger.h>
^~~~~~~~~~~~~~~~~~
compilation terminated.
make[3]: *** [Makefile:579: genpl-Analyzer.o] Error 1
make[3] : on quitte le répertoire « /root/genpl/src »
make[2]: *** [Makefile:647: all-recursive] Error 1
make[2] : on quitte le répertoire « /root/genpl/src »
make[1]: *** [Makefile:397: all] Error 2
make[1] : on quitte le répertoire « /root/genpl/src »
make: *** [Makefile:451: all-recursive] Error 1
--> apt install liblog4cxx-dev
Deuxième erreur :
g++ -DHAVE_CONFIG_H -I. -I../src -g -O2 -MT genpl-Analyzer.o -MD -MP -MF .deps/genpl-Analyzer.Tpo -c -o genpl-Analyzer.o test -f 'Analyzer.cc' || echo './'
Analyzer.cc
In file included from Analyzer.cc:20:
Analyzer.h:29:10: fatal error: tclap/CmdLine.h: Aucun fichier ou dossier de ce type
#include <tclap/CmdLine.h>
^~~~~~~~~~~~~~~~~
compilation terminated.
make[3]: *** [Makefile:579: genpl-Analyzer.o] Error 1
make[3] : on quitte le répertoire « /root/genpl/src »
make[2]: *** [Makefile:647: all-recursive] Error 1
make[2] : on quitte le répertoire « /root/genpl/src »
make[1]: *** [Makefile:397: all] Error 2
make[1] : on quitte le répertoire « /root/genpl/src »
make: *** [Makefile:451: all-recursive] Error 1
--> apt install libtclap-dev
Troisième erreur :
g++ -DHAVE_CONFIG_H -I. -I../src -g -O2 -MT genpl-Playlist.o -MD -MP -MF .deps/genpl-Playlist.Tpo -c -o genpl-Playlist.o test -f 'Playlist.cc' || echo './'
Playlist.cc
In file included from Playlist.h:27,
from Playlist.cc:20:
Track.h:29:10: fatal error: libpq-fe.h: Aucun fichier ou dossier de ce type
#include <libpq-fe.h>
^~~~~~~~~~~~
compilation terminated.
make[3]: *** [Makefile:597: genpl-Playlist.o] Error 1
make[3] : on quitte le répertoire « /root/genpl/src »
make[2]: *** [Makefile:651: all-recursive] Error 1
make[2] : on quitte le répertoire « /root/genpl/src »
make[1]: *** [Makefile:401: all] Error 2
make[1] : on quitte le répertoire « /root/genpl/src »
make: *** [Makefile:455: all-recursive] Error 1
--> apt install libpq-dev
En conclusion, on peut affirmer que le projet dépend de plusieurs bibliothèques ( libpq, Tclap et log4CXX).