dbuenzli / tsdl

Thin bindings to SDL for OCaml
http://erratique.ch/software/tsdl/
ISC License
100 stars 29 forks source link

Install error in support/consts_stub.c #73

Closed BarronRauEA closed 3 years ago

BarronRauEA commented 3 years ago

When installing tsdl I get the following output. I tried pinning tsdl and commenting out the (SDL_JOYSTICK_TYPE_THROTTLE) line, but received the same error for another joystick line. I commented out the entire joystick section and received the same error for another line ( I didn't note this down - WINDOW_VULKAN or something similar.).

I am using Debain Buster on WSL2. Any ideas on what else to try? I am fairly new to Ocaml, so that may be the problem.

### stdout ###

# support/consts_stub.c:36:41: note: in definition of macro ‘int_v’
#  #define int_v(e) int_v(fd, "" '# e, (int)e)
#                                           ^
# support/consts_stub.c:837:10: error: ‘SDL_JOYSTICK_TYPE_THROTTLE’ undeclared (first use in this function)
#    int_v (SDL_JOYSTICK_TYPE_THROTTLE);
#           ^
# support/consts_stub.c:36:41: note: in definition of macro ‘int_v’
#  #define int_v(e) int_v(fd, "" # e, (int)e)
#                                          ^
# Command exited with code 2.
### stderr ###
# pkg.ml: [ERROR] cmd ['ocamlbuild' '-use-ocamlfind' '-classic-display' '-j' '4' '-tag' 'debug' 
#      '-build-dir' '_build' '-plugin-tag' 'package(ocb-stubblr)' 'opam' 
#      'pkg/META' 'CHANGES.md' 'LICENSE.md' 'README.md' 'src/tsdl.a'
#      'src/tsdl.cmxs' 'src/tsdl.cmxa' 'src/tsdl.cma' 'src/tsdl.cmx'
#      'src/tsdl.cmi' 'src/tsdl.mli' 'src/tsdl_consts.cmx' 'src/tsdl_top.a'
#      'src/tsdl_top.cmxs' 'src/tsdl_top.cmxa' 'src/tsdl_top.cma'
#      'src/tsdl_top.cmx' 'src/tsdl_top_init.ml' 'src/dlltsdl.so'
#      'src/libtsdl.a' 'README.md' 'CHANGES.md' 'test/min.ml' 'test/minc.c']: exited with 10
BarronRauEA commented 3 years ago

Never mind, my sdl version was not current. Thanks for the work on this project, looking forward to trying it.