Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. undefined reference appears when I install libQGLViewer-2.6.4 from source on ubuntu14.04
QtWS25 Last Chance

undefined reference appears when I install libQGLViewer-2.6.4 from source on ubuntu14.04

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 3 Posters 696 Views
  • 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.
  • D Offline
    D Offline
    DreamAllDay
    wrote on last edited by
    #1

    Hello, everyone! I am trying to install libQGLViewer-2.6.4 from source. The link is from here [http://libqglviewer.com/installUnix.html] and I follow the instructions. Then I build g2o. When I make in the build directory, /usr/local/lib/libQGLViewer-qt5.so shows many errors. All are saying undefined reference.
    0_1491895118109_2017-04-11 15:18:11屏幕截图.png

    A 1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      You should give more details about what is happening.

      Also what version of Qt are you using ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1
      • D DreamAllDay

        Hello, everyone! I am trying to install libQGLViewer-2.6.4 from source. The link is from here [http://libqglviewer.com/installUnix.html] and I follow the instructions. Then I build g2o. When I make in the build directory, /usr/local/lib/libQGLViewer-qt5.so shows many errors. All are saying undefined reference.
        0_1491895118109_2017-04-11 15:18:11屏幕截图.png

        A Offline
        A Offline
        ambershark
        wrote on last edited by
        #3

        @DreamAllDay Can you show us the actual build output and errors? I'm sure we'll be able to figure it out but we need some real info to work on.

        In the meantime, undefined reference means that when linking to other objects (typically libraries) the link failed and therefore the application cannot find the function it is trying to call. Since that function is inside the library that didn't get linked.

        The usual culprit in your case in mixing incompatible libraries. Be it bit depth, platform, or just version. This is pretty common in linux since it tends to have multiple Qt versions at any given time, some could be 32 bit, other 64.. and some could even be cross compiled for ARM or something.

        Anyway, that may help you without posting your build log, if not post the log.

        My L-GPL'd C++ Logger github.com/ambershark-mike/sharklog

        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