lispgames / cl-sdl2

Common Lisp bindings for SDL2 using C2FFI.
MIT License
309 stars 82 forks source link

latest .spec file fails to load on Windows 7 64-bit #107

Closed nsrahmad closed 6 years ago

nsrahmad commented 6 years ago

The error I get:

; file: C:/Users/nisar/quicklisp/dists/quicklisp/software/cl-sdl2-20180430-git/src/autowrap.lisp
; in: AUTOWRAP:C-INCLUDE '(SDL2 AUTOWRAP-SPEC "SDL2.h")
;     (AUTOWRAP:C-INCLUDE '(SDL2-FFI::SDL2 SDL2-FFI::AUTOWRAP-SPEC "SDL2.h")
;                         :ACCESSOR-PACKAGE :SDL2-FFI.ACCESSORS :FUNCTION-PACKAGE
;                         :SDL2-FFI.FUNCTIONS :SPEC-PATH
;                         '(SDL2-FFI::SDL2 SDL2-FFI::AUTOWRAP-SPEC)
;                         :EXCLUDE-SOURCES
;                         ("/usr/local/lib/clang/([^/]*)/include/(?!stddef.h)"
;                          "/usr/include/" "/usr/include/arm-linux-gnueabihf"
;                          "/usr/include/X11/")
;                         :INCLUDE-SOURCES
;                         ("stdint.h" "bits/types.h" "sys/types.h" "bits/stdint"
;                          "machine/_types.h" "SDL2")
;                         ...)
; 
; caught ERROR:
;   (during macroexpansion of (AUTOWRAP:C-INCLUDE '(SDL2 AUTOWRAP-SPEC ...) ...))
;   Invalid JSON literal name: INF [in #<SB-SYS:FD-STREAM for "file C:\\Users\\nisar\\quicklisp\\dists\\quicklisp\\software\\cl-sdl2-20180430-git\\src\\spec\\SDL2.x86_64-pc-windows-msvc.spec" {1006942D93}> at position 3266722]

It works fine if I checkout the version before recent update of .spec files.

mfiano commented 6 years ago

I don't have a Windows machine to properly test this, but could you try the following, making sure you're on the latest commit first:

1) delete all *.spec files 2) comment out get-window-wm-info in src/syswm.lisp 3) restart image and quickload again

nsrahmad commented 6 years ago

Well, Trying that complains about missing c2ffi. I guess I'll need to build c2ffi first. will report how it goes.

ghost commented 5 years ago

@nsrahmad Did you ever get this sorted out?