Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 2

Qt-interest Archive, May 2008
QtWebkit Compilation problem


Message 1 in thread

Hi Guys,Any help here will be truly appreciated. I am trying to integrate the QtWebkit to an application.When I try to compile my code with this line#include <QtWebKit/QtWebKit>or this one#include <QtWebKit/QWebView>this error is returned:
e:\qt\4.4.0\src\3rdparty\webkit\webkit\qt\api\qwebkitglobal.h(23) : fatal errorC1083: Cannot open include file: 'qglobal.h': No such file or directory
Any pointers what I am missing here?Thanks!
_________________________________________________________________
Get Free (PRODUCT) RED™  Emoticons, Winks and Display Pics.
http://joinred.spaces.live.com?ocid=TXT_HMTG_prodredemoticons_052008

Message 2 in thread

Hi,

> When I try to compile my code with this line

How are you trying to compile your code? Have you created a Visual Studio 
project? How?

Which exact compiler is this?

-- 
 [ signature omitted ] 

Message 3 in thread

Im Sorry,

I am using Cmake 2.6 under windows XP, and visual studio 2005.

Hope this info help.

Thanks

> From: dimitri@xxxxxxxxxxxxx
> Subject: Re: QtWebkit Compilation problem
> Date: Thu, 8 May 2008 10:01:38 +0200
> To: qt-interest@xxxxxxxxxxxxx
> 
> Hi,
> 
> > When I try to compile my code with this line
> 
> How are you trying to compile your code? Have you created a Visual Studio 
> project? How?
> 
> Which exact compiler is this?
> 
> -- 
> Dimitri
> 
> --
> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with "unsubscribe" in the subject or the body.
> List archive and information: http://lists.trolltech.com/qt-interest/
> 

_________________________________________________________________
Get Free (PRODUCT) RED™  Emoticons, Winks and Display Pics.
http://joinred.spaces.live.com?ocid=TXT_HMTG_prodredemoticons_052008

Message 4 in thread

Hi,

> I am using Cmake 2.6 under windows XP, and visual studio 2005.

It looks like the Makefile created by CMake lacks some Qt include paths. I'm 
afraid I don't have much experience using CMake with Qt.

Since this looks like more of a CMake issue than a Qt issue, you could try a 
CMake mailing list or forum. I've also found this page in Google:
	http://da-crystal.net/GCMS/blog/cmake-amp-qt4-modules/

As an alternative, it should work if you use qmake instead of CMake.

-- 
 [ signature omitted ] 

Message 5 in thread

Hi,

> When I try to compile my code with this line
> #include <QtWebKit/QtWebKit>

By the way, the "canonical" form is rather:
	#include <QtWebKit>
but both should work anyway.

-- 
 [ signature omitted ] 

Message 6 in thread

Does your CMakeLists.txt have at least the following:

# ---------- Load the Qt Library --------------------------------
# by default only QtCore and QtGui modules are enabled
# other modules must be enabled like this:
SET (QT_USE_QTWEBKIT TRUE)
IF (WIN32)
    SET (QT_USE_QTMAIN TRUE)
ENDIF (WIN32)

# this command finds Qt4 libraries and sets all required variables
# note that it's Qt4, not QT4 or qt4
FIND_PACKAGE( Qt4 REQUIRED )

# add some useful macros and variables
# (QT_USE_FILE is a variable defined by FIND_PACKAGE( Qt4 ) that
# contains a path to CMake script)
INCLUDE( ${QT_USE_FILE} )


Also, you will probably HAVE to use CMake 2.6 as CMake 2.4 does not 
have the newer Qt 4.4 libraries included.

Hope that helps.
Mike

On 2008-05-08 00:04:02 -0400, Christopher Jimenez 
<cjimenez16@xxxxxxxxxxx> said:

> 
> 
> Hi Guys,Any help here will be truly appreciated. I am trying to integrate t=
> he QtWebkit to an application.When I try to compile my code with this line#=
> include <QtWebKit/QtWebKit>or this one#include <QtWebKit/QWebView>this erro=
> r is returned:
> e:\qt\4.4.0\src\3rdparty\webkit\webkit\qt\api\qwebkitglobal.h(23) : fatal e=
> rrorC1083: Cannot open include file: 'qglobal.h': No such file or directory
> Any pointers what I am missing here?Thanks!

--
 [ signature omitted ] 

Message 7 in thread

Christopher Jimenez wrote:
>Hi Guys,Any help here will be truly appreciated. I am trying to
> integrate the QtWebkit to an application.When I try to compile my code
> with this line#include <QtWebKit/QtWebKit>or this one#include
> <QtWebKit/QWebView>this error is returned:
> e:\qt\4.4.0\src\3rdparty\webkit\webkit\qt\api\qwebkitglobal.h(23) :
> fatal errorC1083: Cannot open include file: 'qglobal.h': No such file
> or directory Any pointers what I am missing here?Thanks!

Problem confirmed. I'll send a patch to WebKit.

-- 
 [ signature omitted ] 

Attachment: signature.asc
Description: This is a digitally signed message part.


Message 8 in thread

Hi,
Do you guys know any work-around that I could try?
I kind of need this ASAP, and cant change to qmake or others.
Thanks
CJC


> From: thiago.macieira@xxxxxxxxxxxxx
> To: qt-interest@xxxxxxxxxxxxx
> Subject: Re: QtWebkit Compilation problem
> Date: Thu, 8 May 2008 17:46:05 +0200
> 
> Christopher Jimenez wrote:
> >Hi Guys,Any help here will be truly appreciated. I am trying to
> > integrate the QtWebkit to an application.When I try to compile my code
> > with this line#include <QtWebKit/QtWebKit>or this one#include
> > <QtWebKit/QWebView>this error is returned:
> > e:\qt\4.4.0\src\3rdparty\webkit\webkit\qt\api\qwebkitglobal.h(23) :
> > fatal errorC1083: Cannot open include file: 'qglobal.h': No such file
> > or directory Any pointers what I am missing here?Thanks!
> 
> Problem confirmed. I'll send a patch to WebKit.
> 
> -- 
> Thiago José Macieira - thiago.macieira AT trolltech.com
> Trolltech ASA - Sandakerveien 116, NO-0402 Oslo, Norway

_________________________________________________________________
Make Windows Vista more reliable and secure with Windows Vista Service Pack 1.
http://www.windowsvista.com/SP1?WT.mc_id=hotmailvistasp1banner