Skip to content

Dev: Building Troubleshooting

Bennett Wendorf edited this page Jul 4, 2022 · 7 revisions

libGL error: failed to load driver: swrast

This is an error due to a missing driver that is required by newer versions of the libstdc++.so.6 file with version of gcc >= v11. If compiling the build on a distribution with an older version (e.x. Raspian Bullseye), either a newer version of gcc must be installed or the library must be included from elsewhere. The best fix I have found so far is to get the libstdc++.so.6 file from a distro that ships a newer version of gcc (i.e. Arch Linux ARM).

You may also need to recompile gcc from source. In that case, this guide looks like it does a pretty good job explaining the necessary steps, although it is not written for ARM. For that, this guide may provide some insight on the parameters necessary, although I have not tested it. On top of that, this question on StackOverflow might help with getting an alternative version of gcc situated on the system.

Issues installing dependencies with errors similar to:

  • ModuleNotFoundError: No module named 'pip._vendor.packaging'
    • Update pip in the virtual environment by first running pipenv shell, then python -m ensurepip --upgrade
    • Note: This can also cause errors similar to Warning: Your dependencies could not be resolved. You likely have a mismatch in your sub-dependencies.