First post, by Tobis87
Hi,
I have successful compiled Dosbox in VS2010 as an 64-Bit Application. However it always crashes on start.
Debugging it showed that it always crashes on the following line in src/gui/sdlmain.cpp:
sdl.surface=SDL_SetVideoMode(640,400,0,0);
Does anyone know what could cause this?
I'm using Windows 7 SP1 x64 right now.
I followed this guide, http://www.dosbox.com/wiki/Building_DOSBox_wi … _C_2008_Express
For the 64-Bit Build I changed the lines in config.h to:
/* The type of cpu this host has */
//#define C_TARGETCPU X86
#define C_TARGETCPU X86_64
/* Define to 1 to use x86 dynamic cpu core */
#define C_DYNAMIC_X86 0
/* Define to 1 to use recompiling cpu core. Can not be used together with the dynamic-x86 core */
#define C_DYNREC 1
/* Enable memory function inlining in */
#define C_CORE_INLINE 1
/* Enable the FPU module, still only for beta testing */
#define C_FPU 1
/* Define to 1 to use a x86 assembly fpu core */
#define C_FPU_X86 0
I have attached the build log of SDL and Dosbox. If necessary I can also upload the binaries tomorrow.
Edit: Success!! I have a working build. 😁
The sdl_64bit_dx patch was needed in combination with SDL 1.2.13.
The compiled SDL 1.2.13 also includes the sdl-win32 and bugfix patch.
The compiled DOSBox 0.74 also includes the dosidle patch.