[Scummvm-devel] LUA on WinCE and PS2

Filippos Karapetis bluegr at gmail.com
Sat May 14 11:43:47 CEST 2011


Hello

I've recently dropped the libpng requirement for the sword25 engine. This
allowed the engine to be compiled
for the majority of platforms we support (with a few patches here and
there). However, the engine (and in
particular, the LUA library it uses) fails to compile under WinCE and PS2,
and I would like some opinions
on how to handle them.

PS2: The errors there seem... odd. Seems like there's some weird problem
with libc. Can the PS2 porter
supply more information on them?
/opt/toolchains/ps2/tools/ee/lib/gcc-lib/ee/3.2.2/../../../../ee/lib/libc.a(unlinkr.o)(.text+0x1c):
In function `_unlink_r':
../../../../../newlib/libc/reent/unlinkr.c:54: undefined reference to
`unlink'
/opt/toolchains/ps2/tools/ee/lib/gcc-lib/ee/3.2.2/../../../../ee/lib/libc.a(linkr.o)(.text+0x24):
In function `_link_r':
../../../../../newlib/libc/reent/linkr.c:61: undefined reference to `link'

Also, there are tons of warnings like these:
In file included from ../../src-master/src/engines/sword25/sword25.cpp:46:
../../src-master/src/engines/sword25/kernel/kernel.h:73: warning: `class
   Sword25::Kernel' only defines a private destructor and has no friends

There's a comment inside that class that the constructor and destructor are
private to make the class
a singleton... this sounds odd to me. Why create a singleton in this manner
inside engine code in the first place?

Now, concerning WinCE... AFAIK, this port misses a ton of headers from the
standard C library.
The current error thrown is that errno.h is missing. According to a post I
found while Googling, we could use a
minimal errno.h:
http://mailman.videolan.org/pipermail/vlc-devel/2009-November/068586.html
and the minimal errno.h can be found at:
http://altair.videolan.org/~linkfanel/errno

Is the aforementioned solution viable? What else is missing from WinCE?

Regards
Filippos

-- 
"Experience is the name every one gives to their mistakes" - Oscar Wilde
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.scummvm.org/pipermail/scummvm-devel/attachments/20110514/ae6b0f8e/attachment.html>


More information about the Scummvm-devel mailing list