ubuntu QT报错:Cannot mix incompatible Qt library (version 0x40806) with this library (version 0x40801)
来源:互联网 发布:网络团购流程 编辑:程序博客网 时间:2024/05/16 13:41
最近在学习QT编程,入门级别的菜鸟一只,然后遇到了各种问题,从安装到运行(各种!),这里做个总结。
今天,记载的是在qt creator下运行加载声音的工程时报错:Cannot mix incompatible Qt library (version 0x40806) with this library (version 0x40801)
相信很多朋友也遇到过这个问题,是说库文件不匹配,我安装的是qt creator-everywhere-4-8-1的版本,由于时在ubuntu 14.04上安装的qt creator,默认是基于QT5的,所以打开qt creator会看到很多kit,不知道是不是这个原因导致的版本不兼容。总之,在网上找了各种解决办法(关于这个的解决办法真心不多),最后终于摸索出了正确的解决办法,这里分享给大家!
1.先进入qt creator的安装目录,并进入lib文件夹:
# cd /usr/local/Trolltech/Qt-4.8.1/lib
这是我的目录,大家填上自己对应的目录即可。
2.创建命名为qt的目录文件:
# mkdir
qt
3.把目录下的Qt相关的动态库删除:
# mv
*Qt* qt
现在再运行下你的程序,是不是就ok啦!
0 0
- ubuntu QT报错:Cannot mix incompatible Qt library (version 0x40806) with this library (version 0x40801)
- Cannot mix incompatible Qt library (version 0x40805) with this library (version 0x40801)
- Cannot mix incompatible Qt library (version 0x40806) with this library (version 0x40807)
- [Genymotion] [Fatal] Cannot mix incompatible Qt library (version 0x40806) with this library (version
- Cannot mix incompatible Qt library (version ) with this library (version )
- 错误:Cannot mix incompatible Qt library wiht this library
- cudnn报错Loaded runtime CuDNN library: 5005 (compatibility version 5000) but source was compiled with
- 解决gradle升级报错 This version of Android Studio is incompatible with the Gradle Plugin used
- Android Studio报错:This version of Android Studio is incompatible with the Gradle Plugin used处理
- incorrect MySQL client library version! This gem was compiled for 6.0.0 but the client library is 5.
- This program requires version 3.4.0 of the Protocol Buffer runtime library
- Android Studio编译报错:sdk:minSdkVersion 1 cannot be smaller than version 7 declared in library
- 【Android】Eclipse报This version of the rendering library is more recent than your version of ADT ...
- ORA-00331: log version 11.2.0.0.0 incompatible with ORACLE version 10.2.0.3.0
- Android Studio 更新报错:This version of Android studio is incompatible withe gradle plugin used.
- This version of android studio is incompatible with the gradle version used.Try disabling the instan
- This version of android studio is incompatible with the gradle version used.
- This version of android studio is incompatible with the gradle version used.
- Unity3D坐标
- MFCMainFrm.cpp中Include myView.h的方法
- Discuz! 的编码规范
- 手游录像分享传播实战攻略——《钢琴大师》
- 解决unity3d 4.5 编译ios8 横屏问题
- ubuntu QT报错:Cannot mix incompatible Qt library (version 0x40806) with this library (version 0x40801)
- 不怕不知道,就怕不知道——js转义问题
- HR告诉你10种面试被拒的行为
- java学习总结
- OGG_relicat进程丢数据 handlecolisions个人想法
- C#中SelectNodes找不到节点
- 使jpg图片能够透明的一种方法
- 服务器上的文件无法复制到本地,本地也不能上传到服务器
- iOS- CALayer之position、anchorPoint