2016-12-02 2 views
1

J'essaye de faire quelques ajustements à Unity Greeter. J'ai donc récupéré le code source de launchpad.net. Le paquet est venu sans makefile. Après un peu de googling, j'ai trouvé qu'ils utilisent la structure du projet autotools. Lorsque j'ai utilisé l'outil automake pour créer le fichier make pour le projet, j'ai eu une erreur.configure: error: Les conditions du paquet (...) n'étaient pas remplies

/usr/bin/gnome-autogen.sh checking for automake >= 1.7... testing automake... found 1.15 checking for autoreconf >= 2.53... testing autoreconf... found 2.69 checking for intltool >= 0.25... testing intltoolize... found 0.51.0 checking for pkg-config >= 0.14.0... testing pkg-config... found 0.29.1 checking for gnome-common >= 
2.3.0... testing gnome-doc-common... found 3.14.0 Checking for required M4 macros... 
**Warning**: I am going to run `configure' with no arguments. If you wish to pass any to it, please specify them on the `./autogen.sh' command line. 

Processing ./configure.ac Running gnome-doc-common... Running intltoolize... Running autoreconf... autoreconf: Entering directory `.' autoreconf: configure.ac: not using Gettext autoreconf: running: aclocal --force --warnings=no-portability autoreconf: configure.ac: tracing autoreconf: configure.ac: not using Libtool autoreconf: running: /usr/bin/autoconf --force --warnings=no-portability autoreconf: running: /usr/bin/autoheader --force 
--warnings=no-portability autoreconf: running: automake --add-missing --copy --force-missing --warnings=no-portability tests/Makefile.am:8: warning: source file '../src/flat-button.c' is in a subdirectory, tests/Makefile.am:8: but option 'subdir-objects' is disabled automake: warning: possible forward-incompatibility. automake: At least a source file is in a subdirectory, but the 'subdir-objects' automake: automake option hasn't been enabled. For now, the corresponding output automake: object file(s) will be placed in the top-level directory. However, automake: this behaviour will change in future Automake versions: they will automake: unconditionally cause object files to be placed in the same subdirectory automake: of the corresponding sources. automake: You are advised to start using 'subdir-objects' option throughout your automake: project, to avoid future incompatibilities. tests/Makefile.am:8: warning: source file '../src/toggle-box.c' is in a subdirectory, tests/Makefile.am:8: but option 'subdir-objects' is disabled tests/Makefile.am:8: warning: source file '../src/user-list.c' is in a subdirectory, tests/Makefile.am:8: but option 'subdir-objects' is disabled tests/Makefile.am:8: warning: source file '../src/greeter-list.c' is in a subdirectory, tests/Makefile.am:8: but option 'subdir-objects' is disabled tests/Makefile.am:8: warning: source file '../src/remote-login-service.c' is in a subdirectory, tests/Makefile.am:8: but option 'subdir-objects' is disabled tests/Makefile.am:8: warning: source file '../src/background.c' is in a subdirectory, tests/Makefile.am:8: but option 'subdir-objects' is disabled tests/Makefile.am:8: warning: source file '../src/email-autocompleter.c' is in a subdirectory, tests/Makefile.am:8: but option 'subdir-objects' is disabled tests/Makefile.am:8: warning: source file '../src/cairo-utils.c' is in a subdirectory, tests/Makefile.am:8: but option 'subdir-objects' is disabled tests/Makefile.am:8: warning: source file '../src/animate-timer.c' is in a subdirectory, tests/Makefile.am:8: but option 'subdir-objects' is disabled tests/Makefile.am:8: warning: source file '../src/fadable.c' is in a subdirectory, tests/Makefile.am:8: but option 'subdir-objects' is disabled tests/Makefile.am:8: warning: source file '../src/fadable-box.c' is in a subdirectory, tests/Makefile.am:8: but option 'subdir-objects' is disabled tests/Makefile.am:8: warning: source file '../src/dash-box.c' is in a subdirectory, tests/Makefile.am:8: but option 'subdir-objects' is disabled tests/Makefile.am:8: warning: source file '../src/user-prompt-box.c' is in a subdirectory, tests/Makefile.am:8: but option 'subdir-objects' is disabled tests/Makefile.am:8: warning: source file '../src/fading-label.c' is in a subdirectory, tests/Makefile.am:8: but option 'subdir-objects' is disabled tests/Makefile.am:8: warning: source file '../src/cached-image.c' is in a subdirectory, tests/Makefile.am:8: but option 'subdir-objects' is disabled tests/Makefile.am:8: warning: source file '../src/dash-entry.c' is in a subdirectory, tests/Makefile.am:8: but option 'subdir-objects' is disabled tests/Makefile.am:8: warning: source file '../src/dash-button.c' is in a subdirectory, tests/Makefile.am:8: but option 'subdir-objects' is disabled tests/Makefile.am:8: warning: source file '../src/prompt-box.c' is in a subdirectory, tests/Makefile.am:8: but option 'subdir-objects' is disabled tests/Makefile.am:8: warning: source file '../src/session-list.c' is in a subdirectory, tests/Makefile.am:8: but option 'subdir-objects' is disabled tests/Makefile.am:8: warning: source file '../src/main-window.c' is in a subdirectory, tests/Makefile.am:8: but option 'subdir-objects' is disabled tests/Makefile.am:8: warning: source file '../src/list-stack.c' is in a subdirectory, tests/Makefile.am:8: but option 'subdir-objects' is disabled tests/Makefile.am:8: warning: source file '../src/settings.c' is in a subdirectory, tests/Makefile.am:8: but option 'subdir-objects' is disabled tests/Makefile.am:8: warning: source file '../src/shutdown-dialog.c' is in a subdirectory, tests/Makefile.am:8: but option 'subdir-objects' is disabled autoreconf: Leaving directory `.' Running ./configure --enable-maintainer-mode ... 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 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 for valac... valac configure: WARNING: no proper vala compiler found configure: WARNING: you will not be able to compile vala source files checking whether to enable maintainer-specific portions of Makefiles... yes checking whether make supports nested variables... (cached) yes ./configure: line 3706: GLIB_GSETTINGS: command not found checking for pkg-config... /usr/bin/pkg-config checking pkg-config is at least version 0.9.0... yes checking for UNITY_GREETER... no configure: error: Package requirements (
    gtk+-3.0 
    gdk-x11-3.0 
    indicator3-0.4 
    libido3-0.1 >= 13.10.0 
    liblightdm-gobject-1 >= 1.12.0 
    freetype2 
    cairo-ft 
    libcanberra 
    pixman-1 
    x11 
    xext) were not met: 

No package 'gtk+-3.0' found No package 'gdk-x11-3.0' found No package 'indicator3-0.4' found No package 'libido3-0.1' found No package 'liblightdm-gobject-1' found No package 'freetype2' found No package 'cairo-ft' found No package 'libcanberra' found No package 'pixman-1' found 

Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. 

Alternatively, you may set the environment variables UNITY_GREETER_CFLAGS and UNITY_GREETER_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details. 

Je n'arrive pas à comprendre comment résoudre cette erreur. J'ai essayé d'installer ces paquets depuis le dépôt avec apt. J'utilise Ubuntu 16.04 LTS 64 bits.

Répondre

1

Vous devez installer les -devel variantes de ces paquets, comme Ubuntu séparer les paquets, y compris les fichiers d'exécution de ceux dont la construction-exigences (en-têtes, les bibliothèques statiques et, dans ce cas particulier, pkg-config.pc fichiers.

+0

Mais je –

+0

Cela commence à en faire une question non-autotools du tout, et plus d'un problème ServerFault, mais par exemple, dans Ubuntu, vous auriez besoin de [libgtk- 3-dev] (http://packages.ubuntu.com/search?keywords=libgtk-3-dev&searchon=names&suite=yakkety§ion=all). –