Trick
Posts: 10
Joined: Fri Jul 01, 2016 6:49 am

Compiling Mame for Android, problem.

Hi, I was trying to compile Mame for Android with the latest git, but I've come across a problem when compiling it. I get the message "'pkg-config' is not recognized as an internal or external command, operable program or batch file.". I understand that maybe something needs to be added to the Environment Variables?, not sure what exactly. My compiling environment, I think is just the default layout with my msys64 folder at D:\msys64 and my Src folder in D:\msys64\src. I'm using the command "make android-arm64 -j9". When I did the "gradlew assemble" command, I get these Notes "Note: D:\msys64\src\android-project\app\src\main\java\org\libsdl\app\SDLActivity.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.". Standard Windows Mame compiles fine. I'm using Windows 10 Pro 64-bit on a i7 2670QM. I'm trying to run it on a Galaxy S4, but when I run the resulting "app-debug.apk" I get the message that "Unfortunately, MAME has stopped.". Thanks for any help.
Attachments
pkg-config.png
pkg-config.png (211.38 KiB) Viewed 6246 times
mhoes
Posts: 186
Joined: Wed Oct 26, 2016 12:26 pm

Re: Compiling Mame for Android, problem.

Isn't 'pkg-config' a tool/command that needs to be installed ? Not sure on how to go about getting the binaries for it though.

https://www.freedesktop.org/wiki/Software/pkg-config/
Trick
Posts: 10
Joined: Fri Jul 01, 2016 6:49 am

Re: Compiling Mame for Android, problem.

I'm not sure, but there is a pkg-config file in my compiling environment at D:\msys64\usr\share\bash-completion\completions\pkg-config. I've tried adding this path to the Environment Variables in PKG_CONFIG_PATH, but still the same problem occurrs. Thanks for the reply.
Trick
Posts: 10
Joined: Fri Jul 01, 2016 6:49 am

Re: Compiling Mame for Android, problem.

I tried using pkg-config-lite from https://sourceforge.net/projects/pkgconfiglite/ and it fixed the "'pkg-config' is not recognized as an internal or external command, operable program or batch file." problem, so thanks for that mhoes, however, further on compiling resulted in this error:

Code: Select all

In file included from ../../../../../src/emu\emucore.h:37:
In file included from ../../../../../src/emu/emualloc.h:18:
../../../../../src/osd\osdcore.h:52:7: error: ms_struct may not produce Microsoft-compatible layouts for classes with base classes or
      virtual functions [-Wincompatible-ms-struct]
class osd_file
      ^
../../../../../src/osd\osdcore.h:333:8: error: ms_struct may not produce Microsoft-compatible layouts for classes with base classes or
      virtual functions [-Wincompatible-ms-struct]
        class directory
              ^
../../../../../src/osd\osdcore.h:798:7: error: ms_struct may not produce Microsoft-compatible layouts for classes with base classes or
      virtual functions [-Wincompatible-ms-struct]
class osd_midi_device
      ^
../../../../../src/osd\osdcore.h:858:7: error: ms_struct may not produce Microsoft-compatible layouts for classes with base classes or
      virtual functions [-Wincompatible-ms-struct]
class osd_output
      ^
In file included from ../../../../../src/osd/modules/debugger/debugqt.cpp:11:
In file included from ../../../../../src/osd/modules/debugger/debug_module.h:11Compiling src/mame/drivers/ie15.cpp...
:
In file included from ../../../../../src/osd\osdepend.h:16:
In file included from ../../../../../src/emu\emucore.h:37:
In file included from ../../../../../src/emu/emualloc.h:19:
../../../../../src/lib/util\coretmpl.h:824:7: error: ms_struct may not produce Microsoft-compatible layouts for classes with base
Compiling src/osd/modules/debugger/debugimgui.cpp...
      classes or virtual functions [-Wincompatible-ms-struct]
class fifo : protected std::array<T, N>
      ^
In file included from ../../../../../src/osd/modules/debugger/debugqt.cpp:11:
In file included from ../../../../../src/osd/modules/debugger/debug_module.h:11:
In file included from ../../../../../src/osd\osdepend.h:16:
In file included from ../../../../../src/emu\emucore.h:37:
../../../../../src/emu/emualloc.h:39:7: error: ms_struct may not produce Microsoft-compatible layouts for classes with base classes or
      virtual functions [-Wincompatible-ms-struct]
class resource_pool_item
      ^
../../../../../src/emu/emualloc.h:66:7: error: ms_struct may not produce Microsoft-compatible layouts for classes with base classes or
      virtual functions [-Wincompatible-ms-struct]
class resource_pool_object : public resource_pool_item
      ^
../../../../../src/emu/emualloc.h:85:36: error: ms_struct may not produce Microsoft-compatible layouts for classes with base classes or
      virtual functions [-Wincompatible-ms-struct]
template<class _ObjectClass> class resource_pool_array : public resource_pool_item
                                   ^
../../../../../src/emu/emualloc.h:105:7: error: ms_struct may not produce Microsoft-compatible layouts for classes with base classes or
      virtual functions [-Wincompatible-ms-struct]
class resource_pool
      ^
Compiling src/lib/netlist/analog/nld_fourterm.cpp...
Compiling src/osd/modules/debugger/debugwin.cpp...
In file included from ../../../../../src/osd/modules/debugger/debugqt.cpp:11:
In file included from ../../../../../src/osd/modules/debugger/debug_module.h:11:
In file included from ../../../../../src/osd\osdepend.h:16:
In file included from ../../../../../src/emu\emucore.h:38:
In file included from ../../../../../src/lib/util\corestr.h:17:
In file included from ../../../../../src/lib/util/strformat.h:174:
../../../../../src/lib/util/vecstream.h:38:7: error: ms_struct may not produce Microsoft-compatible layouts for classes with base
      classes or virtual functions [-Wincompatible-ms-struct]
class basic_vectorbuf : public std::basic_streambuf<CharT, Traits>
      ^
../../../../../src/lib/util/vecstream.h:316:7: error: ms_struct may not produce Microsoft-compatible layouts for classes with base
      classes or virtual functions [-Wincompatible-ms-struct]
class basic_ivectorstream : public std::basic_istream<CharT, Traits>
      ^
../../../../../src/lib/util/vecstream.h:337:7: error: ms_struct may not produce Microsoft-compatible layouts for classes with Compiling src/mame/drivers/magicfly.cpp...
base
      classes or virtual functions [-Wincompatible-ms-struct]
class basic_ovectorstream : public std::basic_ostream<CharT, Traits>
      ^
../../../../../src/lib/util/vecstream.h:360:7: error: ms_struct may not produce Microsoft-compatible layouts for classes with base
      classes or virtual functions [-Wincompatible-ms-struct]
class basic_vectorstream : public std::basic_iostream<CharT, Traits>
      ^
../../../../../src/lib/util/vecstream.h:38:7: error: ms_struct may not produce Microsoft-compatible layouts for classes with base
      classes or virtual functions [-Wincompatible-ms-struct]
class basic_vectorbuf : public std::basic_streambuf<CharT, Traits>
      ^
In file included from ../../../../../src/osd/modules/debugger/debugimgui.cpp:5:
In file included from ../../../../../src/emu\emu.h:29:
In file included from ../../../../../src/emu/emucore.h:37:
In file included from ../../../../../src/emu/emualloc.h:18:
../../../../../src/osd\osdcore.h:52:7: error: ms_struct may not produce Microsoft-compatible layouts for classes with base classes or
      virtual functions [-Wincompatible-ms-struct]
class osd_file
      ^
../../../../../src/osd\osdcore.h:333:8: error: ms_struct may not produce Microsoft-compatible layouts for classes with base classes or
      virtual functions [-Wincompatible-ms-struct]
        class directory
              ^
