Previous Thread
Next Thread
Print Thread
Page 1 of 7 1 2 3 4 5 6 7
Compile for Android? #105425 05/05/16 09:44 AM
Joined: Jun 2015
Posts: 55
N
NLS Offline OP
Member
OP Offline
Member
N
Joined: Jun 2015
Posts: 55
Disclaimer: I can compile MAME, but I am in no-way a fully fledged dev (for the last 10 years at least).

I've seen that work has started towards an official Android build for MAME. I am not sure of the current status, but I want to ask. Is it possible to make an .apk using the current tools? How? Do I use make with some specific parameters? (makefile seems to have the appropriate sections for Android) Is gradle the way? (not even sure how to use that)

Please help?

Re: Compile for Android? [Re: NLS] #105427 05/05/16 11:39 AM
Joined: Apr 2006
Posts: 663
D
Dullaron Offline
Senior Member
Offline
Senior Member
D
Joined: Apr 2006
Posts: 663
Wondering how far they got done on the source. smile

Haven't seen mame.apk on the MAME website yet.


Windows 10 Pro 64-bit / Intel Core i5-4460 3.20 GHz / 8.00 GB RAM / AMD Radeon R9 200 Series
Re: Compile for Android? [Re: NLS] #105429 05/05/16 12:01 PM
Joined: Jun 2015
Posts: 55
N
NLS Offline OP
Member
OP Offline
Member
N
Joined: Jun 2015
Posts: 55
No, but I want to try to compile myself to see myself.
I am trying to run gradle (on my Windows 10 x64) and fixing all dependencies that hit gradlew.bat.

Last edited by NLS; 05/05/16 12:02 PM.
Re: Compile for Android? [Re: NLS] #105430 05/05/16 12:33 PM
Joined: Mar 2001
Posts: 16,390
R
R. Belmont Offline
Very Senior Member
Offline
Very Senior Member
R
Joined: Mar 2001
Posts: 16,390
It's possible-ish on Windows only I think. You have to have the NDK installed, and I don't know the specific incantation after that. Micko has posted screenshots of it running on an Android tablet though.

ETA: "make android-arm -j9 and then use Android Studio and open the project, which is in a separate folder in root."

Last edited by R. Belmont; 05/05/16 12:43 PM.
Re: Compile for Android? [Re: NLS] #105431 05/05/16 01:29 PM
Joined: Apr 2006
Posts: 663
D
Dullaron Offline
Senior Member
Offline
Senior Member
D
Joined: Apr 2006
Posts: 663
Thanks for the info Micko.

R. Belmont thanks for his reply.


Windows 10 Pro 64-bit / Intel Core i5-4460 3.20 GHz / 8.00 GB RAM / AMD Radeon R9 200 Series
Re: Compile for Android? [Re: NLS] #105433 05/05/16 01:50 PM
Joined: Apr 2006
Posts: 663
D
Dullaron Offline
Senior Member
Offline
Senior Member
D
Joined: Apr 2006
Posts: 663


Windows 10 Pro 64-bit / Intel Core i5-4460 3.20 GHz / 8.00 GB RAM / AMD Radeon R9 200 Series
Re: Compile for Android? [Re: NLS] #105434 05/05/16 02:00 PM
Joined: Jun 2015
Posts: 55
N
NLS Offline OP
Member
OP Offline
Member
N
Joined: Jun 2015
Posts: 55
I have ndk and sdk installed. It actually wanted me to move ndk to a specific folder.

"gradlew.bat make" (after having to set a parameter in a file) did make some tiny .apk which I am not sure what they are good for. They are not MAME definitely.

I didn't use Android Studio (but is installed).
It is (probably) compiling now, using normal msys64 environment, I will know in a while.
(damn make really needed a progress bar - I keep saying that)
I actually used the same make flags as windows version except I put first argument to be "android-arm64".

It gave a bunch of errors in the beginning (suspect because I don't have mame folder in src folder, but some other path), I'll wait for it to end to see how critical they were.

Re: Compile for Android? [Re: NLS] #105436 05/05/16 02:17 PM
Joined: Apr 2006
Posts: 663
D
Dullaron Offline
Senior Member
Offline
Senior Member
D
Joined: Apr 2006
Posts: 663
I have no clue on how to set this up. There no install in the android-ndk-r11c-windows-x86_64.zip http://developer.android.com/ndk/downloads/index.html


Windows 10 Pro 64-bit / Intel Core i5-4460 3.20 GHz / 8.00 GB RAM / AMD Radeon R9 200 Series
Re: Compile for Android? [Re: NLS] #105437 05/05/16 02:25 PM
Joined: Jun 2015
Posts: 55
N
NLS Offline OP
Member
OP Offline
Member
N
Joined: Jun 2015
Posts: 55
You don't "install" it, you extract it.

My make failed.

In the beginning it says "'pkg-config' is not recognized as an internal or external command, operable program or batch file." for 7 times. This file does exist and is in "D:\Development\msys64\usr\share\bash-completion\completions".

Then it says "fatal: unable to join threaded lstat".

I suspect these are critical.

Then it progresses more or less normally generating various makes for gmake-android-arm64 (so at least it recognizes my intended target).

I run make from inside win32con in path "D:\Development\msys64\src\mame". It compiles fine a normal windows build.

Anybody can help?


Last edited by NLS; 05/05/16 02:28 PM.
Re: Compile for Android? [Re: NLS] #105441 05/05/16 09:19 PM
Joined: Jun 2015
Posts: 55
N
NLS Offline OP
Member
OP Offline
Member
N
Joined: Jun 2015
Posts: 55
...and failed.

Page 1 of 7 1 2 3 4 5 6 7

Moderated by  R. Belmont 

Who's Online Now
1 registered members (Pernod), 179 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
ShoutChat Box
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Forum Statistics
Forums9
Topics8,722
Posts114,633
Members4,873
Most Online510
Aug 26th, 2019
Powered by UBB.threads™ PHP Forum Software 7.7.3