maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   MeeGo / Harmattan (https://talk.maemo.org/forumdisplay.php?f=45)
-   -   Qt based Fennec (Firefox) - IPCLiteAPI - Hell it's fast! (https://talk.maemo.org/showthread.php?t=85191)

skyjumper 2013-01-07 03:48

Re: Qt based Fennec (Firefox) - IPCLiteAPI - Hell it's fast!
 
Quote:

Originally Posted by Morpog (Post 1311152)
  • cd /opt/mozbuildhm/
  • ./qmlMozEmbedTest

Alas I can't seem to get the program to start. I'm running as standard user. Extracted to /opt/. I'm getting the error:

Code:

XPCOMGLUE error for file /opt/mozbuildhm/libxpcom.so
libxul.so: Cannot open shared object file: No such file or directory
Could not start XPCOM glue.
segmentation fault.

Doing ls -l for libxul.so:
size: 35667184 in same dir.

Any ideas?

shmerl 2013-01-07 04:06

Re: Qt based Fennec (Firefox) - IPCLiteAPI - Hell it's fast!
 
May be you didn't set permissions right? What does ls -la says on the directory?

soryuuha 2013-01-07 04:06

Re: Qt based Fennec (Firefox) - IPCLiteAPI - Hell it's fast!
 
Sweet development update, thanks Morpog :)

skyjumper 2013-01-07 04:15

Re: Qt based Fennec (Firefox) - IPCLiteAPI - Hell it's fast!
 
Quote:

Originally Posted by shmerl (Post 1311730)
May be you didn't set permissions right? What does ls -la says on the directory?

It looks like 664 to me.
drwxrwxr-x mozbuildhm

shmerl 2013-01-07 04:21

Re: Qt based Fennec (Firefox) - IPCLiteAPI - Hell it's fast!
 
A similar symptom: https://bugzilla.mozilla.org/show_bug.cgi?id=723487

It could be that you are running a different version of Harmattan than the one that was targeted with this build.

skyjumper 2013-01-07 04:45

Re: Qt based Fennec (Firefox) - IPCLiteAPI - Hell it's fast!
 
Quote:

Originally Posted by shmerl (Post 1311734)
A similar symptom: https://bugzilla.mozilla.org/show_bug.cgi?id=723487

It could be that you are running a different version of Harmattan than the one that was targeted with this build.

I'm using PR1.3 40.2012.21-3.249.1_PR_249 ...

Morpog 2013-01-07 19:40

Re: Qt based Fennec (Firefox) - IPCLiteAPI - Hell it's fast!
 
Be sure to cd first into the directory. I wrote it in 2 commands for a reason.

freemangordon 2013-01-07 19:42

Re: Qt based Fennec (Firefox) - IPCLiteAPI - Hell it's fast!
 
"export LD_LIBRARY_PATH=./"?

skyjumper 2013-01-07 21:27

Re: Qt based Fennec (Firefox) - IPCLiteAPI - Hell it's fast!
 
Quote:

Originally Posted by Morpog (Post 1312072)
Be sure to cd first into the directory. I wrote it in 2 commands for a reason.

And for that reason I followed your commands. Yes I am in the directory before starting the executable.

Morpog 2013-01-07 21:38

Re: Qt based Fennec (Firefox) - IPCLiteAPI - Hell it's fast!
 
Have you changed permissions? I haven't. Maybe just delete the directory and untar again.

skyjumper 2013-01-07 22:04

Re: Qt based Fennec (Firefox) - IPCLiteAPI - Hell it's fast!
 
Quote:

Originally Posted by freemangordon (Post 1312073)
"export LD_LIBRARY_PATH=./"?

Yep, that did the trick. I would normally do this on a redhat system or similar. Didn't occur to me to do it for the N9.
I also had to install libpango1.0-0, libpango1.0-common and libxft2.

Now it's "working" :-)

romaxa 2013-01-15 11:02

Re: Qt based Fennec (Firefox) - IPCLiteAPI - Hell it's fast!
 
Created new build for Harmattan N9:
http://romaxa.info/mer/mozbuildhm.tar.gz
Mer, amhl7:
http://romaxa.info/mer/mozbuild.tar.gz

