使用 Qt4 和 MySQL 驱动插件创建 make

发布于 2024-09-10 02:51:59 字数 1386 浏览 1 评论 0原文

普通安装 QT 没有问题,但是当你必须使用 MySQL 驱动插件重新编译 QT 时呢?令人困惑。当我运行configure时,Qt注册了我的MySQL驱动程序,但是当我尝试运行mingw32-make时,这个令人厌恶的东西出现在我的命令提示符上:

g++.exe: ....corelibcodecsqisciicodec.cpp: No such file or directory
g++.exe: no input files
mingw32-make[2]: *** [tmp/obj/release_shared/qisciicodec.o] Error 1
mingw32-make[2]: Leaving directory 'C:/Qt/2010.04/qt/src/tools/bootstrap'
mingw32-make[1]: *** [release Error 2]
mingw32-make[1]: Leaving directory 'C:/Qt/2010.04/qt/src/tools/bootstrap'
mingw32-make: *** [sub-tools-bootstrap-make_default-ordered] Error 2

这是我的规格:

  • Windows 7 Nokia's Open Source QT
  • Qt SDK for Windows (C: \Qt\2010.04\qt)
  • Linux MinGW Version 5.1.6 (C\Linux\MinGW)
  • MySQL5 with C++ files (C:\MySQL5)

和我的环境变量:

QMAKESPEC    win32-g++
QTDIR        C:\Qt\2010.04\qt
Path         C:\Linux\MinGW\bin;%C:\Linux\Cygwin\bin;C:\MySQL5\bin 

这些站点每个都有自己的方法来执行此操作。我尝试跟随他们,但失败了
http://www.qtcentre.org/wiki/index.php?title= Building_the_QMYSQL_plugin_on_Windows_using_mingw
http://jeethurao.com/blog/?p=18

帮助我允许我使用 MySQL 驱动程序插件。

感谢您抽出时间。

Installing QT plain is no problem, but when you've got to recompile QT with a MySQL driver plugin? Confusing. And when I do run configure, Qt registers my MySQL driver, but when I attempt to run mingw32-make, this abomination shows up on my command prompt:

g++.exe: ....corelibcodecsqisciicodec.cpp: No such file or directory
g++.exe: no input files
mingw32-make[2]: *** [tmp/obj/release_shared/qisciicodec.o] Error 1
mingw32-make[2]: Leaving directory 'C:/Qt/2010.04/qt/src/tools/bootstrap'
mingw32-make[1]: *** [release Error 2]
mingw32-make[1]: Leaving directory 'C:/Qt/2010.04/qt/src/tools/bootstrap'
mingw32-make: *** [sub-tools-bootstrap-make_default-ordered] Error 2

Here are my specs:

  • Windows 7 Nokia's Open Source QT
  • Qt SDK for Windows (C:\Qt\2010.04\qt)
  • Linux MinGW Version 5.1.6 (C\Linux\MinGW)
  • MySQL5 with C++ files (C:\MySQL5)

And my environmental variables:

QMAKESPEC    win32-g++
QTDIR        C:\Qt\2010.04\qt
Path         C:\Linux\MinGW\bin;%C:\Linux\Cygwin\bin;C:\MySQL5\bin 

These sites each have their own method of doing this. I tried following them, but failed
http://www.qtcentre.org/wiki/index.php?title=Building_the_QMYSQL_plugin_on_Windows_using_mingw
http://jeethurao.com/blog/?p=18.

Assist me in allowing me to use the MySQL driver plugin.

Thanks for your time.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

深海蓝天 2024-09-17 02:51:59

我刚刚安装了 PyQT 驱动程序 @ http://www.riverbankcomputing.co.uk /software/pyqt/download

该可执行文件具有开箱即用的 MySQL 支持。如果 mysql 不起作用,则说明您的应用程序有问题。

"问题是您必须使用 addLibraryPath 方法或
在第一次调用加载数据库之前创建一个 QCoreApplication 实例”

I just ended up installing the PyQT driver @ http://www.riverbankcomputing.co.uk/software/pyqt/download

This executable has MySQL support out of the box. If mysql does not work, your application is the problem.

"The issue is that you either have to use the addLibraryPath method or
create a QCoreApplication instance before your first call to loading a database"

聊慰 2024-09-17 02:51:59

我自己从来没有编译过那个特定的东西,但是既然你说你之前已经编译过并且正在重新配置并尝试重新编译它,那么你是否做了“make clean”?

从表面上看,您可能缺少路径或文件,但首先要清理它,以确保您不只是让旧的对象文件搞砸了工作。

I've never compiled that particular thing myself, but since you say you've compiled before and are re-configuring and attempting to re-compile it, have you done a "make clean" ?

From the looks of it you might be missing a path or missing a file, but first thing clean it to ensure you don't just have old object files gumming up the works.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文