Page 34 of 35 < 1 2 32 33 34 35 >
Topic Options
#104892 - 04/03/16 11:10 AM Re: Can't compile latest MESS? READ THIS THREAD [Re: Just Desserts]
qmc2 Offline

Very Senior Member

Registered: 05/29/08
Posts: 4723
Loc: 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!

Top
#104893 - 04/03/16 11:23 AM Re: Can't compile latest MESS? READ THIS THREAD [Re: Just Desserts]
rfka01 Offline
Senior Member

Registered: 01/01/12
Posts: 593
Loc: Bavaria
That did the trick, thanks!

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


Edited by rfka01 (04/03/16 01:23 PM)
_________________________
NCR DMV- DEC Rainbow- Siemens PCD- ITT 3030-Oly People- Acorn A5000- Olivetti M20

Top
#104919 - 04/04/16 03:15 PM Re: Can't compile latest MESS? READ THIS THREAD [Re: Just Desserts]
remax Offline
Senior Member

Registered: 05/04/12
Posts: 407
Loc: 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...


Edited by remax (04/04/16 03:16 PM)

Top
#105107 - 04/12/16 11:38 AM Re: Can't compile latest MESS? READ THIS THREAD [Re: Just Desserts]
mizapf Offline
Senior Member

Registered: 05/10/07
Posts: 500
Loc: 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.

Top
#105138 - 04/15/16 12:55 PM Re: Can't compile latest MESS? READ THIS THREAD [Re: Just Desserts]
MikeAbson Offline
Senior Member

Registered: 08/15/11
Posts: 499
Loc: 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

Top
#105139 - 04/15/16 01:03 PM Re: Can't compile latest MESS? READ THIS THREAD [Re: Just Desserts]
Vas Crabb Offline
Very Senior Member

Registered: 02/08/04
Posts: 1714
Loc: 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).

Top
#106044 - 06/15/16 03:07 PM Re: Can't compile latest MESS? READ THIS THREAD [Re: Just Desserts]
Bavarese Offline
Senior Member

Registered: 04/29/12
Posts: 140
Loc: 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);


Edited by Bavarese (06/15/16 04:09 PM)

Top
#106046 - 06/16/16 09:01 AM Re: Can't compile latest MESS? READ THIS THREAD [Re: Just Desserts]
Bavarese Offline
Senior Member

Registered: 04/29/12
Posts: 140
Loc: 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

Top
#106047 - 06/16/16 01:03 PM Re: Can't compile latest MESS? READ THIS THREAD [Re: Just Desserts]
R. Belmont Offline

Very Senior Member

Registered: 03/17/01
Posts: 15435
Loc: USA
Of course, if you're running 32-bit you're giving away 20% performance for no reason smile

Top
#106460 - 07/09/16 04:41 PM Re: Can't compile latest MESS? READ THIS THREAD [Re: Just Desserts]
Edstrom Offline
Senior Member

Registered: 08/11/15
Posts: 294
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                                                                                                           
_________________________
https://frakaday.blogspot.se/

Top
Page 34 of 35 < 1 2 32 33 34 35 >

Who's Online
1 registered (seanriddle), 12 Guests and 4 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Forum Stats
4,719 Registered Members
9 Forums
8,258 Topics
106,640 Posts

Most users ever online: 225 @ 05/26/14 05:34 PM