您的位置:首页 > 编程语言 > Qt开发

qt从5.8.0降到5.5.1或者5.4.2-----给自己mark一下

2017-06-08 09:08 309 查看
1、floor的问题

解决方案:要添加#include <qmath.h>

2、qringbuffer.h里面的remove_pointer的问题:要添加#include <type_traits>,但是报错#error  This
file requires compiler and library support for the ISO C++ 2011 standard. This support is currently experimental, and must be enabled with the -std=c++11 or -std=gnu++11 compiler options.    参考:http://www.51hei.com/bbs/dpj-26714-1.html

解决方案:在工程文件.pro中添加:QMAKE_CXXFLAGS+=-std=c++0x或者QMAKE_CXXFLAGS += -std=gnu++11

3、因为5.8.0的mingw版本中没有webengine,不能实现地图调用qt的功能,因此想到要换5.8.0的msvc2015版本,但是这个版本的编译器不能编译ffmpeg的dll文件,所以想到降低版本到mingw中有webkit的qt,于是就换到了5.5.1和5.4.2.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: