OESF | ELSI | pdaXrom | OpenZaurus | Zaurus Themes | Community Links | Ibiblio

IPB

Welcome Guest ( Log In | Register )

> Graphical Web Browser
ins0mniaque
post Oct 4 2005, 12:24 PM
Post #1





Group: Members
Posts: 27
Joined: 18-May 05
Member No.: 7,162



I'm been trying to build a graphical web browser, but it seems that they are all not ported to the "arm" processor. mozilla, firefox and minimo are not "ported" and koqueror-embedded is horrible. Even w3m doesn't compile (will try to fix it if I have time, or I'll test again in 1-2 weeks and correctly report it to the ports team), ok, it's not graphical, but at least it's a text browser I'm used to use.

What are you guys using? I would be really happy to have access to maps.google.com smile.gif (It should work in Minimo IIRC)
Go to the top of the page
 
+Quote Post
 
Start new topic
Replies
pgas
post Feb 19 2006, 03:11 AM
Post #2





Group: Members
Posts: 1,099
Joined: 17-December 03
From: Athens, Greece
Member No.: 1,210



here are the tips given to me on #openzaurus to build gpe-minibroswer:
webcore : cvsdate 20050430 and two patches :
http://www.kernelconcepts.de/~fuchs/oe/gdk-colorspace.diff
http://www.kernelconcepts.de/~fuchs/oe/sto...e-loading.patch

(not specially related to open-bsd )

edit: It might have been on #gpe on irc.freenode.net
Go to the top of the page
 
+Quote Post
iamasmith
post Feb 19 2006, 03:17 AM
Post #3





Group: Members
Posts: 1,248
Joined: 6-July 04
Member No.: 3,928



QUOTE(pgas @ Feb 19 2006, 11:11 AM)
here are the tips given to me on #openzaurus to build gpe-minibroswer:
webcore : cvsdate 20050430 and two patches :
      http://www.kernelconcepts.de/~fuchs/oe/gdk-colorspace.diff
      http://www.kernelconcepts.de/~fuchs/oe/sto...e-loading.patch

(not specially related to open-bsd )
*


Thanks pgas but the nature of this issue doesn't effect Linux since Linux implements an alternate non-posix extension to pthreads that the kjs source in JavaScriptCore utilises if __linux is defined so you wouldn't have the issue that I'm working on anyway.

Basically the call sequence is used to get the stack address of the thread, something which isn't in the posix specification and sounds just the sort of extension that OpenBSD wouldn't want since it is potentially open to misuse. I took a look at version of kdelibs that this version of kjs was derived from and there is a critical comment inside the source about 'changing this since it isn't portable'. - I guess I will trawl for kdelibs patches next... someone porting to QNX or something else may have a workaround.

here's the member function from kdelibs to show you...

299 void Collector::markCurrentThreadConservatively()
300 {
301 jmp_buf registers;
302 setjmp(registers);
303
304 #if __APPLE__
305 pthread_t thread = pthread_self();
306 void *stackBase = pthread_get_stackaddr_np(thread);
307 #elif defined(_WIN32) || defined(_WIN64)
308 NT_TIB *pTib;
309 #ifdef __GNUC__
310 __asm__("movl %%fs:0x18,%0"
311 : "=r" (pTib)
312 );
313 #else
314 __asm {
315 MOV EAX, FS:[18h]
316 MOV pTib, EAX
317 }
318 #endif
319 void *stackBase = (void *)pTib->StackBase;
320 #else
321 static void *stackBase = 0;
322 static pthread_t stackThread;
323 pthread_t thread = pthread_self();
324 if (stackBase == 0 || thread != stackThread) {
325 pthread_attr_t sattr;
326 #ifdef HAVE_PTHREAD_NP_H
327 // e.g. on FreeBSD 5.4, neundorf@kde.org
328 pthread_attr_get_np(thread, &sattr);
329 #else
330 // FIXME: this function is non-portable; other POSIX systems may have different np alternatives
331 pthread_getattr_np(thread, &sattr);
332 #endif
333 // Should work but fails on Linux (?)
334 // pthread_attr_getstack(&sattr, &stackBase, &stackSize);
335 pthread_attr_getstackaddr(&sattr, &stackBase);
336 assert(stackBase);
337 stackThread = thread;
338 }
339 #endif
340
341 int dummy;
342 void *stackPointer = &dummy;
343
344 markStackObjectsConservatively(stackPointer, stackBase);
345 }

EDIT:.... found a kludge for now..

/* OpenBSD workaround */
stack_t stack_info;
pthread_stackseg_np(thread,&stack_info);
void *stackBase=stack_info.ss_sp;
....

- Andy
Go to the top of the page
 
+Quote Post

Posts in this topic
ins0mniaque   Graphical Web Browser   Oct 4 2005, 12:24 PM
Sequethin   QUOTE(ins0mniaque @ Oct 4 2005, 04:24 PM)I...   Oct 5 2005, 04:47 AM
ins0mniaque   But IIRC, Dillo does not display maps.google.com a...   Oct 5 2005, 05:38 AM
iamasmith   This is a real problem... I'm going to see if ...   Feb 9 2006, 08:38 AM
barryg   Good day! QUOTE(ins0mniaque @ Oct 5 2005...   Feb 9 2006, 03:45 PM
iamasmith   OK, I managed to tweak the build to start Firefox ...   Feb 15 2006, 03:17 PM
iamasmith   Damn, 19 hours later it segfaulted... I may have m...   Feb 16 2006, 02:59 PM
macwiz   Hi. Firefox is working fine on pdaxrom. Perhaps th...   Feb 16 2006, 03:23 PM
iamasmith   Thanks Macwiz, I have used Firefox quite a bit on ...   Feb 16 2006, 03:55 PM
Hrw   You could also look how we handled Firefox in Open...   Feb 16 2006, 03:59 PM
iamasmith   QUOTE(Hrw @ Feb 16 2006, 11:59 PM)You could a...   Feb 16 2006, 04:11 PM
iamasmith   Well I'm now itching to take a look at gpe-min...   Feb 18 2006, 03:02 AM
koen   QUOTE(iamasmith @ Feb 18 2006, 11:02 AM)Perha...   Feb 18 2006, 07:40 AM
iamasmith   QUOTE(koen @ Feb 18 2006, 03:40 PM)QUOTE(iama...   Feb 18 2006, 07:59 AM
iamasmith   Ok, I have all the stuff... gpe-minibrowser doesn...   Feb 18 2006, 11:01 AM
koen   QUOTE(iamasmith @ Feb 18 2006, 07:01 PM)Howev...   Feb 18 2006, 11:55 AM
iamasmith   OK Koen, nice little browser that, actually the br...   Feb 18 2006, 02:52 PM
iamasmith   *sigh* autogen is using some new funky Gnuism with...   Feb 18 2006, 03:24 PM
iamasmith   QUOTE(iamasmith @ Feb 18 2006, 11:24 PM)*sigh...   Feb 18 2006, 03:37 PM
iamasmith   aaargh, JavaScriptCore uses some non posix pthread...   Feb 18 2006, 05:17 PM
koen   QUOTE(iamasmith @ Feb 19 2006, 01:17 AM)aaarg...   Feb 19 2006, 02:00 AM
iamasmith   I have minimo and it's ok but a little unstabl...   Feb 19 2006, 02:44 AM
pgas   here are the tips given to me on #openzaurus to bu...   Feb 19 2006, 03:11 AM
iamasmith   QUOTE(pgas @ Feb 19 2006, 11:11 AM)here are t...   Feb 19 2006, 03:17 AM
iamasmith   OK, I finally got gpe-minibrowser running on OpenB...   Feb 20 2006, 02:48 AM
iamasmith   So I can afford to leave my Z building a little wh...   Feb 20 2006, 03:34 AM
mathemajikian   QUOTE(ins0mniaque @ Oct 4 2005, 08:24 PM)Even...   Aug 19 2007, 05:33 AM
ZDevil   Thanks! w3m is very sweat. Next I will try to...   Aug 21 2007, 04:07 AM
mathemajikian   QUOTE(ZDevil @ Aug 21 2007, 12:07 PM)Thanks...   Aug 21 2007, 10:09 AM


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 28th November 2014 - 04:04 PM