20 November 2020, 09:44 | #1 |
Registered User
Join Date: Nov 2020
Location: Aarle-Rixtel
Posts: 9
|
Compile newest winuae
Hi,
Picking up a old time hobby... I'm trying to compile winuae from the latest source. I follow the guide, but apparently there are some files missing. I cannot download the following: http://www.winuae.net/files/b/aros.rom.cpp.zip http://www.winuae.net/files/b/winuaeinclibs.zip Where can I find these files on another location? Or can the links be fixed? Thanks in advance. Greetings, ErX |
20 November 2020, 09:56 | #2 |
Registered User
Join Date: Jan 2011
Location: -
Posts: 728
|
|
20 November 2020, 10:08 | #3 |
Registered User
Join Date: Nov 2020
Location: Aarle-Rixtel
Posts: 9
|
Thanks for the fast reply.
This worked great!!! With kind regards, ErX |
20 November 2020, 16:34 | #4 |
Registered User
Join Date: Nov 2020
Location: Aarle-Rixtel
Posts: 9
|
apparently I am missing:
d3dkmthk.h and some cpp-files ?!? cpuemu_90_test.cpp to cpuemu_95_test.cpp Does this make any sense? |
20 November 2020, 16:56 | #5 |
Registered User
Join Date: Jan 2011
Location: -
Posts: 728
|
I think "d3dkmthk.h" is part of the Windows WDK, so make sure you have that installed and in your include path.
The cpuemu files I'm not sure about. I haven't compiled WinUAE in years and I don't remember having that issue. Hopefully someone that's compiled it recently can chime in and help. |
20 November 2020, 17:19 | #6 |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,505
|
I have already reported missing redirects after https was added to RCK, hopefully they will be fixed someday..
cpuemu_90_test.cpp are part of cpu tester projects. You don't need it to compile WinUAE. (cputester_m68k and cputestgen). They are created by compiling gencpu if CPU_TESTER is set to 1. |
22 November 2020, 20:42 | #7 |
Registered User
Join Date: Nov 2020
Location: Aarle-Rixtel
Posts: 9
|
I excluded cputester_m68k and cputestgen from the solution. That helped.
The missing 'd3dkmthk.h' is still a problem. I installed WDK version: - 10.0.19041.0 - 10.0.18362.0 - 10.0.14393.0 - 10.0.10240.0 - 10.0.10150.0 But the file 'd3dkmthk.h' is not even there.... Which version does it require? Thanks in advance. Greetings, ErX. |
22 November 2020, 21:50 | #8 | |
Registered User
Join Date: Nov 2010
Location: Grenoble, Isère, Rhône-Alpes, France, Europe, Earth
Posts: 287
|
Quote:
Check the VC++ directories they must begin with exe directory $(MSBuildProgramFiles32)\Windows Kits\10\bin\10.0.17763.0\x86; ... includes directory $(MSBuildProgramFiles32)\Windows Kits\10\Include\10.0.17763.0\km; ... |
|
23 November 2020, 09:15 | #9 |
Registered User
Join Date: Nov 2020
Location: Aarle-Rixtel
Posts: 9
|
That helped a lot.
Only fixing the 'goto'-issues. Because it is not allowed (any more) to define variables after a goto. And some more . . . Maybe I should also switch to Visual Studio 2017 to compile the source instead of 2019... Last edited by ErX; 23 November 2020 at 09:27. |
23 November 2020, 09:55 | #10 | |
Registered User
Join Date: Nov 2010
Location: Grenoble, Isère, Rhône-Alpes, France, Europe, Earth
Posts: 287
|
Quote:
Check the "Windows SDK version" and the "platform toolset" in the Configuration properties/General of the .sln Check Also the C/C++ / Language / C++ Language must be "ISO C++ Latest Draft Standard (/std:c++latest)" Courage ! |
|
23 November 2020, 10:38 | #11 |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,505
|
You must use 2019 but not 16.8 because it broke some specific C++ template compilation. (FX11 compilation breaks). I had to revert to 16.7.
More strict C++ requirements that 16.8 implements with "c++ latest" are already fixed. |
23 November 2020, 10:57 | #12 |
Registered User
Join Date: Nov 2020
Location: Aarle-Rixtel
Posts: 9
|
Ah, I use Visual studio 2019 16.8.2..
Indeed, 2017 doesn't work. I thought the problem for the missing 'd3dkmthk.h' was gone, but it was overflown by other errors I installed the 'C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0' but there is no 'km'-directory. And, also no 'd3dkmthk.h' file. What am I missing? What to install to fix the missing header file? Thanks for the great help so far! |
23 November 2020, 15:48 | #13 |
Registered User
Join Date: Nov 2010
Location: Grenoble, Isère, Rhône-Alpes, France, Europe, Earth
Posts: 287
|
You don't have 17763 (because it's my stuff for VS2017) try with 10.0.18362.0 or other you have in your list. It must match in the .sln.
|
23 November 2020, 16:05 | #14 |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,505
|
It looks like d3dkmthk.h isn't anymore in 19041. 18362 does have it.
|
23 November 2020, 16:37 | #15 |
Registered User
Join Date: Nov 2020
Location: Aarle-Rixtel
Posts: 9
|
Mine 18362 doesn't have it as well.
I installed it with the 'Visual Studio Installer' by adding it. There isn't even a 'km' directory inside the 'include'-directory of 18632. I even removed it, and installed it again... Is there another way to install it? Thanks in advance. |
23 November 2020, 16:46 | #16 |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,505
|
You need to install it using download from here https://docs.microsoft.com/en-us/win...-wdk-downloads . Visual Studio only downloads Windows SDK which does not include kernel part.
EDIT: This header is only needed for beamracing vsync and it is only optional (not used if function does not exists). So should be able to easily disable this requirement. Last edited by Toni Wilen; 23 November 2020 at 17:17. |
25 November 2020, 05:57 | #17 |
Registered User
Join Date: Nov 2020
Location: Aarle-Rixtel
Posts: 9
|
OK, almost there...
Just missing some files: - blitfunc.cpp - blittable.cpp no matter if I start the genblitter project and run the executable. Remark: I noticed that I have to use ‘i’, ‘f’, ‘t’, and ‘h’ to generate the appropriate files. Question remains: why isn’t this done automatically? Furthermore, missing some identifiers in the FX11 part (CEffectVectorOwner) - m_CurSize - m_pData Even though those variables are declared in the parent-template-class (CEffectVector) Sorry for the endless teasing... Last edited by ErX; 25 November 2020 at 08:56. Reason: Learned a few things |
25 November 2020, 17:40 | #18 | ||
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,505
|
Quote:
Quote:
Or remove all FX11 files from project and set FX11=0 in direct3d11.cpp to disable it. |
||
26 November 2020, 08:59 | #19 |
Registered User
Join Date: Nov 2020
Location: Aarle-Rixtel
Posts: 9
|
Generating the blit*-files worked now. Project had to be set in the right configuration type to generate the files.
I have only Visual Studio Community 2019. I only found previous versions for Enterprise and Professional. Some fixes are suggested in: here. But the error messages are still popping up. Although, different It is working with all direct3d11 things switched off. But rather slow. At least I can debug the code to learn how it works. Last edited by ErX; 26 November 2020 at 10:39. |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
One crappy WHDLoad game misbehaves on newest Winuae (4.3.0) | Aardvark | support.WinUAE | 4 | 29 April 2020 14:40 |
Compile Winuae 1.0 or 1.1 | theelf_ | support.WinUAE | 0 | 16 March 2020 05:52 |
How compile WinUAE... | WCoder | support.WinUAE | 57 | 17 April 2014 17:42 |
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 |
|
|