PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Battle of Wesnoth

iamacooldude · 07 Jun 2006, 14:33 UTC
Would anyone be interested in helping me and the14given port the Battle of Wesnoth to the pocket pc? The battle of wesnoth is a great game and deserves to be on our pocket devices. It has already been ported to the sharp zaurus (http://www.wesnoth.org/forum/viewtopic. ... ght=pocket), but that is easier than porting it to the pocket pc.


http://www.wesnoth.org/forum/viewtopic. ... ght=pocket
It would not be difficult to port this game if it uses SDL. Just use GCC compiler, and take a linux port as a starting point. You may need to redraw or scale picture for QVGA devices, so I'd recommend to start with VGA port first.
You may ask n0p (he ported wargus) for some hints.
Can you point to the game so I can tell what it's about. I'm a PocketPC developer who normally writes shareware but might take an interest if it's a great game to play.
ok, will have a look tomorrow when I'm on holiday.
Source is pretty huge megabytes wise.
iamacooldude · 08 Jun 2006, 14:40 UTC
Thanks for all your replies! Mamaich? Aren't you the guy who ported Dosbox, GCC, and Lgeneral?(Great ports, even though not complete) Glad for the tips,btw. Should I try GCC or Cygwin w/gcc or Visual C++? Laslty, I have had trouble getting SDL dependencies set up correctly, because it keeps on saying somrthing like "SDL/SDL.h file or directory does not exist" no matter where I put the files, virtually or physically.(this was when I tried a test compile of lpairs and Visual C++, i'll try gcc later)
I don't know the GCC compliler. Why would that be a better development tool than VS2005? Specifically does it have a debugger?

Anyway, If it rains tomorrow I will have plenty time to take a look. If it's sunny then I'm in the garden more than at the PC.
iamacooldude · 08 Jun 2006, 22:33 UTC
This doesn't seem right... (This is just a simple C++ matching game, it's not even wesnoth yet! I wanted to do a small scale test to get familiar with C++)
Should I try to add the SDL source code into the project?

Conan wrote:I don't know the GCC compliler. Why would that be a better development tool than VS2005?

1. GCC has complete C++ runtime, unlike VS. You can use VS, but you need to write lots of functions yourself.
2. Porting windows port of game to PPC would be more difficult than linux port, due to differences in API (unicode or lack of DirectX, for example). GCC port is closer to unixes, so you'll get less problems. Just undef _WIN32. But you'll get problems with network code.
3. You already have a makefile and configure scripts. In most cases you'll get a working EXE just after modifying and running "configure", then "make".
4. I have not tried VS2005 yet, but eVC had lots of problems with templates, that is why I used GCC to compile DosBox.

GCC does not have a good debugger, but you don't need to debug anything on pocket. You can compile the same code for Windows, and debug there.

And don't forget that you'll need to port lots os supplementary libs, like SDL_image, libpng, python, etc.
mamaich wrote:1. GCC has complete C++ runtime, unlike VS. You can use VS, but you need to write lots of functions yourself.


What exactly do you mean here? What C++ runtime? RTTI/exception handling? What functions will be missing in VS that GCC has?
This doesn't seem right... (This is just a simple C++ matching game, it's not even wesnoth yet! I wanted to do a small scale test to get familiar with C++)

If you have not used C++ before have you used C ? If not then I would suggest that you need about 6 months minimum to get up to speed. I allowed myself 3 months and took 9 but I'm slow on the uptake.

I downloaded the source. Converting this is not trivial especially if the game is to be kept fully compatible with other versions for graphics, maps etc. It's not a 1 week task to get it running on Windows Mobile. I'm not in a position to start until August. Any team working on this would need to agree up front on development tools, working method, responsibiities etc and you have to remember that just because someone starts keen does not mean they will still be onboard in a few months.
iamacooldude · 09 Jun 2006, 21:27 UTC
ok,
kinda gave up on Visual C++ for now and went with Msys/cygwin. I get much less oddball results, but I don't understand one thing.


Administrator@MATRIX /src
$ ./buildme.sh
checking build system type... arm-wince-pe
checking host system type... arm-wince-pe
checking target system type... arm-wince-pe
checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking whether NLS is requested... yes
checking for msgfmt... no
checking for gmsgfmt... :
checking for xgettext... no
checking for msgmerge... no
checking for style of include used by make... GNU
checking for arm-wince-pe-gcc... arm-wince-pe-gcc
checking for C compiler default output file name... configure: error: C compiler cannot create executables
See `config.log' for more details.
make: *** No targets specified and no makefile found. Stop.
make: Nothing to be done for `install'.

Administrator@MATRIX /src
$


The last line configure ran complains about gcc not able to create executables. :? Why wouldn't it be able too? I'll notify you if I figure it out on my own. The config.log file has over 1000 "words" so I'll only post it if someone wants to see it. One thing I did notice was I need to change an include directory path, but that shouldn't mess it up, right?

p.s. I know some C, but almost nil C++.