undefined reference appears when I install libQGLViewer-2.6.4 from source on ubuntu14.04
-
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.
-
Hi and welcome to devnet,
You should give more details about what is happening.
Also what version of Qt are you using ?
-
@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.