trying to build netsurf for slackware and slax
NetSurf is a free, open source web browser. It is written
in C and released under the GNU Public Licence version 2.
NetSurf has its own layout and rendering engine entirely
written from scratch.
It is small and capable of handling many of the
web standards in use today.
I've been trying to build netsurf for slackware and slax platforms.
I'm trying to build a framebuffer version (not interested in the GTK version).
after several attempts (getting the missing tools and/or libraries
that weren't even mentionned in their list of requirements)
I finally go to that stage
Package libwapcaplet was not found in the pkg-config search path
After a couple of days of searching I located an address where I could get sources for wapcaplet.
But obviously some files are missing
(on the web site there was an empty build folder
and I looked at the Makefile: it tries to input some
files from that build folder)
just wondering if anybody has tried to build
or just interested discussing this.
Can you list the dependencies that you already built?
I built it netsurf a couple months back, but was disappointed in the rendering of some pages. Netsurf either renders webites really fast (eg. www.google.com) or takes forever to render. From time to time it freezes, so I gave up on netsurf.
I actually built the gtk version of netsurf. The dependencies aren't spelled out very well in the accompanying documentation. So, I relied mainly on the Archlinux PKGBUILD and another Gentoo Ebuild. The dependencies can either be found on slackbuilds.org or on www.netsurf-browser.org.
I'll supply a tarball of the netsurf slackbuild I used if it is of any use. Just remove the .txt extention and it will be a normal tarball. All dependencies are listed in the README.
Googling .. libwapcaplet rpm ..
And trunk :
... which seems to be the same files.
'make' provides 'libwapcaplet.a' , libwapcaplet.pc
EDIT : netsurf, SVN rev. 9215, and with the pdf option disabled,
compiles with no errors.
svn co svn://svn.netsurf-browser.org/trunk/netsurf
#this wasn't mentionned in the requirements, but I built it also
That's when I was trying to build this that I got the error about
Package libwapcaplet was not found in the pkg-config search path.
These tools are required. I built lemon and didnt't
build re2c yet:
# this is optional (pdf library, you can disable it in the Makefile)
# but i builds ok
I downloaded the tar.bz2 archive
I'll have a look
the netsurf link is the one with the build folder empty
(and is supposed to hold the real Makefiles)
Because that's the version I'm really interested in.
On the console I use links. But if I could get a browser
that can handle more modern html (stylesheets, etc.) that
would be nice.
That "the dependencies aren't spelled out very well"
is a nice understatement.
Did you build your version on slackware12.2?
I pulled everything from SVN:
svn co svn://svn.netsurf-browser.org/trunk/netsurf
# for framebuffer
svn co svn://svn.netsurf-browser.org/trunk/libnsfb
svn co svn://svn.netsurf-browser.org/trunk/libnsbmp
svn co svn://svn.netsurf-browser.org/trunk/libnsgif
svn co svn://svn.netsurf-browser.org/trunk/libparserutils
svn co svn://svn.netsurf-browser.org/trunk/hubbub
svn co svn://svn.netsurf-browser.org/trunk/libharu
# for GTK:
svn co svn://svn.netsurf-browser.org/trunk/libwapcaplet
svn co svn://svn.netsurf-browser.org/trunk/libcss
svn co svn://svn.netsurf-browser.org/trunk/dom
But I found the source mage tarballs also.
thank you all
thanks to knudfl's link the wapcaplet libraries
I was able to finally build it on slackware
Then I tried on slax
After a few trials and errors I finally built it
The thing I don't understand is although I
make install DESTDIR=$PKG
the only binary copied was netsurf (which turned out
to be the gtk version as I found out when I tried
to launch it on the console: how come it built the gtk version
as well as the fb version---what's the use of TARGET=framebuffer
when, obviously it built everything for the linux platform)
Anyway I copied manually nsfb-linux to $PKG/usr/local/bin
and I copied the whole tree below $PKG to / to test it
I wrote a quick html test file with some css code in it
When I opened it with nsfb most of the css was honored
not the a and a:hover though
It looked much nicer than links
After a while I tried to quit. I tried all of these keys:
q ESCAPE Ctrl-C
none worked, tried the mouse
when I tried to switch to another vt none of the
Eventually it froze and I had to Ctrl-Alt-Del
I think that despite what the version says
this thing is still alpha
I guess I'll wait for future releases
because it does look promising
The 'netsurf' which gets installed is just the wrapper which is normally used to run the nsgtk from the source directory.
You have to manually copy the nsfb binary into your package or path. You need to edit the netsurf wrapper so that it starts nsfb after exporting the resources directory. And you need to install the resources needed by the framebuffer version.
I'm posting my src2pkg script for building the package, plus the altered wrapper. You should be able to understand what it is doing, even if you don't use src2pkg.
Note that the src2pkg script can be used to build the gtk version, but it needs more stuff installed as resources under /usr/share/netsurf.
after the binaries were built, and along nsfb-linux and nsgtk
the make install DESTDIR=$PKG
just copied nsgtk and renamed it netsurf
So I guess I definitely need to copy manually the files
But now that it builds ok, I'll try your TTF tip
Thanks for your tips gnashley
You're invoking make with the framebuffer target when you compile, but you're not when you install. Unless you tell it, it defaults to the GTK version on linux.
So for the framebuffer version:
make TARGET=framebuffer install
make TARGET=framebuffer clean
When you did 'make install', it would have built and installed the GTK version.
I'll try that first before copying manually
Thanks for the tip
Netsurf for Slackware
I use Netsurf in Slackware 12.2. I took it from the 'Slacky.eu' repos. I think it's a wonderfull peace of work for such a small package. It's used in Puppy Linux too, I found it on their forum. Only the bookmarks aren't working on my Linux-box, but I use the 'global history' for surfin'. Good luck with your Slax-project!
|All times are GMT -5. The time now is 06:02 PM.|