VS2017 w/ 98, NT4 and 2000
https://stackoverflow.com/questions/19516796/ … 548116#53548116
Investigate <XP on VS2017.
Investigate VS2019 with v141 toolset for XP. v142 Vista+
Possible SDL2 Backports
Although in both cases possibly using a maximized window would be the easiest "fix".
Dual-Monitor
Re: DOSBox in fullscreen disables second monitor
Dropped keys
Dosbox dropping pressed keys?
Compilation
Post 791252
VS2017 less than XP
https://stackoverflow.com/questions/19516796/ … s-2000/53548116
VS2003 Windows 7+
http://bytepointer.com/articles/vs7.1_2003_on … fficial_fix.htm
VS
mkdir c:\dosbox\vcpkg
cd c:\dosbox\vcpkg
git clone https://github.com/Microsoft/vcpkg
bootstrap-vcpkg
vcpkg integrate install
vcpkg install "library"
MT-32
https://www.gog.com/forum/general/dosbox_midi … e_explain/post6
C++98 for GCC
C++03 for VS
C++11 would probably bump the minimum VS requirement from VS 2003 to VS2012 or VS2013 and mabye GCC 4.8.1.
No loss of Windows OS compatibility when compiled with mingw w/ GCC but VS would be XP minimum due to the CRT breaking compatibility. Although I'm looking into that viewtopic.php?f=31&t=55706&p=792269&hilit=compilation#p792237
C++ 11 DOSBOX
Post 804131
https://github.com/tpoechtrager/osxcross
-----------------------------------------------
Keyboard repeat
https://hg.libsdl.org/SDL/rev/b48d8a98e261
Clang
https://github.com/mstorsjo/llvm-mingw
DOSBOX Compilation
DOSBOX COMPILATION
MSYS2 variable mingw64 libpng
REPEATED KEY
https://hg.libsdl.org/SDL/rev/c244bc85fb84
305 /* Check to see if this is a repeated key.
306 (idea shamelessly lifted from GII -- thanks guys! 😀
307 */
308 static int X11_KeyRepeat(Display *display, XEvent *event)
309 {
310 XEvent peekevent;
311 int repeated;
312
313 repeated = 0;
314 if ( XPending(display) ) {
315 XPeekEvent(display, &peekevent);
316 if ( (peekevent.type == KeyPress) &&
317 (peekevent.xkey.keycode == event->xkey.keycode) &&
318 ((peekevent.xkey.time-event->xkey.time) < 2) ) {
319 repeated = 1;
320 XNextEvent(display, &peekevent);
321 }
322 }
323 return(repeated);
324 }
149 static Bool X11_KeyRepeatCheckIfEvent(Display *display, XEvent *chkev,
150 XPointer arg)
151 {
152 struct KeyRepeatCheckData *d = (struct KeyRepeatCheckData *) arg;
153 if (chkev->type == KeyPress &&
154 chkev->xkey.keycode == d->event->xkey.keycode &&
155 chkev->xkey.time - d->event->xkey.time < 2)
156 d->found = SDL_TRUE;
157 return False;
158 }
160 /* Check to see if this is a repeated key.
161 (idea shamelessly lifted from GII -- thanks guys! 😀
162 */
163 static SDL_bool X11_KeyRepeat(Display *display, XEvent *event)
164 {
165 XEvent dummyev;
166 struct KeyRepeatCheckData d;
167 d.event = event;
168 d.found = SDL_FALSE;
169 if (X11_XPending(display))
170 X11_XCheckIfEvent(display, &dummyev, X11_KeyRepeatCheckIfEvent,
171 (XPointer) &d);
172 return d.found;
173 }
SDL_x11events.c
149 static Bool X11_KeyRepeatCheckIfEvent(Display *display, XEvent *chkev,
150 XPointer arg)
151 {
152 struct KeyRepeatCheckData *d = (struct KeyRepeatCheckData *) arg;
153 if (chkev->type == KeyPress &&
154 chkev->xkey.keycode == d->event->xkey.keycode &&
155 chkev->xkey.time - d->event->xkey.time < 2)
156 d->found = SDL_TRUE;
157 return False;
158 }
159
160 /* Check to see if this is a repeated key.
161 (idea shamelessly lifted from GII -- thanks guys! 😀
162 */
163 static SDL_bool X11_KeyRepeat(Display *display, XEvent *event)
164 {
165 XEvent dummyev;
166 struct KeyRepeatCheckData d;
167 d.event = event;
168 d.found = SDL_FALSE;
169 if (X11_XPending(display))
170 X11_XCheckIfEvent(display, &dummyev, X11_KeyRepeatCheckIfEvent,
171 (XPointer) &d);
172 return d.found;
173 }
------------------------------------
mingw32 only available earlier than Ubuntu 15.04. Try Ubuntu 14.04
Available in universe
sudo apt-get install mingw32
sudo apt-cache search mingw32
mingw32 - Minimalist GNU win32 (cross) compiler
mingw32-binutils - Minimalist GNU win32 (cross) binutils
mingw32-runtime - Minimalist GNU win32 (cross) runtime
32bit
wget http://archive.ubuntu.com/ubuntu/pool/univers … buntu1_i386.deb
wget http://archive.ubuntu.com/ubuntu/pool/univers … buntu1_i386.deb
wget http://archive.ubuntu.com/ubuntu/pool/univers … ubuntu1_all.deb
64bit
wget http://archive.ubuntu.com/ubuntu/pool/univers … buntu1_i386.deb
wget http://archive.ubuntu.com/ubuntu/pool/univers … buntu1_i386.deb
wget http://archive.ubuntu.com/ubuntu/pool/univers … ubuntu1_all.deb
Install packages
sudo dpkg -i *.deb
Install dependencies
sudo apt-get install -f
Install packages
sudo dpkg -i *.deb
compile my own Mingw-w64 cross-compiler for less than Pentium Pro
Mingw-64 “howto-build” document
http://webkit.sed.hu/blog/20100716/cross-comp … nux-using-mingw
https://www.reddit.com/r/gcc/comments/8dhpot/ … ngww64_creates/
hello.cpp
#include <iostream>
int main()
{
std::cout << "hello world" << std::endl;
}
$ i486-w64-mingw32-g++ hello.cpp
Installing cross compiler manually
Alternatively you can try building from sources e.g. you can try older MinGW or MXE. After you do so, you must make compiler "visible" in your system. Adjust the $PATH environment variable e.g. if the compiler is /usr/local/myrcrosscompiler/bin/myrcrosscompiler-gcc then add /usr/local/myrcrosscompiler/bin to your $PATH:
export PATH="/usr/local/myrcrosscompiler/bin:$PATH"
Notice that this will affect only your current shell. Add it to something like .bashrc if you wish to make it permanent.
If you decide to modify $PATH permanently (through something .bashrc -like), this should have effect when sudo'ing (just don't use -i option when running sudo). However, if you don't do this, be aware that $PATH will not be passed to sudo. You may need to pass it manually when invoking sudo e.g.
sudo PATH="/usr/local/myrcrosscompiler/bin:$PATH" make install
Testing cross compiler
If compiler is ready you should be able to obtain GCC version at command line:
i686-w64-mingw32-gcc -v # should print gcc version
i686-w64-mingw32-g++ -v # should print g++ version
If sudo'ing with permanent $PATH:
sudo i686-w64-mingw32-gcc -v # should print gcc version
If sudo'ing with manual $PATH (see #Installing cross compiler manually):
sudo PATH="/usr/local/mycrosscompiler/bin:$PATH" i686-w64-mingw32-gcc -v # should print gcc version
https://ubuntuforums.org/showthread.php?t=170 … 30#post10561430
https://www.libsdl.org/extras/win32/cross/