Page 11 of 21

Re: Netsurf

Posted: Mon Feb 29, 2016 12:45 am
by ashmew2
Hi

Just a quick update, I finally got things working with the cross compiler , newlib (libc) and building a netsurf binary.
I can compile the binary using a small home made build system, details here: https://github.com/ashmew2/nskolibrios/ ... ios/README

Compiled to a 2.2 MB binary right now. It doesn't do anything useful as of yet except printing the first messages for our Netsurf official binary to Debug Board. This is an important release because we now have a build system set up that can let us make rapid changes and compile painlessly for Kolibri.

It uses boxlib and http.obj and loads them at runtime.

If possible, please try to run this binary on your machine. Post back with debug board output if your machine does not run this binary so I can mess around with some assembly / C compilation options right now so we can still change things.

Next Goal: Get the initial netsurf initialization phase working and spawn a GUI window.

This is Official Netsurf for KolibriOS v0.1!

Stay tuned for v0.2 :D

Enjoy.

Re: Netsurf

Posted: Mon Feb 29, 2016 2:15 pm
by Pathoswithin
Board is empty. Does it using anything except box_lib.obj and http.obj?

Re: Netsurf

Posted: Mon Feb 29, 2016 2:29 pm
by Serge
Нужна примонтированная /kolibrios с длл.

Re: Netsurf

Posted: Mon Feb 29, 2016 4:11 pm
by ashmew2
Sorry about that! I missed the instructions to the README.
Thanks for the clarification Serge.
Here's the updated README: https://github.com/ashmew2/nskolibrios/ ... ios/README

For reference, I'm pasting the contents of the README here so that you can understand:

Welcome to the Official KolibriOS port for Netsurf!
---------------------------------------------------

This is a work under progress.

If you have an executable, you can skip to the "Running the binary on KolibriOS" section below.
-----------------------------------------------------------------------------------------------

In order to compile this, you need to first build all libraries using the maker.sh script on your machine.
Once that is done, You need to build netsurf with the builder.sh script.

PREREQUISITES FOR COMPILING
---------------------------
kos32-gcc Compiler is set up at /home/autobuild/tools/win32/bin/kos32-gcc

Set up your path to contain /home/autobuild/tools/win32/bin/

Kolibrios SVN sources are at $HOME/kolibrios

maker.sh is the build script for Building Netsurf required libraries.

zlib has been compiled from contrib/sdk/sources/zlib and the libz.a file placed at /home/autobuild/tools/win32/lib

libc.dll.a and libapp.a and libiberty.a have been compiled from $HOME/kolibrios/contrib/sdk/sources/newlib/libc and copied to /home/autobuild/tools/win32/lib

After that: Simply run builder.sh from this directory. It will compile your stuff.
----------------------------------------------------------------------------------

Running the binary on KolibriOS
===============================

Copy the executable nsbin into a directory.

