Page 15 of 21

Re: Netsurf

Posted: Sun Jun 11, 2017 3:29 pm
by ashmew2
Leency wrote:Hi, ashmew2!

I've tried nsinstall, but unfortunately it doesn't work.

My steps:
1. add "nsinstall" to kilibri.img root folder
2. run QEMU and open /sys/nsinstall
3. wait... (btw, how about add console output instead writing to board?)
4. get files
5. open /tmp0/1/nskolibrios

Actual result: I see console window, one thread is creashed according to boardlog.
Boardlog attached.
Siemargl wrote:I use nsinstall - it works. But downloaded nskolibrios wont run - just open console window and crashes

But netsurf-kolibrios file runs

Using .iso rev 6916
I've figured out the issue.
The binary has an embedded int3 instruction which forces application to quit if you are not running with the debugger.

If you open /tmp0/1/nskolibrios in MTDBG, it works!

Re: Netsurf

Posted: Mon Jun 12, 2017 11:24 pm
by ashmew2
I've released a new version of nskolibrios which can be obtained using nsinstall.

This new version adds support for PNG, JPEG and GIF images.

Please make sure you add libpng16.dll and libjpeg.dll files to the kolibrios/lib directory accessibly from root of a partition.

Re: Netsurf

Posted: Tue Jun 13, 2017 5:24 pm
by Leency
Where do download?

Re: Netsurf

Posted: Tue Jun 13, 2017 6:56 pm
by ashmew2
Leency wrote:Where do download?
If you use the netsurf installer, you can download it.
I'll attach it to this thread in a bit once I have access to my machine.

Re: Netsurf

Posted: Wed Jul 05, 2017 2:13 pm
by Leency
ashmew2
Netsurf downloaded well via nsintall.
But when I try to run nskolibrios it creates "downloads" directory and quits. No error, crash or message. Just quits.

Why?

Re: Netsurf

Posted: Thu Aug 24, 2017 11:28 am
by baggacfreak
Oh, great to see that there is a new version off netsurf to test. If I find time, I will do another video about my findings with this version! Old video seem to still be off interest to many.

Re: Netsurf

Posted: Mon Aug 28, 2017 11:48 am
by baggacfreak
ashmew2 wrote:New binaries for netsurf and netsurf-installer!

Built against Git commit tag : f7d4b915ff219accec90e4c53fa7d839dccd1745 (Netsurf git repo)

- Patch libgcc to alert user if libc is not present (or not found) leading to Netsurf not starting up (check debug board)
- Reduce size of executable by 4x (much faster loading times off a slow FAT disk)
- Display times when started and finished loading files from disk (to debug board) for troubleshooting.
- Patch the netsurf toolchains repo to create an sdk environment with kos32-gcc and friends for the build server.

====
Wrote an installer for Netsurf (can be found in $SVN/programs/network/netsurf/).
This installer downloads the netsurf binary and the required resources over HTTP and installs to /tmp0/1/ by default.
The download (aka installation) path can be changed in the .asm file .
Simply execute the assembled binary and check debug board for details on the download.
2017-05-29-231651_1366x768_scrot.png
Note: It will create new directories in the target path as well for downloading resource files.
====
Did not have time on weekend, but try to get one up as soon as possible. Is that the netsurf binary I would have to change to? Can the installer be changed, so that one can input or better select the location? I have a working virtual box kolibri os setup and would love to put each version in different folders on the fat32 partition.

Re: Netsurf

Posted: Mon Aug 28, 2017 6:21 pm
by baggacfreak
I got two different errors. With the installer it now says libjpg.dll is missing. Where can I get this one or is a new kolibrios.img needed than that from last year?

I did test with the latest image, but still no library for jpeg. Here is a small video:

https://www.youtube.com/watch?v=BXdn5bfUbi4

By the way it is not clear that the nsinstaller downloads without any output. So I waited a while and checked if all files are in the res folder.

Re: Netsurf

Posted: Fri Sep 08, 2017 10:25 am
by baggacfreak
JohnXenox wrote:
ashmew2 wrote:I haven't tested with assoc.ini , but it's probably a good thing to have once I fix some other issues for the next release. AIUI, assoc.ini would call the Netsurf binary with <filename> as the command line argument which I havent implemented yet.
Clear.
ashmew2 wrote:Can you try to run Netsurf first, get the main GUI window and then open offline pages using file:/// ?
For example, an html file located at

Code: Select all

/tmp0/1/offline.html
should work with typing in the Netsurf address bar

Code: Select all

file:///tmp0/1/offline.html
This should let you open local pages.
Yep! It works, but very very very slow (from tmp directory)! It takes about 3 minutes to draw the page. Before the full draw of the page, there is a high load on the CPU (about 86%).
Did you test dosbox and dos browser like dillo for your offline stuff? Maybe this would work.

http://www.bttr-software.de/forum/board ... p?id=10797

Re: Netsurf

Posted: Wed Sep 13, 2017 11:19 pm
by ashmew2
Hi

libjpeg,dll can be found in Serge's toolchains from the FTP server.
Download the sdk_*.7z files and they have these libraries.

I'm writing a patch to the toolchains repo of netsurf now to get it to build.

Re: Netsurf

Posted: Thu Sep 14, 2017 7:50 am
by baggacfreak
Okay. I will go to work and try it in the afternoon! Great to see progress!

Re: Netsurf

Posted: Thu Sep 14, 2017 2:55 pm
by Leency
Just need to add libjpeg to ISO autobuild.

Re: Netsurf

Posted: Thu Sep 14, 2017 5:55 pm
by Leency
Netsurf requires two files libjpeg.dll and libpng16.dll.
I've added them to /kolibrios/lib/ from http://ftp.kolibrios.org/users/Serge/ne ... 8-10-16.7z

When Netsurf starts it just a black window http://prntscr.com/gl4bly

Re: Netsurf

Posted: Thu Sep 14, 2017 8:15 pm
by baggacfreak
lol I just found this bin and used it now it only says buffer error. Video is uploading. Take a look in 20 minutes here: https://youtu.be/Z_NQVzJ5RlE

Re: Netsurf

Posted: Sun Sep 17, 2017 12:33 pm
by ashmew2
I've rebased to the current master branch of Netsurf, so I have a new binary.
You can find latest binary here : ftp://ftp.kolibrios.org/users/ashmew2/netsurf20170917
Let me know if you run into errors.

- ashmew2


Below steps are for you if you want to build Netsurf on your own machine:

Steps to get a usable Netsurf binary (On Linux) :

Remove directory /opt/netsurf on your machine.
Download nskbuild.sh and mkimg.sh to /tmp
cd /tmp
./nskbuild.sh

You should now have a netsurf binary at /opt/netsurf/kos32-gcc/env/bin/netsurf-kolibrios

# To create a VirtualBox VDI (You need virtualbox installed)
cd /tmp
./mkimg.sh

This should create a VDI for you that you can use with virtualbox (Boot with kolibri.img and use this VDI).

Once KolibriOS boots in VirtualBox:
-- open BOARDLOG
-- Find netsurf binary at : /hd0/1/netsurf-kolibrios

Netsurf should load up.

You can find nskbuild.sh here : http://source.netsurf-browser.org/netsu ... skolibrios
mkimg.sh here : http://source.netsurf-browser.org/netsu ... skolibrios