LinuxMCE Forums

Archive => Archive => Orbiter - Developers => Topic started by: archived on August 14, 2006, 11:30:32 pm

Title: Orbiter on Zaurus II
Post by: archived on August 14, 2006, 11:30:32 pm
Hi,
I am starting a new thread on this because I have changed diretions a little. I am now trying to build this on Openembedded. I have been hacking at this for about a month and I think I am finally pretty close. I have successfully compiled, SerializeClass, PlutoUtils, DCE. I am now trying to compile Orbiter and have run into an error that I think is not OE related...

When I run a make bin on Orbiter, it shows that all of the dependencies check out. But then I get the following error:

| ccache arm-linux-g++ -march=armv5te -mtune=xscale -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/include -I/home/oc60174/oe/build/tmp/staging/arm-linux/include/X11 -I/home/oc60174/oe/build/tmp/staging/arm-linux/include/SDL -I/home/oc60174/oe/build/tmp/staging/arm-linux/include/glib-2.0 -I/home/oc60174/oe/build/tmp/staging/arm-linux/include/glib-2.0/glib -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_DEVEL_DEFINES -DUSE_LZO_DATAGRID -D_GNU_SOURCE -DORBITER -DCACHE_IMAGES -DENABLE_MOUSE_BEHAVIOR -I/Splitter -I/OrbiterGen -L/home/oc60174/oe/build/tmp/staging/arm-linux/lib/X11/lib -I/home/oc60174/oe/build/tmp/staging/arm-linux/include/X11/include -DUSE_WX_LIB=0 -I/home/oc60174/oe/build/tmp/staging/arm-linux/include -fexpensive-optimizations -fomit-frame-pointer -frename-registers -O2 -fpermissive-Wall -ggdb3 -DUSE_WX_LIB=0 TaskManager.cpp -o TaskManager.o
| In file included from TaskManager.h:11,
|                  from TaskManager.cpp:3:
| ../PlutoUtils/singleton.h: In static member function `static T* cpp::NoCreation<T>::CreateInstance()':
| ../PlutoUtils/singleton.h:21: error: `logic_error' is not a member of `std'
| ../PlutoUtils/singleton.h: In static member function `static void cpp::NoCreation<T>::DestroyInstance(T*)':
| ../PlutoUtils/singleton.h:22: error: `logic_error' is not a member of `std'
| ../PlutoUtils/singleton.h: In static member function `static typename cpp::Singleton<T, CreationPolicy, LifetimePolicy, ThreadingModel>::RefType cpp::Singleton<T, CreationPolicy, LifetimePolicy, ThreadingModel>::Instance()':
| ../PlutoUtils/singleton.h:184: warning: there are no arguments to `OnDeadReference' that depend on a template parameter, so a declaration of `OnDeadReference' must be available
| ../PlutoUtils/singleton.h:187: warning: there are no arguments to `CreateInstance' that depend on a template parameter, so a declaration of `CreateInstance' must be available
| make: *** [TaskManager.o] Error 1
| FATAL: oe_runmake failed
NOTE: Task failed: /home/oc60174/oe/build/tmp/work/orbiter-11205.1.1-r0/temp/log.do_compile.8115
NOTE: package orbiter-11205.1.1-r0: task do_compile: failed
ERROR: TaskFailed event exception, aborting
NOTE: package orbiter-11205.1.1: failed
ERROR: Build of orbiter failed

Is this something that is easily remedied?

Rob
Title: Orbiter on Zaurus II
Post by: archived on August 15, 2006, 02:56:41 am
I had that same error while building with gcc-4.  The addition of a header cleared it  up.  I added:
#include <stdexcept>
to CommonIncludes.h in PlutoUtils  Hope this helps.

Jason
Title: Orbiter on Zaurus II
Post by: archived on August 17, 2006, 09:55:30 am
Hi,

