Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sdl2/2.0.16: fails to build, missing .pc files #1439

Open
0x6273 opened this issue Dec 26, 2021 · 1 comment
Open

sdl2/2.0.16: fails to build, missing .pc files #1439

0x6273 opened this issue Dec 26, 2021 · 1 comment
Labels

Comments

@0x6273
Copy link

0x6273 commented Dec 26, 2021

sdl2 fails to build with the following error:

ConanException: pkg-config command ['/home/conan/.conan/data/pkgconf/1.7.3/_/_/package/76f87539fc90ff313e0b3182641a9bb558a717d2/bin/pkgconf', '--print-provides', 'jack', '--print-errors'] failed with error: Command '/home/conan/.conan/data/pkgconf/1.7.3/_/_/package/76f87539fc90ff313e0b3182641a9bb558a717d2/bin/pkgconf --print-provides jack --print-errors' returned non-zero exit status 1.
Package jack was not found in the pkg-config search path.
Perhaps you should add the directory containing `jack.pc'
to the PKG_CONFIG_PATH environment variable
Package 'jack', required by 'virtual:world', not found

If I set the jack option to False, it builds successfully, but if I then set the wayland option to true, it fails to find wayland-client.pc instead. For some reason, these files are not generated. They are present under /usr/lib/x86_64-linux-gnu/pkgconfig/, but conan doesn't seem to search there.

Workaround: I can get sdl2 to build if the self._check_pkg_config calls are commented out in ~/.conan/data/sdl2/2.0.16/bincrafters/stable/export/conanfile.py

Package and Environment Details (include every applicable attribute)

  • Package Name/Version: sdl2/2.0.16
  • Operating System+version: Linux Ubuntu 16.04.7 LTS (Xenial Xerus)
  • Compiler+version: GCC 5
  • Docker image: conanio/gcc5
  • Conan version: conan 1.43.1
  • Python version: Python 3.7.5

Conan profile (output of conan profile show default or conan profile show <profile> if custom profile is in use)

conan profile show default
Configuration for profile default:

[settings]
os=Linux
os_build=Linux
arch=x86_64
arch_build=x86_64
compiler=gcc
compiler.version=5
compiler.libcxx=libstdc++
build_type=Release
[options]
[conf]
[build_requires]
[env]

Steps to reproduce (Include if Applicable)

Logs (Include/Attach if Applicable)

Click to expand log
sdl2/2.0.16@bincrafters/stable: Applying build-requirement: pkgconf/1.7.3
Package already installed: libgbm-dev
Package already installed: libjack-dev
Package already installed: libaudio-dev
Package already installed: libwayland-dev
Package already installed: wayland-protocols
sdl2/2.0.16@bincrafters/stable: Copying sources to build folder
sdl2/2.0.16@bincrafters/stable: Building your package in /home/conan/.conan/data/sdl2/2.0.16/bincrafters/stable/build/e4cc390f2f087cec7d542ebc5d94f5027e070c97
sdl2/2.0.16@bincrafters/stable: Generator pkg_config created libpkgconf.pc
sdl2/2.0.16@bincrafters/stable: Generator pkg_config created libpulse.pc
sdl2/2.0.16@bincrafters/stable: Generator pkg_config created libpulse-simple.pc
sdl2/2.0.16@bincrafters/stable: Generator pkg_config created pulseaudio.pc
sdl2/2.0.16@bincrafters/stable: Generator pkg_config created opengl.pc
sdl2/2.0.16@bincrafters/stable: Generator pkg_config created libunwind.pc
sdl2/2.0.16@bincrafters/stable: Generator pkg_config created libunwind-generic.pc
sdl2/2.0.16@bincrafters/stable: Generator pkg_config created libunwind-coredump.pc
sdl2/2.0.16@bincrafters/stable: Generator pkg_config created libunwind-setjmp.pc
sdl2/2.0.16@bincrafters/stable: Generator pkg_config created libunwind-ptrace.pc
sdl2/2.0.16@bincrafters/stable: Generator pkg_config created libiconv.pc
sdl2/2.0.16@bincrafters/stable: Generator pkg_config created xcb-dri3.pc
sdl2/2.0.16@bincrafters/stable: Generator pkg_config created xcb-util.pc
sdl2/2.0.16@bincrafters/stable: Generator pkg_config created xcb-event.pc
sdl2/2.0.16@bincrafters/stable: Generator pkg_config created xcb-aux.pc
sdl2/2.0.16@bincrafters/stable: Generator pkg_config created xcb-atom.pc
sdl2/2.0.16@bincrafters/stable: Generator pkg_config created xkeyboard-config.pc
sdl2/2.0.16@bincrafters/stable: Generator pkg_config created xcb.pc
sdl2/2.0.16@bincrafters/stable: Generator pkg_config created xcb-xinerama.pc
sdl2/2.0.16@bincrafters/stable: Generator pkg_config created xcb-xfixes.pc
sdl2/2.0.16@bincrafters/stable: Generator pkg_config created xcb-sync.pc
sdl2/2.0.16@bincrafters/stable: Generator pkg_config created xcb-shm.pc
sdl2/2.0.16@bincrafters/stable: Generator pkg_config created xcb-shape.pc
sdl2/2.0.16@bincrafters/stable: Generator pkg_config created xcb-renderutil.pc
sdl2/2.0.16@bincrafters/stable: Generator pkg_config created xcb-render.pc
sdl2/2.0.16@bincrafters/stable: Generator pkg_config created xcb-randr.pc
sdl2/2.0.16@bincrafters/stable: Generator pkg_config created xcb-keysyms.pc
sdl2/2.0.16@bincrafters/stable: Generator pkg_config created xcb-image.pc
sdl2/2.0.16@bincrafters/stable: Generator pkg_config created xcb-icccm.pc
sdl2/2.0.16@bincrafters/stable: Generator pkg_config created xcb-xkb.pc
sdl2/2.0.16@bincrafters/stable: Generator pkg_config created xtrans.pc
sdl2/2.0.16@bincrafters/stable: Generator pkg_config created xxf86vm.pc
sdl2/2.0.16@bincrafters/stable: Generator pkg_config created xvmc.pc
sdl2/2.0.16@bincrafters/stable: Generator pkg_config created xv.pc
sdl2/2.0.16@bincrafters/stable: Generator pkg_config created xtst.pc
sdl2/2.0.16@bincrafters/stable: Generator pkg_config created xt.pc
sdl2/2.0.16@bincrafters/stable: Generator pkg_config created xscrnsaver.pc
sdl2/2.0.16@bincrafters/stable: Generator pkg_config created xres.pc
sdl2/2.0.16@bincrafters/stable: Generator pkg_config created xrender.pc
sdl2/2.0.16@bincrafters/stable: Generator pkg_config created xrandr.pc
sdl2/2.0.16@bincrafters/stable: Generator pkg_config created xpm.pc
sdl2/2.0.16@bincrafters/stable: Generator pkg_config created xmuu.pc
sdl2/2.0.16@bincrafters/stable: Generator pkg_config created xmu.pc
sdl2/2.0.16@bincrafters/stable: Generator pkg_config created xkbfile.pc
sdl2/2.0.16@bincrafters/stable: Generator pkg_config created xinerama.pc
sdl2/2.0.16@bincrafters/stable: Generator pkg_config created xi.pc
sdl2/2.0.16@bincrafters/stable: Generator pkg_config created xft.pc
sdl2/2.0.16@bincrafters/stable: Generator pkg_config created xfixes.pc
sdl2/2.0.16@bincrafters/stable: Generator pkg_config created xext.pc
sdl2/2.0.16@bincrafters/stable: Generator pkg_config created xdmcp.pc
sdl2/2.0.16@bincrafters/stable: Generator pkg_config created xdamage.pc
sdl2/2.0.16@bincrafters/stable: Generator pkg_config created xcursor.pc
sdl2/2.0.16@bincrafters/stable: Generator pkg_config created xcomposite.pc
sdl2/2.0.16@bincrafters/stable: Generator pkg_config created xaw7.pc
sdl2/2.0.16@bincrafters/stable: Generator pkg_config created xau.pc
sdl2/2.0.16@bincrafters/stable: Generator pkg_config created sm.pc
sdl2/2.0.16@bincrafters/stable: Generator pkg_config created ice.pc
sdl2/2.0.16@bincrafters/stable: Generator pkg_config created fontenc.pc
sdl2/2.0.16@bincrafters/stable: Generator pkg_config created x11-xcb.pc
sdl2/2.0.16@bincrafters/stable: Generator pkg_config created x11.pc
sdl2/2.0.16@bincrafters/stable: Generator pkg_config created xorg.pc
sdl2/2.0.16@bincrafters/stable: Generator pkg_config created alsa.pc
sdl2/2.0.16@bincrafters/stable: Generator pkg_config created sndfile.pc
sdl2/2.0.16@bincrafters/stable: Generator pkg_config created libcap.pc
sdl2/2.0.16@bincrafters/stable: Generator pkg_config created libcrypto.pc
sdl2/2.0.16@bincrafters/stable: Generator pkg_config created libssl.pc
sdl2/2.0.16@bincrafters/stable: Generator pkg_config created openssl.pc
sdl2/2.0.16@bincrafters/stable: Generator pkg_config created liblzma.pc
sdl2/2.0.16@bincrafters/stable: Generator pkg_config created vorbis.pc
sdl2/2.0.16@bincrafters/stable: Generator pkg_config created vorbisfile.pc
sdl2/2.0.16@bincrafters/stable: Generator pkg_config created vorbisfile-alias.pc
sdl2/2.0.16@bincrafters/stable: Generator pkg_config created vorbisenc.pc
sdl2/2.0.16@bincrafters/stable: Generator pkg_config created vorbisenc-alias.pc
sdl2/2.0.16@bincrafters/stable: Generator pkg_config created vorbis_full_package.pc
sdl2/2.0.16@bincrafters/stable: Generator pkg_config created flac.pc
sdl2/2.0.16@bincrafters/stable: Generator pkg_config created flac++.pc
sdl2/2.0.16@bincrafters/stable: Generator pkg_config created opus.pc
sdl2/2.0.16@bincrafters/stable: Generator pkg_config created ogglib.pc
sdl2/2.0.16@bincrafters/stable: Generator pkg_config created ogg.pc
sdl2/2.0.16@bincrafters/stable: Generator cmake created conanbuildinfo.cmake
sdl2/2.0.16@bincrafters/stable: Aggregating env generators
sdl2/2.0.16@bincrafters/stable: Calling build()
sdl2/2.0.16@bincrafters/stable:
sdl2/2.0.16@bincrafters/stable: ERROR: Package 'e4cc390f2f087cec7d542ebc5d94f5027e070c97' build failed
sdl2/2.0.16@bincrafters/stable: WARN: Build folder /home/conan/.conan/data/sdl2/2.0.16/bincrafters/stable/build/e4cc390f2f087cec7d542ebc5d94f5027e070c97
ERROR: sdl2/2.0.16@bincrafters/stable: Error in build() method, line 189
        self._build_cmake()
while calling '_build_cmake', line 271
        cmake = self._configure_cmake()
while calling '_configure_cmake', line 207
        self._check_dependencies()
while calling '_check_dependencies', line 199
        self._check_pkg_config(self.options.jack, "jack")
while calling '_check_pkg_config', line 194
        if not pkg_config.provides:
        ConanException: pkg-config command ['/home/conan/.conan/data/pkgconf/1.7.3/_/_/package/76f87539fc90ff313e0b3182641a9bb558a717d2/bin/pkgconf', '--print-provides', 'jack', '--print-errors'] failed with error: Command '/home/conan/.conan/data/pkgconf/1.7.3/_/_/package/76f87539fc90ff313e0b3182641a9bb558a717d2/bin/pkgconf --print-provides jack --print-errors' returned non-zero exit status 1.
Package jack was not found in the pkg-config search path.
Perhaps you should add the directory containing `jack.pc'
to the PKG_CONFIG_PATH environment variable
Package 'jack', required by 'virtual:world', not found
@0x6273 0x6273 added the bug label Dec 26, 2021
@ericLemanissier
Copy link
Contributor

This happens because the recipe uses pkgconf as provided by conan, so it does not peek into your system .pc files, and dones not find jack. You could try to set environment variable PKG_CONFIG_PATH=/usr/lib/x86_64-linux-gnu/pkgconfig/
The true fix for this would be to make a conan package for jack, either a system package or a first class package.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants