Open irieger opened 6 months ago
The pkg-config is now listed and build required for ffmpeg:
Please, feel free to re-open this issue in case finding any related to error.
Re-opening this issue because only tool_requires is not enough as commented here: https://github.com/conan-io/conan/issues/14422#issuecomment-1665166761
Description
I was running into problems with the two libraries mentioned in the title: opengl/system as well as ffmpeg/6.1. For my build pipeline, I setup a absolutely minimal Docker-Container with Ubuntu 22.04, with basically only python & build-essential (and later libgl-dev or now libopengl-dev).
What I would suggest is to ensure that proper error messages are thrown if pkg-config is not available in the system and that it needs to be installed manually. I can perfectly life with having to do it manually, but debugging why the process failed was costing me some time that I'd like to spare others from spending.
Conan for installing opengl/system + glew/* was running into roughly the following output:
(Here I might have gotten the clue, but I thought conan takes care of tools, so getting an error message by Conan, that tells me that I need to ensure my system has pkg-config would have greatly helped!)
It is much more hidden in ffmpeg(/6.1). There I just had the build process to show me an error in finding a library:
So as said, my idea would be, that we should ensure the user gets a helpful error.
Package and Environment Details
Conan profile
[settings] arch=x86_64 build_type=Debug compiler=gcc compiler.cppstd=20 compiler.libcxx=libstdc++11 compiler.version=11 os=Linux
Steps to reproduce
Create docker container with
Put the following in a conanfile.txt:
Then just run
./conan_venv/bin/conan install PATH_TO_CONANFILE.txt --build=missing
Logs
Click to expand log
``` ======== Input profiles ======== Profile host: [settings] arch=x86_64 build_type=Debug compiler=gcc compiler.cppstd=20 compiler.libcxx=libstdc++11 compiler.version=11 os=Linux Profile build: [settings] arch=x86_64 build_type=Debug compiler=gcc compiler.cppstd=20 compiler.libcxx=libstdc++11 compiler.version=11 os=Linux ======== Computing dependency graph ======== opengl/system: Not found in local cache, looking in remotes... opengl/system: Checking remote: conancenter opengl/system: Downloaded recipe revision b29589c04d6df84c110d6acb066ab653 Graph root conanfile.txt: /root/test/conanfile.txt Requirements opengl/system#b29589c04d6df84c110d6acb066ab653 - Downloaded (conancenter) ======== Computing necessary packages ======== Requirements opengl/system#b29589c04d6df84c110d6acb066ab653:da39a3ee5e6b4b0d3255bfef95601890afd80709#0ba8627bd47edc3a501e8f0eb9a79e5e - Download (conancenter) opengl/system: System requirements: already installed ======== Installing packages ======== -------- Downloading 1 package -------- opengl/system: Retrieving package da39a3ee5e6b4b0d3255bfef95601890afd80709 from remote 'conancenter' opengl/system: Package installed da39a3ee5e6b4b0d3255bfef95601890afd80709 opengl/system: Downloaded package revision 0ba8627bd47edc3a501e8f0eb9a79e5e /bin/sh: 1: pkg-config: not found ERROR: opengl/system: Error in package_info() method, line 61 pkg_config.fill_cpp_info(self.cpp_info, is_system=self.settings.os != "FreeBSD") ConanException: Error 127 while executing ```