Closed vi1 closed 5 years ago
More details please? about platform, SDL version, Lisp implementation etc.
Windows 10, 64bit, latest sbcl. SDL2.x86_64-pc-windows-msvc.spec, SDL2.i686-pc-windows-msvc.spec must be fixed. I'd create pull request but I don't know how you produce specs, maybe script producing specs must be fixed.
latest SDL.
There is obvious mistake -- missing double quotes in spec files:
{ "tag": "const", "name": "HUGE_VALL", "ns": 0, "location": "/usr/include/math.h:63:11", "type": { "tag": ":double", "bit-size": 64, "bit-alignment": 64 }, "value": INF },
@vi1 I don't currently have access to windows machine. could you checkout my branch from https://github.com/nsrahmad/cl-sdl2/tree/fix-spec-files to check if it works.
Yes, it works.
All right then. Thank you for reporting the issue.
I'm not sure if this is related to the original issue, but trying to load the fix-spec-files branch on my machine (windows 10, 64 bit SBCL 1.4.14, SDL2-2.0.10-win32-x64) gives the following error:
in: DEFMETHOD PRINT-OBJECT (SDL2-FFI:SDL-RENDERER-INFO T)
; (FORMAT STREAM
; "name ~S flags ~A num-texture-formats ~A texture-formats TBD max-texture-width ~
; ~A max-texture-height ~A"
; (SDL2::RINFO :NAME) (SDL2::RINFO :FLAGS)
; (SDL2::RINFO :NUM-TEXTURE-FORMATS) (SDL2::RINFO :MAX-TEXTURE-WIDTH)
; (SDL2::RINFO :MAX-TEXTURE-HEIGHT))
;
; caught ERROR:
; during macroexpansion of
; (FORMATTER
; "name ~S flags ~A num-texture-formats ~A texture-formats TBD max-texture-width ~
; ~A max-texture-height ~A").
; Use *BREAK-ON-SIGNALS* to intercept.
;
; error in FORMAT: Unknown directive (character: Return)
; name ~S flags ~A num-texture-formats ~A texture-formats TBD max-texture-width ~
; ~A max-texture-height ~A
;
@theneosloth Looks like the line break in format string is somehow messed up.
Try deleting the ~
at the end of line 12 and remove the line break so that entire format string is on one line.
If that doesn't work then retry with the above function commented out.
Deleting the ~
worked, thank you!
Bad json.
diff, same for 32bit:
7811c7811 < { "tag": "const", "name": "HUGE_VALL", "ns": 0, "location": "/usr/include/math.h:63:11", "type": { "tag": ":double", "bit-size": 64, "bit-alignment": 64 }, "value": INF },