../../../../../src/osd\osdcore.h:798:7: error: ms_struct may not produce Microsoft-compatible layouts for classes with base classes or
      virtual functions [-Wincompatible-ms-struct]
class osd_midi_device
      ^
../../../../../src/osd\osdcore.h:858:7: error: ms_struct may not produce Microsoft-compatible layouts for classes with base classes or
      virtual functions [-Wincompatible-ms-struct]
class osd_output
      ^
../../../../../src/lib/util/vecstream.hIn file included from ../../../../../src/osd/modules/debugger/debugimgui.cpp:5:
In file included from ../../../../../src/emu\emu.h:29:
In file included from ../../../../../src/emu/emucore.h:37:
In file included from ../../../../../src/emu/emualloc.h:19:
../../../../../src/lib/util\coretmpl.h:824:7: error: ms_struct may not produce Microsoft-compatible layouts for classes with base
      classes or virtual functions [-Wincompatible-ms-struct]
class fifo : protected std::array<T, N>
      ^
In file included from ../../../../../src/osd/modules/debugger/debugimgui.cpp:5:
In file included from ../../../../../src/emu\emu.h:29:
In file included from ../../../../../src/emu/emucore.h:37:
../../../../../src/emu/emualloc.h:39:7: error: ms_struct may:319:19: note:  in instantiationnot  Compiling src/lib/util/avhuff.cpp...
of producetemplate Microsoft-compatible layouts for classes with base classes or
      virtual functions [-Wincompatible-ms-struct]
class resource_pool_item
      ^
../../../../../src/emu/emualloc.h:66:7: error: ms_struct may not produce Microsoft-compatible layouts for classes with base classes or
      virtual functions [-Wincompatible-ms-struct]
class resource_pool_object : public resource_pool_item
      ^
../../../../../src/emu/emualloc.h:85:36: class  error: 'util::basic_vectorbuf<char,
ms_struct      std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> >' requested here
        typedef typename basic_vectorbuf<CharT, Traits, Allocator>::vector_type vector_type;
                         ^
../../../../../src/lib/util/vecstream.h:399:23: note: in instantiation of template class 'util::basic_ivectorstream<char>' requested
      here
extern template class basic_ivectorstream<char>;
 may not produce Microsoft-compatible layouts for classes with base classes or
      virtual functions [-Wincompatible-ms-struct]
template<class _ObjectClass> class resource_pool_array : public resource_pool_item
                                   ^
../../../../../src/emu/emualloc.h:105:7: error: ms_struct                       ^
may not produce Microsoft-compatible layouts for classes with base classes or
      virtual functions [-Wincompatible-ms-struct]
class resource_pool
      ^
../../../../../src/lib/util/vecstream.h:399:23: error: ms_struct may not produce Microsoft-compatible layouts for classes with base
      classes or virtual functions [-Wincompatible-ms-struct]
extern template class basic_ivectorstream<char>;
                      ^
../../../../../src/lib/util/vecstream.h:399:23: note: in instantiation of template class 'util::basic_ivectorstream<char>' requested
      here
extern template class basic_ivectorstream<char>;
                      ^
../../../../../src/lib/util/vecstream.h:38:7: error: ms_struct may not produce Microsoft-compatible layouts for classes with base
      classes or virtual functions [-Wincompatible-ms-struct]
class basic_vectorbuf : public std::basic_streambuf<CharT, Traits>
      ^
../../../../../src/lib/util/vecstream.h:319:19: note: in instantiation of template class 'util::basic_vectorbuf<wchar_t,
      std::__ndk1::char_traits<wchar_t>, std::__ndk1::allocator<wchar_t> >' requested here
        typedef typename basic_vectorbuf<CharT, Traits, Allocator>::vector_type vector_type;
                         ^
../../../../../src/lib/util/vecstream.h:400:23: note: in instantiation of template class 'util::basic_ivectorstream<wchar_t>' requested
      here
