Welcome! Log In Create A New Profile

Advanced

Patch for sdl-wii

Posted by Dande 
Patch for sdl-wii
July 13, 2009 12:36PM
In libogc svn the Vector has been renamed to guVector and thus you're unable to compile current svn of sdl-wii with svn of libogc. I hope someone could apply this patch to sdl-wii which just renames Vectors to guVectors:

SDL_fix.patch:
Index: SDL/src/video/wii/SDL_wiivideo.c
===================================================================
--- SDL/src/video/wii/SDL_wiivideo.c	(revision 62)
+++ SDL/src/video/wii/SDL_wiivideo.c	(working copy)
@@ -69,9 +69,9 @@
 /* New texture based scaler */
 typedef struct tagcamera
 {
-	Vector pos;
-	Vector up;
-	Vector view;
+	guVector pos;
+	guVector up;
+	guVector view;
 }
 camera;

Edit: Added it as issue to google code page of the project



Edited 1 time(s). Last edit at 07/14/2009 10:08AM by Dande.
Re: Patch for sdl-wii
July 14, 2009 07:58AM
I wondered why the heck I couldn't get SDL to compile the other day.
Thank you for the fix! May be worth PMing Tantric or posting the bug on the google code page
Re: Patch for sdl-wii
July 14, 2009 05:21PM
It's not a bug. Just a change from libogc that hasn't (yet) made it into SVN.
Re: Patch for sdl-wii
July 14, 2009 09:59PM
Why is the user required to link against the SVN of libogc to begin with?

That means as a library developer, who'd like to link my libraries alongside SDL-Wii, I have to constantly be following your lead and matching whatever SVN revision you're linking against, to avoid issues like this. I'm opposed to doing that as it can be a big waste of time, especially since the SVN can change hourly.

Michael
Re: Patch for sdl-wii
July 15, 2009 12:11AM
The reason being that the latest released libogc isn't compatible with SDL Wii, for multiple reasons. Once a new libogc is released, this issue will go away - you won't be required to use the latest libogc SVN, just the latest released libogc.
Re: Patch for sdl-wii
July 31, 2009 02:26PM
Quote
Dande
In libogc svn the Vector has been renamed to guVector and thus you're unable to compile current svn of sdl-wii with svn of libogc. I hope someone could apply this patch to sdl-wii which just renames Vectors to guVectors:

SDL_fix.patch:
Index: SDL/src/video/wii/SDL_wiivideo.c
===================================================================
--- SDL/src/video/wii/SDL_wiivideo.c	(revision 62)
+++ SDL/src/video/wii/SDL_wiivideo.c	(working copy)
@@ -69,9 +69,9 @@
 /* New texture based scaler */
 typedef struct tagcamera
 {
-	Vector pos;
-	Vector up;
-	Vector view;
+	guVector pos;
+	guVector up;
+	guVector view;
 }
 camera;

Edit: Added it as issue to google code page of the project

Hi
I was building SDL from source and libogc from source (all from SVN - latest version, today 31 July 2009)
and I used this structure to build it correctly:
/* New texture based scaler */
typedef struct tagcamera
{
	//guVector pos;
	//guVector up;
	//guVector view;
	Vector pos;
	Vector up;
	Vector view;
}
camera

So I am not sure about renaming it to guVector, but renaming back to Vector
Re: Patch for sdl-wii
July 31, 2009 03:33PM
Latest libogc has guVector: [devkitpro.svn.sourceforge.net]

Make sure you also use the new headers of libogc after you compile a new libogc.
Sorry, only registered users may post in this forum.

Click here to login