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

来源:互联网 发布:网络运维 编辑:程序博客网 时间:2024/05/02 04:54

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.0mingw版本中没有webengine,不能实现地图调用qt的功能,因此想到要换5.8.0msvc2015版本,但是这个版本的编译器不能编译ffmpegdll文件,所以想到降低版本到mingw中有webkitqt,于是就换到了5.5.15.4.2.

原创粉丝点击