extern template class basic_ivectorstream<wchar_t>;
                      ^
../../../../../src/lib/util/vecstream.h:400:23: error: ms_struct may not produce Microsoft-compatible layouts for classes with base
      classes or virtual functions [-Wincompatible-ms-struct]
extern template class basic_ivectorstream<wchar_t>;
                      ^
../../../../../src/lib/util/vecstream.h:400:23:In file included from  ../../../../../src/osd/modules/debugger/debugimgui.cppIn file inc:luded from 5../../../../../src/osd/modules/debugger/debugwin.cpp:
:In file included from 9../../../../../src/emu\emu.h:
:In file included from 29../../../../../src/osd/modules/debugger/debug_module.h:
:In file included from 11../../../../../src/emu/emucore.h:
:In file included from 38../../../../../src/osd\osdepend.h:
:In file included from 16../../../../../src/lib/util\corestr.h:
:In file included from 17../../../../../src/emu\emucore.h:
:In file included from 37../../../../../src/lib/util/strformat.h:
:In file included from 174../../../../../src/emu/emualloc.h:
:18../../../../../src/lib/util/vecstream.h:
:note38../../../../../src/osd\osdcore.h: :in: 7instantiation52: : of7 templateerror: class:   'util::basic_ivectorstream<wchar_t>' ms_sterrorruct:  mayms_struct  notmay  producenot  Microsoft-compatibleproduce  layoutsMicrosoft-compatible  forlayouts  classesfor  withclasses  basewith
       baseclasses  classesor  orvirtual
       functionsvirtual  [-Wincompatible-ms-struct]functions
 class basic_vectorbuf : public std::basic_streambuf<CharT, Traits>[-Wincompatible-ms-struct]

      ^class osd_file

requested
      here
extern template class basic_ivectorstream<wchar_t>;
                      ^
      ^../../../../../src/lib/util/vecstream.h
:316../../../../../src/osd\osdcore.h::7333:: 8:error : errorms_struct:  mayms_struct  notmay  producenot  Microsoft-compatibleproduce
lMayoutsicrosoft-compatible  forlayouts  classesfor  withclasses  basewith
       baseclasses  classesor  orvirtual
       functionsvirtual  [-Wincompatible-ms-struct]functions
 class basic_ivectorstream : public std::basic_istream<CharT, Traits>[-Wincompatible-ms-struct]

      ^        class directory

../../../../../src/lib/util/vecstream.h              ^:
337:../../../../../src/osd\osdcore.h7::798 :7error::  ms_structerror : may ms_structnot  mayproduce  notMicrosoft-compatible  producela youtsMicrosoft-compatible  forlayouts  classesfor  withclasses  basewith
       baseclasses  classesor  orvirtual
       functionsvirtual  [-Wincompatible-ms-struct]functions
 class basic_ovectorstream : public std::basic_ostream<CharT, Traits>[-Wincompatible-ms-struct]
../../../../../src/lib/util/vecstream.h
      ^class osd_midi_device

../../../../../src/lib/util/vecstream.h      ^:
:401:360../../../../../src/osd\osdcore.h::7858:: 7:error : errorms_struct:  mayms_struct  notmay  producenot  produceMicrosoft-compatible  Microsoft-compatiblelayouts  layoutsfor  forclasses  classeswith23  withbase
base       classesclasses  oror
virtual       virtualfunctions  functions[-Wincompatible-ms-struct]
[-Wincompatible-ms-struct]class basic_vectorstream : public std::basic_iostream<CharT, Traits>

class osd_output      ^

      ^
../../../../../src/lib/util/vecstream.h:38:7: error: ms_struct: error: ms_struct may not produce Microsoft-compatible layouts for classes with base
      classes or virtual functions [-Wincompatible-ms-struct]
class basic_vectorbuf : public std::basic_streambuf<CharT, Traits>
      ^
