2016-06-18 8 views
0

Versuchen Sie, sdl2 (2.0.4) für Android zu kompilieren. Get error: undefined Referenz SDL_GetBasePath_REAL SDL_GetPrefPath_REAL Wenn ich Version 2.0.3 nehme funktioniert alles in Ordnung. Probieren Sie es aus: xubuntu14.04, xubuntu16.04, ubuntu16.04. Wie löst man dieses Problem? (sorry für mein Englisch)sdl2 2.0.4 android Kompilierungsfehler

Antwort

-1

Als Abhilfe können ich diese beiden api wie diese kommentieren und die Build-Pass:

--- a/src/dynapi/SDL_dynapi_overrides.h 
+++ b/src/dynapi/SDL_dynapi_overrides.h 
-#define SDL_GetBasePath SDL_GetBasePath_REAL 
-#define SDL_GetPrefPath SDL_GetPrefPath_REAL 
+//#define SDL_GetBasePath SDL_GetBasePath_REAL 
+//#define SDL_GetPrefPath SDL_GetPrefPath_REAL 

--- a/src/dynapi/SDL_dynapi_procs.h 
+++ b/src/dynapi/SDL_dynapi_procs.h 
-SDL_DYNAPI_PROC(char*,SDL_GetBasePath,(void),(),return) 
-SDL_DYNAPI_PROC(char*,SDL_GetPrefPath,(const char *a, const char *b),(a,b),return) 
+//SDL_DYNAPI_PROC(char*,SDL_GetBasePath,(void),(),return) 
+//SDL_DYNAPI_PROC(char*,SDL_GetPrefPath,(const char *a, const char *b),(a,b),return)