Home | News | Download | Packages | Forum | Wiki | Github

Can't compile gala-wm


(Andy) #1

No package ‘libmutter’ found when i run cmake
----------------about package mutter-devel---------------
xbps-query -S mutter-devel
architecture: i686
build-date: 2017-07-24 10:33 CEST
build-options: gir
filename-sha256: 2a564419367fc575a57ba9c5f8ab2632a175baf8fbbe71873bf1057c6d9a81c1
filename-size: 511KB
homepage: http://www.gnome.org
install-date: 2017-08-09 14:32 MSK
installed_size: 6318KB
license: GPL-2
maintainer: Juan RP xtraeme@voidlinux.eu
metafile-sha256: a9bf3d0b136308d8745388f8668853b27cce3fe152e266b0a1c5203a0ead4c92
pkgver: mutter-devel-3.24.4_1
repository: https://repo.voidlinux.eu/current
short_desc: Lightweight GTK+3 window manager - development files
source-revisions: mutter:8d2556b3d2
state: installed

---------------------------files of this package-------------------------------
xbps-query -f mutter-devel
/usr/lib/pkgconfig/mutter-cogl-pango-0.pc
/usr/lib/pkgconfig/mutter-clutter-0.pc
/usr/lib/pkgconfig/mutter-cogl-path-0.pc
/usr/lib/pkgconfig/mutter-clutter-x11-0.pc
/usr/lib/pkgconfig/libmutter-0.pc
/usr/lib/pkgconfig/mutter-cogl-0.pc
/usr/lib/mutter/Cogl-0.gir
/usr/lib/mutter/ClutterX11-0.gir
/usr/lib/mutter/Clutter-0.gir
/usr/lib/mutter/Meta-0.gir
/usr/lib/mutter/Cally-0.gir
/usr/lib/mutter/CoglPango-0.gir
/usr/include/mutter/meta/meta-monitor-manager.h
/usr/include/mutter/meta/screen.h
/usr/include/mutter/meta/meta-background.h
/usr/include/mutter/meta/meta-version.h
/usr/include/mutter/meta/barrier.h
/usr/include/mutter/meta/group.h
/usr/include/mutter/meta/meta-background-image.h
/usr/include/mutter/meta/compositor.h
/usr/include/mutter/meta/meta-backend.h
/usr/include/mutter/meta/window.h
/usr/include/mutter/meta/meta-background-actor.h
/usr/include/mutter/meta/util.h
/usr/include/mutter/meta/boxes.h
/usr/include/mutter/meta/meta-window-shape.h
/usr/include/mutter/meta/keybindings.h
/usr/include/mutter/meta/errors.h
/usr/include/mutter/meta/theme.h
/usr/include/mutter/meta/meta-shaped-texture.h
/usr/include/mutter/meta/meta-enum-types.h
/usr/include/mutter/meta/display.h
/usr/include/mutter/meta/meta-background-group.h
/usr/include/mutter/meta/meta-plugin.h
/usr/include/mutter/meta/meta-idle-monitor.h
/usr/include/mutter/meta/compositor-mutter.h
/usr/include/mutter/meta/common.h
/usr/include/mutter/meta/meta-cursor-tracker.h
/usr/include/mutter/meta/meta-shadow-factory.h
/usr/include/mutter/meta/main.h
/usr/include/mutter/meta/workspace.h
/usr/include/mutter/meta/prefs.h
/usr/include/mutter/meta/meta-window-actor.h
/usr/include/mutter/meta/meta-dnd.h
/usr/include/mutter/meta/types.h
/usr/include/mutter/clutter-0/clutter/clutter-script.h
/usr/include/mutter/clutter-0/clutter/clutter-desaturate-effect.h
/usr/include/mutter/clutter-0/clutter/clutter-snap-constraint.h
/usr/include/mutter/clutter-0/clutter/x11/clutter-x11-texture-pixmap.h
/usr/include/mutter/clutter-0/clutter/x11/clutter-x11.h
/usr/include/mutter/clutter-0/clutter/clutter-pan-action.h
/usr/include/mutter/clutter-0/clutter/egl/clutter-egl.h
/usr/include/mutter/clutter-0/clutter/egl/clutter-egl-headers.h
/usr/include/mutter/clutter-0/clutter/clutter-virtual-input-device.h
/usr/include/mutter/clutter-0/clutter/clutter-fixed-layout.h
/usr/include/mutter/clutter-0/clutter/clutter-constraint.h
/usr/include/mutter/clutter-0/clutter/clutter-zoom-action.h
/usr/include/mutter/clutter-0/clutter/clutter-group.h
/usr/include/mutter/clutter-0/clutter/clutter-units.h
/usr/include/mutter/clutter-0/clutter/wayland/clutter-wayland-surface.h
/usr/include/mutter/clutter-0/clutter/wayland/clutter-wayland-compositor.h
/usr/include/mutter/clutter-0/clutter/clutter-mutter.h
/usr/include/mutter/clutter-0/clutter/clutter-effect.h
/usr/include/mutter/clutter-0/clutter/clutter-gesture-action.h
/usr/include/mutter/clutter-0/clutter/clutter-marshal.h
/usr/include/mutter/clutter-0/clutter/clutter-tap-action.h
/usr/include/mutter/clutter-0/clutter/clutter-device-manager.h
/usr/include/mutter/clutter-0/clutter/clutter-clone.h
/usr/include/mutter/clutter-0/clutter/clutter-animatable.h
/usr/include/mutter/clutter-0/clutter/clutter-version.h
/usr/include/mutter/clutter-0/clutter/clutter-layout-meta.h
/usr/include/mutter/clutter-0/clutter/clutter-child-meta.h
/usr/include/mutter/clutter-0/clutter/evdev/clutter-evdev.h
/usr/include/mutter/clutter-0/clutter/clutter-scriptable.h
/usr/include/mutter/clutter-0/clutter/clutter-action.h
/usr/include/mutter/clutter-0/clutter/clutter-enums.h
/usr/include/mutter/clutter-0/clutter/clutter-binding-pool.h
/usr/include/mutter/clutter-0/clutter/clutter-stage-manager.h
/usr/include/mutter/clutter-0/clutter/clutter-content.h
/usr/include/mutter/clutter-0/clutter/clutter-test-utils.h
/usr/include/mutter/clutter-0/clutter/clutter-event.h
/usr/include/mutter/clutter-0/clutter/clutter-offscreen-effect.h
/usr/include/mutter/clutter-0/clutter/clutter-click-action.h
/usr/include/mutter/clutter-0/clutter/clutter-input-device-tool.h
/usr/include/mutter/clutter-0/clutter/clutter-autocleanups.h
/usr/include/mutter/clutter-0/clutter/clutter-canvas.h
/usr/include/mutter/clutter-0/clutter/clutter-paint-node.h
/usr/include/mutter/clutter-0/clutter/clutter-cairo.h
/usr/include/mutter/clutter-0/clutter/clutter-feature.h
/usr/include/mutter/clutter-0/clutter/clutter-transition-group.h
/usr/include/mutter/clutter-0/clutter/clutter-scroll-actor.h
/usr/include/mutter/clutter-0/clutter/clutter-transition.h
/usr/include/mutter/clutter-0/clutter/clutter-colorize-effect.h
/usr/include/mutter/clutter-0/clutter/clutter-actor.h
/usr/include/mutter/clutter-0/clutter/clutter-stage.h
/usr/include/mutter/clutter-0/clutter/clutter-enum-types.h
/usr/include/mutter/clutter-0/clutter/clutter-settings.h
/usr/include/mutter/clutter-0/clutter/clutter-backend.h
/usr/include/mutter/clutter-0/clutter/clutter.h
/usr/include/mutter/clutter-0/clutter/clutter-config.h
/usr/include/mutter/clutter-0/clutter/deprecated/clutter-list-model.h
/usr/include/mutter/clutter-0/clutter/deprecated/clutter-model.h
/usr/include/mutter/clutter-0/clutter/deprecated/clutter-frame-source.h
/usr/include/mutter/clutter-0/clutter/deprecated/clutter-animator.h
/usr/include/mutter/clutter-0/clutter/deprecated/clutter-group.h
/usr/include/mutter/clutter-0/clutter/deprecated/clutter-behaviour-rotate.h
/usr/include/mutter/clutter-0/clutter/deprecated/clutter-media.h
/usr/include/mutter/clutter-0/clutter/deprecated/clutter-animatable.h
/usr/include/mutter/clutter-0/clutter/deprecated/clutter-behaviour-depth.h
/usr/include/mutter/clutter-0/clutter/deprecated/clutter-stage-manager.h
/usr/include/mutter/clutter-0/clutter/deprecated/clutter-alpha.h
/usr/include/mutter/clutter-0/clutter/deprecated/clutter-timeout-pool.h
/usr/include/mutter/clutter-0/clutter/deprecated/clutter-shader.h
/usr/include/mutter/clutter-0/clutter/deprecated/clutter-table-layout.h
/usr/include/mutter/clutter-0/clutter/deprecated/clutter-behaviour-ellipse.h
/usr/include/mutter/clutter-0/clutter/deprecated/clutter-behaviour-opacity.h
/usr/include/mutter/clutter-0/clutter/deprecated/clutter-util.h
/usr/include/mutter/clutter-0/clutter/deprecated/clutter-actor.h
/usr/include/mutter/clutter-0/clutter/deprecated/clutter-stage.h
/usr/include/mutter/clutter-0/clutter/deprecated/clutter-cairo-texture.h
/usr/include/mutter/clutter-0/clutter/deprecated/clutter-backend.h
/usr/include/mutter/clutter-0/clutter/deprecated/clutter-state.h
/usr/include/mutter/clutter-0/clutter/deprecated/clutter-timeline.h
/usr/include/mutter/clutter-0/clutter/deprecated/clutter-behaviour-scale.h
/usr/include/mutter/clutter-0/clutter/deprecated/clutter-animation.h
/usr/include/mutter/clutter-0/clutter/deprecated/clutter-main.h
/usr/include/mutter/clutter-0/clutter/deprecated/clutter-behaviour.h
/usr/include/mutter/clutter-0/clutter/deprecated/clutter-bin-layout.h
/usr/include/mutter/clutter-0/clutter/deprecated/clutter-box.h
/usr/include/mutter/clutter-0/clutter/deprecated/clutter-rectangle.h
/usr/include/mutter/clutter-0/clutter/deprecated/clutter-input-device.h
/usr/include/mutter/clutter-0/clutter/deprecated/clutter-score.h
/usr/include/mutter/clutter-0/clutter/deprecated/clutter-behaviour-path.h
/usr/include/mutter/clutter-0/clutter/deprecated/clutter-keysyms.h
/usr/include/mutter/clutter-0/clutter/deprecated/clutter-texture.h
/usr/include/mutter/clutter-0/clutter/deprecated/clutter-container.h
/usr/include/mutter/clutter-0/clutter/clutter-color-static.h
/usr/include/mutter/clutter-0/clutter/clutter-path.h
/usr/include/mutter/clutter-0/clutter/clutter-box-layout.h
/usr/include/mutter/clutter-0/clutter/clutter-swipe-action.h
/usr/include/mutter/clutter-0/clutter/clutter-image.h
/usr/include/mutter/clutter-0/clutter/clutter-timeline.h
/usr/include/mutter/clutter-0/clutter/clutter-bind-constraint.h
/usr/include/mutter/clutter-0/clutter/clutter-deprecated.h
/usr/include/mutter/clutter-0/clutter/clutter-brightness-contrast-effect.h
/usr/include/mutter/clutter-0/clutter/clutter-actor-meta.h
/usr/include/mutter/clutter-0/clutter/clutter-drag-action.h
/usr/include/mutter/clutter-0/clutter/clutter-types.h
/usr/include/mutter/clutter-0/clutter/clutter-main.h
/usr/include/mutter/clutter-0/clutter/clutter-grid-layout.h
/usr/include/mutter/clutter-0/clutter/clutter-macros.h
/usr/include/mutter/clutter-0/clutter/clutter-align-constraint.h
/usr/include/mutter/clutter-0/clutter/clutter-drop-action.h
/usr/include/mutter/clutter-0/clutter/clutter-color.h
/usr/include/mutter/clutter-0/clutter/clutter-property-transition.h
/usr/include/mutter/clutter-0/clutter/clutter-shader-types.h
/usr/include/mutter/clutter-0/clutter/clutter-bin-layout.h
/usr/include/mutter/clutter-0/clutter/clutter-layout-manager.h
/usr/include/mutter/clutter-0/clutter/clutter-text.h
/usr/include/mutter/clutter-0/clutter/clutter-page-turn-effect.h
/usr/include/mutter/clutter-0/clutter/clutter-text-buffer.h
/usr/include/mutter/clutter-0/clutter/clutter-path-constraint.h
/usr/include/mutter/clutter-0/clutter/clutter-deform-effect.h
/usr/include/mutter/clutter-0/clutter/clutter-flow-layout.h
/usr/include/mutter/clutter-0/clutter/clutter-input-device.h
/usr/include/mutter/clutter-0/clutter/clutter-shader-effect.h
/usr/include/mutter/clutter-0/clutter/clutter-rotate-action.h
/usr/include/mutter/clutter-0/clutter/clutter-keysyms.h
/usr/include/mutter/clutter-0/clutter/clutter-interval.h
/usr/include/mutter/clutter-0/clutter/clutter-keyframe-transition.h
/usr/include/mutter/clutter-0/clutter/clutter-texture.h
/usr/include/mutter/clutter-0/clutter/clutter-container.h
/usr/include/mutter/clutter-0/clutter/clutter-paint-nodes.h
/usr/include/mutter/clutter-0/clutter/clutter-blur-effect.h
/usr/include/mutter/clutter-0/cally/cally-util.h
/usr/include/mutter/clutter-0/cally/cally.h
/usr/include/mutter/clutter-0/cally/cally-actor.h
/usr/include/mutter/clutter-0/cally/cally-rectangle.h
/usr/include/mutter/clutter-0/cally/cally-root.h
/usr/include/mutter/clutter-0/cally/cally-texture.h
/usr/include/mutter/clutter-0/cally/cally-group.h
/usr/include/mutter/clutter-0/cally/cally-clone.h
/usr/include/mutter/clutter-0/cally/cally-factory.h
/usr/include/mutter/clutter-0/cally/cally-main.h
/usr/include/mutter/clutter-0/cally/cally-stage.h
/usr/include/mutter/clutter-0/cally/cally-text.h
/usr/include/mutter/cogl/cogl-path/cogl-path.h
/usr/include/mutter/cogl/cogl-path/cogl-path-functions.h
/usr/include/mutter/cogl/cogl-path/cogl-path-types.h
/usr/include/mutter/cogl/cogl-path/cogl-path-enum-types.h
/usr/include/mutter/cogl/cogl/cogl-vector.h
/usr/include/mutter/cogl/cogl/cogl-type-casts.h
/usr/include/mutter/cogl/cogl/cogl-onscreen-template.h
/usr/include/mutter/cogl/cogl/cogl-deprecated.h
/usr/include/mutter/cogl/cogl/cogl-pipeline-layer-state.h
/usr/include/mutter/cogl/cogl/cogl-egl.h
/usr/include/mutter/cogl/cogl/cogl-wayland-server.h
/usr/include/mutter/cogl/cogl/cogl-material-compat.h
/usr/include/mutter/cogl/cogl/cogl-gtype-private.h
/usr/include/mutter/cogl/cogl/cogl-output.h
/usr/include/mutter/cogl/cogl/cogl-texture-2d-sliced.h
/usr/include/mutter/cogl/cogl/cogl-bitmap.h
/usr/include/mutter/cogl/cogl/cogl-clutter.h
/usr/include/mutter/cogl/cogl/cogl-buffer.h
/usr/include/mutter/cogl/cogl/cogl-fence.h
/usr/include/mutter/cogl/cogl/cogl-object.h
/usr/include/mutter/cogl/cogl/cogl-matrix.h
/usr/include/mutter/cogl/cogl/cogl-defines.h
/usr/include/mutter/cogl/cogl/cogl-pipeline.h
/usr/include/mutter/cogl/cogl/cogl-texture-2d-gl.h
/usr/include/mutter/cogl/cogl/cogl-onscreen.h
/usr/include/mutter/cogl/cogl/cogl1-context.h
/usr/include/mutter/cogl/cogl/cogl-texture-2d.h
/usr/include/mutter/cogl/cogl/cogl-frame-info.h
/usr/include/mutter/cogl/cogl/gl-prototypes/cogl-core-functions.h
/usr/include/mutter/cogl/cogl/gl-prototypes/cogl-in-gles-core-functions.h
/usr/include/mutter/cogl/cogl/gl-prototypes/cogl-glsl-functions.h
/usr/include/mutter/cogl/cogl/gl-prototypes/cogl-in-gles2-core-functions.h
/usr/include/mutter/cogl/cogl/gl-prototypes/cogl-gles2-functions.h
/usr/include/mutter/cogl/cogl/cogl-glib-source.h
/usr/include/mutter/cogl/cogl/cogl-display.h
/usr/include/mutter/cogl/cogl/cogl-shader.h
/usr/include/mutter/cogl/cogl/cogl-mutter.h
/usr/include/mutter/cogl/cogl/cogl-color.h
/usr/include/mutter/cogl/cogl/cogl-renderer.h
/usr/include/mutter/cogl/cogl/cogl-types.h
/usr/include/mutter/cogl/cogl/cogl-pango.h
/usr/include/mutter/cogl/cogl/cogl.h
/usr/include/mutter/cogl/cogl/cogl-depth-state.h
/usr/include/mutter/cogl/cogl/cogl-texture.h
/usr/include/mutter/cogl/cogl/cogl-gles2-types.h
/usr/include/mutter/cogl/cogl/cogl-glx.h
/usr/include/mutter/cogl/cogl/cogl-context.h
/usr/include/mutter/cogl/cogl/cogl-quaternion.h
/usr/include/mutter/cogl/cogl/cogl-poll.h
/usr/include/mutter/cogl/cogl/cogl-swap-chain.h
/usr/include/mutter/cogl/cogl/cogl-meta-texture.h
/usr/include/mutter/cogl/cogl/cogl-euler.h
/usr/include/mutter/cogl/cogl/cogl-auto-texture.h
/usr/include/mutter/cogl/cogl/deprecated/cogl-type-casts.h
/usr/include/mutter/cogl/cogl/deprecated/cogl-material-compat.h
/usr/include/mutter/cogl/cogl/deprecated/cogl-clutter.h
/usr/include/mutter/cogl/cogl/deprecated/cogl-shader.h
/usr/include/mutter/cogl/cogl/deprecated/cogl-clutter-xlib.h
/usr/include/mutter/cogl/cogl/deprecated/cogl-auto-texture.h
/usr/include/mutter/cogl/cogl/deprecated/cogl-vertex-buffer.h
/usr/include/mutter/cogl/cogl/deprecated/cogl-framebuffer-deprecated.h
/usr/include/mutter/cogl/cogl/cogl-sub-texture.h
/usr/include/mutter/cogl/cogl/cogl-xlib-renderer.h
/usr/include/mutter/cogl/cogl/cogl-attribute-buffer.h
/usr/include/mutter/cogl/cogl/cogl-pipeline-state.h
/usr/include/mutter/cogl/cogl/cogl-texture-rectangle.h
/usr/include/mutter/cogl/cogl/cogl-matrix-stack.h
/usr/include/mutter/cogl/cogl/cogl-vertex-buffer.h
/usr/include/mutter/cogl/cogl/cogl-framebuffer.h
/usr/include/mutter/cogl/cogl/cogl-indices.h
/usr/include/mutter/cogl/cogl/cogl-pixel-buffer.h
/usr/include/mutter/cogl/cogl/cogl-atlas-texture.h
/usr/include/mutter/cogl/cogl/cogl-texture-3d.h
/usr/include/mutter/cogl/cogl/cogl-primitive.h
/usr/include/mutter/cogl/cogl/cogl-error.h
/usr/include/mutter/cogl/cogl/cogl-xlib.h
/usr/include/mutter/cogl/cogl/cogl-texture-pixmap-x11.h
/usr/include/mutter/cogl/cogl/cogl-egl-defines.h
/usr/include/mutter/cogl/cogl/cogl-index-buffer.h
/usr/include/mutter/cogl/cogl/cogl-primitives.h
/usr/include/mutter/cogl/cogl/cogl-attribute.h
/usr/include/mutter/cogl/cogl/cogl-primitive-texture.h
/usr/include/mutter/cogl/cogl/cogl-version.h
/usr/include/mutter/cogl/cogl/cogl-macros.h
/usr/include/mutter/cogl/cogl/cogl-offscreen.h
/usr/include/mutter/cogl/cogl/cogl-snippet.h
/usr/include/mutter/cogl/cogl/cogl-gles2.h
/usr/include/mutter/cogl/cogl-pango/cogl-pango.h

