maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Alternatives (https://talk.maemo.org/forumdisplay.php?f=36)
-   -   Palm WebOS on N900 (https://talk.maemo.org/showthread.php?t=44150)

marmistrz 2012-02-01 16:18

Re: Palm WebOS on N900
 
Hmmm..... I can just add this what isn't in maemo yet...
I can play a bit ;)

And if I mess something up, I can always reflash

Are there some essential libs that Mojo apps won't run without for sure?
How are run the hybrid apps in WebOS? What's the procedure?

cddiede 2012-02-01 16:57

Re: Palm WebOS on N900
 
Quote:

Originally Posted by marmistrz (Post 1159012)
Hmmm..... I can just add this what isn't in maemo yet...
I can play a bit ;)

And if I mess something up, I can always reflash

Are there some essential libs that Mojo apps won't run without for sure?
How are run the hybrid apps in WebOS? What's the procedure?

Really good questions. Maybe a good place to ask would be over at the WebOS internals forums?

marmistrz 2012-02-01 18:48

Re: Palm WebOS on N900
 
Alright, I'll ask there 2moro

ivgalvez 2012-02-01 19:38

Re: Palm WebOS on N900
 
marmistrz, why don't you try to replicate Javispedro approach by chrooting the WebOS image?

marmistrz 2012-02-02 16:27

Re: Palm WebOS on N900
 
I'll try it...
But I'll try finding a direct-preenv way - just not to wait these 80 secs :)

EDIT: http://forums.webosnation.com/webos-...brid-apps.html. Posted here, but up to now, no reply. If somebody knows the answer, I encourage to post it :) UPDATE: finally an answer on this forum

EDIT2: Maybe there would be some way to run the webos emulator verbosely?

don_falcone 2012-02-07 15:42

Re: Palm WebOS on N900
 
Wasn't that you who found the source code to Symbian too?

marmistrz 2012-02-07 16:04

Re: Palm WebOS on N900
 
Nope. I was trying to do something but I didn't manage to do it.

Getting back 2 the topic:
I installed Palm SDK. The App Catalog wasn't there, but I was able to find its ipk. Here's what the App Catalog logs:
Code:

following logs for application com.palm.app.findapps on device "emulator" {b84a5eb698c46a694a59d5aa68c4b53324159ef2} tcp 39584
[20120207-16:57:09.284351] info: =========> Calling palmInitFramework506, /usr/palm/frameworks/mojo/mojo.js:142
[20120207-16:57:10.452409] error: Uncaught ReferenceError: AppLists is not defined, allscriptscompressed.js:1
[20120207-16:57:12.003958] error: Weave.Utilities.AppCategoriesHelper._fetchCategoriesFromServer failed!
[20120207-16:57:12.004168] error: Errors.displayError errorCode failure, args undefined, defaultError undefined, defaultMessage undefined
[20120207-16:57:12.004237] error: Errors._displayErrorPage failure
[20120207-16:57:12.137263] error: **** error in obtaining token {"errorText": "Token could not be fetched", "errorCode": "NO_TOKEN", "exception": "[object Object]", "returnValue": false}
[20120207-16:57:12.137485] error: **** error in obtaining token {"errorText": "Token could not be fetched", "errorCode": "NO_TOKEN", "exception": "[object Object]", "returnValue": false}
[20120207-16:57:12.847705] error: ERROR failure
[20120207-16:57:12.862760] error: An exception occurred in the 'error' scene's setup() method.
[20120207-16:57:12.863157] error: Error: Cannot read property 'style' of null, line undefined, file undefined
[20120207-16:57:13.011937] error: Uncaught TypeError: Cannot read property 'mcc' of undefined, allscriptscompressed.js:1
[20120207-16:57:13.023971] error: Errors.displayError errorCode failure, args undefined, defaultError undefined, defaultMessage undefined
[20120207-16:57:13.025815] error: Errors._displayErrorPage failure
[20120207-16:57:13.039693] error: ERROR failure
[20120207-16:57:13.053063] error: An exception occurred in the 'error' scene's setup() method.
[20120207-16:57:13.053779] error: Error: Cannot read property 'style' of null, line undefined, file undefined