../../../../../src/lib/util/vecstream.h:319may:19 not produce Microsoft-compatible:  layouts for classes with base
      classes or virtual functions [-Wincompatible-ms-struct]
extern template class basic_ovectorstream<char>;
                      ^
../../../../../src/lib/util/vecstream.h:401:23note: in instantiation of template class 'util::basic_vectorbuf<char,
      std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> >' requested here
        typedef typename basic_vectorbuf<CharT, Traits, Allocator>::vector_type vector_type;
                         ^
../../../../../src/lib/util/vecstream.h:399:23: note: in instantiation of template class 'util::basic_ivectorstream<char>' requested
      here
: note: in instantiation of template class 'util::basic_ovectorstream<char>' requested
      here
extern template class basic_ovectorstream<char>;
                      ^
../../../../../src/lib/util/vecstream.h:402extern template class basic_ivectorstream<char>;
                      ^
:../../../../../src/lib/util/vecstream.h:399:23: error: ms_struct may not produce Microsoft-compatible layouts for classes with base
      classes or virtual functions [-Wincompatible-ms-struct]
extern template class basic_ivectorstream<char>;
                      ^
../../../../../src/lib/util/vecstream.h:399:23: note: in instantiation of template class 'util::basic_ivectorstream<char>' requested
      here
extern template class basic_ivectorstream<char>;
                      ^
../../../../../src/lib/util/vecstream.h:38:7: error: ms_struct may not produce Microsoft-compatible layouts for classes with23 :base
      classes or virtual functions [-Wincompatible-ms-struct]
class basic_vectorbuf : public std::basic_streambuf<CharT, Traits>
      ^
../../../../../src/lib/util/vecstream.h:319:19: note: in instantiation of template class 'util::basic_vectorbuf<wchar_t,
      std::__ndk1::char_traits<wchar_t>, std::__ndk1::allocator<wchar_t> >' requested here
        typedef typename basic_vectorbuf<CharT, Traits, Allocator>::vector_type vector_type;
                         ^
../../../../../src/lib/util/vecstream.h:400:23: note: in instantiation of template class 'util::basic_ivectorstream<wchar_t>' requested
      here
extern template class basic_ivectorstream<wchar_t>;
                      ^error
In file included from ../../../../../src/osd/modules/debugger/debugwin.cpp../../../../../src/lib/util/vecstream.h::9400:
:In file included from 23../../../../../src/osd/modules/debugger/debug_module.h:: 11error:
: In file included from ../../../../../src/osd\osdepend.hms_struct: 16may:
 In file included from not../../../../../src/emu\emucore.h :produce37 :
Microsoft-compatibleIn file included from  ../../../../../src/emu/emualloc.hlayouts: 19for:
 classes../../../../../src/lib/util\coretmpl.h :with824 :base7
:       classeserror : or ms_structvirtual  mayfunctions  not[-Wincompatible-ms-struct] : ms_struct may not produce Microsoft-compatible layouts for
produceextern template class basic_ivectorstream<wchar_t>;
Microsoft-compatible                       ^layouts
 for../../../../../src/lib/util/vecstream.h :classes400 :with23  :classes with base
      classesbase
note      : classesin  or virtual  orinstantiation  virtualof  functionstemplate  [-Wincompatible-ms-struct]class
 class fifo : protected std::array<T, N>'util::basic_ivectorstream<wchar_t>'
 requested      ^

here
extern template class basic_ivectorstream<wchar_t>;
                      ^
In file included from ../../../../../src/osd/modules/debugger/debugwin.cpp:9:
In file included from ../../../../../src/lib/util/vecstream.h../../../../../src/osd/modules/debugger/debug_module.h::40111::
23In file included from :../../../../../src/osd\osdepend.h :error16: :
ms_structIn file included from  ../../../../../src/emu\emucore.hmay: 37not:
 produce../../../../../src/emu/emualloc.h :Microsoft-compatible39 :layouts7 :for  errorclasses:  withms_struct  basemay
 not       classesproduce  orMicrosoft-compatible  virtuallayouts  functionsfor  [-Wincompatible-ms-struct]classes
 withextern template class basic_ovectorstream<char>;
base                       ^classes
 or../../../../../src/lib/util/vecstream.h
:401      :virtual23 :functions  [-Wincompatible-ms-struct]note
: inclass resource_pool_item
instantiation       ^of
 template class 'util::basic_ovectorstream<char>' ../../../../../src/emu/emualloc.hrequested:
66      :here7
:functions extern template class basic_ovectorstream<char>;
error                      ^:
ms_struct../../../../../src/lib/util/vecstream.h :may402 :not23 :produce  Microsoft-compatibleerror : layoutsms_struct  formay  classesn otwith  producebase  Microsoft-compatibleclasses  layoutsor
for       classesvirtual  withfunctions  [-Wincompatible-ms-struct]base[-Wincompatible-ms-struct]
extern template class basic_ovectorstream<wchar_t>;
                      ^
../../../../../src/lib/util/vecstream.h:402:23

      class resource_pool_object : public resource_pool_itemclasses
 or      ^
virtual ../../../../../src/emu/emualloc.hfunctions: 85[-Wincompatible-ms-struct]:
36extern template class basic_ovectorstream<wchar_t>;:
                       ^error
: ../../../../../src/lib/util/vecstream.hms_struct: :402may : 23not:  produce noteMicrosoft-compatiblenote: in:  instantiation of template class 'util::basic_ovectorstream<wchar_t>' requested
       here
extern template class basic_ovectorstream<wchar_t>;
                      ^
inlayouts  instantiationfor  ofclasses  templatewith  classbase  'util::basic_ovectorstream<wchar_t>'classes  requestedor

            herevirtual
 extern template class basic_ovectorstream<wchar_t>;functions
 [-Wincompatible-ms-struct]                      ^

template<class _ObjectClass> class resource_pool_array : public resource_pool_item
                                   ^
../../../../../src/emu/emualloc.hfatal error:: 105too: 7many:  errors erroremitted,:  ms_structstopping  maynow  not[-ferror-limit=]
produce Microsoft-compatible layouts for classes with base classes or
      virtual functions [-Wincompatible-ms-struct]
class resource_pool
      ^
fatal error: too many errors In file included from emitted,../../../../../src/osd/modules/debugger/debugwin.cpp stopping now: [-ferror-limit=]
9:
In file included from ../../../../../src/osd/modules/debugger/debug_module.h:11:
In file included from ../../../../../src/osd\osdepend.h:16:
In file included from ../../../../../src/emu\emucore.h:38:
In file included from ../../../../../src/lib/util\corestr.h:17:
In file included from ../../../../../src/lib/util/strformat.h:174:
../../../../../src/lib/util/vecstream.h:38:7: error: ms_struct may not produce Microsoft-compatible layouts for classes with base
      classes or virtual functions [-Wincompatible-ms-struct]
class basic_vectorbuf : public std::basic_streambuf<CharT, Traits>
      ^
../../../../../src/lib/util/vecstream.h:316:7: error: ms_struct may not produce Microsoft-compatible layouts for classes with base
      classes or virtual functions [-Wincompatible-ms-struct]
class basic_ivectorstream : public std::basic_istream<CharT, Traits>
      ^
../../../../../src/lib/util/vecstream.h:337:7: error: ms_struct may not produce Microsoft-compatible layouts for classes with base
      classes or virtual functions [-Wincompatible-ms-struct]
class basic_ovectorstream : public std::basic_ostream<CharT, Traits>
      ^
../../../../../src/lib/util/vecstream.h:360:7: error: ms_struct may not produce Microsoft-compatible layouts for classes with base
      classes or virtual functions [-Wincompatible-ms-struct]
class basic_vectorstream : public std::basic_iostream<CharT, Traits>
      ^
