Netsurf

...
punk_joker
Posts: 1278
Joined: Tue Apr 12, 2011 11:19 pm

Re: Netsurf

Post by punk_joker »

Leency wrote:Need to update Netsurf for new http_lib.
r5535
to infinity and beyond
User avatar
Leency
Designer
Posts: 5731
Joined: Thu Jan 25, 2007 3:33 pm
Has thanked: 2 times

Re: Netsurf

Post by Leency »

Now need to get built version of Netsurf :)
Sapiens dominabitur astris
Wildwest
Posts: 1001
Joined: Wed May 18, 2005 7:27 pm

Re: Netsurf

Post by Wildwest »

ashmew2
Mentor
Posts: 184
Joined: Tue Mar 11, 2014 11:37 am

Re: Netsurf

Post by ashmew2 »

This is how Netsurf on KolibriOS looks right now:
nsgui.jpg
nsgui.jpg (38.57 KiB) Viewed 6883 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.
---
Check out the Netsurf Web Browser for KolibriOS.
Read the wiki and happy hacking with KolibriOS!
User avatar
Leency
Designer
Posts: 5731
Joined: Thu Jan 25, 2007 3:33 pm
Has thanked: 2 times

Re: Netsurf

Post by Leency »

Attachments
Toolbar_icons.png
Toolbar_icons.png (5.62 KiB) Viewed 6860 times
Sapiens dominabitur astris
ashmew2
Mentor
Posts: 184
Joined: Tue Mar 11, 2014 11:37 am

Re: Netsurf

Post 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 6799 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.
Attachments
gui.c
Netsurf entry point
(6.96 KiB) Downloaded 199 times
nsgui
Binary
(1.89 KiB) Downloaded 210 times
gui.asm
Source file for Netsurf GUI
(10.54 KiB) Downloaded 197 times
---
Check out the Netsurf Web Browser for KolibriOS.
Read the wiki and happy hacking with KolibriOS!
User avatar
Leency
Designer
Posts: 5731
Joined: Thu Jan 25, 2007 3:33 pm
Has thanked: 2 times

Re: Netsurf

Post by Leency »

Why do you use several png files instead one?
You can show one image with offset.
Sapiens dominabitur astris
ashmew2
Mentor
Posts: 184
Joined: Tue Mar 11, 2014 11:37 am

Re: Netsurf

Post 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.
---
Check out the Netsurf Web Browser for KolibriOS.
Read the wiki and happy hacking with KolibriOS!
User avatar
hidnplayr
Mentor/Kernel Developer
Posts: 1318
Joined: Fri Jun 30, 2006 9:01 am

Re: Netsurf

Post 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.
"Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius -- and a lot of courage -- to move in the opposite direction." Albert Einstein
User avatar
DmitrySokolowsky
Posts: 840
Joined: Thu Mar 01, 2007 7:57 pm

Re: Netsurf

Post by DmitrySokolowsky »

Didn't work on yesterday's build:
BOARDLOG.TXT
(3.26 KiB) Downloaded 214 times
User avatar
DmitrySokolowsky
Posts: 840
Joined: Thu Mar 01, 2007 7:57 pm

Re: Netsurf

Post by DmitrySokolowsky »

Всё же как заставить его работать в ночных сборках? Что ему не хватает?
punk_joker
Posts: 1278
Joined: Tue Apr 12, 2011 11:19 pm

Re: Netsurf

Post by punk_joker »

DmitrySokolowsky wrote:Всё же как заставить его работать в ночных сборках? Что ему не хватает?
Изменения в http.obj. Для работы в НС, необходимо собрать последнюю версию с SVN, если не ошибаюсь.
to infinity and beyond
ashmew2
Mentor
Posts: 184
Joined: Tue Mar 11, 2014 11:37 am

Re: Netsurf

Post 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.
---
Check out the Netsurf Web Browser for KolibriOS.
Read the wiki and happy hacking with KolibriOS!
User avatar
DmitrySokolowsky
Posts: 840
Joined: Thu Mar 01, 2007 7:57 pm

Re: Netsurf

Post 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.
ashmew2
Mentor
Posts: 184
Joined: Tue Mar 11, 2014 11:37 am

Re: Netsurf

Post 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
---
Check out the Netsurf Web Browser for KolibriOS.
Read the wiki and happy hacking with KolibriOS!
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest