Add a README section for xcb plugin problem

Linux users may encounter a problem of missing
xcb plugin while using Qt6 built from sources.
Missing plugin prevents QtCreator from starting
with default settings. The new section provides
solution gathered from Qt forum

Change-Id: I2917965c99fa6a05feac0d1506c7e60ff63796b1
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
Sergey Silin
2024-02-13 02:49:42 +03:00
parent 3ca0deef53
commit 340f1d7b42

View File

@@ -107,6 +107,33 @@ get LLVM.
cmake -DCMAKE_BUILD_TYPE=Debug -G Ninja "-DCMAKE_PREFIX_PATH=/path/to/Qt;/path/to/llvm" /path/to/qtcreator_sources cmake -DCMAKE_BUILD_TYPE=Debug -G Ninja "-DCMAKE_PREFIX_PATH=/path/to/Qt;/path/to/llvm" /path/to/qtcreator_sources
cmake --build . cmake --build .
#### Troubleshooting: libxcb plugin not found while using Qt libraries built locally from source
Ensure all prerequisites for building Qt are installed:
https://doc.qt.io/qt-6/linux.html
https://doc.qt.io/qt-6/linux-requirements.html
If they were installed before building Qt and xcb plugin is missing try reinstall them with
```sh
sudo apt-get --reinstall <package_name>
```
Reset building configuration for Qt libraries at '/path/to/qt_sources'
```sh
cmake --build . --target=clean
```
and remove CMakeCache.txt
```sh
rm CMakeCache.txt
```
Try building Qt source again.
### Windows ### Windows
These instructions assume that Ninja is installed and in the `PATH`, Qt Creator These instructions assume that Ninja is installed and in the `PATH`, Qt Creator