Previous Thread
Next Thread
Print Thread
Page 34 of 42 1 2 32 33 34 35 36 41 42
Joined: May 2008
Posts: 4,899
Q
Very Senior Member
Offline
Very Senior Member
Q
Joined: May 2008
Posts: 4,899
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!
Joined: Jan 2012
Posts: 1,150
Likes: 3
Very Senior Member
Offline
Very Senior Member
Joined: Jan 2012
Posts: 1,150
Likes: 3
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
Joined: May 2012
Posts: 423
R
Senior Member
Offline
Senior Member
R
Joined: May 2012
Posts: 423
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.
Joined: May 2007
Posts: 566
Likes: 2
M
Senior Member
Offline
Senior Member
M
Joined: May 2007
Posts: 566
Likes: 2
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.

Joined: Aug 2011
Posts: 499
M
Senior Member
Offline
Senior Member
M
Joined: Aug 2011
Posts: 499
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

Joined: Feb 2004
Posts: 2,258
Likes: 9
Very Senior Member
Online Content
Very Senior Member
Joined: Feb 2004
Posts: 2,258
Likes: 9
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).

Joined: Apr 2012
Posts: 190
B
Senior Member
Offline
Senior Member
B
Joined: Apr 2012
Posts: 190
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.
Joined: Apr 2012
Posts: 190
B
Senior Member
Offline
Senior Member
B
Joined: Apr 2012
Posts: 190
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

Joined: Mar 2001
Posts: 16,784
Likes: 32
R
Very Senior Member
Offline
Very Senior Member
R
Joined: Mar 2001
Posts: 16,784
Likes: 32
Of course, if you're running 32-bit you're giving away 20% performance for no reason smile

Joined: Aug 2015
Posts: 390
Senior Member
Offline
Senior Member
Joined: Aug 2015
Posts: 390
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 42 1 2 32 33 34 35 36 41 42

Link Copied to Clipboard
Who's Online Now
1 members (Pernod), 36 guests, and 2 robots.
Key: Admin, Global Mod, Mod
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Forum Statistics
Forums9
Topics8,957
Posts117,736
Members4,994
Most Online890
Jan 17th, 2020
Forum Host
These forums are hosted by www.retrogamesformac.com
Forum hosted by www.retrogamesformac.com