maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 7 / Leste (https://talk.maemo.org/forumdisplay.php?f=66)
-   -   Browsers on Leste (https://talk.maemo.org/showthread.php?t=101419)

druk13 2023-09-18 12:38

Re: Browsers on Leste
 
Thanks for sharing your experience with Konquerer and yes, Konqueror runs also fine on Droid 4 :)

AapoRantalainen 2023-09-19 18:01

Re: Browsers on Leste
 
1 Attachment(s)
I wanted to test NetSurf [https://www.netsurf-browser.org/] for (N900) Leste. This is the latest version: NetSurf 3.10 (24 May 2020).
  • Not finger friendly
  • No javascipt -> No acid3test / No html5test

Can be downloaded from https://drive.google.com/drive/folde...52dVZe4cyWZxPt
nsgtk3 (NetSurf GTK3, sha256=1f2bf31feb411adac27e20588b4571a8ede5565cd93 41cb0812c0733e6dc2a14)

If it doesn't start the most probable reason is missing library. So run and report:
Code:

ldd nsgtk3 | grep not
So far I think this is not "The Browser".

-----
Building on device:

Code:

#Will create /dev-netsurf/ and download/build everything in there.

#Create and use 1GT swapfile.

#There might be some extra but somehow it listed these all (I don't know why):
sudo apt-get install libgtk-3-dev \
 git \
 autoconf \
 automake \
 autopoint \
 autotools-dev \
 bison \
 bsdextrautils \
 debhelper \
 dh-autoreconf \
 dh-strip-nondeterminism \
 dwz \
 flex \
 gettext \
 gettext-base \
 gir1.2-atk-1.0 \
 gir1.2-freedesktop \
 gir1.2-gdkpixbuf-2.0 \
 gir1.2-harfbuzz-0.0 \
 gir1.2-pango-1.0 \
 gir1.2-rsvg-2.0 \
 gperf \
 icu-devtools \
 intltool-debian \
 libarchive-cpio-perl \
 libarchive-zip-perl \
 libatk1.0-dev \
 libblkid-dev \
 libbrotli-dev \
 libcairo-script-interpreter2 \
 libcairo2-dev \
 libclone-perl \
 libcurl4-openssl-dev \
 libdatrie-dev \
 libdebhelper-perl \
 libencode-locale-perl \
 libexpat1-dev \
 libffi-dev \
 libfile-stripnondeterminism-perl \
 libfl-dev \
 libfl2 \
 libfontconfig-dev \
 libfontconfig1-dev \
 libfreetype-dev \
 libfreetype6-dev \
 libfribidi-dev \
 libgdk-pixbuf-2.0-dev \
 libglib2.0-bin \
 libglib2.0-dev \
 libglib2.0-dev-bin \
 libgraphite2-dev \
 libharfbuzz-dev \
 libharfbuzz-gobject0 \
 libhtml-parser-perl \
 libhtml-tagset-perl \
 libhttp-date-perl \
 libhttp-message-perl \
 libice-dev \
 libicu-dev \
 libio-html-perl \
 libjpeg-dev \
 libjpeg62-turbo-dev \
 libltdl-dev \
 liblwp-mediatypes-perl \
 libmail-sendmail-perl \
 libmount-dev \
 libpango1.0-dev \
 libpcre16-3 \
 libpcre2-32-0 \
 libpcre2-dev \
 libpcre2-posix2 \
 libpcre3-dev \
 libpcre32-3 \
 libpcrecpp0v5 \
 libpipeline1 \
 libpixman-1-dev \
 libpng-dev \
 libpng-tools \
 libpthread-stubs0-dev \
 librsvg2-dev \
 libselinux1-dev \
 libsepol1-dev \
 libsigsegv2 \
 libsm-dev \
 libssl-dev \
 libsub-override-perl \
 libsys-hostname-long-perl \
 libthai-dev \
 libtimedate-perl \
 libtool \
 liburi-perl \
 libx11-dev \
 libxau-dev \
 libxcb-render0-dev \
 libxcb-shm0-dev \
 libxcb1-dev \
 libxcomposite-dev \
 libxcursor-dev \
 libxdamage-dev \
 libxdmcp-dev \
 libxext-dev \
 libxfixes-dev \
 libxft-dev \
 libxi-dev \
 libxinerama-dev \
 libxml2-utils \
 libxrandr-dev \
 libxrender-dev \
 m4 \
 man-db \
 pango1.0-tools \
 pkg-config \
 po-debconf \
 python3-distutils \
 python3-lib2to3 \
 uuid-dev \
 x11proto-dev \
 x11proto-input-dev \
 x11proto-randr-dev \
 x11proto-xext-dev \
 x11proto-xinerama-dev \
 xorg-sgml-doctools \
 xtrans-dev \
 zlib1g-dev


wget https://git.netsurf-browser.org/netsurf.git/plain/docs/env.sh
#sha256sum=510cf15970b4f82f4ff5648ff32f88556a19d41c6b7cf893581df63614003aaa
unset HOST
source env.sh

#env.sh contains couple of ns-* -functions.

ns-clone

#Will take 19m16s
ns-pull-install

cd ~/dev-netsurf/workspace/netsurf
#Will take 37m39s
make
strip nsgtk3


Configured:


Code:

M.CONFIG: JPEG (libjpeg)        enabled      (NETSURF_USE_JPEG := YES)
M.CONFIG: PDF export (haru)    disabled      (NETSURF_USE_HARU_PDF := NO)
M.CONFIG: glibc internal iconv  enabled      (NETSURF_USE_LIBICONV_PLUG := YES)
M.CONFIG: Javascript (Duktape)  enabled      (NETSURF_USE_DUKTAPE := YES)
PKG.CNFG: CSS (libcss)  enabled
PKG.CNFG: DOM (libdom)  enabled
PKG.CNFG: nsutils (libnsutils)  enabled
M.CONFIG: Curl (libcurl)        enabled      (NETSURF_USE_CURL := YES)
M.CONFIG: OpenSSL (openssl)    auto-enabled  (NETSURF_USE_OPENSSL := AUTO)
M.CONFIG: utf8 (libutf8proc)    enabled      (NETSURF_USE_UTF8PROC := YES)
M.CONFIG: WEBP (libwebp)        auto-disabled (NETSURF_USE_WEBP := AUTO)
M.CONFIG: PNG (libpng)  auto-enabled  (NETSURF_USE_PNG := AUTO)
M.CONFIG: BMP (libnsbmp)        auto-enabled  (NETSURF_USE_BMP := AUTO)
M.CONFIG: GIF (libnsgif)        auto-enabled  (NETSURF_USE_GIF := AUTO)
M.CONFIG: SVG (libsvgtiny)      auto-enabled  (NETSURF_USE_NSSVG := AUTO)
M.CONFIG: Sprite (librosprite)  auto-disabled (NETSURF_USE_ROSPRITE := AUTO)
M.CONFIG: PSL (libnspsl)        auto-enabled  (NETSURF_USE_NSPSL := AUTO)
M.CONFIG: LOG (libnslog)        auto-enabled  (NETSURF_USE_NSLOG := AUTO)
M.CONFIG: SVG (librsvg-2.0)    auto-enabled  (NETSURF_USE_RSVG := AUTO)
M.CONFIG: Video (gstreamer-0.10)        disabled      (NETSURF_USE_VIDEO := NO)
PKG.CNFG: GTK-3 (gtk+-3.0)      enabled
PKG.CNFG: GThread2 (gthread-2.0)        enabled
PKG.CNFG: GModule2 (gmodule-2.0)        enabled
PKG.CNFG: Check (check) disabled


AapoRantalainen 2023-09-21 18:57

Re: Browsers on Leste
 
4 Attachment(s)
Dooble 2023.08.30 [https://textbrowser.github.io/dooble/]. (version git:6fcdb1a76d5e438120c7ad0d316f4ff2d1911655)

Download: https://drive.google.com/drive/folde...52dVZe4cyWZxPt
sha256: 29b560c5fb9ba3b8f88cbd8b0ee1d73538109b1ceae1385b32 85ab9cda3a4793


Running
First start sapwood [https://github.com/maemo-leste/sapwood] (I don't understand what is theme-engine, but seems Leste has it preinstalled)

Code:

/usr/lib/arm-linux-gnueabihf/sapwood/sapwood-server &
./Dooble https://html5test.com/

This was just a quick test to get it compiled and running. I haven't overclocked N900 and SD card is crappy.

I think Dooble has potential. It needs UI-tweeking. It needs some performance tweeking. It needs to be tested with perfect performace setup (https://talk.maemo.org/showthread.php?t=101421)
----
Building
Code:

#dependencies (not yet tested from fresh installation)
sudo apt-get install qtwebengine5-dev-tools \
 libqt5charts5-dev \
 libqt5webenginewidgets5 \
 libqt5webengine5 \
 libqt5qml5 \
 qtwebengine5-dev

Might need more than 1GB more swap. I used 5GB.

Code:

git clone https://github.com/textbrowser/dooble
cd dooble

At least -Wcast-align is causing harm, and then there are -Wall.

patch dooble.pro:

Code:

diff --git a/dooble.pro b/dooble.pro
index 51a85207..d147b09c 100644
--- a/dooble.pro
+++ b/dooble.pro
@@ -306,26 +306,6 @@ QMAKE_LFLAGS += /entry:mainCRTStartup
 }
 } else {
 QMAKE_CXXFLAGS_RELEASE += -O3 \
-                          -Wall \
-                          -Warray-bounds=2 \
-                          -Wcast-align \
-                          -Wcast-qual \
-                          -Wdouble-promotion \
-                          -Werror \
-                          -Wextra \
-                          -Wformat-overflow=2 \
-                          -Wformat-security \
-                          -Wformat-signedness \
-                          -Wformat-truncation=2 \
-                          -Wformat=2 \
-                          -Wlogical-op \
-                          -Wno-deprecated-copy \
-                          -Woverloaded-virtual \
-                          -Wpointer-arith \
-                          -Wstack-protector \
-                          -Wstringop-overflow=2 \
-                          -Wundef \
-                          -Wzero-as-null-pointer-constant \
                          -fstack-clash-protection \
                          -fstack-protector-all \
                          -fwrapv \


Code:

qmake -o Makefile dooble.pro
make

-> crash. It will crash couple of times during:
Code:

Writing qtwebengine_dictionaries/de_CH_frami.bdic
Success. Dictionary converted.
/usr/lib/qt5/bin/qwebengine_convert_dict Dictionaries/de/de_DE_frami.dic qtwebengine_dictionaries/de_DE_frami.bdic
Dictionaries/de/de_DE_frami.dic_delta not found.
Reading Dictionaries/de/de_DE_frami.aff
Reading Dictionaries/de/de_DE_frami.dic
Serializing...
Verifying...
Writing qtwebengine_dictionaries/de_DE_frami.bdic
Success. Dictionary converted.
/usr/lib/qt5/bin/qwebengine_convert_dict Dictionaries/el_GR/el_GR.dic qtwebengine_dictionaries/el_GR.bdic

When it got over them it didn't crash at once and took some 1h48min.

Arno_11 2023-09-21 19:17

Re: Browsers on Leste
 
Really cool !

i think eMMC 768 MB swap should be enough and disabling hildon compo should improve perfs a lot ( Ctl + Shift + N) during navigation.

teroyk 2023-09-21 20:19

Re: Browsers on Leste
 
Quote:

Originally Posted by AapoRantalainen (Post 1575684)
Dooble 2023.08.30
addressbar is not visible

Is there posibility to edit that menu bar and take anotherbuttons away to get room to addressbar?

Is there fullscreen mode or setting that if only one tab then dont show tab-line?

Maemish 2023-09-22 10:57

Re: Browsers on Leste
 
Thank you Aapo! Awesome!

Maemish 2023-09-22 12:51

Re: Browsers on Leste
 
teroyk's idea to use only one tab and get rid of tab bar makes sense. No ram anyway to use with many tabs.


Would it be better to tweak performance without overclocking?

teroyk 2023-10-07 14:56

Re: Browsers on Leste
 
Quote:

Originally Posted by druk13 (Post 1575670)
Thanks for sharing your experience with Konquerer and yes, Konqueror runs also fine on Droid 4 :)

I checked with htop with Pinephone, that Konqueror doesn't shut itself fully it leaves konqueror processes and they take some memory. How about with Droid 4?

AapoRantalainen 2023-10-08 07:46

Re: Browsers on Leste
 
4 Attachment(s)
Angelfish 21.07-2 for testing. This is also QT5 (qt5webengine) based browser so it's capabilities are almost identical with Dooble. GUI is suitable for small screen. Touch screen is only selecting the text and all scrolling must be done with keyboard.

Quote:

webbrowser designed to be used on small mobile devices
- https://invent.kde.org/network/angelfish


Download: https://drive.google.com/drive/folde...52dVZe4cyWZxPt
sha256: 4fa754bcdb690cde43330347534320c82b5ae92441bc0cb02d 2793f63d78aa30

Install using apt-get and path to the file so it will install dependencies from repositories.

Code:

sudo apt-get install ./angelfish_21.07-2build2_armhf.deb

You need manually start sapwood before browser:
Code:

/usr/lib/arm-linux-gnueabihf/sapwood/sapwood-server &
/usr/bin/angelfish

---
This angelfish version is from Ubuntu-22.04. It only needs lowering the minimum libkf5 -version (from 5.84 to 5.78).

Building:
Code:

dget http://archive.ubuntu.com/ubuntu/pool/universe/a/angelfish/angelfish_21.07-2build2.dsc
tar xf angelfish_21.07.orig.tar.gz
tar xf angelfish_21.07-2build2.debian.tar.xz
mv debian/ angelfish-v21.07/
cd angelfish-v21.07/
sed -i 's/5.84/5.78/g' debian/control
sed -i 's/5.84/5.78/g' CMakeLists.txt
dpkg-buildpackage


AapoRantalainen 2023-10-08 08:05

Re: Browsers on Leste
 
4 Attachment(s)
I checked already mentioned qtwebbrowser on maemo-extras.

Code:

sudo apt-get install qtwebbrowser
Looks like it is using same libraries than angelfish, but somehow it gets different scoring on tests.


All times are GMT. The time now is 01:12.

vBulletin® Version 3.8.8