Compiling ScummVM and the Scumm Engine only

Ask for help with ScummVM problems

Moderator: ScummVM Team

Post Reply
User avatar
Windows TV
Posts: 46
Joined: Mon Dec 26, 2011 7:07 pm
Contact:

Compiling ScummVM and the Scumm Engine only

Post by Windows TV » Mon Aug 05, 2019 3:09 am

So my question is simple, how do I compile ScummVM with the Scumm Engine only? I'm compiling it with Visual Studios but it always hangs because it's trying to compile every engine. I just need to build ScummVM with the Scumm engine only. Can anyone help...? :|

User avatar
dreammaster
ScummVM Developer
Posts: 398
Joined: Fri Nov 04, 2005 2:16 am
Location: San Jose, California, USA

Re: Compiling ScummVM and the Scumm Engine only

Post by dreammaster » Mon Aug 05, 2019 3:48 am

Sure. What I do is to make a copy of the create_msvc.bat in the dists/msvc folder.. say call it 'scumm.bat'. Then open the file for editing, and search for the section that starts with ":stable". A couple of lines below it, replace the create_project line with something like the following:
create_project ..\.. --disable-fluidsynth --msvc --disable-all-engines --enable-engine=scumm,scumm_7_8,he

Then run the batch file

User avatar
Windows TV
Posts: 46
Joined: Mon Dec 26, 2011 7:07 pm
Contact:

Re: Compiling ScummVM and the Scumm Engine only

Post by Windows TV » Mon Aug 05, 2019 9:35 pm

Thank you for helping me with that but now I have a new question, how long does the first compile normally take? I should mention I am trying to build ScummVM on an average Windows machine.

User avatar
dreammaster
ScummVM Developer
Posts: 398
Joined: Fri Nov 04, 2005 2:16 am
Location: San Jose, California, USA

Re: Compiling ScummVM and the Scumm Engine only

Post by dreammaster » Tue Aug 06, 2019 1:53 am

It's highly variable. For me, on a few years old laptop running VS2019, I can do a build of a single engine and the core/backend code in about a minute.

User avatar
Windows TV
Posts: 46
Joined: Mon Dec 26, 2011 7:07 pm
Contact:

Re: Compiling ScummVM and the Scumm Engine only

Post by Windows TV » Fri Aug 16, 2019 2:04 am

Wow, my computer is lame then :lol: xD the compile of scumm and scummvm is about 4-5 minutes for me. Thank you for the help in answering the questions!

User avatar
icanntspell
Posts: 95
Joined: Mon May 18, 2009 12:14 pm
Location: The Netherlands
Contact:

Re: Compiling ScummVM and the Scumm Engine only

Post by icanntspell » Fri Aug 16, 2019 7:49 am

How did you manage to get past this problem? I got this since I started using VS2019

Error C2338 Windows headers require the default packing option. Changing this can lead to memory corruption. This diagnostic can be disabled by building with WINDOWS_IGNORE_PACKING_MISMATCH defined. (compiling source file ..\..\backends\graphics\opengl\pipelines\pipeline.cpp) scummvm C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um\winnt.h 2482

User avatar
dreammaster
ScummVM Developer
Posts: 398
Joined: Fri Nov 04, 2005 2:16 am
Location: San Jose, California, USA

Re: Compiling ScummVM and the Scumm Engine only

Post by dreammaster » Fri Aug 16, 2019 2:25 pm

I'm unfamiliar with the OpenGL code, so I can't really offer any suggestion. Beyond that it works for me on my installation, so it could just be some corruption and/or invalid setup on the computer you're currently using. If possible, you might want to try installing Visual Studio 2019 on another computer and see if it works. Otherwise, you might want to try checking in the IRC/Discord channel if you don't get any further reply here.

User avatar
icanntspell
Posts: 95
Joined: Mon May 18, 2009 12:14 pm
Location: The Netherlands
Contact:

Re: Compiling ScummVM and the Scumm Engine only

Post by icanntspell » Sat Aug 17, 2019 9:01 am

I managed to fix this by retargeting the scummvm project against Windows SDK 8.1 (instead of the latest 10.x). Perhaps this info saves other people some time.

Praetorian
ScummVM Developer
Posts: 113
Joined: Tue May 08, 2007 8:54 am

Re: Compiling ScummVM and the Scumm Engine only

Post by Praetorian » Sat Aug 17, 2019 9:46 am

Keep in mind that some of the latest commits require to run "create_project" again for Visual Studio local builds.

mataniko
ScummVM Developer
Posts: 7
Joined: Mon Dec 25, 2017 8:03 pm

Re: Compiling ScummVM and the Scumm Engine only

Post by mataniko » Tue Oct 15, 2019 1:50 am

You can resolve this for the latest Windows SDK by updating the SDL2 libs manually.

Post Reply