Previous Thread
Next Thread
Print Thread
Page 34 of 37 1 2 32 33 34 35 36 37
#104892 - 04/03/16 10:10 AM Re: Can't compile latest MESS? READ THIS THREAD [Re: Just Desserts]  
Joined: May 2008
Posts: 4,827
qmc2 Offline
qmc2  Offline

Very Senior Member

Joined: May 2008
Posts: 4,827
Germany
Last time I updated I used "update-core" before the pacman / package update. This worked just fine.


A mind is like a parachute. It doesn't work unless it's open. [Frank Zappa]

We're searching for QMC2 translators and support for existing translations. Interested? See here!
#104893 - 04/03/16 10:23 AM Re: Can't compile latest MESS? READ THIS THREAD [Re: Just Desserts]  
Joined: Jan 2012
Posts: 674
rfka01 Offline
Senior Member
rfka01  Offline
Senior Member

Joined: Jan 2012
Posts: 674
Bavaria
That did the trick, thanks!

Edith says: Almost ... With the updated compile tools, my AV (Avast) complains about collect2.exe being FileRep malware ...

Last edited by rfka01; 04/03/16 12:23 PM.

NCR DMV- DEC Rainbow- Siemens PCD- ITT 3030-Oly People- Acorn A5000- Olivetti M20
#104919 - 04/04/16 02:15 PM Re: Can't compile latest MESS? READ THIS THREAD [Re: Just Desserts]  
Joined: May 2012
Posts: 412
remax Offline
Senior Member
remax  Offline
Senior Member

Joined: May 2012
Posts: 412
France
Originally Posted By qmc2
Last time I updated I used "update-core" before the pacman / package update. This worked just fine.


Wow yeah... had to do the same.

Update was quite tedious this time...

Last edited by remax; 04/04/16 02:16 PM.
#105107 - 04/12/16 10:38 AM Re: Can't compile latest MESS? READ THIS THREAD [Re: Just Desserts]  
Joined: May 2007
Posts: 520
mizapf Offline
Senior Member
mizapf  Offline
Senior Member

Joined: May 2007
Posts: 520
Germany
For your information, I attempted to build MAME 0.172 on freshly installed Ubuntu and openSUSE Linux. The typical problem is that new people fail at building because they do not find out what packages to install, while those who are already doing builds for a longer time just don't remember what packages they installed in the past.

Packages to install for Ubuntu (15.10):

Code:
git
qt5-default
libsdl2-ttf-dev 
libfontconfig1-dev


Packages to install for openSUSE (42.1 LEAP)

Code:
git-core
gcc5-c++ 
libqt5-qtbase-devel
xorg-x11-devel
alsa-devel
libSDL2_ttf-devel


More packages are automatically pulled in by the dependencies resolution.

#105138 - 04/15/16 11:55 AM Re: Can't compile latest MESS? READ THIS THREAD [Re: Just Desserts]  
Joined: Aug 2011
Posts: 499
MikeAbson Offline
Senior Member
MikeAbson  Offline
Senior Member

Joined: Aug 2011
Posts: 499
Melbourne, Australia
Not having much luck here. Same error since last Saturday actually. I'm on Windows 7 64-bit. Error occurs after updating to the latest source. I'm also getting a similar error about 3/4 of the way through. If I type make -j6 again it seems to continue on until it tries to link the MAME exe.

GCC 5.3.0 detected
Linking mame64.exe...
../../../../mingw-gcc/bin/x64/Release/libocore_windows.a(osdlib_win32.o):osdlib_
win32.cpp:(.text+0x160): multiple definition of `osd_get_clipboard_text()'
../../../../mingw-gcc/bin/x64/Release/libocore_windows.a(winclip.o):winclip.cpp:
(.text+0x0): first defined here
../../../../mingw-gcc/bin/x64/Release/lib7z.a(7zIn.o):7zIn.c:(.text+0xe59): unde
fined reference to `SzFolder_Decode'
../../../../mingw-gcc/bin/x64/Release/lib7z.a(7zIn.o):7zIn.c:(.text+0x18bb): und
efined reference to `SzFolder_Decode'
collect2.exe: error: ld returned 1 exit status
mame.make:234: recipe for target '../../../../../mame64.exe' failed
make[2]: *** [../../../../../mame64.exe] Error 1
makefile:946: recipe for target 'mame' failed
make[1]: *** [mame] Error 2
makefile:900: recipe for target 'windows_x64' failed
make: *** [windows_x64] Error 2

#105139 - 04/15/16 12:03 PM Re: Can't compile latest MESS? READ THIS THREAD [Re: Just Desserts]  
Joined: Feb 2004
Posts: 1,793
Vas Crabb Offline
Very Senior Member
Vas Crabb  Offline
Very Senior Member

Joined: Feb 2004
Posts: 1,793
Sydney, Australia
Nuke all .a files under the build directory - you haven't done a clean build since stuff was moved around (or delete the build directory altogether).

#106044 - 06/15/16 02:07 PM Re: Can't compile latest MESS? READ THIS THREAD [Re: Just Desserts]  
Joined: Apr 2012
Posts: 154
Bavarese Offline
Senior Member
Bavarese  Offline
Senior Member

Joined: Apr 2012
Posts: 154
Germany
EDIT: PROBLEM SOLVED

Apply green sections. cool

---- (problem description) :
Visual Studio 2015 SP2 doesn't (on Windows 10).
GIT source from June 15th.

I get syntax errors after "Typedefs for dynamically loaded functions" (lines below). A MINGW64 build works!

File:
\src\mame\src\osd\modules\diagnostics\diagnostics_win32.cpp

(line 31+), all with syntax errors:
typedef BOOL WINAPI (*StackWalk64_fn)(DWORD, HANDLE, HANDLE, LPSTACKFRAME64, PVOID, PREAD_PROCESS_MEMORY_ROUTINE64, PFUNCTION_TABLE_ACCESS_ROUTINE64, PGET_MODULE_BASE_ROUTINE64, PTRANSLATE_ADDRESS_ROUTINE64);
typedef BOOL WINAPI (*SymInitialize_fn)(HANDLE, LPCTSTR, BOOL);
typedef PVOID WINAPI (*SymFunctionTableAccess64_fn)(HANDLE, DWORD64);
typedef DWORD64 WINAPI (*SymGetModuleBase64_fn)(HANDLE, DWORD64);
typedef BOOL WINAPI (*SymFromAddr_fn)(HANDLE, DWORD64, PDWORD64, PSYMBOL_INFO);
typedef BOOL WINAPI (*SymGetLineFromAddr64_fn)(HANDLE, DWORD64, PDWORD, PIMAGEHLP_LINE64);
typedef PIMAGE_SECTION_HEADER WINAPI (*ImageRvaToSection_fn)(PIMAGE_NT_HEADERS, PVOID, ULONG);
typedef PIMAGE_NT_HEADERS WINAPI (*ImageNtHeader_fn)(PVOID);
typedef VOID WINAPI (*RtlCaptureContext_fn)(PCONTEXT);

Last edited by Bavarese; 06/15/16 03:09 PM.
#106046 - 06/16/16 08:01 AM Re: Can't compile latest MESS? READ THIS THREAD [Re: Just Desserts]  
Joined: Apr 2012
Posts: 154
Bavarese Offline
Senior Member
Bavarese  Offline
Senior Member

Joined: Apr 2012
Posts: 154
Germany
If you were affected by the changes from yesterday (June 15th; see last post), you will also need a second patch to avoid an assert in XAUDIO2 at startup.

Link and description:

"Add WINAPI to other needed functions for stdcall calling convention on 32-bit"

http://git.redump.net/mame/commit/?id=9f214108eb78991227595a5b3e9080b90a16ac09
Code:
/src/osd/modules/sound/xaudio2_sound.cpp
/src/osd/modules/font/font_dwrite.cpp
/src/osd/modules/input/input_xinput.h
/src/osd/modules/render/d3d/d3dhlsl.h
/src/osd/modules/render/drawd3d.cpp

#106047 - 06/16/16 12:03 PM Re: Can't compile latest MESS? READ THIS THREAD [Re: Just Desserts]  
Joined: Mar 2001
Posts: 15,658
R. Belmont Online content
R. Belmont  Online Content

Very Senior Member

Joined: Mar 2001
Posts: 15,658
USA
Of course, if you're running 32-bit you're giving away 20% performance for no reason smile

#106460 - 07/09/16 03:41 PM Re: Can't compile latest MESS? READ THIS THREAD [Re: Just Desserts]  
Joined: Aug 2015
Posts: 312
Edstrom Offline
Senior Member
Edstrom  Offline
Senior Member

Joined: Aug 2015
Posts: 312
I get this compilation error under mingw on Win64 and I can't get rid of it even when I remove the build catalog and do make 'clean'. I just do
Code:
$ rm -rf build
$ make clean
$ make

And then I get:
Code:
Compiling src/osd/modules/render/d3d/d3dhlsl.cpp...                                                                                       
../../../../../src/osd/modules/render/d3d/d3dhlsl.cpp: In member function 'void movie_recorder::record()':                                
../../../../../src/osd/modules/render/d3d/d3dhlsl.cpp:96:24: error: no matching function for call to 'avi_write::record()'                
   m_avi_writer->record();                                                                                                                
                        ^                                                                                                                 
In file included from ../../../../../src/osd/modules/render/d3d/d3dhlsl.cpp:22:0:                                                         
../../../../../src/osd/modules/render/aviwrite.h:25:7: note: candidate: void avi_write::record(const char*)                               
  void record(const char *name);                                                                                                          
       ^                                                                                                                                  
../../../../../src/osd/modules/render/aviwrite.h:25:7: note:   candidate expects 1 argument, 0 provided                                   
osd_windows.make:1315: recipe for target '../../../../mingw-gcc/obj/x64/Release/osd_windows/src/osd/modules/render/d3d/d3dhlsl.o' failed  
make[2]: *** [../../../../mingw-gcc/obj/x64/Release/osd_windows/src/osd/modules/render/d3d/d3dhlsl.o] Error 1                             
makefile:19: recipe for target 'osd_windows' failed                                                                                       
make[1]: *** [osd_windows] Error 2                                                                                                        
makefile:947: recipe for target 'windows_x64' failed                                                                                      
make: *** [windows_x64] Error 2                                                                                                           

Page 34 of 37 1 2 32 33 34 35 36 37

Who's Online Now
7 registered members (MAMEBase, Pernod, Praxis, R. Belmont, AJR, 2 invisible), 20 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Shout Box
Forum Statistics
Forums9
Topics8,381
Posts108,482
Members4,750
Most Online225
May 26th, 2014
Powered by UBB.threads™ PHP Forum Software 7.6.0
Page Time: 0.038s Queries: 14 (0.013s) Memory: 5.0343 MB (Peak: 5.2846 MB) Zlib enabled. Server Time: 2017-07-22 00:43:55 UTC