Set up the kolibrios/ directory as this is required for running libc applications like Netsurf.
You also need boxlib and http obj libraries at least (These are part of standard installation, so I don't think it needs any setup).

CleverMouse said "You have probably not configured the folder /kolibrios. In order to do
this, copy the folder /kolibrios and the file kolibri.lbl from the
distribution kit to the root of some partition accessible from
KolibriOS, so that /hdX/Y/kolibri.lbl and /hdX/Y/kolibrios/, or
/usbhdX/Y/kolibri.lbl and /usbhdX/Y/kolibrios/ are accessible from
KolibriOS. And yes, this is a sacred knowledge not present in the
documentation." - viewtopic.php?f=23&t=2865&p=58495&hilit=.lbl#p58495

Once you have tset up these directories, you can execute KolibriOS and
run the nsbin executable.

I usually use this as the command to run my qemu instance of Kolibri:

qemu-system-x86_64 -L . -m 128 -fda ~/Downloads/kolibri.img -boot a -localtime -vga vmware -net nic,model=rtl8139 -net user -soundhw ac97 -usb -usbdevice disk:format=raw:fat:/home/bob/dev-netsurf/workspace/netsurf/ -usbdevice tablet -usbdevice disk:format=raw:fat:/home/bob/kosmount/ &


If You have any problems, please let us know.
Have FUN!

Re: Netsurf

Posted: Mon Feb 29, 2016 8:35 pm
by Pathoswithin
Netsurf: Official port for KolibriOS.
NSERROR -> FAILED TO INIT

Good Bye. See you Soon!.

Re: Netsurf

Posted: Mon Feb 29, 2016 10:07 pm
by Yason
I have the same picture, on debug board! :(

Re: Netsurf

Posted: Sun Mar 06, 2016 12:27 pm
by Wildwest
http://www.netsurf-browser.org/

NetSurf 3.4 released 17 Feb 2016
NetSurf 3.4 features many optimisations to improve performance over previous releases. It also contains many bug fixes, including improvements to page layout. This is also the first release to contain the Duktape JavaScript engine. While our JavaScript bindings have seen a lot of development for this release, JavaScript remains disabled by default as the support is incomplete. We recommend all users upgrade to NetSurf 3.4.

Re: Netsurf

Posted: Fri Apr 01, 2016 3:09 am
by ashmew2
Hi

Just a quick update, (No binaries), HTTP fetcher is fixed, I'm working on a file fetcher at the moment.
There are some problems with using C sometimes (unknown issues / crashes), but I'm trying to report them as things progress.

Just for the heads up, I had plans to try to use SDL for this using libSDL, but now we will be using f65 for drawing the browser window.

PS - All the libraries and netsurf binary are integrated with Netsurf build system (I've patched it, and it should be ready to go to Netsurf main trunk after the browser acctually works).

Next step, I'm gonna try to implement resource handling and connect Netsurf to file IO on kolibri so it can grab resource files directly from disk (like default.css , etc).


Regards,
ashmew2

Re: Netsurf

Posted: Sat Apr 16, 2016 6:02 pm
by ashmew2
The attachment ns.png is no longer available
Netsurf-For-Kolibri v0.2
=================

I've made some progress with Netsurf Official on KolibriOS.
The red component is missing from the surface, so the colour looks a bit too YELLOW.
I'll fix the colour issue later.

Attached netsurf.zip.
Unzip it to some location.
Mount this directory properly so that nskolibrios is at : /usbhd0/1/nskolibrios
You need it exactly at this path, or it will not work.

Also, you need to setup Kolibrios directory according to this post : viewtopic.php?f=23&t=2865&p=58495&hilit=.lbl#p58495

Also attaching the full README with list of issues that need to be fixed.

Use it!

Let me know if it does not work for you, or you find any bugs. (Check README for ISSUES before you report a bug).

Enjoy!

Re: Netsurf

Posted: Sun Apr 17, 2016 7:21 pm
by ashmew2
nsfix.png
nsfix.png (293.97 KiB)
Viewed 7995 times
Colours Fixed!

Note: Please run it in MTDBG. It has some int3 statements.

Re: Netsurf

Posted: Tue Apr 19, 2016 7:09 pm
by ashmew2
We have HTTP Post now!
httppost.png (146.35 KiB)
We have HTTP Post now! Viewed 7839 times
HTTP Post (application/x-www-form-urlencoded) ready!

Re: Netsurf

Posted: Mon Apr 25, 2016 10:41 am
by user20
Предлагаю дизайн viewtopic.php?f=26&t=3047

Re: Netsurf

Posted: Wed Apr 27, 2016 2:08 pm
by ashmew2
I think Netsurf is pretty stable on KolibriOS now. I don"t see any crashes in regular run now.

Writing this from KolibriOS, so if I am able to post this message to the board, it means cookies work and so does HTTP Post. HTTP Get works as well. Let"s see...

Re: Netsurf

Posted: Wed Apr 27, 2016 5:53 pm
by hidnplayr
Very cool, congrats.

Re: Netsurf

Posted: Sun May 01, 2016 12:41 am
by Leency
Where can I download last stable version ?
Is it added to autobuild ?