1) Added basic support for touch events (http://here.net, maps.google.com)
2) Some scrolling tunings
3) VKB should basically open on input field clicks.
4) added support for Prompt dialogs
5) QML UI + support for back/forward/reload functionality.
6) Rotation, resizes and some other minor fixes.
7) support for zooming, Zoom to block (double click)
7) QML view is kind-of easy to setup, and run, similar to Webkit QML interface.

To test, unpack and run:
./qmlMozEmbedTest -url linux.org.ru

thedead1440 2013-01-15 11:23

Re: Qt based Fennec (Firefox) - IPCLiteAPI - Hell it's fast!
 
romaxa,

Thanks for the new build :)

The main issue is when you enter text in one input field, entering text into any other input field on the same page appends the text into the first input field...

coderus 2013-01-15 11:36

Re: Qt based Fennec (Firefox) - IPCLiteAPI - Hell it's fast!
 
thanks. working :) posting from mozilla.
issue: vkb hides after showing if it covers input area.

MFaroTusino 2013-01-15 12:37

Re: Qt based Fennec (Firefox) - IPCLiteAPI - Hell it's fast!
 
I am getting a segmentation fault.
XPCOMGlueLoad error for file /opt/mozbuildhm/libxpcm.so:
libxul.so: cannot open shared object file: No such file or directory
Could not start XPCOM Glue
Segmentation fault

Artyom 2013-01-15 13:14

Re: Qt based Fennec (Firefox) - IPCLiteAPI - Hell it's fast!
 
thanks for the update romaxa. no segmentation faults so far. :)
unfortunately there are problems with scrolling. when i scroll in a webpage it acts like pinch to zoom and instead of scroll it zooms in and out rapidly. after a while the page disappears. occured at html5test, gsmarena and a local website.

thedead1440 2013-01-15 13:17

Re: Qt based Fennec (Firefox) - IPCLiteAPI - Hell it's fast!
 
Quote:

Originally Posted by MFaroTusino (Post 1315080)
I am getting a segmentation fault.
XPCOMGlueLoad error for file /opt/mozbuildhm/libxpcm.so:
libxul.so: cannot open shared object file: No such file or directory
Could not start XPCOM Glue
Segmentation fault

Either cd to dest dir first or export lib path...

freemangordon 2013-01-15 14:17

Re: Qt based Fennec (Firefox) - IPCLiteAPI - Hell it's fast!
 
Quote:

Originally Posted by romaxa (Post 1315040)
Created new build for Harmattan N9:
http://romaxa.info/mer/mozbuildhm.tar.gz
Mer, amhl7:
http://romaxa.info/mer/mozbuild.tar.gz

1) Added basic support for touch events (http://here.net, maps.google.com)
2) Some scrolling tunings
3) VKB should basically open on input field clicks.
4) added support for Prompt dialogs
5) QML UI + support for back/forward/reload functionality.
6) Rotation, resizes and some other minor fixes.
7) support for zooming, Zoom to block (double click)
7) QML view is kind-of easy to setup, and run, similar to Webkit QML interface.

To test, unpack and run:
./qmlMozEmbedTest -url linux.org.ru

I tried to follow your build instructions from https://wiki.mozilla.org/Embedding/I..._instructions: , without success:

Code:

hg update -R .hg/patches 363:3cf100bfe72b
abort: unknown revision '363:3cf100bfe72b'!


Morpog 2013-01-15 17:17

Re: Qt based Fennec (Firefox) - IPCLiteAPI - Hell it's fast!
 
Great improvements since last build! Looking forward to next one, u rox!

romaxa 2013-01-15 17:28

Re: Qt based Fennec (Firefox) - IPCLiteAPI - Hell it's fast!
 
I updated build instructions
https://wiki.mozilla.org/Embedding/I..._instructions:
now repository located on github.

freemangordon 2013-01-15 17:41

Re: Qt based Fennec (Firefox) - IPCLiteAPI - Hell it's fast!
 
Quote:

Originally Posted by romaxa (Post 1315198)
I updated build instructions
https://wiki.mozilla.org/Embedding/I..._instructions:
now repository located on github.

thanks, going to try to build it for frematle :)

www.rzr.online.fr 2013-01-15 18:27

Re: Qt based Fennec (Firefox) - IPCLiteAPI - Hell it's fast!
 
can you provide a direct link to dsc / patches too ?

romaxa 2013-01-15 20:04

Re: Qt based Fennec (Firefox) - IPCLiteAPI - Hell it's fast!
 
Quote:

Originally Posted by www.rzr.online.fr (Post 1315223)
can you provide a direct link to dsc / patches too ?

Hmm there is the branch with all stuff inside, rebased yesterday it to recent m-c.

bandora 2013-01-15 20:09

Re: Qt based Fennec (Firefox) - IPCLiteAPI - Hell it's fast!
 
I wonder if we can use the same UI from the Qt UI from the N9 proto?
From this thread: http://talk.maemo.org/showthread.php...7&goto=newpost

romaxa 2013-01-15 21:21

Re: Qt based Fennec (Firefox) - IPCLiteAPI - Hell it's fast!
 
Quote:

Originally Posted by bandora (Post 1315242)
I wonder if we can use the same UI from the Qt UI from the N9 proto?
From this thread: http://talk.maemo.org/showthread.php...7&goto=newpost


Not sure I was using some simple QML ui around for long time...
Currently refactored embedding API, moved more stuff to generic part, created tiny Qt layer for QML adaptation...

romaxa 2013-01-15 21:22

Re: Qt based Fennec (Firefox) - IPCLiteAPI - Hell it's fast!
 
Btw, Is anyone willing to participate development, for example write nice looking UI instead of this one: https://github.com/romaxa/mozilla-ce...l/MainPage.qml
Any QML developers around willing to contribute?

coderus 2013-01-15 21:34

Re: Qt based Fennec (Firefox) - IPCLiteAPI - Hell it's fast!
 
I'm interesting in making Harmattan-like QML GUI

freemangordon 2013-01-15 21:46

Re: Qt based Fennec (Firefox) - IPCLiteAPI - Hell it's fast!
 
Quote:

Originally Posted by coderus (Post 1315260)
I'm interesting in making Harmattan-like QML GUI

Please, keep it compatible with fremantle (if possible)

romaxa 2013-01-15 21:50

Re: Qt based Fennec (Firefox) - IPCLiteAPI - Hell it's fast!
 
Quote:

Originally Posted by freemangordon (Post 1315265)
Please, keep it compatible with fremantle (if possible)

Current version is should be working pretty much anywhere...
At least I'm keeping it running on normal desktop Qt4.8.
Also build which I'm posting for N9 is not using meegotouch or any harmattan stuff...
https://github.com/romaxa/mozilla-ce...config.qtN9-qt
SW rendering should just work on Fremantle... EGL probably need some hooks around EGL drivers bugs.

romaxa 2013-01-15 21:57

Re: Qt based Fennec (Firefox) - IPCLiteAPI - Hell it's fast!
 
Quote:

Originally Posted by coderus (Post 1315260)
I'm interesting in making Harmattan-like QML GUI

I'm going to bake Embedding Branch in github for a while until it is ready to ship, and keep reference QML test browser inside...

Not sure what would be the best placeholder for writing Nice user friendly browser UI, same place under different folder, or create shared repository for UI only, which would be possible to build against Qt XULRUNNER with EmbedLite API's., any suggestions?

Will try to create separate repository as example of start placeholder for User Friendly UI. and post some documentation how to build Engine and build that UI against Engine with mozi embedding enabled

romaxa 2013-01-15 21:58

Re: Qt based Fennec (Firefox) - IPCLiteAPI - Hell it's fast!
 
Quote:

Originally Posted by freemangordon (Post 1315265)
Please, keep it compatible with fremantle (if possible)

Does freemantle have Qt4.8 ?

coderus 2013-01-15 21:59

sorry i have no experience with n900, but as i can see on screenshots, its better to have 2 different ui for meego and maemo.

freemangordon 2013-01-15 21:59

Re: Qt based Fennec (Firefox) - IPCLiteAPI - Hell it's fast!
 
Quote:

Originally Posted by romaxa (Post 1315267)
Current version is should be working pretty much anywhere...
At least I'm keeping it running on normal desktop Qt4.8.
Also build which I'm posting for N9 is not using meegotouch or any harmattan stuff...
https://github.com/romaxa/mozilla-ce...config.qtN9-qt
SW rendering should just work on Fremantle... EGL probably need some hooks around EGL drivers bugs.

CSSU comes with Qt 4.7.4 so I dont have concerns on Qt side. Though I think QML on Harmattan is newer that the one on Fremantle, that is why I asked to keep it compatible, if it is possible.

SW rendering (esp when gcc 4.7.2, thumb compiled) is pretty fast, at least it was in my Fennec 17 builds. Waiting the current build to finish(it takes eons in scratchbox), will see what is the situation.

coderus 2013-01-15 22:00

even n9 have no qt 4.8. only 4.7.4 afaik. and qt5 beta.

freemangordon 2013-01-15 22:01

Re: Qt based Fennec (Firefox) - IPCLiteAPI - Hell it's fast!
 
Quote:

Originally Posted by coderus (Post 1315273)
sorry i have no experience with n900, but as i can see on screenshots, its better to have 2 different ui for meego and maemo.

You got me wrong :).

The point is to not use some fancy QML or whatever interfaces/classes which are specific to Harmattan. Again, only if possible.

qwazix 2013-01-15 22:16

Re: Qt based Fennec (Firefox) - IPCLiteAPI - Hell it's fast!
 
@coderus, romaxa count me in for the UI

@freemangordon in my understanding the philosophy behind qml is "disposable UI's". As there are no ifdefs in qml it's better to just build two of them. Maybe two git branches with a common base would be the way to go.

Even if everything works perfectly from one platform to another, the import statements are enough to break everything.

On a sidenote, it would be nice to use this for the fremantle UI

freemangordon 2013-01-15 22:24

Re: Qt based Fennec (Firefox) - IPCLiteAPI - Hell it's fast!
 
Quote:

Originally Posted by qwazix (Post 1315283)
@coderus, romaxa count me in for the UI

@freemangordon in my understanding the philosophy behind qml is "disposable UI's". As there are no ifdefs in qml it's better to just build two of them. Maybe two git branches with a common base would be the way to go.

Even if everything works perfectly from one platform to another, the import statements are enough to break everything.

On a sidenote, it would be nice to use this for the fremantle UI

OK, I know almost nothing about QML, so I believe in what you say :)

romaxa 2013-01-15 23:28

Re: Qt based Fennec (Firefox) - IPCLiteAPI - Hell it's fast!
 
Quote:

Originally Posted by freemangordon (Post 1315274)
CSSU comes with Qt 4.7.4 so I dont have concerns on Qt side. Though I think QML on Harmattan is newer that the one on Fremantle, that is why I asked to keep it compatible, if it is possible.

SW rendering (esp when gcc 4.7.2, thumb compiled) is pretty fast, at least it was in my Fennec 17 builds. Waiting the current build to finish(it takes eons in scratchbox), will see what is the situation.

Practically you can try to build it from that branch, export SWRENDER=1 ./qml....
or launch with -no-glwidget cmd line argument. that will make it run with SW rendering

Morpog 2013-01-15 23:51

Re: Qt based Fennec (Firefox) - IPCLiteAPI - Hell it's fast!
 
I've got some great ideas for UI, will share them tomorrow.

freemangordon 2013-01-15 23:53

Re: Qt based Fennec (Firefox) - IPCLiteAPI - Hell it's fast!
 
So far the only dependency to Qt 4.8 is:

Code:

QApplication::setAttribute(Qt::AA_X11InitThreads, true);
which is easily replaceable with:
Code:

.
.
.
#if defined(Q_WS_X11)
#include <X11/Xlib.h>
#endif
.
.
.

#if QT_VERSION >= 0x040800
    QApplication::setAttribute(Qt::AA_X11InitThreads, true);
#else
    XInitThreads();
    QApplication::setAttribute(static_cast<Qt::ApplicationAttribute>(10), true);
#endif

Of course -lX11 should be added to make scripts too

@romaxa - would you consider adding that code to your branch?


All times are GMT. The time now is 04:57.

vBulletin® Version 3.8.8