Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building for android #4

Closed
SpartanJ opened this issue Jan 19, 2015 · 2 comments
Closed

Building for android #4

SpartanJ opened this issue Jan 19, 2015 · 2 comments
Labels
bug Something isn't working minor

Comments

@SpartanJ
Copy link
Owner

Original report by Tobias Dæ (Bitbucket: r-or, GitHub: r-or).


There's an issue with the platform symbols used in SOIL2.c, tested with gcc 4.9 arm:
When building for android, both ANDROID and linux are defined.

So we could replace line 24 in SOIL2.c:

#!c

#if defined ( linux ) || defined( __linux__ ) || defined( __FreeBSD__ ) || defined(__OpenBSD__) || defined( __NetBSD__ ) || defined( __DragonFly__ ) || defined( __SVR4 )
#define SOIL_X11_PLATFORM
#endif

with something like this:

#!c

#if ( defined ( linux ) || defined( __linux__ ) || defined( __FreeBSD__ ) || defined(__OpenBSD__) || defined( __NetBSD__ ) || defined( __DragonFly__ ) || defined( __SVR4 )) && ! defined( __ANDROID__ )
#define SOIL_X11_PLATFORM
#endif

this way it builds just fine.

@SpartanJ
Copy link
Owner Author

Original comment by Martín Lucas Golini (Bitbucket: SpartanJ, GitHub: SpartanJ).


Fixed issue #4.
GLES2 is assumed if no default GLES version is defined.

@SpartanJ
Copy link
Owner Author

Original comment by Martín Lucas Golini (Bitbucket: SpartanJ, GitHub: SpartanJ).


You're right, thanks for reporting it.
Let me know if you find something else!

Regards

@SpartanJ SpartanJ added minor bug Something isn't working labels Jan 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working minor
Projects
None yet
Development

No branches or pull requests

1 participant