icculus / ControllerImage

A library for producing images of SDL controllers.
zlib License
107 stars 2 forks source link

Write documentation #2

Open icculus opened 8 months ago

icculus commented 8 months ago

Just inline in the headers is probably sufficient.

gardotd426 commented 8 months ago

I have SDL3/SDL.h in the proper location and am using gcc -I/home/matt/tmp/ControllerImage/SDL/include controllerimage.c and I still get:

In file included from controllerimage.c:9:
controllerimage.h:13:10: fatal error: SDL3/SDL.h: No such file or directory
   13 | #include <SDL3/SDL.h>
      |          ^~~~~~~~~~~~
compilation terminated.

No matter where I have those files, it still won't work. This definitely needs to be documented better. Just trying to use cmake with mkdir build; cd build && cmake .. doesn't end up building any of the libraries.

icculus commented 8 months ago

Weird...there's definitely a file at /home/matt/tmp/ControllerImage/SDL/include/SDL3/SDL.h ...?!

gardotd426 commented 8 months ago
>_ file /home/matt/tmp/ControllerImage/SDL/include/SDL3/SDL.h
/home/matt/tmp/ControllerImage/SDL/include/SDL3/SDL.h: C source, ASCII text