# Some wrong with qt5 and paraview I have when I use paraview

**URL:** https://discourse.paraview.org/t/some-wrong-with-qt5-and-paraview-i-have-when-i-use-paraview/15103
**Category:** ParaView Support
**Created:** [July 23, 2024, 5:20am UTC](https://discourse.paraview.org/t/some-wrong-with-qt5-and-paraview-i-have-when-i-use-paraview/15103 "2024-07-23T05:20:24Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Celiniapockey](https://discourse.paraview.org/user_avatar/discourse.paraview.org/celiniapockey/32/14890_2.png) [@Celiniapockey](https://discourse.paraview.org/u/Celiniapockey)
#### Post date: [July 23, 2024, 5:20am UTC](https://discourse.paraview.org/t/some-wrong-with-qt5-and-paraview-i-have-when-i-use-paraview/15103/1 "2024-07-23T05:20:24Z")

</div>

Hi everyone, the words on my shell is:

```auto
QFactoryLoader::QFactoryLoader() checking directory path "/home/yukino/software/paraview/bin/platforms" ...
Cannot load library /home/yukino/software/geant4/Qt5/5.14.2/gcc_64/plugins/platforms/libqxcb.so: (/home/yukino/software/geant4/Qt5/5.14.2/gcc_64/lib/libQt5XcbQpa.so.5: undefined symbol: _ZTI20QEventDispatcherGlib, version Qt_5_PRIVATE_API)
QLibraryPrivate::loadPlugin failed on "/home/yukino/software/geant4/Qt5/5.14.2/gcc_64/plugins/platforms/libqxcb.so" : "Cannot load library /home/yukino/software/geant4/Qt5/5.14.2/gcc_64/plugins/platforms/libqxcb.so: (/home/yukino/software/geant4/Qt5/5.14.2/gcc_64/lib/libQt5XcbQpa.so.5: undefined symbol: _ZTI20QEventDispatcherGlib, version Qt_5_PRIVATE_API)"
Cannot load library /home/yukino/software/paraview/plugins/platforms/libqxcb.so: (/home/yukino/software/geant4/Qt5/5.14.2/gcc_64/lib/libQt5XcbQpa.so.5: undefined symbol: _ZTI20QEventDispatcherGlib, version Qt_5_PRIVATE_API)
QLibraryPrivate::loadPlugin failed on "/home/yukino/software/paraview/plugins/platforms/libqxcb.so" : "Cannot load library /home/yukino/software/paraview/plugins/platforms/libqxcb.so: (/home/yukino/software/geant4/Qt5/5.14.2/gcc_64/lib/libQt5XcbQpa.so.5: undefined symbol: _ZTI20QEventDispatcherGlib, version Qt_5_PRIVATE_API)"
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "/home/yukino/software/geant4/Qt5/5.14.2/gcc_64/plugins/platforms" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

```

I have no idea with the bug.Thanks for the answer.

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.paraview.org/u/ben.boeckel)
#### Post date: [July 24, 2024, 12:34pm UTC](https://discourse.paraview.org/t/some-wrong-with-qt5-and-paraview-i-have-when-i-use-paraview/15103/2 "2024-07-24T12:34:36Z")

</div>

> [@Celiniapockey](#):
>
> `/home/yukino/software/paraview/plugins/platforms/libqxcb.so`

> [@Celiniapockey](#):
>
> `/home/yukino/software/geant4/Qt5/5.14.2/gcc_64/plugins/platforms`

You seem to have two Qt installations being searched. If you have `LD_LIBRARY_PATH` set in the environment, can you clear it before running ParaView?

---

<div class="post-metadata">

### Author: ![Celiniapockey](https://discourse.paraview.org/user_avatar/discourse.paraview.org/celiniapockey/32/14890_2.png) [@Celiniapockey](https://discourse.paraview.org/u/Celiniapockey)
#### Post date: [July 24, 2024, 12:52pm UTC](https://discourse.paraview.org/t/some-wrong-with-qt5-and-paraview-i-have-when-i-use-paraview/15103/3 "2024-07-24T12:52:12Z")

</div>

I have only one Qt installation and I set the LD\_LIBRARY\_PATH before running paraview.it’s “export LD\_LIBRARY\_PATH=$QTDIR/lib$LD\_LIBRARY\_PATH”, the QTDIR is correct.

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.paraview.org/u/ben.boeckel)
#### Post date: [July 24, 2024, 1:46pm UTC](https://discourse.paraview.org/t/some-wrong-with-qt5-and-paraview-i-have-when-i-use-paraview/15103/4 "2024-07-24T13:46:24Z")

</div>

ParaView’s official binaries have its own Qt. You cannot use another (older) Qt (we build against 5.15+).

---

<div class="post-metadata">

### Author: ![Celiniapockey](https://discourse.paraview.org/user_avatar/discourse.paraview.org/celiniapockey/32/14890_2.png) [@Celiniapockey](https://discourse.paraview.org/u/Celiniapockey)
#### Post date: [July 24, 2024, 2:06pm UTC](https://discourse.paraview.org/t/some-wrong-with-qt5-and-paraview-i-have-when-i-use-paraview/15103/5 "2024-07-24T14:06:07Z")

</div>

Oh, thanks.I take a mistake in this part.But a new question is that how can I use this qt in paraview and use another qt in geant4?

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.paraview.org/u/ben.boeckel)
#### Post date: [July 25, 2024, 1:54am UTC](https://discourse.paraview.org/t/some-wrong-with-qt5-and-paraview-i-have-when-i-use-paraview/15103/6 "2024-07-25T01:54:10Z")

</div>

Start them in different shells. Set `LD_LIBRARY_PATH` for geant4 and don’t for ParaView.
