[Interest] Error: /opt/qt-5.5.0/lib/libQt5*: undefined reference

Nilesh Kokane nilesh.kokane05 at gmail.com
Mon Mar 7 16:53:11 CET 2016


While building application against Qt-5.5.0 throws the following error:

$make
/opt/qt-5.5.0/lib/libQt5Widgets.so.5: undefined reference to
`QOpenGLExtensions::flushShared()'
/opt/qt-5.5.0/lib/libQt5Widgets.so.5: undefined reference to
`QFontDatabase::isPrivateFamily(QString const&) const'
[snip]

$make VERBOSE=1
/usr/bin/c++    -std=c++0x -fno-exceptions -Wall -Wextra -Wcast-align -
[..]
gnu/libKF5CoreAddons.so.5.19.0 /usr/lib/i386-linux-gnu/libQt5Gui.so.5.4.1
/usr/lib/i386-linux-gnu/libQt5Core.so.5.4.1
-Wl,-rpath,/home/nilesh/development/kdepimlibs/kdepimlibs/build/akonadi-mime/src:/usr/local/lib/i386-linux-gnu:/opt/kf5/lib/i386-linux-gnu:/opt/qt-5.5.0/lib
-Wl,-rpath-link,/usr/local/lib/i386-linux-gnu:/opt/kf5/lib/i386-linux-gnu:/opt/qt-5.5.0/lib


It tries to link to the system Qt-5.4.1. I tried setting CMAKE_PREFIX_PATH
but it didn't help.

When I run cmake it detects Qt 5.5.0 but throws warning as below:

 runtime library [libQt5Widgets.so.5] in /usr/lib/i386-linux-gnu may be
hidden by files in:/opt/qt-5.5.0/lib


Am I missing something?



                         Nilesh Kokane
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20160307/61f464d2/attachment.html>


More information about the Interest mailing list