/usr/lib/libmutter-0.so -> /usr/lib/libmutter-0.so.0.0.0

Any suggestions?


#2

A quick look at xbps-src, it might help you:

$ cat common/shlibs |grep mutter
libmutter-private.so mutter-3.4.1_1
libmutter-wm.so mutter-3.4.1_1
libmutter.so.0 mutter-3.4.1_1
libmutter-wayland.so.0 mutter-wayland-3.10.1_1
libmutter-clutter-1.0.so mutter-3.22.0_1
libmutter-cogl-pango.so mutter-3.22.0_1
libmutter-cogl-path.so mutter-3.22.0_1
libmutter-cogl.so mutter-3.22.0_1
libmutter-0.so.0 mutter-3.24.0_1
libmutter-clutter-0.so mutter-3.24.0_1
libmutter-cogl-path-0.so mutter-3.24.0_1
libmutter-cogl-0.so mutter-3.24.0_1
libmutter-cogl-pango-0.so mutter-3.24.0_1

good luck.
:sleeping_bed:


(Masato the Empty) #3

The cmake system is rather foreign to me at this point, but in my experience with compilation in general, these sorts of problems (no lib found, even when you have the lib and its headers) are often due to the way that the build/config scripts determine presence/version of a library. For instance, quite a few builds I’ve seen use pkgconf rather than just checking on its own.

So what you’ll want to do is look closely at the output, and perhaps even look at the build scripts to see exactly how it has made the determination that you don’t have the libraries/headers when you know you do.


#4

@masato have you noticed ?
this package mutter-wayland does not exist !
Need to update common/shlibs I guess ?

Note: fixed by #commit.


(Masato the Empty) #5

Looks like an obsolete library… very old reference. I imagine nothing today would try to link to it (gnome, gtk, etc are all at 3.24 for stable branches, which have gone through some very major changes since 3.10/3.12)

Shouldn’t be relevant to the OP problem, but it does make me curious about what kind of routine cleanup is done of common/shlibs… Considering how old 3.10 would be, it’s likely that this reference slipped through the cracks and because nothing ever looks for this soname, it’s gone unnoticed.

@joy’s problem is that in this case, libmutter is not detected (no reference was posted to any particular subcomponent). Assuming he’s got the packages installed, it seems likely the detection routine needs something else, or perhaps it’s hitting a version incompatibility (the only other thing I’ve seen cause this type of issue besides a missing component used by the detection algorithm)


#6

As an exercise, today I tried to build gala with xbps-src.

Of course I put makedepends="mutter-devel" in my template,
but it fails because of a missing(?) libmutter package… :unamused:

checking for libmutter >= 3.19... no
checking for libmutter >= 3.21... no
checking for libmutter-0 >= 3.23... no
checking for libmutter-0 >= 3.25... no
checking for gobject-2.0 >= 2.44.0                  glib-2.0 >= 2.44.0                  gio-2.0 >= 2.44.0                  gio-unix-2.0 >= 2.44.0                  gmodule-2.0                  gtk+-3.0 >= 3.4.0                  gdk-x11-3.0 >= 3.4.0                  libbamf3                  granite                  gee-0.8                  gnome-desktop-3.0                  gnome-settings-daemon >= 3.15.2                  plank >= 0.11.0 cogl-1.0 clutter-1.0 >= 1.12.0 libmutter >= 3.18.3... no
configure: error: Package requirements (gobject-2.0 >= 2.44.0                  glib-2.0 >= 2.44.0                  gio-2.0 >= 2.44.0                  gio-unix-2.0 >= 2.44.0                  gmodule-2.0                  gtk+-3.0 >= 3.4.0                  gdk-x11-3.0 >= 3.4.0                  libbamf3                  granite                  gee-0.8                  gnome-desktop-3.0                  gnome-settings-daemon >= 3.15.2                  plank >= 0.11.0 cogl-1.0 clutter-1.0 >= 1.12.0 libmutter >= 3.18.3) were not met:

