我实际上在一个使用 Qt 的项目中,我需要使用 ORM。我找到了 QxORM。在开始使用这个 ORM 的过程中,我需要能够编译和执行它提供的 qxBlog 示例。我已彻底遵循
- QxORM安装教程:http ://www.qxorm.com/qxorm_en/tutorial_3.html
- qxBlog 示例测试教程http://www.qxorm.com/qxorm_en/tutorial_1.html
但是当我用 QtCreator 执行项目(qxBlog)时,我得到了这个错误
C:\Users\HP\dev\libraries\qxorm\QxOrm_1.4.2\test\qxBlog\include\precompiled.h:4: erreur : C1083: Cannot open include file: 'QxOrm.h': No such file or directory
在此错误之后,我编译了 QxORM 库及其所有依赖项以获取qxormd.dll并将其放入 bin 或 lib 文件夹(我创建)但它不起作用。
谁能帮我解决这个问题?
提前致谢!
我已将precompiled.h中的“#include”行更改为“#include <../../include/QxOrm.h>”(QxOrm.h 文件的相对路径),但由于包含在该文件 (QxOrm.h) 中。
C:\Users\HP\dev\libraries\qxorm\QxOrm_1.4.2\include\QxOrm.h:58: erreur : C1083: Cannot open include file: 'QxPrecompiled.h': No such file or directory
我不想将 QxORM 库与项目放在同一个文件夹中。如何在不将整个库与我的项目放在同一文件夹中的情况下成功包含Qxorm.h及其所有依赖项?
提前致谢 !
谢谢你的回答。我在我的 .pro 文件中添加了一个包含路径。我没有收到这样的先前错误。不过,我收到此错误
"LNK1104: cannot open file 'QxOrmd.lib'"
谁能帮我这个?
提前致谢。