Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. [Solved] Undefined references after compile
Forum Updated to NodeBB v4.3 + New Features

[Solved] Undefined references after compile

Scheduled Pinned Locked Moved Installation and Deployment
6 Posts 2 Posters 5.2k 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.
  • A Offline
    A Offline
    arizonamyth
    wrote on 6 Sept 2013, 04:02 last edited by
    #1

    I compiled 4.8.5 and I didn't get any errors yet when I try to compile my program I get these undefined reference errors. Where did I go wrong on my compile? Did these get left out during compile? I don't know how.

    @/usr/local/Trolltech/Qt-4.8.5/lib/libQtDBus.so.4: undefined reference to QMutex::unlockInternal()' ../../libs/libmythui/libmythui-0.27.so: undefined reference to QImage::fill(Qt::GlobalColor)'
    /usr/local/Trolltech/Qt-4.8.5/lib/libQtDBus.so.4: undefined reference to QMutex::lockInternal()' /usr/local/Trolltech/Qt-4.8.5/lib/libQtWebKit.so.4: undefined reference to QPainter::clipBoundingRect() const'
    ../../libs/libmyth/libmyth-0.27.so: undefined reference to QRadioButton::minimumSizeHint() const' /var/lib/mythtv/compile/myth27/mythtv/mythtv/external/nzmqt/src/libmythnzmqt.so: undefined reference to QCoreApplication::QCoreApplication(int&, char**, int)'@

    1 Reply Last reply
    0
    • L Offline
      L Offline
      leon.anavi
      wrote on 6 Sept 2013, 07:28 last edited by
      #2

      Seems like an issue with paths. Could you please provide more information about your environment and the pro file?

      http://anavi.org/

      1 Reply Last reply
      0
      • A Offline
        A Offline
        arizonamyth
        wrote on 6 Sept 2013, 15:34 last edited by
        #3

        Thanks for the help. I'm running 10.04 64 bit. I compiled 4.7 last night and it works without issue. I will try compiling 4.8.0 and see what happens as I just can't get 4.8.5 to work without the errors above. Maybe trying on 10.04 just won't work for 4.8 and above.

        1 Reply Last reply
        0
        • A Offline
          A Offline
          arizonamyth
          wrote on 6 Sept 2013, 22:59 last edited by
          #4

          I compiled 4.8.0 and I received the same error as 4.8.5. Either I'm missing something or it just won't work on 10.04. Maybe I'll need to upgrade to 12.04. It generates many pro files. Is there a specific one?

          1 Reply Last reply
          0
          • A Offline
            A Offline
            arizonamyth
            wrote on 7 Sept 2013, 19:03 last edited by
            #5

            -I think my cmake version is too old which is causing linking problems. I'm using 2.8.1 and from my research I need 2.8.3 or newer. I may try to compile a newer version of cmake and then try qt again.- I'm using make so this statement won't help

            1 Reply Last reply
            0
            • A Offline
              A Offline
              arizonamyth
              wrote on 27 Sept 2013, 22:19 last edited by
              #6

              I thought you could have two versions of Qt on the same OS. Unfortunately, this wasn't the case. I removed the previous version packages and then recompiled and then installed. Now my other program compiles without undefined references.

              1 Reply Last reply
              0

              • Login

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