VOGONS

Common searches


DOSBox Compilation Guides

Topic actions

Reply 40 of 44, by DosFreak

User metadata
Rank l33t++
Rank
l33t++

Alright. Didn't have time to test clang or verify dependencies but I did get mingw working with MSYS2 so that removed all the work of having to update wget,autoconf,automake,pkg-config,gawk,libtool,mercurial,svn,and git and it appears to work fine under MSYS2. I even compiled a DOSBox executable that works on <Pentium Pro.
Check the above post for the update guide.

Need to see about using the original mingw with Ubuntu 19.10 or Ubuntu w/WSL. Should be able to unpack the .deb files from 18.04 but not sure what to do then but I'm sure I'll figure it out.

Bugs with the original Mingw are with FLAC which requires a downgrade to 1.3.2 and SDL_NET. Previously I modified SDL_NET to remove GetLocalAddresses (which introduced the requirement of Active desktop so 1.2.8+ only for 95 and NT4) which isn't used by DOSBox so that will probably work again as well. Depending on what changed though may make more sense to use an older version without that functionality.

So
SDL_NET 1.2.8+ for 95-NT4+ w/Active Desktop
SDL_NET 1.2.7 for 95-NT3.50+ without Active Desktop

DOSBox Compilation Guides
DosBox Feature Request Thread
PC Game Compatibility List
How To Ask Questions The Smart Way
Running DRM games offline

Reply 41 of 44, by DosFreak

User metadata
Rank l33t++
Rank
l33t++

Worked on dependencies. Zlib is ridiculous and documented issues with clang.
Looks like the current version of Clang requires Vista+. Need to track down the last XP version. Also need to see if the one I downloaded last year still works for XP.
Need to test clang on Linux.
Need to review old guides and integrate into new one.

DOSBox Compilation Guides
DosBox Feature Request Thread
PC Game Compatibility List
How To Ask Questions The Smart Way
Running DRM games offline

Reply 42 of 44, by DosFreak

User metadata
Rank l33t++
Rank
l33t++

Did some testing with clang on Linux and figured out what I needed to do to cross compile with it for Windows but unwind_resume error when compiling DOSBox. Possibly different exception handling between Mingw-w64 and clang. Need to find a clang specifically compiled for Mingw-W64.

Had issues when compiling under my user account that went away under root so recommend using that.
As such I can't use absolute variables and need to use relative so need to switch to that in the guide.
It looks like Zlib in Linux allows you to use ./configure whereas on Windows it doesn't..... It also has CC and CFLAGS hardcoded so have to set those variables. Need to verify if configure can be used in Windows.

DOSBox Compilation Guides
DosBox Feature Request Thread
PC Game Compatibility List
How To Ask Questions The Smart Way
Running DRM games offline

Reply 43 of 44, by DosFreak

User metadata
Rank l33t++
Rank
l33t++

Updated guide.

Verified dependencies with MSYS2 w/ original Mingw
Compiled DOSBox SVN for <Pentium Pro for Windows 95/NT4 w/Active Desktop
Still integrating older guides into new one.
Haven't integrated previouis diffs yet so in Window mode use overlay or opengl, Active Desktop still required, Winsock 2 required, Doesn't work on NT3.50 or NT3.51.
For 64bit test march x86-x64 again and replace native.

P.S. Set output to any but surface and window resolution to a percentage for a present from Qbix. 😀 Let the complaining begin! (Works fine on Windows 95 too!)

Attachments

DOSBox Compilation Guides
DosBox Feature Request Thread
PC Game Compatibility List
How To Ask Questions The Smart Way
Running DRM games offline

Reply 44 of 44, by DosFreak

User metadata
Rank l33t++
Rank
l33t++

Updated guide in last post.
Worked on dependencies some more
Switched from native to x86-64
Verified static with clang working.
Dosbox compiled with clang with MSYS results in the console loading but the main dosbox screen not whereas Clang compiled on Linux works. Need to check.
Fixed zlib makefile by adding a variable. Currently two makefiles 1 for 32bit and 1 for 64bit for windows. Now can easily use gcc or clang for zlib.
Standardized make with nproc variable.
Renamed misnamed variables.

DOSBox Compilation Guides
DosBox Feature Request Thread
PC Game Compatibility List
How To Ask Questions The Smart Way
Running DRM games offline