Cause: QT cannot find the dynamic link library of OpenGL. QT usually looks for dynamic link libraries in/usr/lib directory, but some Linux distributions will place OpenGL dynamic link libraries in other directories. For example, Ubuntu will be placed in/usr/lib/i386 Linux GNU/Mesa/. There are two solutions:
Method 1: directly copy the OpenGL dynamic link library file in/usr/lib/i386 Linux GNU/Mesa/directory to/usr/lib.
Note: the built-in OpenGL library in Linux will have the version number at the end, such as LIBGL.So.1, LIBGL.So.1.2. However, the file required by QT when linking does not have a version number, that is, libgl.so. Method 2: create a soft link for the OpenGL dynamic link library file in/usr/lib/i386 Linux GNU/Mesa/directory
ln -s /usr/lib/i386-linux-gnu/mesa/libGL.so.1 /usr/lib/libGL.so
Read More:
- QT error: – LGL not found [How to Solve]
- How to Solev PyEddyTracker geostrophic current calculation Error
- How to Solve QT and PCIe interactive loading setupapi.H error
- Ubutnu Qt Unable to start process Error: “make“ -f ‘ /usr/bin/ld: cannot find -lGL collect2: error: ld returned 1 exit sta
- [Solved] QT error: the packaged exe of Enigma virtual box reports an error cannot load library qt5core.dll
- [Solved] Qt Error: qt.network.ssl: QSslSocket::connectToHostEncrypted: TLS initialization failed
- How to Solve Nginx cross compilation Error
- How to Solve QT error: LNK1158: Cannot Run “rc.exe”
- How to Solve QT Error: The build directory needs to be at the same level as the source directory.
- How to Solve Fatal error stdatomic in C/C++ Compilation
- How to Solve Error: Cannot find the declaration of element ‘beans’.
- [Solved] Webpack compilation Error: Cannot find module’webpack-cli/bin/config-yargs’
- How to Solve Loadrunner Error: Failed to find .cfg file
- QT calls the API of ffmpeg error [How to Solve]
- How to Solve Error “Could not find com.android.tools.build:gradle:3.0.1”
- How to Solve Koa Error: Cannot find module ‘koa-router‘
- How to Solve “Status bar could not find cached time string image. Rendering in-process.” in Xcode
- How to Solve Error: IncompleteElementException: Could not find result map…
- How to Solve Error: Cannot find module ‘webpack/lib/RequestShortener’
- How to Fix HTTP Error 500: the default page enter their own routing can’t find a result