简体   繁体   English

错误的 Qt 库链接

[英]Wrong Qt lib linked

On Ubuntu 18.04 I have multiple Qt versions installed.在 Ubuntu 18.04 上,我安装了多个 Qt 版本。

Default one is selected by QT_SELECT is Qt5.5.1. QT_SELECT 选择的默认一个是 Qt5.5.1。

I want to build my project with custom one Qt5.12.8 and do export QT_SELECT=qt5.12 .我想用自定义的 Qt5.12.8 构建我的项目并执行export QT_SELECT=qt5.12

But in the end I have binary which tells me that it still points to few default libs of Qt.但最后我有二进制文件告诉我它仍然指向 Qt 的几个默认库。

How could this happen?这怎么可能发生?

EDIT: I see that Qt5Svg lib is missing in my Qt 5.12 build, but Qt5OpenGL is present.编辑:我看到我的 Qt 5.12 版本中缺少 Qt5Svg 库,但存在 Qt5OpenGL。

ldd output: ldd output:

在此处输入图像描述

Problem was my project had in dependencies other Qt-based lib which was build with Qt5.5.问题是我的项目依赖于其他基于 Qt 的库,这些库是用 Qt5.5 构建的。 So in the end it forced this version of few Qt modules to be linked to main project.所以最后它迫使这个版本的几个 Qt 模块链接到主项目。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM