Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Error when trying to run project in Qt Creator
Forum Updated to NodeBB v4.3 + New Features

Error when trying to run project in Qt Creator

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
4 Posts 2 Posters 462 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    Kopfer
    wrote on last edited by
    #1

    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 :)

    1 Reply Last reply
    0
    • K Offline
      K Offline
      Kopfer
      wrote on last edited by
      #4

      It appears Qt did not use the newest libraries installed in my /home/ directory, but used older versions in /usr/.
      I adjusted as such and added threw the old path out.
      I'm not quite there yet, but this problem should be solved.

      Thank you anyway! :)

      1 Reply Last reply
      2
      • sierdzioS Offline
        sierdzioS Offline
        sierdzio
        Moderators
        wrote on last edited by
        #2

        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.

        (Z(:^

        1 Reply Last reply
        2
        • K Offline
          K Offline
          Kopfer
          wrote on last edited by
          #3

          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?

          1 Reply Last reply
          0
          • K Offline
            K Offline
            Kopfer
            wrote on last edited by
            #4

            It appears Qt did not use the newest libraries installed in my /home/ directory, but used older versions in /usr/.
            I adjusted as such and added threw the old path out.
            I'm not quite there yet, but this problem should be solved.

            Thank you anyway! :)

            1 Reply Last reply
            2
            • K Kopfer has marked this topic as solved on

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved