You are not logged in.

#1 2017-01-04 18:39:13

klepzeiker
Member
Registered: 2016-12-25
Posts: 9

[SOLVED] i3-gaps fails to build, package 'egl' not found

Hi! Been playing around with Arch for a while now in a VM, and decided I want to try it on my actual laptop. I'm trying it out first by installing Arch on a USB stick.

I want to use i3-gaps as my WM, as I did in the virtual machine, but building it fails:

configure: error: Package requirements (cairo >= 1.14.4 pangocairo) were not met:

Package 'egl', required by 'cairo', not found

According to 'pacman -Qs cairo', cairo is installed properly.

I'm not sure but I suspect the 'egl' package is related to OpenGL, something is probably wrong/missing with my Nvidia drivers.

$ sudo pacman -Syu nvidia nvidia-libgl nvidia-utils xorg-server xorg-server-utils xorg-xinit xorg-xprop xorg-xev rxvt-unicode
$ curl -LO https://aur.archlinux.org/cgit/aur.git/snapshot/i3-gaps.tar.gz
$ tar xzf i3-gaps.tar.gz
$ cd i3-gaps
$ makepkg -cCrsi

This laptop has one of those hybrid intel/nvidia cards, but I only care about the nvidia card. However I have no option to disable the intel part in my system BIOS. According to the NVIDIA Optimus page I have the correct drivers installed.

What am I missing? Thanks in advance.

Last edited by klepzeiker (2017-01-05 04:04:20)

Offline

#2 2017-01-04 18:50:05

ayekat
Member
Registered: 2011-01-17
Posts: 1,589

Re: [SOLVED] i3-gaps fails to build, package 'egl' not found

Hi - would you mind posting the full output of makepkg?
That error message is a little weird - the way I interpret it, cairo depends on a package called `egl`, which does not exist. But the cairo package does not depend on anything called `egl`.


pkgshackscfgblag

Offline

#3 2017-01-04 19:19:38

klepzeiker
Member
Registered: 2016-12-25
Posts: 9

Re: [SOLVED] i3-gaps fails to build, package 'egl' not found

Exactly, I couldn't find any reference to an 'egl' package anywhere online...

Full output pasted below. Looking at the package's configure.ac, it chokes on this line:

PKG_CHECK_MODULES([PANGOCAIRO], [cairo >= 1.14.4 pangocairo])

However I have barely any clue about what to do with this info. Google just gives me an Autotools manual.

Thanks for having a look at it!

commandline: makepkg -cCrsi 2>&1 | tee /mnt/shared/make_i3-gaps.txt

==> Making package: i3-gaps 4.13-2 (Wed Jan  4 14:26:54 CET 2017)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Installing missing dependencies...
resolving dependencies...
looking for conflicting packages...

Packages (6) docbook-xml-4.5-6  libxml2-2.9.4+12+ge905f08-2  libxslt-1.1.29+23+geb1030d-1  python2-2.7.13-1  asciidoc-8.6.9-3  docbook-xsl-1.79.1-2

Total Installed Size:  100.27 MiB

:: Proceed with installation? [Y/n] checking keyring...
checking package integrity...
loading package files...
checking for file conflicts...
checking available disk space...
:: Processing package changes...
installing python2...
Optional dependencies for python2
    tk: for IDLE
    python2-setuptools
    python2-pip
installing libxml2...
installing libxslt...
installing docbook-xml...
installing docbook-xsl...
installing asciidoc...
Optional dependencies for asciidoc
    lilypond: music-filter
    imagemagick: music-filter (used in conjunction with lilypond)
    source-highlight: source-highlight-filter
    dblatex: pdf generation
    fop: alternative pdf generation
    lynx: text generation
    w3m: text generation (alternative to lynx)
==> Retrieving sources...
  -> Downloading 4.13.tar.gz...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100   118    0   118    0     0    244      0 --:--:-- --:--:-- --:--:--   244
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
 46 3828k   46 1779k    0     0   991k      0  0:00:03  0:00:01  0:00:02 1905k
100 3828k  100 3828k    0     0  1909k      0  0:00:02  0:00:02 --:--:-- 3349k
==> Validating source files with sha1sums...
    4.13.tar.gz ... Passed
