Instructions on building SDL_shadercross on macOS and Windows

The SDL_shadercross repo is rapidly evolving and some of the previous steps are no longer required.

I have created a python script to automate the process of building shadercross.

Thanks a lot! It works nearly perfectly for windows until the very last command: I got a linking error on SDL3_shadercross-static.lib(SDL_shadercross.c.obj) :

error LNK2019: external symbol non resolved _DxcCreateInstance referenced in function _SDL_ShaderCross_INTERNAL_CompileUsingDXC.

Do you have an idea from where it could come?

Hi, not I am not sure, sorry. I will have a look at that in a bit though and check that it still works on my Windows box.

1 Like

Hello again! I retested this morning, and it magically worked. Only difference was a new cloning of the repos and that I added libxml2 in the path. Not sure this solved the problem though.

Anyway, thanks a lot for your tutorial, I would have struggled way more without it. Have you considered to submit it for the SDL_shadercross’s README?

That’s a good idea. I’ll create a PR.

Done. This is the PR.