ded icon indicating copy to clipboard operation
ded copied to clipboard

Working build on windows

Open IRooc opened this issue 3 years ago • 2 comments

Thank you for this project, I managed to make it build on windows and by copying freetype.dll and SDL2.dll to the root project folder it also runs.

Main thing was missing freetype2 and the 1 code change you can see. The memset in the read_entire_file was because the second shader somehow had garbage at the end. the memset fixed it. But probably the bug is in passing the string to compile shader you might want to look into that.

I changed the build subsystem to console so you have the printf's available for testing. And I needed to disable some extra warnings (which I know you'd rather not do but I'm not sure how to fix them)

The introduced minirent.h include should have been with " not < and it uses assert.h (maybe minirent.h should include that but that is not your code right?)

Once again thanks for the repo and streaming, I really like them.

By the way, leave this PR open so I can keep it up to date if needed

IRooc avatar Jan 04 '23 14:01 IRooc

Updated PR to reflect your latest changes. And enabled the windows build in the CI

IRooc avatar Jan 12 '23 09:01 IRooc

quick type_of_file implementation works fine on mingw64+msys2.

BillKek avatar Feb 09 '23 20:02 BillKek