../../../../../src/lib/util/vecstream.h:38:7: error: ms_struct may not produce Microsoft-compatible layouts for classes with base
      classes or virtual functions [-Wincompatible-ms-struct]
class basic_vectorbuf : public std::basic_streambuf<CharT, Traits>
      ^
../../../../../src/lib/util/vecstream.h:319:19: note: in instantiation of template class 'util::basic_vectorbuf<char,
      std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> >' requested here
        typedef typename basic_vectorbuf<CharT, Traits, Allocator>::vector_type vector_type;
                         ^
../../../../../src/lib/util/vecstream.h:399:23: note: in instantiation of template class 'util::basic_ivectorstream<char>' requested
      here
extern template class basic_ivectorstream<char>;
                      ^
../../../../../src/lib/util/vecstream.h:399:23: error: ms_struct may not produce Microsoft-compatible layouts for classes with base
      classes or virtual functions [-Wincompatible-ms-struct]
extern template class basic_ivectorstream<char>;
                      ^
../../../../../src/lib/util/vecstream.h:399:23: note: in instantiation of template class 'util::basic_ivectorstream<char>' requested
      here
extern template class basic_ivectorstream<char>;
                      ^
../../../../../src/lib/util/vecstream.h:38:7: error: ms_struct may not produce Microsoft-compatible layouts for classes with base
      classes or virtual functions [-Wincompatible-ms-struct]
class basic_vectorbuf : public std::basic_streambuf<CharT, Traits>
      ^
../../../../../src/lib/util/vecstream.h:319:19: note: in instantiation of template class 'util::basic_vectorbuf<wchar_t,
      std::__ndk1::char_traits<wchar_t>, std::__ndk1::allocator<wchar_t> >' requested here
        typedef typename basic_vectorbuf<CharT, Traits, Allocator>::vector_type vector_type;
                         ^
../../../../../src/lib/util/vecstream.h:400:23: note: in instantiation of template class 'util::basic_ivectorstream<wchar_t>' requested
      here
extern template class basic_ivectorstream<wchar_t>;
                      ^
../../../../../src/lib/util/vecstream.h:400:23Compiling src/mame/drivers/if800.cpp...
: error: ms_struct may not produce Microsoft-compatible Compiling src/lib/netlist/analog/nld_opamps.cpp...
layouts for classes with base
      classes or virtual functions [-Wincompatible-ms-struct]
extern template class basic_ivectorstream<wchar_t>;
                      ^
../../../../../src/lib/util/vecstream.h:400:23: note: in instantiation of template class 'util::basic_ivectorstream<wchar_t>' requested
      here
extern template class basic_ivectorstream<wchar_t>;
                      ^
../../../../../src/lib/util/vecstream.h:401:23: error: ms_struct may not produce Microsoft-compatible layouts for classes with base
      classes or virtual functions [-Wincompatible-ms-struct]
extern template class basic_ovectorstream<char>;
                      ^
../../../../../src/lib/util/vecstream.h:401:23: note: in instantiation of template class 'util::basic_ovectorstream<char>' requested
      here
extern template class basic_ovectorstream<char>;
                      ^
../../../../../src/lib/util/vecstream.h:402:23: error: ms_struct may not produce Microsoft-compatible layouts for classes with base
      classes or virtual functions [-Wincompatible-ms-struct]
extern template class basic_ovectorstream<wchar_t>;
                      ^
../../../../../src/lib/util/vecstream.h:402:23: note: in instantiation of template class 'util::basic_ovectorstream<wchar_t>' requested
      here
extern template class basic_ovectorstream<wchar_t>;
                      ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
Does anyone have an idea why?.
Trick
Posts: 10
Joined: Fri Jul 01, 2016 6:49 am

Re: Compiling Mame for Android, problem.

I just found out from a friend through a developer of Ubuntu mate edition, that it is a coding error and not a compile error after all.

Return to “MAME Discussion”