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

[package] qt/5.15.11: Dependency on opengl/system always requires legacy X11 GL interface on Linux #22116

Open
jwillikers opened this issue Jan 2, 2024 · 0 comments · May be fixed by #22132
Labels
bug Something isn't working

Comments

@jwillikers
Copy link
Contributor

jwillikers commented Jan 2, 2024

Description

When building qt/5.15.11 for Linux, there is a dependency on opengl/system, which requires gl.pc, the X11 GL interface.
Using this package for an embedded system which uses the es2 interface is problematic because the system doesn't provide or need the X11 GL interface, libGL / gl.pc.
I think systems only using Wayland will run into the same problem.

Package and Environment Details

  • Package Name/Version: qt/5.15.11
  • Operating System+version: Yocto SDK
  • Conan version: conan 1.62.0

Conan profile

[settings]
os=Linux
arch=armv7hf
compiler=gcc
compiler.version=7
compiler.libcxx=libstdc++11
[options]
[conf]
[build_requires]
[env]

Steps to reproduce

conan create . "5.15.11@" --build missing --build outdated --update --profile:host yocto/debug --options:host 'qt/*:cross_compile=yocto-linux-gnueabi-' --options:host 'qt/*:device=linux-imx6-g++' --options:host 'qt/*:opengl=es2' --options:host 'qt/*:sysroot=/opt/nxt/sdk/nxt/sysroots/cortexa9hf-neon-yocto-linux-gnueabi' --options:host 'qt/*:with_fontconfig=False' --options:host 'qt/*:with_x11=False' --options:host 'qt/*:shared=True' --options:host 'qt/*:with_md4c=False' --options:host 'qt/*:with_mysql=False' --options:host 'qt/*:with_odbc=False' --options:host 'qt/*:with_openal=False' --options:host 'qt/*:with_pq=False' --options:host 'qt/*:with_sqlite3=False' --options:host 'libxml2/*:iconv=False' --options:host 'libiconv/*:shared=True'

Logs

Click to expand log
ERROR: conanfile.py (project/None): Error in generate() method, line 84
	cmake_deps.generate()
	ConanException: error generating context for 'qt/5.15.13': qt/5.15.13: component 'qtGui' required 'opengl::opengl', but 'opengl' is not a direct dependency
@jwillikers jwillikers added the bug Something isn't working label Jan 2, 2024
jwillikers added a commit to jwillikers/conan-center-index that referenced this issue Jan 2, 2024
The opengl/system dependency is very misleading.
For Linux, it is a requirement for the legacy gl interface used for X11.
This is not necessarily required when using the es2 OpenGL backend and likely Wayland.

This PR only requires opengl/system on Linux when with_x11 is enabled.

Fixes conan-io#22116.
jwillikers added a commit to jwillikers/conan-center-index that referenced this issue Jan 2, 2024
The opengl/system dependency is very misleading.
For Linux, it is a requirement for the legacy gl interface used for X11.
This is not necessarily required when using the es2 OpenGL backend and likely Wayland.

This PR only requires opengl/system on Linux when with_x11 is enabled.

Fixes conan-io#22116.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
1 participant