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

make run Can't find lovefile #1

Closed
scillidan opened this issue Mar 14, 2023 · 2 comments
Closed

make run Can't find lovefile #1

scillidan opened this issue Mar 14, 2023 · 2 comments

Comments

@scillidan
Copy link

Nihao, I encountered an error in the make run step.
The lovegame bin can run from the file manager.

image

I tried to enter the commands in Makefile. It said no lovefile file was found.
I don't know if it's about my phone. I'm using a Galaxy S20, and andriod version is 13.

image

Thanks for read.

@CSaratakij
Copy link
Owner

CSaratakij commented Mar 14, 2023

@scillidan Is command 'make run' start love2d app at all?

Shell variable substitute is a bit different from Makefile.
You don't need those parenthesis, '$lovefile' instead of '$(lovefile)'

example

lovefile=LovePlayground.love
am start -d "file:///sdcard/Download/lovegame/$lovefile" --user 0 -t "application/*" -n org.love2d.android/.GameActivity

If love2d start, but cannot find 'LovePlayground.love' (display 'No game' inside )
It's might be Android 10 scoped storage restriction.

The change start in love2d v.11.4, read more here
Try using previous love2d version, I use love2d v.11.3a with android 11

Don't forget to allow file permission in love2d app

@scillidan
Copy link
Author

@CSaratakij Thanks for your detailed reply :-)
After I install the love-11.3-android, 'make run' can start love2d app now.

image

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

2 participants