In these days i’m trying to port an updated revision (2.2 or 2.3) of QtWebKit for Haiku, since the current QtWebKit for Haiku is outdated and unstable.
I write here to find some help/collaboration, since i’ve found that is not very simple, due of some errors while compiling. There is someone interested?
XPathGrammar.y <- that is a problem with bison I see there are patches online for related issues you might look into those.
Just do a quick google search on that filename probably what is happening is bison or yacc or whatever is failing to parse it correctly so the code that it is supposed to generate never gets there so its undefined.
Edit: I see you already realise that. perhaps it is releated to the version of bison… I did notice buildroot had a few similar problems with webkit.
Did you test the new version? Is it more stable? Does it have html5 video support!? Very interested to know more…
Edit: ahh I see, it’s not working yet. I’d like to help… what are the dependencies for compilation? I see that there is a bep in haiku ports for qt-4.8.X - does this work? Does it install the development libraries and headers needed to build qtwebkit? Or do I need to also build something from qt?
Are you submitting your ports to haikuports? I hope so - this is the best thing to do, it makes it easy for other people to reproduce, makes sure your efforts dont get lost, and is quite easy too.
[quote=Munchausen]Did you test the new version? Is it more stable? Does it have html5 video support!? Very interested to know more…
Edit: ahh I see, it’s not working yet. I’d like to help… what are the dependencies for compilation? I see that there is a bep in haiku ports for qt-4.8.X - does this work? Does it install the development libraries and headers needed to build qtwebkit? Or do I need to also build something from qt?.[/quote]
Hi Munchausen,
i’m very glad for your interest!
To properly compile QtWebKit first of all you will need QT framework. Tou can install it by:
haikuporter -i qt-4.8.x-git
Then, always using Haikuporter you will need:
pkgconfig, gperf, bison, flex, fontconfig, freetype, libjpeg, libpng… As i can remember correctly.
If you miss some deps, the config script of qt will alert you.
And don’t forget to set QTDIR by export QTDIR=/boot/common/data/Qt
I’m still working with a very old version of haiku (a nightly from last year some time) so my first step is in figuring out how to update to the latest without breaking anything, so I’m working out that now (I have a lot of things installed here and do all my day-to-day work on here, so need to be careful!) I have all of those dependencies already installed through haikuporter I think, so hopefully good to go in that respect.
And easy way to get a quick and cheap Haiku development environment is to use a USB flash drive. Plug it in, boot from Haiku CD, very carefully select USB flash drive to format, then install as regular. Then select boot from USB during boot process if needed.
Not quite as fast as running from a hard drive but it is cheap, easy, and fits in your pocket.
In anyway i was attempt to build QtWebKit 2.2, but there is also available a newer QtWebKit: 2.3.
This revision should include all necessaries patches that i’ve applied on 2.2
As AndrewZ said, you can install Haiku on an USB Stick, and also, to keep all libraries ans deps, you can backup and then copy your common folder over the new installation.
Yes this is how I normally update haiku. (well, I have no cd drive so I download an image, dd it to usb, then install from that)
But
a) I need the install to be on my hard disk, as it is my main OS that I use for work
b) I have a lot of things installed, not just standard programs but also a lot of stuff from ports. Last time I updated haiku a lot of things broke, simply copying over the old system is not a sure-fire way to work. Since my work is all programming based, I have to spend time to re-build lots of things and make sure everything is working, and it’s a pain, which is why I don’t update very often. For example, certain things have been moved to other libraries (libroot) since last time so I need to re-build just to re-link things.
I also have a slow internet connection which makes it worse. I have just updated, it took me an hour to download an xz format anyboot, and has been re-installing optional packages for another hour. Next I have to reinstall a lot of things from ports. Fun times…
Well for now I’ve got a decent web connection (for tonight at least).
I’ve enabled shared memory in qt, but it’s currently building so don’t know if it will work. It wasn’t disabled from the configure script, as the config test passed, but from a line in src/corelib/corelib.pro (haiku:DEFINES += QT_NO_SHAREDMEMORY). So someone disabled it on purpose, which might mean that it will fail to build or will not work, but might mean that it was disabled for some reason that is no longer relevant (something that has been fixed by now maybe)… we shall see.
I’m also downloading the latest qtwebkit from git. It’s been going a long time but has only got 20%, even though it’s coming in at 800kb/s - it’s huge! Are you using the git version? It seemed the easiest way to get source, but you mentioned version 2.2. I also noticed some webkit stuff going past when building qt, which seems a bit weird. But maybe that’s for a webkit widget in qt or something?
Second: i bet that the kdl was about page writer… Is a know bug, which i also experiment while i build/compile apps. You should be able to exit from kdl typing “es”.
But i have noticed that the better way is to stay near to pc to exit as soon as possible from the kdl!
[quote=Munchausen]Are you using the git version? It seemed the easiest way to get source, but you mentioned version 2.2. I also noticed some webkit stuff going past when building qt, which seems a bit weird. But maybe that’s for a webkit widget in qt or something?
Anyway, I’ll update later, sleep time now![/quote]
I downloaded the 2.2 revision from the branch 2.2, on gitorious.
But hey: the last available revision is better
You have noticed some qtwebkit stuff during qt building because the qt framework also includes the webkit, but the current qtwebkit for Haiku should be an old revision of webkit, which is buggy/unstable.