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

Cannot compile raylib for Android target #1997

Closed
ArnaudValensi opened this issue Sep 19, 2021 · 2 comments
Closed

Cannot compile raylib for Android target #1997

ArnaudValensi opened this issue Sep 19, 2021 · 2 comments

Comments

@ArnaudValensi
Copy link
Contributor

Issue description

I cannot compile raylib for Android target.

I get the following error:

$ mingw32-make PLATFORM=PLATFORM_ANDROID
...
core.c:5306:9: error: use of undeclared identifier 'gestureEvent'
        gestureEvent.position[i].x /= (float)GetScreenWidth();
        ^
core.c:5307:9: error: use of undeclared identifier 'gestureEvent'
        gestureEvent.position[i].y /= (float)GetScreenHeight();
        ^

I think this is caused by the changes made on this commit: 803094f

Environment

  • Windows 10
@VadimBoev
Copy link
Contributor

This is an easy fix, I did this:
At the beginning of the "static int32_t AndroidInputCallback(struct android_app *app, AInputEvent *event)" function, put GestureEvent gestureEvent = { 0 };
And on line 5317, this line was deleted.
Good!

raysan5 added a commit that referenced this issue Sep 21, 2021
@raysan5
Copy link
Owner

raysan5 commented Sep 21, 2021

@ArnaudValensi @kronka Just reviewed it!

@raysan5 raysan5 closed this as completed Sep 21, 2021
ArnaudValensi pushed a commit to ArnaudValensi/raylib that referenced this issue Sep 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants