我的环境是:Windows 7 64位+ Qt 4.8.1+ Qt Creator 2.4.1,
以前一个项目用的是QT4+thrift。
thrift我是以头文件的形式直接加载进来的。
我把以前的项目打开进行编译的时候,重复报错如下:
D:\Qt\qtcreator-2.4.1\rptedit-build-desktop-Qt_4_8_1__4_8_1____\..\rptedit\ReportGui\idlprocess\reportCell_types.h:10: 错误:Thrift.h: No such file or directory
D:\Qt\qtcreator-2.4.1\rptedit-build-desktop-Qt_4_8_1__4_8_1____\..\rptedit\ReportGui\idlprocess\reportCell_types.h:11: 错误:TApplicationException.h: No such file or directory
D:\Qt\qtcreator-2.4.1\rptedit-build-desktop-Qt_4_8_1__4_8_1____\..\rptedit\ReportGui\idlprocess\reportCell_types.h:12: 错误:protocol/TProtocol.h: No such file or directory
D:\Qt\qtcreator-2.4.1\rptedit-build-desktop-Qt_4_8_1__4_8_1____\..\rptedit\ReportGui\idlprocess\reportCell_types.h:13: 错误:transport/TTransport.h: No such file or directory
D:\Qt\qtcreator-2.4.1\rptedit-build-desktop-Qt_4_8_1__4_8_1____\..\rptedit\ReportGui\spreadsheet.h:23: 错误:protocol/TBinaryProtocol.h: No such file or directory
D:\Qt\qtcreator-2.4.1\rptedit-build-desktop-Qt_4_8_1__4_8_1____\..\rptedit\ReportGui\spreadsheet.h:24: 错误:protocol/TDebugProtocol.h: No such file or directory
。。。。。
实际上这些thrift文件我都已经加载进来了
不知道有没有哪位大神用过这样的框架,请指教????
因为害怕路径加载错误,我在.pri文件里面把整个库文件加载进来了。INCLUDEPATH += D:\Qt\thrift\
报错信息又换成:
D:\Qt\qtcreator-2.4.1\rptedit-build-desktop-Qt_4_8_1__4_8_1____\Makefile.Debug:523: 警告verriding commands for target `debug/reportTreeNode_types.o'
D:\Qt\qtcreator-2.4.1\rptedit-build-desktop-Qt_4_8_1__4_8_1____\Makefile.Debug:466: 警告:ignoring old commands for target `debug/reportTreeNode_types.o'
D:\Qt\qtcreator-2.4.1\rptedit-build-desktop-Qt_4_8_1__4_8_1____\Makefile.Debug:527: 警告verriding commands for target `debug/reportTreeNode_constants.o'
D:\Qt\qtcreator-2.4.1\rptedit-build-desktop-Qt_4_8_1__4_8_1____\Makefile.Debug:470: 警告:ignoring old commands for target `debug/reportTreeNode_constants.o'
。。。。。
D:\Qt\qtcreator-2.4.1\rptedit-build-desktop-Qt_4_8_1__4_8_1____\..\..\thrift\Thrift.h:24: 错误:thrift/windows/config.h: No such file or directory
D:\Qt\qtcreator-2.4.1\rptedit-build-desktop-Qt_4_8_1__4_8_1____\..\..\thrift\Thrift.h:48: 错误:boost/utility/enable_if.hpp: No such file or directory
D:\Qt\qtcreator-2.4.1\rptedit-build-desktop-Qt_4_8_1__4_8_1____\..\..\thrift\Thrift.h:49: 错误:boost/type_traits/is_convertible.hpp: No such file or directory
D:\Qt\qtcreator-2.4.1\rptedit-build-desktop-Qt_4_8_1__4_8_1____\..\..\thrift\ThriftObject.h:23: 错误:thrift/Thrift.h: No such file or directory
。。。实际上thrift/windows/config.h,Thrift.h等这些是这thrift文件夹下包含的。
boost/type_traits/is_convertible.hpp,boost/utility/enable_if.hpp这种文件确实没有看到。