Hello<div><br></div><div>I've recently dropped the libpng requirement for the sword25 engine. This allowed the engine to be compiled</div><div>for the majority of platforms we support (with a few patches here and there). However, the engine (and in</div>
<div>particular, the LUA library it uses) fails to compile under WinCE and PS2, and I would like some opinions</div><div>on how to handle them.</div><div><br></div><div>PS2: The errors there seem... odd. Seems like there's some weird problem with libc. Can the PS2 porter</div>
<div>supply more information on them?</div><div><div>/opt/toolchains/ps2/tools/ee/lib/gcc-lib/ee/3.2.2/../../../../ee/lib/libc.a(unlinkr.o)(.text+0x1c): In function `_unlink_r':</div><div>../../../../../newlib/libc/reent/unlinkr.c:54: undefined reference to `unlink'</div>
<div>/opt/toolchains/ps2/tools/ee/lib/gcc-lib/ee/3.2.2/../../../../ee/lib/libc.a(linkr.o)(.text+0x24): In function `_link_r':</div><div>../../../../../newlib/libc/reent/linkr.c:61: undefined reference to `link'</div>
<div><br></div><div>Also, there are tons of warnings like these:</div><div><div>In file included from ../../src-master/src/engines/sword25/sword25.cpp:46:</div><div>../../src-master/src/engines/sword25/kernel/kernel.h:73: warning: `class </div>
<div> Sword25::Kernel' only defines a private destructor and has no friends</div></div><div><br></div><div>There's a comment inside that class that the constructor and destructor are private to make the class</div>
<div>a singleton... this sounds odd to me. Why create a singleton in this manner inside engine code in the first place?</div><div><br></div><div>Now, concerning WinCE... AFAIK, this port misses a ton of headers from the standard C library.</div>
</div><div>The current error thrown is that errno.h is missing. According to a post I found while Googling, we could use a</div><div>minimal errno.h:</div><div><a href="http://mailman.videolan.org/pipermail/vlc-devel/2009-November/068586.html">http://mailman.videolan.org/pipermail/vlc-devel/2009-November/068586.html</a></div>
<div>and the minimal errno.h can be found at:</div><div><a href="http://altair.videolan.org/~linkfanel/errno">http://altair.videolan.org/~linkfanel/errno</a></div><div><br></div><div>Is the aforementioned solution viable? What else is missing from WinCE?</div>
<div><br></div><div>Regards</div><div>Filippos</div><div><br></div><div>-- <br>"Experience is the name every one gives to their mistakes" - Oscar Wilde <br>
</div>