简体   繁体   English

为Qt构建PostgreSQL驱动程序

[英]Building PostgreSQL driver for Qt

I trying to build psql driver but have some unexpected messages. 我试图构建psql驱动程序,但有一些意外消息。

maxim@maxim-VirtualBox:~/Downloads/distrib/qt-everywhere-opensource-src-5.2.1/qtbase/src/plugins/sqldrivers/psql$ qmake psql.pro maxim @ maxim-VirtualBox:〜/下载/distrib/qt-everywhere-opensource-src-5.2.1/qtbase/src/plugins/sqldrivers/psql$ qmake psql.pro

Cannot read /home/maxim/Downloads/qt-everywhere-opensource-src-5.2.1/qtbase/mkspecs/modules-inst/qt_lib_bootstrap_private.pri: No such file or directory 无法读取/home/maxim/Downloads/qt-everywhere-opensource-src-5.2.1/qtbase/mkspecs/modules-inst/qt_lib_bootstrap_private.pri:没有这样的文件或目录

... ...

Cannot read /home/maxim/Downloads/qt-everywhere-opensource-src-5.2.1/qtbase/mkspecs/modules-inst/qt_lib_xml_private.pri: No such file or directory 无法读取/home/maxim/Downloads/qt-everywhere-opensource-src-5.2.1/qtbase/mkspecs/modules-inst/qt_lib_xml_private.pri:没有这样的文件或目录

But all of these files exist. 但是所有这些文件都存在。 What is the problem? 问题是什么?

The problem seems to be that you have "modules-inst" as the subfolder name, whereas it is only "modules" without the "-inst" suffix in reality. 问题似乎是您将“ modules-inst”作为子文件夹名称,而实际上只有“ modules”而没有“ -inst”后缀。

See how it works fine on my end: 看看它如何在我的一端正常工作:

lpapp ~/Downloads/qt-everywhere-opensource-src-5.2.1/qtbase/src/plugins/sqldrivers/psql $ qmake psql.pro lpapp〜/下载/qt-everywhere-opensource-src-5.2.1/qtbase/src/plugins/sqldrivers/psql $ qmake psql.pro

lpapp ~/Downloads/qt-everywhere-opensource-src-5.2.1/qtbase/src/plugins/sqldrivers/psql $ lpapp〜/下载/qt-everywhere-opensource-src-5.2.1/qtbase/src/plugins/sqldrivers/psql $

I found a problem. 我发现了一个问题。 After install qt-libraries I created new folder 'distrib' and move sources in there. 安装qt-libraries之后,我创建了新文件夹'distrib'并将源移动到其中。 That's why I got this problem. 这就是为什么我遇到这个问题。 I should have checked the existence of the directory by cd command. 我应该已经用cd命令检查了目录的存在。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM