Previous Thread
Next Thread
Print Thread
Page 7 of 7 1 2 3 4 5 6 7
Re: Compile for Android? [Re: NLS] #106186 06/28/16 06:15 AM
Joined: Apr 2006
Posts: 688
D
Dullaron Offline
Senior Member
Offline
Senior Member
D
Joined: Apr 2006
Posts: 688
Look like got some netlist errors today. Just seeing what been change since.

I did removed the "SDL_INI_PATH = .;/storage/emulated/0/MAME/;ini;" For testing. smile

Full building

Code:

Microsoft Windows [Version 10.0.10586]
(c) 2015 Microsoft Corporation. All rights reserved.

C:\Users\KingH>call C:\msys64\win32\env.bat

[MINGW64] C:\Users\KingH>cd C:\source

[MINGW64] C:\source>make android-arm -j5
GCC 5.3.0 detected
Converting src/mame/drivers/ymmu100.ppm...
'pkg-config' is not recognized as an internal or external command,
operable program or batch file.
'pkg-config' is not recognized as an internal or external command,
operable program or batch file.
'pkg-config' is not recognized as an internal or external command,
operable program or batch file.
'pkg-config' is not recognized as an internal or external command,
operable program or batch file.
'pkg-config' is not recognized as an internal or external command,
operable program or batch file.
'pkg-config' is not recognized as an internal or external command,
operable program or batch file.

...............................Skip to the errors.

Compiling src/mame/drivers/riscpc.cpp...
In file included from ../../../../../src/mame/drivers/aleisttl.cpp:30:
In file included from ../../../../../src/devices\machine/netlist.h:16Compiling src/mame/drivers/alpha68k.cpp...
:
In file included from ../../../../../src/lib\netlist/nl_base.h:165:
../../../../../src/lib/netlist/nl_time.h:112Compiling src/mame/drivers/ssfindo.cpp...
:79: error: use of undeclared identifier 'UINT64_C'
                static constexpr ptime from_nsec(const internal_type ns) { return ptime(ns, UINT64_C(1000000000)); }
                                                                                            ^
../../../../../src/lib/netlist/nl_time.h:113:79: error: use of undeclared identifier 'UINT64_C'
                static constexpr ptime from_usec(const internal_type us) { return ptime(us, UINT64_C(1000000)); }
                                                                                            ^
../../../../../src/lib/netlist/nl_time.h:114:79: error: use of undeclared identifier 'UINT64_C'
                static constexpr ptime from_msec(const internal_type ms) { return ptime(ms, UINT64_C(1000)); }
                                                                                            ^
../../../../../src/lib/netlist/nl_time.h:129:49: error: use of undeclared identifier 'UINT64_C'
        using netlist_time = ptime<std::uint_fast64_t, NETLIST_INTERNAL_RES>;
                                                       ^
In file included from ../../../../../src/mame/drivers/aleisttl.cpp:30:
In file included from ../../../../../src/devices\machine/netlist.h:16:
Compiling 3rdparty/SDL2/src/events/SDL_dropevents.c...
In file included from ../../../../../src/lib\netlist/nl_base.h:164:
In file included from ../../../../../src/lib/netlist/nl_lists.h:15:
../../../../../src/lib/netlist/nl_config.h:141:38: note: expanded from macro 'NETLIST_INTERNAL_RES'
#define NETLIST_INTERNAL_RES        (UINT64_C(1000000000))
                                     ^
Compiling src/mame/drivers/altos486.cpp...
Compiling 3rdparty/SDL2/src/events/SDL_events.c...
In file included from ../../../../../src/mame/drivers/aleisttl.cpp:30:
In file included from ../../../../../src/devices\machine/netlist.h:16:
In file included from ../../../../../src/lib\netlist/nl_base.h:165:
../../../../../src/lib/netlist/nl_time.h:134:79: error: no type named 'netlist_time' in namespace 'netlist'
template<> inline void state_manager_t::save_item(const void *owner, netlist::netlist_time &nlt, const pstring &stname)
                                                                     ~~~~~~~~~^Compiling 3rdparty/SDL2/src/events/SDL_gesture.c...

../../../../../src/lib/netlist/nl_time.h:136:59: error: no member named 'netlist_time' in namespace 'netlist'
        save_state_ptr(owner, stname, datatype_t(sizeof(netlist::netlist_time::internal_type), false, true, false), 1, nlt.get_internaltype_ptr());Compiling src/mame/drivers/z88.cpp...

                                                        ~~~~~~~~~^
In file included from ../../../../../src/mame/drivers/aleisttl.cpp:30:
In file included from ../../../../../src/devices\machine/netlist.h:16:
../../../../../src/lib\netlist/nl_base.h:563:29: error: unknown type name Compiling 3rdparty/SDL2/src/events/SDL_keyboard.c...
'netlist_time'; did you mean 'netlist_t'?
                void schedule_after(const netlist_time &after);
                                          ^~~~~~~~~~~~
                                          netlist_t
../../../../../src/lib\netlist/nl_base.h:285:8: note: 'netlist_t' declared here
        class netlist_t;
Compiling 3rdparty/SDL2/src/events/SDL_mouse.c...
              ^
../../../../../src/lib\netlist/nl_base.h:667:28: error: Compiling src/mame/drivers/altos5.cpp...
unknown type name 'netlist_time'; did you mean 'netlist_t'?
                void push_to_queue(const netlist_time delay) NOEXCEPT;
                                         ^~~~~~~~~~~~
                                         netlist_t
../../../../../src/lib\netlist/nl_base.h:285:8: note: 'netlist_t' Compiling 3rdparty/SDL2/src/events/SDL_quit.c...
declared here
        class netlist_t;
              ^
../../../../../src/lib\netlist/nl_base.h:668:34: errorCompiling src/mame/drivers/champbas.cpp...
: unknown type name 'netlist_time'; did you mean 'netlist_t'?
                void reschedule_in_queue(const netlist_time delay) NOEXCEPT;
                                               ^~~~~~~~~~~~
                                               netlist_t
../../../../../src/lib\netlist/nl_base.hCompiling 3rdparty/SDL2/src/events/SDL_touch.c...
:285:8:Compiling src/mame/machine/archimds.cpp...
 note: 'netlist_t' declared here
        class netlist_t;
              ^
../../../../../src/lib\netlist/nl_base.h:673:9: error: unknown type name 'netlist_time'; did you mean 'netlist_t'?
                const netlist_time time() const { return m_time; }
                      ^~~~~~~~~~~~
                      netlist_t
../../../../../src/lib\netlist/nl_base.h:285:8: note: 'netlist_t' declared here
        class netlist_t;
              ^
../../../../../src/lib\netlist/nl_base.h:674:23: error: unknown type name 'netlist_time'; did you Compiling 3rdparty/SDL2/src/events/SDL_windowevents.c...
mean 'netlist_t'?
                void set_time(const netlist_time ntime) { m_time = ntime; }
                                    ^~~~~~~~~~~~
                                    netlist_t
../../../../../src/lib\netlist/nl_base.h:285:8: note: 'netlist_t' declared here
        class netlist_t;
              ^Compiling 3rdparty/SDL2/src/file/SDL_rwops.c...

../../../../../src/lib\netlist/nl_base.h:694:13: error: unknown type name 'netlist_time'; did you mean 'netlist_t'?
                state_var<netlist_time>  m_time;
                          ^~~~~~~~~~~~
                          netlist_t
Archiving libaltos.a...
../../../../../src/lib\netlist/nl_base.h:285:8: note: 'netlist_t' declared here
        class netlist_t;
              ^
../../../../../src/lib\netlist/nl_base.h:363:5: error: field has incompleteCompiling src/mame/drivers/clayshoo.cpp...
 type 'netlist::netlist_t'
Compiling 3rdparty/SDL2/src/filesystem/android/SDL_sysfilesystem.c...
                T m_value;
                  ^
../../../../../src/lib\netlist/nl_base.h:694:28: note: in instantiation of template class 'netlist::state_var<netlist::netlist_t>' requested here
                state_var<netlist_time>  m_time;
                                         ^
../../../../../src/lib\netlist/nl_base.h:285:8: noteCompiling 3rdparty/SDL2/src/haptic/SDL_haptic.c...
: forward declaration of 'netlist::netlist_t'
        class netlist_t;
              ^
../../../../../src/lib\netlist/nl_base.h:673:22: error: incomplete result typeCompiling src/mame/drivers/equites.cpp...
 'const netlist::netlist_t' in function definition
                const netlist_time time() const { return m_time; }
                                   ^
../../../../../src/lib\netlist/nl_base.h:285:8: note: forward declaration of 'netlist::netlist_t'
Compiling 3rdparty/SDL2/src/haptic/dummy/SDL_syshaptic.c...
        class netlist_t;
              ^
../../../../../src/lib\netlist/nl_base.h:674:36: error: variable has incomplete type 'const netlist::netlist_t'
                void set_time(const netlist_time ntime) { m_time = ntime; }
                                                 ^
Compiling 3rdparty/SDL2/src/joystick/SDL_gamecontroller.c...
../../../../../src/lib\netlist/nl_base.h:285:8: note: forward declaration of 'netlist::netlist_t'
        class netlist_t;
              ^
../../../../../src/lib\netlist/nl_base.h:720:46: error: unknownCompiling 3rdparty/SDL2/src/joystick/SDL_joystick.c...
 type name 'netlist_time'; did you mean 'netlist_t'?
                void set_Q(const netlist_sig_t newQ, const netlist_time delay) NOEXCEPT
                                                           ^~~~~~~~~~~~
                                                           netlist_t
Compiling src/mame/machine/bbc.cpp...
../../../../../src/lib\netlist/nl_base.h:285:8: note: 'netlist_t' declared here
        class netlist_t;
              ^
../../../../../src/lib\netlist/nl_base.h:729:51: errorCompiling src/mame/drivers/alg.cpp...
: unknown type name 'netlist_time'; did you mean 'netlist_t'?
Compiling 3rdparty/SDL2/src/joystick/android/SDL_sysjoystick.c...
                void set_Q_time(const netlist_sig_t newQ, const netlist_time at)
                                                                ^~~~~~~~~~~~
                                                                netlist_t
../../../../../src/lib\netlist/nl_base.h:285:8: note: 'netlist_t' declared here
        class netlist_t;
              ^
../../../../../src/lib\netlist/nl_base.h:720:59: error: variable has incomplete type 'const netlist::netlist_t'
Compiling 3rdparty/SDL2/src/loadso/dlopen/SDL_sysloadso.c...
                void set_Q(const netlist_sig_t newQ, const netlist_time delay) NOEXCEPT
                                                                        ^
../../../../../src/lib\netlist/nl_base.h:285:8: note: forward declaration of 'netlist::netlist_t'
        class netlist_t;
              ^
../../../../../src/lib\netlist/nl_base.hCompiling src/mame/drivers/meijinsn.cpp...
:729:64: error: variable has incomplete type 'const netlist::netlist_t'
                void set_Q_time(const netlist_sig_t newQ, const netlist_time at)
                                                                             ^Compiling 3rdparty/SDL2/src/loadso/windows/SDL_sysloadso.c...

../../../../../src/lib\netlist/nl_base.h:285:8: note: forward declaration of 'netlist::netlist_t'
        class netlist_t;
              ^
fatal error: too many errors emitted, stopping Compiling 3rdparty/SDL2/src/power/SDL_power.c...
now [-ferror-limit=]
20 errors generated.
alliedl.make:290: recipe for target '../../../../android-arm/obj/Release/src/mame/drivers/aleisttl.o' failed
make[2]: *** [../../../../android-arm/obj/Release/src/mame/drivers/aleisttl.o] Error 1
makefile:91: recipe for target 'alliedl' failed
make[1]: *** [alliedl] Error 2
make[1]: *** Waiting for unfinished jobs....

...............................Skip to the end.

Linking libSDL2.so...
makefile:1077: recipe for target 'android-arm' failed
make: *** [android-arm] Error 2



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] #106191 06/28/16 12:07 PM
Joined: Feb 2008
Posts: 326
M
Micko Offline
Senior Member
Offline
Senior Member
M
Joined: Feb 2008
Posts: 326
Thanks for pointing to this before release.

Fixed.

Re: Compile for Android? [Re: NLS] #106203 06/29/16 01:26 AM
Joined: Apr 2006
Posts: 688
D
Dullaron Offline
Senior Member
Offline
Senior Member
D
Joined: Apr 2006
Posts: 688
No problem. smile

Look like the android-arm64 make without tiny just fine. I switch to this.

You did fix the tiny issue on the android-arm. smile

Checking different builds.


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: Dullaron] #106207 06/29/16 12:04 PM
Joined: Feb 2013
Posts: 15
Z
zambr Offline
Member
Offline
Member
Z
Joined: Feb 2013
Posts: 15
Hi Dullaron, would you be so kind to post a copy of the binary?

I just brought a Nexus 9 (Tegra K1 64bit), with a controller.

Interested in particular to test ZX Spectrum and Megadrive performance (if it even works lol), as well as what other things it can handle.

I'll post my findings.

Thanks if you can smile

Last edited by zambr; 06/29/16 02:32 PM.
Re: Compile for Android? [Re: NLS] #106208 06/29/16 05:29 PM
Joined: Apr 2006
Posts: 688
D
Dullaron Offline
Senior Member
Offline
Senior Member
D
Joined: Apr 2006
Posts: 688
Here you go. https://www.dropbox.com/s/3kyv5pl7l3kt942/MAME.exe?dl=0 Base from the official MAME 0.175 source.

app-debug.apk
app-debug-unaligned.apk
app-release-unsigned.apk

Now there will be issues so don't blame me. Not all games run in full speed. I haven't tried to run the softwarelist stuff.

I use a keyboard to test out only. The keyboard won't move until I get out of a loading game screen. I don't know what cause that issue. Just hit Enter and then Esc to back out of the loading screen. smile


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] #106222 06/30/16 07:18 AM
Joined: Apr 2006
Posts: 688
D
Dullaron Offline
Senior Member
Offline
Senior Member
D
Joined: Apr 2006
Posts: 688
Forgot. Put the MAME folder to here. /storage/emulated/0/MAME


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: Dullaron] #106225 06/30/16 11:11 AM
Joined: Feb 2013
Posts: 15
Z
zambr Offline
Member
Offline
Member
Z
Joined: Feb 2013
Posts: 15
Fantastic thanks. I'll get a chance at the weekend to have a first look at it, very curious.

Re: Compile for Android? [Re: NLS] #106276 07/02/16 10:33 AM
Joined: Feb 2013
Posts: 15
Z
zambr Offline
Member
Offline
Member
Z
Joined: Feb 2013
Posts: 15
I got arcade Galaxian to run, but was unable to run it full framerate, even with skipping.

I then read up on video drivers for Nvidia powered ARM tablets, and discovered something really annoying which may be the reason for poor performance.

Nvidia branded tablets called Shield use OpenGL desktop class drivers where as the other tablets that have the same or better ARM Nvidia h/w, can only use generic OpenGL drivers (which in affect make them no better than a top of the range phone).

More info http://forum.xda-developers.com/nexus-9/general/opengl-4-5-support-missing-change-t2983448

Argh!

What was cool, able to navigate the GUI just fine using a combination of keyboard and bluetooth controller. So no issues for testing purposes.


Last edited by zambr; 07/02/16 12:39 PM.
Re: Compile for Android? [Re: NLS] #106283 07/03/16 02:23 AM
Joined: Apr 2006
Posts: 688
D
Dullaron Offline
Senior Member
Offline
Senior Member
D
Joined: Apr 2006
Posts: 688
Thanks for the link. smile

NVIDIA is the way to go. Just might get one of those.

Bad Google and Amazon. Those are poor made. I'm so done on these. MAME will have to run on something else. lol

https://shield.nvidia.com/android-tv ($299 with 500gb is the best way to go.) They throw in the 2nd controller for free.

Just gotta remember that the MAME in the alpha stage. Weird shit happens. Might even take a shit on some of the Android devises or tell it to get lost. lol


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: Dullaron] #106454 07/08/16 11:21 PM
Joined: Feb 2013
Posts: 15
Z
zambr Offline
Member
Offline
Member
Z
Joined: Feb 2013
Posts: 15
All is not lost I guess, as Vulkan API will be available from the next version of Android. Will be interesting to see if anyone adopts this for any emulators, not just MAME.

Be useful for Indie devs anyway.

Last edited by zambr; 07/08/16 11:22 PM.
Page 7 of 7 1 2 3 4 5 6 7

Moderated by  R. Belmont 

Who's Online Now
2 registered members (Pernod, 1 invisible), 45 guests, and 3 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,814
Posts115,990
Members4,915
Most Online890
Jan 17th, 2020
Powered by UBB.threads™ PHP Forum Software 7.7.3