A complete Visual Studio 2015/2017 build environment (dosbox & dosbox-lfn)

Developer's Forum, for discussion of bugs, code, and other developmental aspects of DOSBox.

A complete Visual Studio 2015/2017 build environment (dosbox & dosbox-lfn)

Postby emendelson » 2017-12-17 @ 17:20

Many years ago, TeaRex (who seems to have left the forum since then) very generously gave me his complete Visual Studio build environment for DOSBox, and that got me started on my own project. (I could have used MinGW, but I didn't know that then.)

So, in the hope of helping other beginners, I've put together a complete build environment for current DOSBox SVN for Visual Studio 2015 (or Visual Studio 2017), here:

https://www.dropbox.com/s/wfyeop3pkja51 ... 15.7z?dl=1

All the paths in the configuration file are relative, so this should work on any system with Visual Studio 2015 or 2017 installed. Just expand the 7z archive and double-click on the CMD file in the top-level directory to open the project in Visual Studio. When you build, you may see irrelevant error messages, and you can run the executable from the visualc_net folder named DOSBox Binaries. If you right-click on the project in VS and choose Open Folder in File Explorer, that folder will be visible.

I've disabled modem, network, and screenshots in config.h, but you can easily re-enable them. I did not include debug code, because this is not designed for experts but for beginners like me (I've been a beginner for the past ten years, unfortunately).

This may also be useful for anyone who wants to move from VS2010 to VS2015 or later for working on DOSBox.

I figured out how to do all this by following this video and making a few very minor changes to the procedure it describes:

https://www.youtube.com/watch?v=REOV8_eXPpc

I changed things by using relative paths in the configuration, suppressing some warnings, changing some output options, and removing as many unneeded files as I could.

I hope someone finds this useful for getting started.

EDIT: I've now added source and a binary for Wengier Wu's dosbox-lfn branch, with the sources updated to conform to current SVN. For details see the third post below.

EDIT: Someone in another thread thought this requires Visual Studio 2015, so I've put "or VS 2017" in bold.
Last edited by emendelson on 2018-1-31 @ 13:10, edited 4 times in total.
emendelson
Oldbie
 
Posts: 744
Joined: 2010-2-14 @ 02:00

Re: A complete Visual Studio 2015/17 build environment

Postby cyclone3d » 2017-12-18 @ 03:30

Thanks! I'll be using this in the not too distant future.. hopefully.
User avatar
cyclone3d
Oldbie
 
Posts: 1998
Joined: 2015-4-08 @ 06:06
Location: Huntsville, AL USA

Re: A complete Visual Studio 2015/17 build environment (dosbox & dosbox-lfn)

Postby emendelson » 2017-12-18 @ 16:17

I've now updated this by adding a separate folder named "dosbox-lfn" that contains current SVN with Wengier Wu's dosbox-lfn mods carefully (I hope) integrated into the standard SVN code. For the most part, I was able to use Wengier's modified sources without change, but Wengier's sources are updated only through 26 September 2017, so I modified the code to incorporate SVN changes made since then. It seems to work correctly, but I can't be certain.

Same download link as in the first post. And if anyone wants to try out the Win32 binaries for dosbox and dosbox-lfn, here they are:

https://www.dropbox.com/s/nj7sgzkcefy4r ... es.7z?dl=1
emendelson
Oldbie
 
Posts: 744
Joined: 2010-2-14 @ 02:00


Return to DOSBox Development

Who is online

Users browsing this forum: No registered users and 3 guests