Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bX6jQ-00026G-E5 for pgadmin-hackers@arkaria.postgresql.org; Tue, 09 Aug 2016 13:06:08 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bX6jP-0005lS-Sb for pgadmin-hackers@arkaria.postgresql.org; Tue, 09 Aug 2016 13:06:07 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bX6jC-0005XJ-PO for pgadmin-hackers@postgresql.org; Tue, 09 Aug 2016 13:05:54 +0000 Received: from mail-yb0-x22f.google.com ([2607:f8b0:4002:c09::22f]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1bX6j5-0005La-3u for pgadmin-hackers@postgresql.org; Tue, 09 Aug 2016 13:05:54 +0000 Received: by mail-yb0-x22f.google.com with SMTP id g133so3548232ybf.2 for ; Tue, 09 Aug 2016 06:05:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=enterprisedb-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=JJQMBrIPN2vnQOe84y3I1iedlKAIvNxmliyA9LmSMr8=; b=jDNL+X4XvqINsVlq02nHEcF+mFpH9mLDoxa/mG4jMGYQH5EZdR7QtfIo2CtnePoLA3 9K+iFk8cio9x7NxAKe2Eptb2s7Dfrkz0ghMcp+Q0lh4km7B6hHlvOwoLAEcbA0DyvXAc 0+0WWgWg6n4LQyULoH6iBkhn0G0j5z/bP6cON468giidgvWRZQw1zryfa5awYOdIbwcA xxT0U9wX8lyppWamqh2O0Yml4LI4aYLTuc9HmEpmYmbq+yaZhEhhPRswxCA5AfEk/y29 o1WUbxiTebi1LhLvhVIbYu0AvErlyRlAXX9/EI1QiMqOa4uXkw+ThIVcCoIFrH40nM1B XY5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=JJQMBrIPN2vnQOe84y3I1iedlKAIvNxmliyA9LmSMr8=; b=ao8MdTb5G2HmWBOrCCARzjbHJn6JPgbZO6QQ+Rj7lMo5Wqc3fWutLOFvsZI57CA+nE BWvt6SwpiFg/0YlOvX6TGv3LtAr2Xv/CtFm3wXCJjYx/KIOtfP0fKVk8b0D69DaA3yyK fUg2joOOcS2ExEO9nJ332FX5iPW5xR0bOhjhb29d7Wra3413hLnfDvNKDDuRGU7FcaKz psY3FaaK8yFe8KJ+b/UY05YNJw6tqcZZV2k9nj/oc3L/aA0Eel2eTWBaeC6cv+8zrRRi cesN4Vw81MMzZ7GxRu0EFgnI2qF3yZV2qoSId65xSrX1YwTl9IcVSc+MZjhUqW1PaY4k gzMg== X-Gm-Message-State: AEkoouuTPz1O4BsVnbfI1FLOl1p9lDf3J9gFmwJdLUZWOjzSJb+4w/VpyudDNXMHfvhWbS/mM4MDj8neFvgXCPqH X-Received: by 10.37.43.129 with SMTP id r123mr67876911ybr.51.1470747945224; Tue, 09 Aug 2016 06:05:45 -0700 (PDT) MIME-Version: 1.0 Received: by 10.37.163.106 with HTTP; Tue, 9 Aug 2016 06:05:44 -0700 (PDT) In-Reply-To: References: From: Neel Patel Date: Tue, 9 Aug 2016 18:35:44 +0530 Message-ID: Subject: Re: pgAdmin 4 as Web application To: Albe Laurenz Cc: "pgadmin-hackers@postgresql.org" Content-Type: multipart/alternative; boundary=94eb2c135984d487310539a330a3 X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgadmin-hackers Precedence: bulk Sender: pgadmin-hackers-owner@postgresql.org --94eb2c135984d487310539a330a3 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi, We already have condition for QUrlQuery class as below. It will be used only if Qt version is >=3D 5.0. #if QT_VERSION >=3D 0x050000 // Extract filename and query from encoded URL QUrlQuery query_data(reply->url()); QString file_name =3D query_data.queryItemValue("filename"); QString query =3D query_data.queryItemValue("query"); #else QUrl url(reply->url()); QString file_name =3D url.queryItemValue("filename"); QString query =3D url.queryItemValue("query"); #endif In your case, it may possible that during qmake - Qt version is detected as 5 but you are compiling against Qt 4 so application is not able to find the QUrlQuery class. Can you please share console log and Makefile when you run the qmake command with project file ? Thanks, Neel Patel On Tue, Aug 9, 2016 at 6:09 PM, Albe Laurenz wrote: > Neel Patel wrote: > >> WebViewWindow.h:20:20: error: QWebView: No such file or directory > > > From the logs, it looks like - Qt webkit component is missing in Qt4 > installation. > > Are you building Qt from source, If yes then there will be option in > configure script to build Qt4 > > with webkit. > > If you are not using source code, try installing webkit with yum (e.g. > yum install libqt4-webkit). > > I found an appropriate RPM somewhere, now I have a different problem. > > I am building with Qt 4.6.2 from RHEL 6, which should be OK according to > the README, > but I am failing with > > g++ -c -m64 -pipe -I/usr/include/python2.6 -I/usr/include/python2.6 -O2 -= g > -pipe -Wall -Wp,-D_FORTIFY_SOURCE=3D2 -fstack-protector > --param=3Dssp-buffer-size=3D4 -m64 -mtune=3Dgeneric -Wall -W -D_REENTRANT > -DPYTHON2 -DQT_NO_DEBUG -DQT_WEBKIT_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB > -DQT_CORE_LIB -I/usr/lib64/qt4/mkspecs/linux-g++-64 -I. > -I/usr/include/QtCore -I/usr/include/QtNetwork -I/usr/include/QtGui > -I/usr/include/QtWebKit -I/usr/include -I. -I. -o BrowserWindow.o > BrowserWindow.cpp > BrowserWindow.cpp: In member function =E2=80=98void BrowserWindow:: > unsupportedContent(QNetworkReply*)=E2=80=99: > BrowserWindow.cpp:446: error: =E2=80=98QUrlQuery=E2=80=99 was not declare= d in this scope > BrowserWindow.cpp:446: error: expected =E2=80=98;=E2=80=99 before =E2=80= =98query_data=E2=80=99 > BrowserWindow.cpp:447: error: =E2=80=98query_data=E2=80=99 was not declar= ed in this scope > BrowserWindow.cpp: In member function =E2=80=98bool BrowserWindow::checkC= lientDownload(const > QUrl&, const QNetworkRequest&)=E2=80=99: > BrowserWindow.cpp:681: error: =E2=80=98QUrlQuery=E2=80=99 was not declare= d in this scope > BrowserWindow.cpp:681: error: expected =E2=80=98;=E2=80=99 before =E2=80= =98downloadData=E2=80=99 > BrowserWindow.cpp:683: error: =E2=80=98downloadData=E2=80=99 was not decl= ared in this scope > make: *** [BrowserWindow.o] Error 1 > > The code uses QUrlQuery, but according to http://doc.qt.io/qt-5/ > qurlquery.html > this class has existed only since 5.0. > > Seems to be either a documentation bug (Qt 5 required) or a code bug. > Can you help? > > Yours, > Laurenz Albe > --94eb2c135984d487310539a330a3 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi,

We already have condition for QUrlQ= uery class as below. It will be used only if Qt version is >=3D 5.0.

#if QT_VERSION >=3D 0x050000
=C2=A0= =C2=A0 // Extract filename and query from encoded URL
=C2=A0 =C2= =A0 QUrlQuery query_data(reply->url());
=C2=A0 =C2=A0 QString = file_name =3D query_data.queryItemValue("filename");
= =C2=A0 =C2=A0 QString query =3D query_data.queryItemValue("query"= );
#else
=C2=A0 =C2=A0 QUrl url(reply->url());
=
=C2=A0 =C2=A0 QString file_name =3D url.queryItemValue("filename&= quot;);
=C2=A0 =C2=A0 QString query =3D url.queryItemValue("= query");
#endif


In your case, it may possible that during qmake - Qt version is detected = as 5 but you are compiling against Qt 4 so application is not able to find = the QUrlQuery class.

Can you please share console = log and Makefile when you run the qmake command with project file ?

Thanks,
Neel Patel

On Tue, Aug 9, 2016 at 6:09 PM, Al= be Laurenz <laurenz.albe@wien.gv.at> wrote:
Neel Patel wrote:
>>=C2=A0 =C2=A0 =C2=A0 WebViewWindow.h:20:20: error: QWebView: No suc= h file or directory

> From the logs, it looks like - Qt webkit compo= nent is missing in Qt4 installation.
> Are you building Qt from source, If yes then there will be option in c= onfigure script to build Qt4
> with webkit.
> If you are not using source code, try installing webkit with yum (e.g.= yum install libqt4-webkit).

I found an appropriate RPM somewhere, now I have a different problem= .

I am building with Qt 4.6.2 from RHEL 6, which should be OK according to th= e README,
but I am failing with

g++ -c -m64 -pipe -I/usr/include/python2.6 -I/usr/include/python2.6 -O2 -g = -pipe -Wall -Wp,-D_FORTIFY_SOURCE=3D2 -fstack-protector --param=3Dssp-buffe= r-size=3D4 -m64 -mtune=3Dgeneric -Wall -W -D_REENTRANT -DPYTHON2 -DQT_NO_DE= BUG -DQT_WEBKIT_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I/usr/lib6= 4/qt4/mkspecs/linux-g++-64 -I. -I/usr/include/QtCore -I/usr/include/Qt= Network -I/usr/include/QtGui -I/usr/include/QtWebKit -I/usr/include -I. -I.= -o BrowserWindow.o BrowserWindow.cpp
BrowserWindow.cpp: In member function =E2=80=98void BrowserWindow::uns= upportedContent(QNetworkReply*)=E2=80=99:
BrowserWindow.cpp:446: error: =E2=80=98QUrlQuery=E2=80=99 was not declared = in this scope
BrowserWindow.cpp:446: error: expected =E2=80=98;=E2=80=99 before =E2=80=98= query_data=E2=80=99
BrowserWindow.cpp:447: error: =E2=80=98query_data=E2=80=99 was not declared= in this scope
BrowserWindow.cpp: In member function =E2=80=98bool BrowserWindow::che= ckClientDownload(const QUrl&, const QNetworkRequest&)=E2=80=99:
BrowserWindow.cpp:681: error: =E2=80=98QUrlQuery=E2=80=99 was not declared = in this scope
BrowserWindow.cpp:681: error: expected =E2=80=98;=E2=80=99 before =E2=80=98= downloadData=E2=80=99
BrowserWindow.cpp:683: error: =E2=80=98downloadData=E2=80=99 was not declar= ed in this scope
make: *** [BrowserWindow.o] Error 1

The code uses QUrlQuery, but according to http://doc.qt.io/qt-5/= qurlquery.html
this class has existed only since 5.0.

Seems to be either a documentation bug (Qt 5 required) or a code bug.
Can you help?

Yours,
Laurenz Albe

--94eb2c135984d487310539a330a3--