No package 'libmutter' 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 GALA_CORE_CFLAGS
and GALA_CORE_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

Weird.


@masato can you see something wrong with the autogen.sh script?

#!/bin/sh
# Run this to generate all the initial makefiles, etc.

srcdir=`dirname $0`
test -z "$srcdir" && srcdir=.

(test -f $srcdir/configure.ac) || {
	echo "**Error**: Directory "\`$srcdir\'" does not look like the top-level project directory"
	exit 1
}

PKG_NAME=`autoconf --trace 'AC_INIT:$1' "$srcdir/configure.ac"`

if [ "$#" = 0 -a "x$NOCONFIGURE" = "x" ]; then
	echo "**Warning**: I am going to run \`configure' with no arguments." >&2
	echo "If you wish to pass any to it, please specify them on the" >&2
	echo \`$0\'" command line." >&2
	echo "" >&2
fi

set -x
aclocal --install || exit 1
autoreconf --verbose --force --install -Wno-portability || exit 1
set +x

if [ "$NOCONFIGURE" = "" ]; then
	set -x
	$srcdir/configure "$@" || exit 1
	set +x

	if [ "$1" = "--help" ]; then exit 0 else
		echo "Now type \`make\' to compile $PKG_NAME" || exit 1
	fi
else
	echo "Skipping configure process."
fi

#7

What version of gala are you using? The only release I found is 0.3.0 (which is almost two years old).

I found that the script looks for libmutter.pc, but void’s package provides libmutter-0.pc. Creating a symbolic link worked (alternatively patch the configure script). But then I ran into some compile errors (probably because it’s too old).


#8

I tried to build the latest git version: #commit.

Well spotted ! :mag:


(Masato the Empty) #9

Actually, I can see no mention of these files anywhere in the git source… The build itself uses autotools, which does use the PKG_CHECK_MODULES macro to look for libmutter or libmutter-0 (both are checked, as they signify different possible version; libmutter-0 is version 3.24)

But for that autotools macro to work, you need to install "pkg-config" in your build environment.


#10

So I tried again with the latest git version. Using the following template everything went smoothly – no problem with libmutter whatsoever. Just wondering why cmake was mentioned, it’s not being used.

# Template file for 'gala'
pkgname="gala"
version="20170813"
revision=1
build_style="gnu-configure"
hostmakedepends="pkg-config automake autogen libtool intltool vala git"
makedepends="gnome-settings-daemon-devel gsettings-desktop-schemas-devel gettext-devel bamf-devel libcanberra-devel clutter-devel libgee08-devel libglib-devel gnome-desktop-devel granite-devel gtk+3-devel mutter-devel clutter-gtk-devel plank-devel libXtst-devel"
short_desc="A window & compositing manager based on libmutter"
maintainer="root@localhost"
homepage="https://github.com/elementary/gala"
license="GPL-3"

do_fetch() {
	local _url="https://github.com/elementary/gala"
	local _commit="43134b56f08e8d25157115afa85e341c5e2b9436" # Sun Aug 13 00:32:49 2017 +0200
	msg_normal "Fetching source from $_url ...\n"
	git clone ${_url} ${wrksrc}
	git -C ${wrksrc} reset --hard ${_commit}
}

pre_configure() {
	./autogen.sh --prefix=/usr
}

#11

My template was pretty much the same, but I forgot libXtst-devel

So, without libXtst-devel => mutter-devel is not detected.
Why ?
What is the relationship between the two? :couple:
This is odd… :thinking:


#12

I just can’t remember now why I included libXtst-devel. I guess there was some error message, but I don’t see it anymore (when building without libXtst). Hmm…


#13

@bluemoon in the AUR PKGBUILD I see: depends=(... 'libxtst')


#14

@joy Other tools from Pantheon: pantheon-calculator , pantheon-screenshot. :gift: