Re: Embedded sable?

David Bélanger <[email protected]> Sat, 11 Jun 2005 12:31:58 -0400
Newsgroups gmane.comp.java.vm.sablevm.devel
Message-ID <[email protected]>
On Sat, Jun 11, 2005 at 08:46:40PM +1000, William Uther wrote:
> Hi,
>   I'm want a java VM for the Sony AIBO robot.  I don't know of any,  
> so I was thinking of compiling an open source VM.  The AIBO has a  
> Sony proprietary OS.  There is a cross-compiling system based on GCC.
> 
>   There are the rudiments of a posix library, but it is nowhere near  
> complete.  I am assuming that almost none of the standard java  
> classes will work.  That's fine - that API isn't really relevant for  
> video camera images or robot joints :).  Also, processes are not  
> standard unix-style processes.  Nor is there a standard threading model.
> 
>   What I can do is embed a C or C++ library into a shell process in  
> the Sony OS.  Is there any way to run SableVM in such a way?  I have  
> libffi and zlib compiled for the system.
> 
>   I've started playing with the standard sable build system, but  
> there are some issues.  e.g. The cross compiling system can compile  
> libraries, but can't compile "normal apps".  That means the configure  
> system needs some mods at least...
> 

Are you talking about the cross-compilation system in general here or
SableVM?

In any case, if was able to cross-compile SableVM to PowerPC and to x86
but I had to modify ltmain.sh:
http://www.sable.mcgill.ca/~dbelan2/ebuilds/dev-java/sablevm-svn/files/ltmain.patch
Otherwise, I think the system will try to use the native instead of the
cross-compiled libraries.  Note that ltmain.sh is automatically
generated, if you regenerate with libtoolize, you will need to repatch
it.

But I never tried it on your target platform and I have know clue if it
will work or not.


David

---

David Bélanger
Web page:   http://www.cs.mcgill.ca/~dbelan2/
Public key: http://www.cs.mcgill.ca/~dbelan2/public_key.txt