phoboslab / wipeout-rewrite

2.61k stars 203 forks source link

Can't build current GIT version on GNU/Linux #71

Closed vanfanel closed 10 months ago

vanfanel commented 10 months ago

hi there @phoboslab

Until now, I was following development easily by building often on GNU/Linux, but recently compilation has broken:


src/wipeout/image.c:20:10: fatal error: stb_image_write.h: No such file or directory
   20 | #include <stb_image_write.h>
      |          ^~~~~~~~~~~~~~~~~~~

I have been building like this until now with no problems: C_FLAGS="-march=native -mtune=native -fomit-frame-pointer" GL_VERSION=GLES2 make sdl -j4

Any ideas on what has happened?

vanfanel commented 10 months ago

Ah, I see the problem: passing custom C_FLAGS is what breaks the compilation... What's the best way to pass custom compiler flags without breaking the compilation then?

vanfanel commented 10 months ago

Ah, forget this: USER_CFLAGS=... is what I needed to know. Thanks! And sorry for this useless thread :)