ARCHIVE
LinuxMCE Forums
May 23, 2013, 04:52:47 pm GMT-1 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Rule #1 - Be Patient - Rule #2 - Don't ask when, if you don't contribute - Rule #3 - You have coding skills - LinuxMCE's small brother is available: http://www.agocontrol.com
 
   Home   Help Search Chat Login Register  
Pages: [1] 2
  Print  
Author Topic: Orbiter on Zaurus III  (Read 13934 times)
archived
Hello, I'm new here

Posts: 0


View Profile
« on: October 19, 2006, 04:22:18 am »

Chris.m
I finally got my hybrid/core built and am trying to run the orbiter on the zaurus. I have run into a bit of a problem that I hope is easily fixed. My orbiter loads etc. then segfaults out saying that it can't open the Arial font. Openzaurus doesn't distribute the MS fonts. Is there a way to do this without using the MS truetype fonts?

Rob
Logged
archived
Hello, I'm new here

Posts: 0


View Profile
« Reply #1 on: October 19, 2006, 08:18:51 am »

Hi Rob,

You could try getting the fonts for a linux box and copy them to your zaurus, it should work. Here's the path : /usr/share/fonts/truetype/msttcorefonts. You could copy all *.ttf files.

Best regards,
Cristian Miron
Logged
archived
Hello, I'm new here

Posts: 0


View Profile
« Reply #2 on: November 08, 2006, 01:41:40 pm »

Chris,
Sorry I haven't gotten back to you on this, I've been doing a bit of traveling for the last few weeks.

I copied the arial*.ttf files from a windows box to /usr/share/fonts/truetype/msttcorefonts. Now I get a bunch of errors like this:
Code:

ERROR: Xlib: ErrorHandler_Grabber() // static int X11wrapper::ErrorHandler_Grabber(Display*, XerrorEvent*)

Xlib: ErrorHandler_Grabber()
   type: 0
   display : 0x2473b0
   serial : 286
   error_code :
   request_code : .
   minor_code :
   resourcid : 48234501
ErrorText  : BadFont (invalid Font parameter)

Segmentation Fault

Also above that I get:
Code:

ERROR: Xlib: ErrorHandler_Grabber() // static int X11wrapper::ErrorHandler_Grabber(Display*, XerrorEvent*)

Xlib: ErrorHandler_Grabber()
   type: 0
   display : 0x40a00968
   serial : 261
   error_code :
   request_code : <
   minor_code :
   resourcid : 50331731
ErrorText  : BadGC (invalid GC parameter)

All this is in the terminal that I start the Orbiter.

In the log file I get:
Logged
archived
Hello, I'm new here

Posts: 0


View Profile
« Reply #3 on: November 08, 2006, 01:52:02 pm »

Let's try this one then : http://only.mawhrin.net/~geometer/zaurus/fonts/mscf.html Smiley
Logged
archived
Hello, I'm new here

Posts: 0


View Profile
« Reply #4 on: November 08, 2006, 03:36:19 pm »

Chris,
Quote

That is for Qtopia. I am running openzaurus GPE which uses X11.

The BadGC error is concerning as well. Any ideas?

Rob
Logged
archived
Hello, I'm new here

Posts: 0


View Profile
« Reply #5 on: November 08, 2006, 04:02:52 pm »

Hmm... then I guess there is no other solution but to use SDL_ttf with other supported fonts.
Maybe you should start with a hello world application with sdl_ttf. Once this is working, you can temporary hardcode the font name and path in Orbiter to test it.

Best regards,
Cristian Miron
Logged
archived
Hello, I'm new here

Posts: 0


View Profile
« Reply #6 on: November 08, 2006, 10:20:29 pm »

Chris,
Ok, I have sdl_ttf installed on the zaurus. I'm not sure how to do a "hello world" compile using sdl_ttf. Also, How do I hard code the font path into the Orbiter binary?

Rob
Logged
archived
Hello, I'm new here

Posts: 0


View Profile
« Reply #7 on: November 09, 2006, 08:42:52 am »

You can check SDL_ttf's page http://www.libsdl.org/projects/SDL_ttf/ and download http://www.libsdl.org/projects/SDL_ttf/release/SDL_ttf-2.0.8.tar.gz for example. Then compile showfont.c file (which is actually a "hello world!" application written to demonstrate minimal functionality of sdl_ttf). Once this working, send me a message and I'll guide you want to do next.

Best regards,
Cristian Miron
Logged
archived
Hello, I'm new here

Posts: 0


View Profile
« Reply #8 on: January 07, 2007, 10:48:39 pm »

Chris.m,
Sorry about the long silence, I got a bit busy at work, I broke my build environment, then I broke my laptop. Long story. Anyway, I finally got the build environment back up and compiled showfont.c and it does work. What's next?

Rob
Logged
archived
Hello, I'm new here

Posts: 0


View Profile
« Reply #9 on: January 08, 2007, 09:04:22 am »

Hi Rob,

