QT"重定位错误" /"没有可用的版本信息"运行时错误

时间:2017-08-04 08:46:26

标签: c++ linux qt debian

更新我的Debian 8.9软件包后,我无法运行我的QT应用程序。错误是:

./my_app: /usr/lib/x86_64-linux-gnu/libQt5Svg.so.5: no version information available (required by ./my_app)
./my_app: /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5: no version information available (required by ./my_app)
./my_app: /usr/lib/x86_64-linux-gnu/libQt5Qml.so.5: no version information available (required by ./my_app)
./my_app: /usr/lib/x86_64-linux-gnu/libQt5Quick.so.5: no version information available (required by ./my_app)
./my_app: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5: no version information available (required by ./my_app)
./my_app: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5: no version information available (required by ./my_app)
./my_app: /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5: no version information available (required by ./my_app)
./my_app: /usr/lib/x86_64-linux-gnu/libQt5Xml.so.5: no version information available (required by ./my_app)
./my_app: relocation error: ./my_app: symbol qt_version_tag, version Qt_5.6 not defined in file libQt5Core.so.5 with link time reference

我重新编译了我的应用程序,再次清除/安装了qt5以及SO上发现的其他几件事,但似乎没有任何效果。关于如何解决这个问题的任何想法?

1 个答案:

答案 0 :(得分:0)

好像有人在那里有类似的问题:https://github.com/notepadqq/notepadqq/issues/189

他通过检查qtchooser --print-env并设置LD_LIBRARY_PATH来修复它

(在Debian发布一些更新的同时,您的错误是否随着更新Debian而消失了?)