TaskManager.cpp is no longer used in Orbiter (just did a cleanup in Orbiter) and also src/PlutoUtils/singleton.h is not longer used in Orbiter. I guess the best solution for you would be to do a svn update (http://svn.plutohome.com/pluto/trunk/src/Orbiter) and get the latest sources and you'll have this issue fixed.

Best regards,
Cristian Miron
Title: What version to use?
Post by: archived on August 19, 2006, 12:36:52 am
Chris,
Thanks for that. I am building this in OE and can specify which version number to use. I have been using 11205. Is there a better version to use?

Thanks,
Rob
Title: Orbiter on Zaurus II
Post by: archived on August 19, 2006, 05:28:46 pm
One more thing. In the Orbiter Makefile, there is a line:

XTRALDLIBS += -lDCECommon -lSDL -lSDL_ttf -lSDL_image -lSGE -lSDL_gfx -lXtst -lXext -lGL -lXrender -lGLU

I am assuming that -lGL and -lGLU are openGL? Am I safe removing those? I read somewhere that openGL is not required?

Let me know because they are throwing errors on me.

Thanks,
Rob
Title: Orbiter on Zaurus II
Post by: archived on August 20, 2006, 12:53:48 am
Indeed. We had an experimental Orbiter will opengl effects. Now, it's a separte project. You can remove those references, it's safe.

Best regards,
Cristian Miron
Title: Success!
Post by: archived on August 21, 2006, 07:55:57 am
Yeah, I actually got Orbiter to compile in OpenEmbedded for the Zaurus.
I am now trying to work out the packaging for it.

Chris, what are going to be required for this? I think I have mysql serializeclass dce plutoutils libsdl-gfx libsdl-ttf libsdl-sge. X11 will already be there as I am using the GPE os.

Also, anyone willing to test this let me know. I don't have a PlutoHome server set up yet...

Rob
Title: Orbiter on Zaurus II
Post by: archived on August 21, 2006, 09:20:12 am
Hi,

We have a Zaurus here, so I can test it. :) Please send me the binaries and I'll take care of this.  ( chris.m at plutohome dot com )

Best regards,
Cristian Miron
Title: Cool
Post by: archived on August 21, 2006, 03:53:54 pm
What kind of zaurus is it? I compiled it for Akita (SL-C1000). It should theoretically work for any SL-C3X00 as well.  Also, you will have to re-flash it to OpenZaurus - GPE before it will work for these binaries. Instructions here: http://wiki.openzaurus.org/Akita/Install#Introduction

Thanks for doing that!

Rob
Title: Orbiter on Zaurus II
Post by: archived on August 21, 2006, 04:36:51 pm
It's a very old one, a SL5000.
Title: Collie is old...
Post by: archived on August 21, 2006, 06:48:04 pm
Chris.M,
It does look like there is now a 2.6 kernel available for Collie. It is version 3.5.4.2. I don't see it up on the feeds yet though...

Actually, it looks like it is here:
http://ewi546.ewi.utwente.nl/tmp/hrw/3.5.4.2-test/rc1/

The announcement is here:
http://openzaurus.org/wordpress/

I emailed you a tar.gz file with the binaries. I don't know if it will work on a Collie as I compiled it for Akita... If it doesn't I can try recompiling for Collie.

Let me know.

Thanks for all of your help chris.m!

Rob
Title: Orbiter on Zaurus II
Post by: archived on August 22, 2006, 12:30:12 am
I would also be interested in Collie support as I have an SL5500.  I saw that Collie now had 2.6 support, however I will be staying with 2.4 for a while since the 2.6 kernel for Collie has no support for the sd slot or sound.

Thanks,
Jason
Title: Orbiter on Zaurus II
Post by: archived on August 22, 2006, 01:06:31 am
jspeckman,
Would you be willing to set up a bitbake environment and give it a try for Collie? I can provide you with the bb files. My problem right now is I don't have any more room on my dev box. I only have about 51MB left on my linux partition. And I haven't been able to install bitbake on to my box at home (running Suse 10 x86_64).  Let me know.

Just another thought... Could you try an altboot off a CF? Using the 3.5.4.2?

Rob
Title: Collie
Post by: archived on August 22, 2006, 12:43:56 pm
Good news about getting it to compile.  I've been battling with getting a remote control working properly on my plutohome system and have finally decided that I need to get something else working instead.  I have an old Zaurus 5500 which I could use for testing.  Any reason it requires GPE?  I thought SDL abstracted all the X stuff.

Alex.
Title: Orbiter on Zaurus II
Post by: archived on August 22, 2006, 03:23:25 pm
dothedog,
I'd be happy to give it a try.  Could you point me to docs for setting up bitbake?  I could altboot from CF, but then I'd have no network (don't remember if usb is supported yet or not)  I'll try to get it running under the 3.5.4 environment on collie first though.  I also have an SL5500 emulator on my machine to play with so loading 3.5.4.2 on that is no problem.  I'm also wondering why GPE is required as SDL is supported under opie (my prefered environment)  I'll play around with it and see what happens.

Jason
Title: Orbiter on Zaurus II
Post by: archived on August 23, 2006, 01:55:13 am
Here is the documentation for the OE build environment:
http://www.openembedded.org/user-manual&dpage=ch03

I am actually still using bitbake 1.42. I think the latest is 1.44 or 1.6. It's a bit of a hairball to get monotone installed (correct version) etc. but its not too bad. Post here or pm me if you have any questions. I have some documentation of what I had to do but it is not really organized.

Also, the reason I am using GPE instead of OPIE is it includes X11 which I believe is required by Orbiter. You would have to add X11 libs/headers etc. to OPIE to compile/run Orbiter. Correct me if I am wrong Chris.

Rob
Title: Orbiter on Zaurus II
Post by: archived on August 23, 2006, 09:46:06 am
Hi Rob,

I don't think we would want to include any X11 headers, but for this we'll have to do few changes in Orbiter. There are two classes in Orbiter using X11 headers : OrbiterLinux and OrbiterRenderer_SDL_Linux. The idea would be to get rid of them, removing them from Makefile, then in OrbiterRendererFactory to create an OrbiterRenderer_SDL instead of its derived class and in StartOrbiterSDL.cpp to create an Orbiter instance instead of its derived class, OrbiterLinux.

Best regards,
Cristian Miron
Title: Orbiter on Zaurus II
Post by: archived on August 23, 2006, 08:15:46 pm
I guess the next question is, if you didn't use X11, would it take anything else to get it to run in Qtopia besides the SDL stuff? If not then I guess you could run it in OPIE. This is starting to get way over my head ;)
Title: Orbiter on Zaurus II
Post by: archived on August 24, 2006, 09:20:07 am
Hi,

I guess the best approach is to try first with a simple SDL application on Qtopia or OPIE. If it works, then Orbiter will work too. Here are the SDL extensions used by Orbiter: SDL, SDL_ttf, SDL_image, SGE, SDL_gfx.

Best regards,
Cristian Miron
Title: Orbiter on Zaurus II
Post by: archived on August 24, 2006, 05:14:53 pm
So, in order to compile for Collie OPIE, I think the kernel is 2.4.18? and gcc version is 2.9.3/5? I guess I can go back to my notes on when I was trying to compile natively in PocketWorkstation.

I'm pretty sure that SDL apps work on the zaurus sl-c3x00 because I am running nes/snes emulators that require libSDL-1.2. I'm not sure about the extensions though.

Here are the ipks from the 3.5.3 feed.
libsdl-gfx11_2.0.11-r0_arm.ipk
libsdl-image-1.2-0_1.2.3-r0_arm.ipk
libsdl-mixer-1.2-0_1.2.5-r0_arm.ipk
libsdl-net-1.2-0_1.2.5-r0_arm.ipk    
libsdl-ttf_2.0.3-r0_arm.ipk            
libsdl-x11_1.2.7-r3_arm.ipk  

Looks like it is just missing SGE. I have a "recipe" for that one.  My problem now is I don't have any room to build a second environment. Maybe I'll have to buy a bigger Hard Drive ;) to give it a shot.

Rob
Title: Can't find oz353 anymore
Post by: archived on August 30, 2006, 06:36:21 am
Chris.M,
I found some more disk space and started building an OE environment for Collie, however, I can't seem to find the oz353 environment anywhere. That means if I am to build this for your SL5500 I will have to use the 354 version which is the 2.6 kernel. Would you be willing to give that a try?

Also, on the X11 front. I think what you described is a bit beyond me. However, if you could create unified diff files for the files in question, I could use them as patches and try building them without X11 support. I think that OE uses quilt to create patches.

Let me know.

Rob
Title: Orbiter on Zaurus II
Post by: archived on August 30, 2006, 04:15:54 pm
dothedog,
  3.5.4 release on collie still uses 2.4 kernel.  The newer 3.5.4.2 rc1 uses the 2.6 kernel.  3.5.4.1 appears to only be available for collie as an upgrade to the apps, not kernel.  So, 3.5.4 should work fine (running on my collie currently).

Thanks,
Jason
Title: Orbiter on Zaurus II
Post by: archived on September 04, 2006, 01:55:21 pm
Hi Rob,

Unfortunatelly, I won't be able to help you next 2 weeks because we are preparing for Cedia. I'm not very familiar with Collie, so I don't think I can help you too much with this. However, if you have question about Orbiter, I will find time and help you.

Thank you,
Cristian Miron
Title: Orbiter on Zaurus II
Post by: archived on September 12, 2006, 06:46:40 am
Hi,
I have been having trouble building the oz3.5.4.1 OPIE image for 2.4. I may end up putting a bug report in on it with the OE guys. jspeckman, have you given it a shot yet? If you can get the environment built, I can send you the .bb recipes for all the required packages.

Rob
Title: Orbiter on Zaurus II
Post by: archived on September 12, 2006, 03:53:46 pm
I have not had a chance yet.  I got halfway through the OE install on my laptop, but have not yet had a chance to finish.  I'll let you know when I'm up and running.
Title: Still no love
Post by: archived on September 17, 2006, 12:48:41 am
jspeckman,
I have been trying to build for oz3.5.4.1 kernel 2.4 for you guys but I am having trouble building the gpe-image so I can't even start trying the orbiter stuff. I have a thread running on oesf here:

http://www.oesf.org/forums/index.php?showtopic=21442&st=0&p=141579&#entry141579

looks like they broke it moving to 3.5.4.2...

I haven't even tried OPIE yet. Trying to remove the x11 stuff may be beyond my meager abilities. If you can do it let me know.

Rob