==> Removing existing $srcdir/ directory...
==> Extracting sources...
  -> Extracting 4.13.tar.gz with bsdtar
==> Starting build()...
configure.ac:113: installing './ar-lib'
configure.ac:54: installing './compile'
configure.ac:7: installing './config.guess'
configure.ac:7: installing './config.sub'
configure.ac:8: installing './install-sh'
configure.ac:8: installing './missing'
Makefile.am:205: warning: '%'-style pattern rules are a GNU make extension
Makefile.am: installing './depcomp'
parallel-tests: installing './test-driver'
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for gsed... sed
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking whether to enable maintainer-specific portions of Makefiles... yes
checking for gawk... (cached) gawk
checking for GNU make... make
checking for a sed that does not truncate output... /usr/bin/sed
checking whether to build with code coverage support... no
checking whether to enable debugging... 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 gcc option to accept ISO C99... none needed
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/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 minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking for mode_t... yes
checking for off_t... yes
checking for pid_t... yes
checking for size_t... yes
checking for ssize_t... yes
checking for pid_t... (cached) yes
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 whether lstat correctly handles trailing slash... yes
checking for working strnlen... yes
checking for atexit... yes
checking for dup2... yes
checking for ftruncate... yes
checking for getcwd... yes
checking for gettimeofday... yes
checking for localtime_r... yes
checking for memchr... yes
checking for memset... yes
checking for mkdir... yes
checking for rmdir... yes
checking for setlocale... yes
checking for socket... yes
checking for strcasecmp... yes
checking for strchr... yes
checking for strdup... yes
checking for strerror... yes
checking for strncasecmp... yes
checking for strndup... yes
checking for strrchr... yes
checking for strspn... yes
checking for strstr... yes
checking for strtol... yes
checking for strtoul... yes
checking for library containing floor... -lm
checking for library containing ev_run... -lev
checking for library containing shm_open... -lrt
checking whether gcc is Clang... no
checking whether pthreads work with -pthread... yes
checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
checking whether more special flags are required for pthreads... no
checking for PTHREAD_PRIO_INHERIT... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for LIBSN... yes
checking for XCB... yes
checking for XCB_UTIL... yes
checking for XCB_UTIL_CURSOR... yes
checking for XCB_UTIL_KEYSYMS... yes
checking for XCB_UTIL_WM... yes
checking for XCB_UTIL_XRM... yes
checking for XKBCOMMON... yes
checking for YAJL... yes
checking for LIBPCRE... yes
checking for PANGOCAIRO... no
configure: error: Package requirements (cairo >= 1.14.4 pangocairo) were not met:

Package 'egl', required by 'cairo', not 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 PANGOCAIRO_CFLAGS
and PANGOCAIRO_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
==> ERROR: A failure occurred in build().
    Aborting...
==> Removing installed dependencies...
checking dependencies...
:: usbutils optionally requires python2: for lsusb.py usage

Packages (6) asciidoc-8.6.9-3  docbook-xml-4.5-6  docbook-xsl-1.79.1-2  libxml2-2.9.4+12+ge905f08-2  libxslt-1.1.29+23+geb1030d-1  python2-2.7.13-1

Total Removed Size:  100.27 MiB

:: Do you want to remove these packages? [Y/n] :: Processing package changes...
removing asciidoc...
removing python2...
removing docbook-xsl...
removing libxslt...
removing docbook-xml...
removing libxml2...

Offline

#4 2017-01-04 19:47:34

ayekat
Member
Registered: 2011-01-17
Posts: 1,589

Re: [SOLVED] i3-gaps fails to build, package 'egl' not found

Hmm... up to that error message, I get the exact same output, but then it continues to build successfully on my machine™.

What's the output of these commands?

pacman -Qi cairo
pacman -Qg base-devel
env | grep 'PKG\|CAIRO'

pkgshackscfgblag

Offline

#5 2017-01-04 21:39:56

klepzeiker
Member
Registered: 2016-12-25
Posts: 9

Re: [SOLVED] i3-gaps fails to build, package 'egl' not found

Here we go:

$ pacman -Qi cairo pango

Name            : cairo
Version         : 1.14.8-1
Description     : Cairo vector graphics library
Architecture    : x86_64
URL             : https://cairographics.org/
Licenses        : LGPL  MPL
Groups          : None
Provides        : cairo-xcb
Depends On      : libpng  libxrender  libxext  fontconfig  pixman  glib2  libgl  lzo
Optional Deps   : None
Required By     : pango
Optional For    : harfbuzz
Conflicts With  : None
Replaces        : cairo-xcb
Installed Size  : 3.44 MiB
Packager        : Andreas Radke <andyrtr@archlinux.org>
Build Date      : Thu 08 Dec 2016 08:35:02 PM CET
Install Date    : Wed 04 Jan 2017 04:55:50 PM CET
Install Reason  : Installed as a dependency for another package
Install Script  : No
Validated By    : Signature

Name            : pango
Version         : 1.40.3-1
Description     : A library for layout and rendering of text
Architecture    : x86_64
URL             : http://www.pango.org/
Licenses        : LGPL
Groups          : None
Provides        : None
Depends On      : libthai  cairo  libxft  harfbuzz
Optional Deps   : None
Required By     : None
Optional For    : None
Conflicts With  : None
Replaces        : None
Installed Size  : 3.81 MiB
Packager        : Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
Build Date      : Wed 14 Sep 2016 09:05:24 AM CEST
Install Date    : Wed 04 Jan 2017 04:55:50 PM CET
Install Reason  : Installed as a dependency for another package
Install Script  : No
Validated By    : Signature

$ pacman -Qg base-devel

base-devel autoconf
base-devel automake
base-devel binutils
base-devel bison
base-devel fakeroot
base-devel file
base-devel findutils
base-devel flex
base-devel gawk
base-devel gcc
base-devel gettext
base-devel grep
base-devel groff
base-devel gzip
base-devel libtool
base-devel m4
base-devel make
base-devel pacman
base-devel patch
base-devel pkg-config
base-devel sed
base-devel sudo
base-devel texinfo
base-devel util-linux
base-devel which

$ env

LANG=en_US.UTF-8
XDG_VTNR=1
XDG_SESSION_ID=c1
USER=gerard
PWD=/home/gerard
HOME=/home/gerard
MAIL=/var/spool/mail/gerard
TERM=linux
SHELL=/bin/bash
SHLVL=1
XDG_SEAT=seat0
LOGNAME=gerard
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
XDG_RUNTIME_DIR=/run/user/1000
PATH=/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl
_=/usr/bin/env

As you can see, 'env' is very short because this is a very fresh installation.

Thanks!

Offline

#6 2017-01-04 22:14:44

loqs
Member
Registered: 2014-03-06
Posts: 17,192

Re: [SOLVED] i3-gaps fails to build, package 'egl' not found

Please create in a new empty directory the file configure.ac with the following contents

AC_INIT()
PKG_CHECK_MODULES([PANGOCAIRO], [cairo >= 1.14.4 pangocairo])
AC_OUTPUT

then run

$ autoreconf
$ ./configure

Please post the output from ./configure plus the contents of config.log that should have been created in the same directory

Offline

#7 2017-01-04 23:06:09

klepzeiker
Member
Registered: 2016-12-25
Posts: 9

Re: [SOLVED] i3-gaps fails to build, package 'egl' not found

Here's the config.log:

/usr/bin/hostinfo      = unknown
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /usr/bin
PATH: /usr/bin/site_perl
PATH: /usr/bin/vendor_perl
PATH: /usr/bin/core_perl


## ----------- ##
## Core tests. ##
## ----------- ##

configure:1697: checking for configure.txt-pkg-config
configure:1730: result: no
configure:1740: checking for pkg-config
configure:1758: found /usr/bin/pkg-config
configure:1770: result: /usr/bin/pkg-config
configure:1795: checking pkg-config is at least version 0.9.0
configure:1798: result: yes
configure:1808: checking for PANGOCAIRO
configure:1815: $PKG_CONFIG --exists --print-errors "cairo >= 1.14.4 pangocairo"
Package egl was not found in the pkg-config search path.
Perhaps you should add the directory containing `egl.pc'
to the PKG_CONFIG_PATH environment variable
Package 'egl', required by 'cairo', not found
configure:1818: $? = 1
configure:1832: $PKG_CONFIG --exists --print-errors "cairo >= 1.14.4 pangocairo"
Package egl was not found in the pkg-config search path.
Perhaps you should add the directory containing `egl.pc'
to the PKG_CONFIG_PATH environment variable
Package 'egl', required by 'cairo', not found
configure:1835: $? = 1
configure:1849: result: no
Package 'egl', required by 'cairo', not found
configure:1865: error: Package requirements (cairo >= 1.14.4 pangocairo) were not met:

