Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Other Things Gentoo
  • Search

libGL error: No matching fbConfigs or visuals found (sigil)

Still need help with Gentoo, and your question doesn't fit in the above forums? Here is your last bastion of hope.
Post Reply
Advanced search
2 posts • Page 1 of 1
Author
Message
javeree
Guru
Guru
Posts: 465
Joined: Sun Jan 29, 2006 5:17 pm

libGL error: No matching fbConfigs or visuals found (sigil)

  • Quote

Post by javeree » Sun Nov 24, 2019 1:11 am

When I try to start sigil (app-text/sigil), I get the following eroor message:
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
Debug: Error creating openGL context
Warning: WebEngineContext used before QtWebEngine::initialize() or OpenGL context creation failed.
Aborted
After some googling, I found this error has to do with the correct file libGL.so not being found.
I have both nouveau drivers and nvidia binary drivers installed, and it looks like teh version provided by mesa is being used, even though I am currently running the binary driver. I could prove that by temporarily removing mesa (and the so files in /usr/lib/), after which the error disappeared.

I have in /etc/env.d/000opengl:

Code: Select all

# Configuration file for eselect
# This file has been automatically generated.
LDPATH="/usr/lib/opengl/nvidia/lib:/usr/lib64/opengl/nvidia/lib"
OPENGL_PROFILE="nvidia"
and have set 'eselect opengl set nvidia'

I ran env-update && . /etc/profile.env however, echo $LDPATH just gives blanc output

The above actions did not make sigil look in the correct location, and neither did
export LD_LIBRARY_PATH="/usr/lib64/opengl/nvidia/lib/:$LD_LIBRARY_PATH"

So what shoudl I do to get LDPATH visible to a progralm such as sigil
Last edited by javeree on Mon Nov 25, 2019 12:35 pm, edited 1 time in total.
Top
javeree
Guru
Guru
Posts: 465
Joined: Sun Jan 29, 2006 5:17 pm

  • Quote

Post by javeree » Mon Nov 25, 2019 12:34 pm

I found the problem. the sigil executable /usr/bin/sigil is in fact a shell script that prepends /usr/lib64 to LD_LIBRARY_PATH before calling the true binary sigil executable.
Apparently it does that to help sigil in finding QT libraries, but as this path also happens to contain the mesa libGL, this overrides ld.so.cache. :-(

As a workaround I have manually adapted the script to include the nvidia libGL.
Another workaround would be to just cal the binary, but I have no idea if that would be a general solution. It works with me.

Some 'real solutions' would include moving the mesa liBGL into its own directory and to create a symlink in /usr/lib64, but that would have quite some impact on e.g. eselect opengl.

I've created bug https://bugs.gentoo.org/show_bug.cgi?id=701118.
Top
Post Reply

2 posts • Page 1 of 1

Return to “Other Things Gentoo”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy