maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   [Announce][Pre-Alpha] Prewebenv - run Mojo WebOS apps on Fremantle [Added a concept solution on 9th Jun 2012] (https://talk.maemo.org/showthread.php?t=84787)

marmistrz 2012-06-09 14:20

[Announce][Pre-Alpha] Prewebenv - run Mojo WebOS apps on Fremantle [Added a concept solution on 9th Jun 2012]
 
Hi
I'm finally posting something I did a long time ago. If someone was watching the Palm WebOS on N900 thread, he'd notice that.

Through trial and error I managed to run some Mojo apps under Chromium. It's not the optimal solution, which would be qtwrt but at least works.

Then I was looking for someone who'd help with this, to use qtwrt instead of sluggish Chromium, but all in vain. Only TransTech joined me, but even then we couldn't do it. So I decided that I'll push what I already did.

Finally I worked out a concept solution which isn't perfect but doesn't suffer from Chromium-caused downsides.

How to set this up:

First of all you need Easy Debian. I told you it's not the optimal solution, didn't I?

After you set up Easy Debian, install Chromium in Easy Debian chroot // concept solution doesn't need all this stuff, but isn't perfect

Code:

apt-get install chromium-browser
Then you need to set the Mojo framework up.

http://wiki.maemo.org/Standard_WebOS_apps

You can download WebOS image from here

Prewebenv provides a symlink in /usr/palm which point to /home/user/palm

Why that way? It's nice to have all the setup done after reflash. You have all the apps saved too.
With it you can install the WebOS apps (preenv games too) by just
Code:

dpkg -x /path/to/ipk/file /
How to run a Mojo app?

After adding the line specified in the wiki, you just need to run
Code:

prewebenv /usr/palm/application/<appname>/index.html
Unfortunately, you need to provide the full path. I don't know a way to modify the arguments yet.

What works not:
  • Chromium is sluggish and laggy
  • Launching an app is really slow
  • You need Easy Debian
  • vkb doesn't work in Chromium.
  • You need to provide full path
  • For Easy Debian you need to modify the index.html // in concept solution it should be removed as the workaround causes the interface to be painted 2 times
  • There's no easy way to make shortcuts
  • EDIT: the concept solution has problems too. Although it reduces the problems of Chromium (lagginess), it has problems with running them.

As you can see, there's a lot to be done. There's a concept solution I found, but it's very imperfect... http://talk.maemo.org/showpost.php?p...0&postcount=17

The current team for QtWRT porting is:
  • marmistrz
  • TransTech - he did some QtWRT apps

If you want to support my work, you can DONATE. Thank you!
If you can't donate but you want to support this project, please contact me.

sifo 2012-06-09 14:38

Re: [Announce][Pre-Alpha] Prewebenv - run Mojo WebOS apps on Fremantle
 
marmistrz you rock again ;) thank you

naru 2012-06-09 16:13

Re: [Announce][Pre-Alpha] Prewebenv - run Mojo WebOS apps on Fremantle
 
thanks u are rocking... very nice

HtheB 2012-06-09 16:32

Re: [Announce][Pre-Alpha] Prewebenv - run Mojo WebOS apps on Fremantle
 
finally!
thanks! been waiting so long for this! :)

possible to make it able to work for N9/N950

qwazix 2012-06-09 16:47

Re: [Announce][Pre-Alpha] Prewebenv - run Mojo WebOS apps on Fremantle
 
There is native chromium for the N900 on a contributors repository

deb http://maemo.jacekowski.org/ fremantle free non-free

maybe that works a bit better

marmistrz 2012-06-09 18:37

Re: [Announce][Pre-Alpha] Prewebenv - run Mojo WebOS apps on Fremantle
 
Quote:

Originally Posted by qwazix (Post 1219942)
There is native chromium for the N900 on a contributors repository

deb http://maemo.jacekowski.org/ fremantle free non-free

maybe that works a bit better

Unfortunately it won't. I checked it a long time ago. I tried chess.com app and it works with chromium >= 6. With chromium 5 there's an "Aw snap" error.

