[webkit-dev] Problem building/running Webkit with QT4 on Ubuntu
Julien Chaffraix
julien.chaffraix at gmail.com
Wed Oct 17 05:26:30 PDT 2007
Hello,
> i had to change WebCore/dom/XMLTokenizer.cpp as it refer to
> QXmlStreamReader::NotWellFormedError instead of
> QXmlStreamReader::XmlNotWellFormedError, and it call
> QXmlStreamReader.hasError () which doesn't exist in libqt4-dev-kdecopy.
Lars has already answered that part : the changes you had to made come from
the changes between the ubuntu package and the current version of Qt. So the
answer is to download a version from trolltech.com, install it, revert the
changes you have made to the code and compile WebKit with the right library.
I would also advise you to remove all the libqt4 beta 1 packages (if you
can) to be sure you do not bump into the same problem I had (see below).
when i look at the error message:
>
> FIXME: UNIMPLEMENTED: ../../../WebCore/platform/qt/WidgetQt.cpp:120
> (virtual void WebCore::Widget::show())
>
> and at the file WidgetQt.cpp, the code is:
> void Widget::show()
> {
> if (data->m_widget)
> data->m_widget->show() ;
> else
> notImplemented() ;
> }
>
> that's why i think i missing a dynamic library. what do you think ?
You cannot deduce that you are missing a library from looking at the code.
If you were missing a library you code would just not compile or execute.
The method notImplemented() is just a reminder to user and developer and
does not say that you are missing some library.
I my understanding libqt4-dev-kdecopy, should be for kde. do you have
> it install on your system ?
I am normally using a version I had downloaded from trolltech.com. As you
were talking about that package, I just gave it a try it to see if it was
compilling on my machine by removing the references I had to my previous
library. I must have missed a reference to the previous library and got it
linked with WebKit as I had been able to run WebKit.
Sorry to have induced you into error,
Julien
Lionel
> Julien Chaffraix wrote:
> > Hi,
> >
> > 1. i fetched webkit from here
> > http://svn.webkit.org/repository/webkit/trunk
> > <
> http://www.qtforum.org/redir.php?url=http%3A%2F%2Fsvn.webkit.org%2Frepository%2Fwebkit%2Ftrunk>
> > 2. i installed libqt4-dev-kdecopy with: apt-get install
> > libqt4-dev-kdecopy, as qt4.3 was needed (libqt4-dev is qt4.2.3)
> > 3. then i build with: QTDIR=/usr/share/qt4/
> > WebKit/WebKitTools/Scripts/build-webkit
> > the build failed 2 or 3 times, like some class api were missing or
> > class reference missing. Anyway it was easy to fix, so i restart
> > the build and it complete successfully.
> >
> >
> > Did the changes you made were in your environment (installed libraries
> > ...) or Webkit source ?
> >
> > The trunk should compile on your platform without modification if you
> > have all the necessary tools and libraries.
> >
> > I am using Ubuntu too so I just tried that package you mentioned and I
> > could compile and run webkit without problem.
> >
> > Could you try to remove all Webkit files (source and builds) and
> > follow the explanation on the webkit page again and report if
> > something went wrong ?
> >
> > 4. then i run the browser with: QTDIR=/usr/share/qt4/
> > WebKit/WebKitTools/Scripts/run-launcher
> > the browser starts, but display the blank window, then whatever
> > address i try to browse the window remain blank, while the console
> > display such message:
> >
> > FIXME: UNIMPLEMENTED: ../../../WebCore/platform/qt/WidgetQt.cpp:120
> (virtual void WebCore::Widget::show())
> > FIXME: UNIMPLEMENTED:
> ../../../WebKit/qt/WebCoreSupport/FrameLoaderClientQt.cpp:195 (virtual void
> WebCore::FrameLoaderClientQt::forceLayoutForNonHTML())
> >
> >
> >
> >
> > i had a look at WebCore/platform/qt/WidgetQt.cpp, and it seems the
> > data member m_widget is not initialized and so it display the
> > UNIMPLEMENTED error message.
> >
> > I have to say that i'm a newbie at Linux and Webkit, so my
> > questions below might be silly smile
> >
> > 1. i find it strange that i had to fix some compile problem as it
> > seem to me that WebKit was already ported to QT4. Am i using the
> > right svn trunk ?
> >
> >
> > There is only one trunk in svn and the url you gave is the right one.
> >
> > 2. am i missing some library ? i've installed libqt4-dev-kdecopy
> > only, do i need libqt4-core-kdecopy ? is there any other dependency
> ?
> >
> >
> > According to
> > http://packages.ubuntu.com/feisty/libdevel/libqt4-dev-kdecopy
> > <http://packages.ubuntu.com/feisty/libdevel/libqt4-dev-kdecopy> ,
> > liqt4-dev-kdecopy depends on liqt4-core-kdecopy so it is already
> > installed. Normally if you have managed to compile and run the
> > application, that means that you have the required libraries.
> >
> > 3. i also find strange that the folder WebKit\WebKitQt\QtLauncher
> > is always empty, shouldn't it have some QtLauncher.pro and other
> > files ?
> > 4. can somebody also recommend me a good development tools/ide on
> > Linux for C++ development.
> >
> >
> > You have a wide range of development tools under linux. It will widely
> > depend on what you want as a development environment.
> > You could use an editor like vim, emacs, gedit or Kate and do the
> > compilation in a terminal or an IDE like Anjuta (designed for C/C++),
> > Eclipse (mainly for Java but has a C/C++ extension) or KDevelop. That
> > list is far from exhaustive.
> > You should just try some and take the one that suits you most.
> >
> > Hope it helps,
> >
> > Julien
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/webkit-dev/attachments/20071017/8a313de0/attachment-0001.html
More information about the webkit-dev
mailing list