Page 10 of 21

Re: Netsurf

Posted: Sat Mar 21, 2015 2:34 am
by punk_joker
Leency wrote:Need to update Netsurf for new http_lib.
r5535

Re: Netsurf

Posted: Sat Mar 21, 2015 2:40 am
by Leency
Now need to get built version of Netsurf :)

Re: Netsurf

Posted: Sat Mar 21, 2015 12:31 pm
by Wildwest

Re: Netsurf

Posted: Sat Sep 05, 2015 11:26 pm
by ashmew2
This is how Netsurf on KolibriOS looks right now:
nsgui.jpg
nsgui.jpg (38.57 KiB)
Viewed 7481 times
This is completely written in FASM and uses elements of _only_ boxlib so far. I will add elements of libimg (and libio for reading images/graphics) and then the blank working area should serve as the display region for netsurf's content. If anyone has any GUI related feedback, feel free to shout it out and I'll try to incorporate it into the main release.

PS - If some one has any suggestions on which drawing library to use to show the rendered content of an HTML page, please suggest and I will try to use one of those libraries. I am hoping to find something which is fast for KolibriOS. Currently, libimg seems like the only contender.

Re: Netsurf

Posted: Sun Sep 06, 2015 1:19 am
by Leency

Re: Netsurf

Posted: Mon Sep 07, 2015 12:01 pm
by ashmew2
Thank you for the icon set , Leency. I've used them in the GUI and have this for now.
nsv2a.png
nsv2a.png (37.66 KiB)
Viewed 7397 times
The GUI is made in FASM (gui.asm), and uses boxlib, libimg, libio and some system functions to draw. Feel free to hack around and make it look better :) Also attaching the binary (nsgui) with this.

Also started writing the entry point in C for netsurf, attached the file which will contain the main() function for entry point from KolibriOS to Netsurf engine (gui.c) . The file currently contains skeleton definitions and function prototypes for all the functions we will require for mandatory features.

Re: Netsurf

Posted: Mon Sep 07, 2015 12:24 pm
by Leency
Why do you use several png files instead one?
You can show one image with offset.

Re: Netsurf

Posted: Mon Sep 07, 2015 9:11 pm
by ashmew2
I'll use the single png with offsets in the next version. Was experimenting how the UI would look without a few buttons here and there so split the single PNG into multiple PNGs.

Re: Netsurf

Posted: Mon Sep 07, 2015 9:29 pm
by hidnplayr
Ashmew2: What Leency probably meant is that it's easy to splice the images in software, especially since they are all the same width and in a single column.

Re: Netsurf

Posted: Tue Jan 12, 2016 9:08 am
by DmitrySokolowsky
Didn't work on yesterday's build:
BOARDLOG.TXT (3.26 KiB)
Downloaded 230 times

Re: Netsurf

Posted: Mon Jan 18, 2016 12:52 pm
by DmitrySokolowsky
Всё же как заставить его работать в ночных сборках? Что ему не хватает?

Re: Netsurf

Posted: Mon Jan 18, 2016 2:26 pm
by punk_joker
DmitrySokolowsky wrote:Всё же как заставить его работать в ночных сборках? Что ему не хватает?
Изменения в http.obj. Для работы в НС, необходимо собрать последнюю версию с SVN, если не ошибаюсь.

Re: Netsurf

Posted: Thu Jan 21, 2016 3:20 pm
by ashmew2
DmitrySokolowsky wrote:Didn't work on yesterday's build:
BOARDLOG.TXT
Thank you for the DEBUG LOG.
My suggestion is to use the binary that I uploaded a few months ago (in this same thread, the post where I mentioned about posting this from netsurf , followed by post from mario_r4).

That is the most stable binary I ever wrote.
punk_joker wrote:Изменения в http.obj. Для работы в НС, необходимо собрать последнюю версию с SVN, если не ошибаюсь.
Thank you for this clarification, this might be worth a try to actually determine what's causing this.

Re: Netsurf

Posted: Fri Jan 22, 2016 3:35 pm
by DmitrySokolowsky
It doesn't work also.

Code: Select all

PATH1...
/tmp0/1/NETSURFPATH1...
PATH1...
/tmp0/1/res/PATH1...
====================START
MENUET01====================END
Calling HTTP_INIT() for KolibriOS http lib..
http_init() initialised properly.
HTTP init...
ok...
NS HTTP_INIT okayStart UI
Redraw
No process starts, no window appears.

Re: Netsurf

Posted: Thu Feb 18, 2016 6:25 pm
by ashmew2
Hello!

It's been a long time, so here's an update on Netsurf's development. I've been writing some C level libraries / bindings for assembly code for the past few months / weeks and tried writing a cross compiler as well (but dropped in favour of Serge's already existing newlib based toolchain for now).

I created a kolibrios directory in Netsurf source.

Wrote a build script which builds all the libraries required by netsurf : Build Script
All libCURL related parts have been removed and stubbed.
All the functionality has been stubbed which is not supported by KolibriOS.
Removed some parts related to Linux / Windows not supported on KolibriOS.
Set up netsurf core tables according to KolibriOS frontend.
Wrote a kolibriOS specific make file for building netsurf for KolibriOS : Makefile.target

Migrate / Create some parts like kolibri_filesystem.c and kolibri_regex.c to expose functions used in most FOSS code but not available in KOS.



Problems / Current Status:
The main problem is understanding the Netsurf source code and how the functionality is split and decoupling core parts (as we do not have access to stuff that Linux/Windows have in terms of libraries)...but screw it : )

Getting stuff to build without a proper cross compiler is problematic. I'm trying to use the newlib toolchain (and Serge has been very helpful so far, Thank you!) but there are obvious problems along the way.
============

I guess this is it for now. If someone is interested in contributing to this, feel free to join this project. I've tried to keep the code base as clean as possible and as standard and Netsurf-compliant as possible till now so that we can put this port in Official Netsurf ports list.

Regards,
ashmew2