willi6868 2012-06-10 14:32

Re: [Announce][Pre-Alpha] Prewebenv - run Mojo WebOS apps on Fremantle
 
[OffTopic]

An emuluator/app like AlienDalvik (which have been never released?!) for running Android apps would be amazing. :D :)

[OffTopic]

Nice work! :)

marmistrz 2012-06-27 18:21

Re: [Announce][Pre-Alpha] Prewebenv - run Mojo WebOS apps on Fremantle
 
I've just uploaded a minor update. Chromium had problems with the location of the symlink. Now the symlink points to /home/user/palm.

jflatt 2012-06-27 19:27

Re: [Announce][Pre-Alpha] Prewebenv - run Mojo WebOS apps on Fremantle
 
What kind of problems did you run into with QtWRT?

MINKIN2 2012-06-27 20:54

Re: [Announce][Pre-Alpha] Prewebenv - run Mojo WebOS apps on Fremantle
 
This is cool! Would be nice to have some sort of exhibition app runnuing on the n900.

Sadly I appear to have stumbled on the first hurdle already...

What is missing?

Code:

Chroot dir specified: /.debian
No image file or partition specified.
ls: /media/mmc1/debian*.img*: No such file or directory
/.debian has a qmount already!
/home/user/MyDocs/debian-m5-v3d.img.ext2 already mounted on /.debian...
Everything set up, running chroot...
[root@deb-m5v3d: /]apt-get install chomium-browser
Reading package lists... Done
Building dependency tree     
Reading state information... Done
E: Couldn't find package chomium-browser


HtheB 2012-06-27 21:17

Re: [Announce][Pre-Alpha] Prewebenv - run Mojo WebOS apps on Fremantle
 
does anybody know if grooveshark is working?

by the way, is there no way to get preenv and prewebenv to work on harmattan?

jflatt 2012-06-27 23:44

Re: [Announce][Pre-Alpha] Prewebenv - run Mojo WebOS apps on Fremantle
 
Quote:

Originally Posted by MINKIN2 (Post 1228331)
E: Couldn't find package chomium-browser

chromium-browser

marmistrz 2012-06-28 11:19

Re: [Announce][Pre-Alpha] Prewebenv - run Mojo WebOS apps on Fremantle
 
1 Attachment(s)
Quote:

Originally Posted by MINKIN2 (Post 1228331)
This is cool! Would be nice to have some sort of exhibition app runnuing on the n900.

Sadly I appear to have stumbled on the first hurdle already...

What is missing?

Code:

Chroot dir specified: /.debian
No image file or partition specified.
ls: /media/mmc1/debian*.img*: No such file or directory
/.debian has a qmount already!
/home/user/MyDocs/debian-m5-v3d.img.ext2 already mounted on /.debian...
Everything set up, running chroot...
[root@deb-m5v3d: /]apt-get install chomium-browser
Reading package lists... Done
Building dependency tree     
Reading state information... Done
E: Couldn't find package chomium-browser


it was a typo, it should be chromium-browser, as jflatt said.


Quote:

Originally Posted by jflatt (Post 1228310)
What kind of problems did you run into with QtWRT?

At first it was http://imageshack.us/photo/my-images/72/chesso.png/
Then I found that way out (attached patch) - the patch was created for the original framework.js
And after patching the error was:

TypeError: Result of expression 'Mojo.appPath' [null] is not an object. framework.js:601

Should I write more about how I set it up?

Quote:

Originally Posted by HtheB (Post 1228339)
does anybody know if grooveshark is working?

by the way, is there no way to get preenv and prewebenv to work on harmattan?

Prewebenv: I don't think so. Unless you have chromium >= 6.0 for it. And easy debian isn't present on N9 afaik.

HtheB 2012-06-28 22:38

Re: [Announce][Pre-Alpha] Prewebenv - run Mojo WebOS apps on Fremantle
 
Quote:

Originally Posted by marmistrz (Post 1228540)
Prewebenv: I don't think so. Unless you have chromium >= 6.0 for it. And easy debian isn't present on N9 afaik.