what's that token?
more important: can we provide the token other way?

we can ssh to the emulator and this way copy the files. So the only problem is the app catalog not running

don_falcone 2012-02-08 07:50

Re: Palm WebOS on N900
 
Quote:

Originally Posted by marmistrz (Post 1159521)
EDIT: http://forums.webosnation.com/webos-...brid-apps.html. Posted here, but up to now, no reply. If somebody knows the answer, I encourage to post it :) UPDATE: finally an answer on this forum

Good luck with those.

marmistrz 2012-02-11 10:25

Re: Palm WebOS on N900
 
Hmmm... Does anybody know how would I launch a mojo app from command line on Palm (pure command line, such as in N900)?

Update: I modified a bit the index.html, here's what firefox tells
Code:

[11:46:25.601] file:///media/DANE/proj/palm/gen2/usr/palm/applications/com.palm.app.findapps/index.html
[11:46:25.649] file:///media/DANE/proj/palm/gen2/usr/palm/frameworks/mojo/mojo.js
[11:46:25.666] file:///media/DANE/proj/palm/gen2/usr/lib/luna/luna-network/stylesheets/system-notification.css
[11:46:25.670] file:///media/DANE/proj/palm/gen2/usr/palm/applications/com.palm.app.findapps/stylesheets/appcatalog.css
[11:46:25.687] Error in parsing value for 'background'.  Declaration dropped. @ file:///media/DANE/proj/palm/gen2/usr/palm/applications/com.palm.app.findapps/stylesheets/appcatalog.css:76
[11:46:25.694] Error in parsing value for 'min-height'.  Declaration dropped. @ file:///media/DANE/proj/palm/gen2/usr/palm/applications/com.palm.app.findapps/stylesheets/appcatalog.css:346
[11:46:25.698] Error in parsing value for 'background-position'.  Declaration dropped. @ file:///media/DANE/proj/palm/gen2/usr/palm/applications/com.palm.app.findapps/stylesheets/appcatalog.css:459
[11:46:25.705] Unknown property 'box-sizing'.  Declaration dropped. @ file:///media/DANE/proj/palm/gen2/usr/palm/applications/com.palm.app.findapps/stylesheets/appcatalog.css:1214

The content of index.html is:
Code:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
  "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">

<head>
        <!-- Timing
        <script type="text/javascript">
                var timer = new Date();
                var total = new Date();
        </script>
        -->
       
        <meta name="viewport" content="height=device-height">
        <script src="../../frameworks/mojo/mojo.js" x-mojo-version="1" xx-mojo-submission='trunk' type="text/javascript"></script>
        <!-- Some library code clones this out of here into the dashboard window ... sigh -->
        <link href="../../../lib/luna/luna-network/stylesheets/system-notification.css" rel="stylesheet" type="text/css" />
        <link href="stylesheets/appcatalog.css" rel="stylesheet" type="text/css" />
       
        <!-- Timing
        <script type="text/javascript">
                var curr = new Date();
                console.log("@@@@@@@@@@@@@@@@@@@ FW load diff: " + (curr.getTime() - timer.getTime()));
                console.log("@@@@@@@@@@@@@@@@@@@ FW load total: " + (curr.getTime() - total.getTime()));
                timer = new Date();
        </script>
        -->
</head>

<body>
</body>

</html>


marmistrz 2012-02-11 15:36

Re: Palm WebOS on N900
 
1 Attachment(s)
Here are the "fixed" appcatalog.css and index.html.
"fixed" means that firefox doesn't throw errors but this has one downside: the app catalog doesn't seem to launch.

Does anybody know where the problem lies?

App Catalog extracted from ipk (/usr/palm/ipkgs/) from webos doctor 2.2.4 http://palm.cdnetworks.net/rom/manta...224mantawr.jar


All times are GMT. The time now is 15:54.

vBulletin® Version 3.8.8