I guess the next step would be to see what's different in Orbiter. Go to src/Orbiter/SDL/OrbiterRenderer_SDL.cpp, RenderText method. You'll see that the path to the font is hardcoded. You can play with it (use same argument path we used for showfont app).

Best regards,
Cristian Miron
Logged
archived
Hello, I'm new here

Posts: 0


View Profile
« Reply #10 on: January 08, 2007, 05:00:52 pm »

Are you talking about this block?

Code:

void OrbiterRenderer_SDL::RenderText(string &TextToDisplay,DesignObjText *Text,TextStyle *pTextStyle, PlutoPoint point)
{
    PLUTO_SAFETY_LOCK(cm,OrbiterLogic()->m_ScreenMutex);

        SDL_Rect TextLocation;
        TextLocation.x = point.X + Text->m_rPosition.X;
        TextLocation.y = point.Y + Text->m_rPosition.Y;
        TextLocation.w = Text->m_rPosition.Width;
        TextLocation.h = Text->m_rPosition.Height;

#ifdef WIN32
#ifdef WINCE
        string BasePath = "C:\\Windows\\Fonts";
#else
        char pWindowsDirector[MAX_PATH];
        GetWindowsDirectory(pWindowsDirector, MAX_PATH);
        string BasePath = string(pWindowsDirector) + "\\Fonts";
#endif

#else
        string BasePath="/usr/share/fonts/truetype/msttcorefonts";
#endif //win32


The path in "string BasePath" is correct there.
Logged
archived
Hello, I'm new here

Posts: 0


View Profile
« Reply #11 on: January 08, 2007, 06:05:44 pm »

One other thing I did notice. when I try to start orbiter I get:
Code:

sh: /usr/bin/X11/xset: not found
sh: /usr/bin/X11/xset: not found
Copyright (C) ...

Not sure if it makes a difference...
Logged
archived
Hello, I'm new here

Posts: 0


View Profile
« Reply #12 on: January 09, 2007, 05:39:41 am »

How exactly should I configure this on the core?
This is what I am doing:
Add Orbiter
Select user
select 640x480 for size
check uses wifi connection
full regen.
Is this correct? Is there something i need to do in advanced?
Logged
archived
Hello, I'm new here

Posts: 0


View Profile
« Reply #13 on: January 09, 2007, 10:24:08 am »

Hi Rob,

I believe that pluto uses arial and verdana fonts most of the time, so be sure you have these files in "usr/share/fonts/truetype/msttcorefonts". Also confirm with showfont test application. If it doesn't work, you have two solutions:
1) hardcode in RenderText a font which is working
or
2) write a "return;" at the beginning of RenderText; this will disable text rendering for now and we'll get back to it once the other things will work.

Best regards,
Cristian Miron
Logged
archived
Hello, I'm new here

Posts: 0


View Profile
« Reply #14 on: January 13, 2007, 06:34:39 am »

Chris.m,
I decided to try to rebuild using the latest code. Now I am running into a problem with PlutoUtils. I get the following error:

| arm-linux-g++ -c -I/home/oc60174/oe/build/tmp/staging/arm-linux/include-I./ -I../ -I../DCE/ -I../VIPShared/ -I/home/oc60174/oe/build/tmp/staging/arm-linux/include/mysql -I/home/oc60174/oe/build/tmp/staging/arm-linux/lib -I/home/oc60174/oe/build/tmp/staging/arm-linux/include -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_DEVEL_DEFINES -DUSE_LZO_DATAGRID -D_GNU_SOURCE -I/home/oc60174/oe/build/tmp/staging/arm-linux/include -fexpensive-optimizations -fomit-frame-pointer -frename-registers -O2 -fpermissive-Wall -ggdb3 Other.cpp -o Other.o
| Other.cpp:111:7: warning: no newline at end of file
| arm-linux-g++ -c -I/home/oc60174/oe/build/tmp/staging/arm-linux/include-I./ -I../ -I../DCE/ -I../VIPShared/ -I/home/oc60174/oe/build/tmp/staging/arm-linux/include/mysql -I/home/oc60174/oe/build/tmp/staging/arm-linux/lib -I/home/oc60174/oe/build/tmp/staging/arm-linux/include -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_DEVEL_DEFINES -DUSE_LZO_DATAGRID -D_GNU_SOURCE -I/home/oc60174/oe/build/tmp/staging/arm-linux/include -fexpensive-optimizations -fomit-frame-pointer -frename-registers -O2 -fpermissive-Wall -ggdb3 ProcessUtils.cpp -o ProcessUtils.o
| ProcessUtils.cpp:24: error: declaration of `int* __errno_location()' throws different exceptions
| /home/oc60174/oe/build/tmp/staging/arm-linux/include/bits/errno.h:38: error: than previous declaration `int* __errno_location() throw ()'
| make: *** [ProcessUtils.o] Error 1
| FATAL: oe_runmake failed

Any Ideas?
Logged
Pages: [1] 2
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!
Pluto provided a snapshot of their forums with approximately 5,000 posts in February, 2007 when LinuxMCE branched off. Browse those forum posts in the Archive section. Those posts have been included in the search engine and can be found with keyword searches.