Compiling with SDL2. Am I missing something?

So I got the latest version of IoQ3 from GIT. Probably where I went wrong first. I dunno which version is stable or most official.

I seem to be near success with compiling something Q3- like for the first time in my life. I set up the libraries, took the renderergl2 folder and renamed it to renderer, took stuff from rendercommon and threw it in that folder, set up curl, etc

I was getting this error:

1>LINK : fatal error LNK1181: cannot open input file ‘SDLmain.lib’

Then I added the “SDL\SDL2-2.0.3\lib\x86” directory to the Additional Library Directories line and changed the SDL2main.lib and SLD2.lib files to SDLmain.lib and SDL.lib

Now I’m getting this error:

1>LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt

Help? I feel like having to rename the files was completely wrong, and I simply have the wrong SDL.

Please use a test build here:

Oh. I need the test build to compile with VS2010?

What I do not get is that ioq3 apparently has moved from SDL to SDL2.

The version of Ioq3 I downloaded, most recent on GIT, has libSDL2.a, SDL2.dll, libcurl.a, libSDL2.dll.a, libSDL2main.a. But when I compile that version of IOQ3, the linker looks for SDLmain.lib, not SDL2main.lib.

Do I have to remove SDLmain.lib and SDL.lib from the Linker -> Additional Dependencies line that has:

user32.lib advapi32.lib winmm.lib wsock32.lib ws2_32.lib SDLmain.lib SDL.lib OpenGL32.lib msvcrt.lib psapi.lib gdi32.lib?

I am confused because the thing that comes with one set of things is looking for an older set of things.

I understand your confusion. The test build isn’t required to compile, it is however much easier to use when on Windows than compiling for yourself.

The MSVC project files are all very out of date and completely unsupportable since we do not have a Windows specialist to maintain them. Mingw builds are much more likely to work, as that is how we build for test.