I was talking about grooveshark the app that is available for webos. They have an app for webos.

qwazix 2012-06-28 23:14

Re: [Announce][Pre-Alpha] Prewebenv - run Mojo WebOS apps on Fremantle
 
Have you tried helium with this? Webkit based, don't know now recent, might help remove the dependency to easydebian

marmistrz 2012-06-30 18:23

Re: [Announce][Pre-Alpha] Prewebenv - run Mojo WebOS apps on Fremantle
 
Quote:

Originally Posted by qwazix (Post 1228819)
Have you tried helium with this? Webkit based, don't know now recent, might help remove the dependency to easydebian

Yeah, I think I tried every browser for N900 I found. Only one of them worked at all (the application showed up) - it was probably Digia @web IIRC (for sure there was a blue bar on the right to zoom in & out). Even in this browser trying to log-in to chess.com (I tested with this app) doesn't work, and I didn't see any command line options for @web.

marmistrz 2012-07-08 20:03

Re: [Announce][Pre-Alpha] Prewebenv - run Mojo WebOS apps on Fremantle
 
I'm uploading an other approach, it's a very pre alpha try, but the best way I've found. It's.... Qt HTML5 application. It doesn't complain as much as QtWRT. I modified it so that you should run
Code:

/path/to/prewebenv-runner /path/to/webos/app/index.html
It's run in fullscreen (so you may need to "end current task")
Some features may not work. There might be some problems with touch screen mapping. But this may be connected with my specific software configuration. Please tell how it works with your apps!

Finally the download
http://marmistrz.net63.net/public/prewebenv/
The source is uploaded too, the .tar.gz file. The file prewebenv-runner.gz is the executable.

To developers: I don't think whether it's any need of sticking with QtWRT if this approach works (not perfectly, but it's more customizable than a browser and more working than QtWRT).
What do you think?

ivgalvez 2012-07-09 13:22

Re: [Announce][Pre-Alpha] Prewebenv - run Mojo WebOS apps on Fremantle [Added a concept solution on 9th Jun 2012]
 
Helium Mobile is now available for Maemo 5. Might worth to try with it.

marmistrz 2012-07-09 16:18

Re: [Announce][Pre-Alpha] Prewebenv - run Mojo WebOS apps on Fremantle [Added a concept solution on 9th Jun 2012]
 
Quote:

Originally Posted by ivgalvez (Post 1234441)
Helium Mobile is now available for Maemo 5. Might worth to try with it.

Apps won't load with Helium Mobile. Is anyone here experienced in Qt HTML apps?

marmistrz 2012-07-11 09:12

Re: [Announce][Pre-Alpha] Prewebenv - run Mojo WebOS apps on Fremantle [Added a concept solution on 9th Jun 2012]
 
There was some problem with the executable. I recompiled it and reuploaded.
The executable is in the prewebenv-runner.gz file.
You should gunzip and chmod +x it.

MaximusSilin 2012-07-17 01:35

Re: [Announce][Pre-Alpha] Prewebenv - run Mojo WebOS apps on Fremantle [Added a concept solution on 9th Jun 2012]
 
At first, I want to say "Thank you for your work, marmistrz!"
Then, may be it is stupid, but have you tried Fennec on N900?

marmistrz 2012-07-17 08:07

Re: [Announce][Pre-Alpha] Prewebenv - run Mojo WebOS apps on Fremantle [Added a concept solution on 9th Jun 2012]
 
Quote:

Originally Posted by MaximusSilin (Post 1238509)
At first, I want to say "Thank you for your work, marmistrz!"
Then, may be it is stupid, but have you tried Fennec on N900?

No, I didn't try, but Fennec won't problably work (firefox isn't qtwebkit)

QtWebkit viewer is the thing which will most probably work (offline apps, non-faceless and not using ares.js work alright)

I created a thread here: http://qt-project.org/forums/viewthread/18821 so that maybe someone helps me with making the viewer appropriate for Mojo apps. If someone knows a solution for one of the problems, please let me know!


All times are GMT. The time now is 16:18.

vBulletin® Version 3.8.8