If you’re using Visual Studio you can just install the latest DirectX
SDK and add the appropriate include and lib files to your VC++
Directories.
If you’re using mingw32 with configure, it should automatically build
without DirectX support.
If you just want to remove it entirely by hand, you can edit
include/SDL_config.h and comment out SDL_VIDEO_RENDER_D3D,
SDL_VIDEO_RENDER_DDRAW, SDL_AUDIO_DRIVER_DSOUND, and
SDL_JOYSTICK_DINPUT.
I recommend building with DirectX though. :)On Thu, Sep 24, 2009 at 7:06 PM, golgoth wrote:
Greetings everyone,
Is there a way to compile SDL 1.3 on windows XP and VS2008 without having to
install DirectX?
If not, something like #define SDL_DIRECTX_DISABLE would be nice;
DirectX being implemented in a cross platform architecture is a bit confusing
my understanding is that?s how Windows deal with inputs. I did install the SDK and try to add the include directory in Tools-Options-Projects and Solutions-VC++ Directories but it didn?t do a thing, I added it in the SDL project instead.