Package 'egl', required by 'cairo', not 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 PANGOCAIRO_CFLAGS
and PANGOCAIRO_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_env_PANGOCAIRO_CFLAGS_set=
ac_cv_env_PANGOCAIRO_CFLAGS_value=
ac_cv_env_PANGOCAIRO_LIBS_set=
ac_cv_env_PANGOCAIRO_LIBS_value=
ac_cv_env_PKG_CONFIG_LIBDIR_set=
ac_cv_env_PKG_CONFIG_LIBDIR_value=
ac_cv_env_PKG_CONFIG_PATH_set=
ac_cv_env_PKG_CONFIG_PATH_value=
ac_cv_env_PKG_CONFIG_set=
ac_cv_env_PKG_CONFIG_value=
ac_cv_env_build_alias_set=set
ac_cv_env_build_alias_value=configure.txt
ac_cv_env_host_alias_set=set
ac_cv_env_host_alias_value=configure.txt
ac_cv_env_target_alias_set=set
ac_cv_env_target_alias_value=configure.txt
ac_cv_path_ac_pt_PKG_CONFIG=/usr/bin/pkg-config

## ----------------- ##
## Output variables. ##
## ----------------- ##

DEFS=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
LIBOBJS=''
LIBS=''
LTLIBOBJS=''
PACKAGE_BUGREPORT=''
PACKAGE_NAME=''
PACKAGE_STRING=''
PACKAGE_TARNAME=''
PACKAGE_URL=''
PACKAGE_VERSION=''
PANGOCAIRO_CFLAGS=''
PANGOCAIRO_LIBS=''
PATH_SEPARATOR=':'
PKG_CONFIG='/usr/bin/pkg-config'
PKG_CONFIG_LIBDIR=''
PKG_CONFIG_PATH=''
SHELL='/bin/sh'
bindir='${exec_prefix}/bin'
build_alias='configure.txt'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE}'
dvidir='${docdir}'
exec_prefix='NONE'
host_alias='configure.txt'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='NONE'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias='configure.txt'

## ----------- ##
## confdefs.h. ##
## ----------- ##

/* confdefs.h */
#define PACKAGE_NAME ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""
#define PACKAGE_STRING ""
#define PACKAGE_BUGREPORT ""
#define PACKAGE_URL ""

configure: exit 1

I also found a file called /usr/lib/pkgconfig/cairo-egl.pc:

prefix=/usr
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include

Name: cairo-egl
Description: EGL functions for cairo graphics library
Version: 1.14.8

Requires: cairo egl
Libs:  
Cflags: -I${includedir}/cairo

However, it references a base 'egl' package.

Offline

#8 2017-01-04 23:20:46

loqs
Member
Registered: 2014-03-06
Posts: 17,192

Re: [SOLVED] i3-gaps fails to build, package 'egl' not found

$ pacman -Qo /usr/lib/pkgconfig/egl.pc
/usr/lib/pkgconfig/egl.pc is owned by mesa 13.0.2-2

Offline

#9 2017-01-04 23:24:18

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,783
Website

Re: [SOLVED] i3-gaps fails to build, package 'egl' not found

EGL is part of Mesa: http://www.mesa3d.org/egl.html

If the package builds with the mesa package installed, let the i3-gaps maintainer know that they are missing a make(depends).

EDIT: Beaten by loqs.

Last edited by WorMzy (2017-01-04 23:24:40)


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#10 2017-01-05 04:03:54

klepzeiker
Member
Registered: 2016-12-25
Posts: 9

Re: [SOLVED] i3-gaps fails to build, package 'egl' not found

Yep! a `pacman -Syu mesa` did the trick. Posting this from Arch right now. Thanks guys!

Offline

Board footer

Powered by FluxBB