Closed GoogleCodeExporter closed 9 years ago
configure isn't supported. can't help you here!
Original comment by dborth@gmail.com
on 11 Sep 2011 at 11:20
I knew I shouldn't have mentioned configure because someone would get hung up
on that. Please note that it's not a configure issue, but rather a devkitPPC
compatibility issue. I commented out SDL-Wii's duplicate definition and got
past it.
Original comment by benshadw...@gmail.com
on 12 Sep 2011 at 12:51
Actually I'm already porting Abuse SDL to the Wii, 95% complete, just need to
setup the constrols. Hint: get rid of this crazy configure script and of 0.8,
because it WON'T COMPILE, I've already tried to compile using the configure or
using a custom Wii makefile... but 0.8 won't compile on the Wii. 0.7.1 does,
but there's some things to change... LOTS of things... It took almost three
months to fix somethings.
Original comment by gcnmaster1910
on 19 Sep 2011 at 3:10
It did compile, with a very small amount of massaging, and my port of Sam
Hocevar's version of the 0.8 source is complete and released after a week's
worth of effort!
See: http://wiibrew.org/wiki/Abuse_Wii
Original comment by benshadw...@gmail.com
on 19 Sep 2011 at 5:01
Hey, how did you compiled 0.8?? Was it using the configure script? 0.8 just
won't compile here. And what operating system?
Original comment by gcnmaster1910
on 19 Sep 2011 at 4:10
I used Ubuntu Linux.
Sam Hocevar's source at http://abuse.zoy.org/ does not come with Makefiles.
Instead, it has autotools files for generating a configure script, which in
turn generates makefiles.
So I first ran autoconf/autoreconf to generate configure. It said the autotools
files were out of date and told me how to update them, so I followed the
suggestions and re-ran.
I then ran configure with various parameters (and a custom Wii-specific
sdl-config that I whipped up) to generate the Makefiles, but it choked per my
bug report above. I commented out SDL Wii's redundant definition of uintptr_t
to get past that issue.
I had to massage the Makefiles slightly after that, mainly because configure
puts extra -lm and -lSDL_mixer arguments in the Makefiles.
I also had some trouble with the fact that the game defines a regular int
main(int argc, char* argv[]) in game.cpp but SDL expects SDL_main() instead.
There are multiple workarounds (-Dmain=SDL_main or #include <SDL/SDL_main.h>),
but I had lots of problems trying to get them so work, so I ended up just doing
an #ifdef'd replacement of main with SDL_main in game.cpp.
I believe I additionally had to add an #include <stdint.h> to one of the imlib
files.
This got the source to compile for me, but of course it didn't run correctly
until I made lots of other Wii-specific changes.
I've uploaded my modified source (with Makefiles) to
http://code.google.com/p/abuse-wii/downloads/list in case you want to take a
look. The SVN metafiles are in there too so that you can use TortoiseSVN or
whatever to diff my changes against the SVN baseline.
We should probably move this discussion to either
http://wiibrew.org/wiki/Talk:Abuse_Wii or
http://devkitpro.org/viewtopic.php?f=7&t=2920
Original comment by benshadw...@gmail.com
on 19 Sep 2011 at 4:32
Also, libogc 1.8.8 or later is required because previous versions defined a
color_table variable that clashed with one in the Abuse source. Since
WinterMute of libogc was answering compiling questions for me on devkitpro.org,
he decided to fix the conflict by changing libogc.
Original comment by benshadw...@gmail.com
on 19 Sep 2011 at 4:56
But I've already done all of that on 0.8 and still it didn't compiled! In rare
cases when compiling was successful, the file wasn't an .elf file...
Well, wasted my time. Now I don't know what to port/create next lol but thanks
for the game, it marked my childhood back then in 2000
Original comment by gcnmaster1910
on 19 Sep 2011 at 5:47
It will compile to a binary named "abuse" that is actually a Wii .elf file.
The source that I uploaded should compile for you out of the box by just
running make in the abuse-trunk directory, provided you're running under Linux
and have devkitpro installed to /opt (otherwise you may need to edit the -I and
-L paths in the Makefiles).
You can then run elf2dol to convert src/abuse to boot.dol and drop it in place
of the boot.dol in my pre-built version.
Original comment by benshadw...@gmail.com
on 19 Sep 2011 at 6:58
ah, didn't knew that... well, but still, compiling under Windows using MSYS
gave me undefined references to blahblahblah... thanks
Original comment by gcnmaster1910
on 19 Sep 2011 at 8:23
Original issue reported on code.google.com by
benshadw...@gmail.com
on 11 Sep 2011 at 7:04