29 December 2012, 10:29 | #21 |
Registered User
Join Date: Jul 2012
Location: France
Posts: 12
|
Thanks for answer, I will try to re-enable docorrection...
WCoder |
29 December 2012, 11:11 | #22 |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,523
|
|
06 January 2013, 14:39 | #23 |
Registered User
Join Date: Jul 2012
Location: France
Posts: 12
|
OK, i fix the sound...
I have 2 mores questions : 1 - I there's a way to detect if system request for a new disk ? -- My goal is to add a mechanism to auto change disk -- 2 - There's a strange things in the code call trap (with a thread) 2a - Is this functionality is necessary for a A500+AGA refactor for game only ? 2b - If yes, is it possible to have explanation of this mechanism ? Thanks, WCoder |
06 January 2013, 16:10 | #24 |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,523
|
1) No if program does not use amigados.
2) It is only needed if m68 code needs to call UAE native C code. (Used by UAE side drivers like picasso96, uaehf.device etc..). It is not needed for unexpanded Amiga emulation. |
06 January 2013, 16:19 | #25 |
Registered User
Join Date: Jul 2012
Location: France
Posts: 12
|
Thanks
Thanks for answer , happy new year...
|
27 October 2013, 20:52 | #26 |
Registered User
Join Date: Aug 2004
Location:
Posts: 3,343
|
I've been trying to get WinUAE to build with Visual Studio 2013.
The build process is giving some errors (and a huge number of warnings ): Code:
uaeunp.cpp ..\..\uaeunp.cpp(243): error C2664: 'int zfile_stat_archive(const TCHAR *,mystat *)' : cannot convert argument 2 from '_stat64 *' to 'mystat *' Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast ..\..\uaeunp.cpp(364): error C2664: 'int utime(const char *,utimbuf *)' : cannot convert argument 1 from 'const TCHAR *' to 'const char *' Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast ..\..\uaeunp.cpp(402): error C2664: 'int zfile_stat_archive(const TCHAR *,mystat *)' : cannot convert argument 2 from '_stat64 *' to 'mystat *' Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast ..\..\uaeunp.cpp(431): warning C4244: '=' : conversion from '__int64' to 'int', possible loss of data ..\..\uaeunp.cpp(515): error C2664: 'int zfile_stat_archive(const TCHAR *,mystat *)' : cannot convert argument 2 from '_stat64 *' to 'mystat *' Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast ..\..\uaeunp.cpp(527): warning C4244: '=' : conversion from '__int64' to 'int', possible loss of data ------ Build started: Project: winuae, Configuration: Release Win32 ------ astring.cpp crcio.cpp aros.rom.cpp c1xx : fatal error C1083: Cannot open source file: '..\..\aros.rom.cpp': No such file or directory Also, luascript.h includes lauxlib.h, but lauxlib.h isn't in the winuaeinclibs archive. Last edited by mark_k; 27 October 2013 at 21:29. |
28 October 2013, 16:03 | #27 |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,523
|
uaeunp compilation fixed.
aros rom is not available anywhere (except by downloading binary from aros.org and converting it), didn't want to add 3M file that is useless huge C array.. lauxlib.h added. |
28 October 2013, 16:52 | #28 |
Zone Friend
Join Date: Nov 2005
Location: Italy
Posts: 139
|
aros.rom.cpp added in the zone
|
28 October 2013, 19:37 | #29 |
Registered User
Join Date: Aug 2004
Location:
Posts: 3,343
|
Thanks for that! I wonder if the Visual Studio project could be modified so that aros.rom.cpp gets automatically generated from a binary ROM image? That would make updating the embedded AROS ROM much simpler.
Thanks for that. I'm slowly getting there. There might be another file missing from winuaeinclibs; now the build reports: Code:
luascript.cpp ..\..\luascript.cpp(12): fatal error C1083: Cannot open include file: 'lualib.h': No such file or directory |
28 October 2013, 20:26 | #30 |
Zone Friend
Join Date: Nov 2005
Location: Italy
Posts: 139
|
|
28 October 2013, 21:26 | #31 |
Registered User
Join Date: Aug 2004
Location:
Posts: 3,343
|
Thanks, now it almost builds! I'm getting an error at the linking stage: LINK : fatal error LNK1181: cannot open input file '..\hq2x16.obj'. That was already mentioned above so I'll install Nasm and see if I can fix that.
I've attached the current build log in case it might be of any use (maybe VS 2013 gives more warnings than VS 2012?). Here are a few lines extracted from it: Code:
NoisePacker1.c ..\..\prowizard\rippers\NoisePacker1.c(33): warning C4018: '>' : signed/unsigned mismatch cpuemu_22.cpp ..\..\cpuemu_22.cpp(38822): warning C4146: unary minus operator applied to unsigned type, result still unsigned gfxboard.cpp ..\..\gfxboard.cpp(722): warning C4244: '=' : conversion from 'uint64_t' to 'uae_u32', possible loss of data ..\..\gfxboard.cpp(727): warning C4244: '=' : conversion from 'uint64_t' to 'uae_u32', possible loss of data ..\..\gfxboard.cpp(732): warning C4244: '=' : conversion from 'uint64_t' to 'uae_u32', possible loss of data cirrus_vga.cpp ..\..\qemuvga\cirrus_vga.cpp(1153): warning C4018: '<=' : signed/unsigned mismatch ..\..\qemuvga\cirrus_vga.cpp(2082): warning C4244: 'argument' : conversion from 'uint64_t' to 'uint32_t', possible loss of data ..\..\qemuvga\cirrus_vga.cpp(2107): warning C4244: '=' : conversion from 'uint64_t' to 'uint8_t', possible loss of data ..\..\qemuvga\cirrus_vga.cpp(2114): warning C4244: 'argument' : conversion from 'uint64_t' to 'uint32_t', possible loss of data |
28 October 2013, 22:09 | #32 |
Zone Friend
Join Date: Nov 2005
Location: Italy
Posts: 139
|
copy nasm in winuae\od-win32 directory and run asm.cmd
It creates all object files that you need. |
29 October 2013, 08:50 | #33 | |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,523
|
Quote:
I am not going to do any non-fix changes to qemu code to prevent annoying maintenance issues when/if merges needs to be done. Last edited by Toni Wilen; 29 October 2013 at 10:39. |
|
29 October 2013, 15:11 | #34 |
Registered User
Join Date: Aug 2004
Location:
Posts: 3,343
|
I managed to build WinUAE using Visual Studio 2013. I set it to optimise for speed and use link-time code generation, but didn't use profile-guided optimisation. (Done properly, PGO should improve speed.)
The executable should be compatible with Windows XP (tested in a Windows POSReady 2009 VM). It's WinUAE 2.7 beta 10 plus uaeunp compile fix from Toni's git repository. I have only tested it minimally; it runs and I could load a demo from floppy disk. And also a NetBSD HDF seemed to boot okay. I haven't done any benchmarking to assess whether it's any faster than the official WinUAE 2.7b10 executable (which was built with an earlier version of Visual Studio). If anyone feels like doing that I'd be interested in the results. I have uploaded an archive containing the WinUAE executable, source and winuaeinclibs files to The Zone. Edit: Also uploaded to and Multiupload. Copy winuae.exe into your WinUAE directory and test it. If you reproduce my build setup (see below), you should be able to unpack the archive, add a shared folder in VirtualBox then run Visual Studio and successfully build it straight away. Obviously, if you find any problem that isn't present in the official version, don't bother reporting it to Toni. But maybe this might be some help if Toni wants to migrate to Visual Studio 2013 at some point. I'll write a little about my build setup now. You don't need a machine running a recent version of Windows in order to use Visual Studio 2013. You can get a Windows 7 + IE 10 virtual machine from Microsoft's modern.ie site. They provide archives for Linux, Mac and Windows hosts. (The VMs are time-limited, but you might be able to do slmgr /rearm a couple of times to extend the period before you need to activate it. When you do activate you get another 90 days use.) I'm using VirtualBox on Linux. I set up a shared folder on the host, accessed as \\VBOXSVR\WinUAE_dev in the Windows VM. I used git on the host to clone the git repository. I loaded od-win32\winuae_msvc11\winuae_msvc.sln into Visual Studio 2013 and changed settings to build on my setup. (A better approach might have been to copy the winuae_msvc11 directory to winuae_msvc12 and make changes there. And to use environment variables instead of hard-coding directory paths. But I'm a Visual Studio noob, sorry.) After downloading the Windows VM and importing it into VirtualBox you'll probably want to install VirtualBox Guest Additions and maybe run Windows Update. Then install: Visual Studio Ultimate 2013 (expand Install Instructions for link to DVD ISO image) Windows SDK for Windows 8.1 (run sdksetup.exe to download all SDK files) DirectX June 2010 SDK DirectX End-User Runtimes (June 2010) (might not be needed to compile, but may be necessary to run WinUAE in VM) Last edited by mark_k; 29 October 2013 at 16:37. |
29 October 2013, 15:38 | #35 |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,523
|
Final versions are compiled with 2010 because at least 2012 does not fully work with XP (in some setups it crashes at startup, before WinUAE code even runs!) and 2010 creates faster code than 2012 using same optimization settings. (for some reason 2012 [and 2013] are over 10x faster when compiling with max optimization. 2010 compiles really slowly.)
-> 2010 will be used at least until XP becomes unsupported. |
29 October 2013, 15:58 | #36 | |
Amiga 500 User
Join Date: Jun 2013
Location: EU
Posts: 1,507
|
That is a bad news for those still using WinXP. ... as after will not be able to help you find some potential new issues!
Quote:
I have WinXP on laptop but unfortunately not using TheZone ... could you save it on sendspace with zip password maybe ?! I would like to check does it also works on my system. |
|
29 October 2013, 16:18 | #37 |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,523
|
|
29 October 2013, 16:23 | #38 | |
Amiga 500 User
Join Date: Jun 2013
Location: EU
Posts: 1,507
|
Quote:
EDIT: I have windows update set to automatic, so maybe those configs that crash has not been updated recently/regularly or are not SP3?! Last edited by amilo3438; 29 October 2013 at 16:28. |
|
29 October 2013, 16:25 | #39 | ||
Registered User
Join Date: Aug 2004
Location:
Posts: 3,343
|
Quote:
Quote:
|
||
29 October 2013, 16:31 | #40 | |
Amiga 500 User
Join Date: Jun 2013
Location: EU
Posts: 1,507
|
Quote:
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Trying to get AHI V6 to compile with GCC V2.95 | NovaCoder | Coders. General | 2 | 04 March 2011 14:06 |
Is it possible to compile Chromium for AmigaOS4? | Zener | request.Apps | 1 | 20 November 2009 10:38 |
GFA compile | xc8 | Coders. General | 31 | 19 May 2009 18:21 |
Compile WinUAE 1.46 with completely free tools | __adil__ | support.WinUAE | 0 | 08 February 2008 18:24 |
Compile WinUAE ????? | Myriel | support.WinUAE | 14 | 10 January 2004 17:06 |
|
|