Previous Thread
Next Thread
Print Thread
Page 34 of 40 1 2 32 33 34 35 36 39 40
Re: Can't compile latest MESS? READ THIS THREAD [Re: Just Desserts] #104892 04/03/16 10:10 AM
Joined: May 2008
Posts: 4,892
Q
qmc2 Offline
Very Senior Member
Offline
Very Senior Member
Q
Joined: May 2008
Posts: 4,892
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!
Re: Can't compile latest MESS? READ THIS THREAD [Re: Just Desserts] #104893 04/03/16 10:23 AM
Joined: Jan 2012
Posts: 1,028
rfka01 Offline
Very Senior Member
Offline
Very Senior Member
Joined: Jan 2012
Posts: 1,028
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
Re: Can't compile latest MESS? READ THIS THREAD [Re: Just Desserts] #104919 04/04/16 02:15 PM
Joined: May 2012
Posts: 422
R
remax Offline
Senior Member
Offline
Senior Member
R
Joined: May 2012
Posts: 422
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.
Re: Can't compile latest MESS? READ THIS THREAD [Re: Just Desserts] #105107 04/12/16 10:38 AM
Joined: May 2007
Posts: 548
M
mizapf Offline
Senior Member
Offline
Senior Member
M
Joined: May 2007
Posts: 548
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.

Re: Can't compile latest MESS? READ THIS THREAD [Re: Just Desserts] #105138 04/15/16 11:55 AM
Joined: Aug 2011
Posts: 499
M
MikeAbson Offline
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

Re: Can't compile latest MESS? READ THIS THREAD [Re: Just Desserts] #105139 04/15/16 12:03 PM
Joined: Feb 2004
Posts: 2,093
Vas Crabb Online Content
Very Senior Member
Online Content
Very Senior Member
Joined: Feb 2004
Posts: 2,093
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).

Re: Can't compile latest MESS? READ THIS THREAD [Re: Just Desserts] #106044 06/15/16 02:07 PM
Joined: Apr 2012
Posts: 188
B
Bavarese Offline
Senior Member
Offline
Senior Member
B
Joined: Apr 2012
Posts: 188
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.
Re: Can't compile latest MESS? READ THIS THREAD [Re: Just Desserts] #106046 06/16/16 08:01 AM
Joined: Apr 2012
Posts: 188
B
Bavarese Offline
Senior Member
Offline
Senior Member
B
Joined: Apr 2012
Posts: 188
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

Re: Can't compile latest MESS? READ THIS THREAD [Re: Just Desserts] #106047 06/16/16 12:03 PM
Joined: Mar 2001
Posts: 16,389
R
R. Belmont Offline
Very Senior Member
Offline
Very Senior Member
R
Joined: Mar 2001
Posts: 16,389
Of course, if you're running 32-bit you're giving away 20% performance for no reason smile

Re: Can't compile latest MESS? READ THIS THREAD [Re: Just Desserts] #106460 07/09/16 03:41 PM
Joined: Aug 2015
Posts: 381
Edstrom Offline
Senior Member
Offline
Senior Member
Joined: Aug 2015
Posts: 381
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 40 1 2 32 33 34 35 36 39 40

Who's Online Now
2 registered members (starlord, drewcifer), 171 guests, and 2 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,721
Posts114,624
Members4,873
Most Online510
Aug 26th, 2019
Powered by UBB.threads™ PHP Forum Software 7.7.3