Error when trying to run project in Qt Creator
-
Hi everyone!
I'm new to Qt and I still have some troubles regarding starting my project.
I installed the Qt Creator version 6.7.3 on my VM Mint21_3 and get the error:
symbol lookup error: /usr/lib/x86_64-linux-gnu/libQt6DBus.so.6: undefined symbol: _ZN9QtPrivate23CompatPropertySafePointC1EP14QBindingStatusP20QUntypedPropertyData, version Qt_6
I tried several things, like setting the path to the existing library manually with
LD_LIBRARY_PATH=... and made sure my executable actually uses the problematic library with ldd /path/to/executable, but to no avail...Do some of you happened to come across this problem and maybe have a solution for my predicament?
Thank you very much :)
-
-
How have you installed Qt and Qt Creator?
The preferred way is to use Qt installer, not OS packages. I think this might be your problem, that your project is expecting different Qt libraries than those found on the system.
-
I did install Qt via the installer (https://www.qt.io/download-qt-installer-oss?hsCtaTracking=99d9dd4f-5681-48d2-b096-470725510d34|074ddad0-fdef-4e53-8aa8-5e8a876d6ab4).
There were also several missing packages which I installed with apt so I could build anything.
This symbol lookup error occurs when trying to run the project.Another thing I tried was to add the problematic library into the .pro file, but that did not help either.
Could there be a faulty/unfinished installation at play? -
-