sdl2 on Windows?
Posted: Tue Feb 14, 2017 2:47 am
Hi!
I tried to play a bit with sdl2 on Windows.
I tried sbcl 64 bit, ccl 32 and 64 bit, but with no success.
Steps to reproduce:
-) Store the correct dll (32 bit or 64bit from SDL2 project) inside your path.
-) then:
(ql:quickload :sdl2)
(ql:quickload :cl-opengl)
(asdf:load-system :sdl2/examples)
(sdl2-examples:basic-test)
A window should open, as in Linux, but nothing happens, no error message, nothing. It wont open a window nor gives control back to the repl. You need to crash the lisp enironment to stop it.
On Linux it was no problem at all, and glfw3 works on windows like a charm, so I assume that my setup understands opengl.
But I would like to use audio too, so glfw3 is not an option unfortunately.
Has anyone of you a working Installation with sdl2 on windows and can give me hints how it could work?
If not: is there a companion audio library to glfw3 I could try? I need to play music in the background and parallel to it some sound effects.
And why has everything that has something to do with programming must always be a pain if you want to use it cross platform? But thats another question...
I tried to play a bit with sdl2 on Windows.
I tried sbcl 64 bit, ccl 32 and 64 bit, but with no success.
Steps to reproduce:
-) Store the correct dll (32 bit or 64bit from SDL2 project) inside your path.
-) then:
(ql:quickload :sdl2)
(ql:quickload :cl-opengl)
(asdf:load-system :sdl2/examples)
(sdl2-examples:basic-test)
A window should open, as in Linux, but nothing happens, no error message, nothing. It wont open a window nor gives control back to the repl. You need to crash the lisp enironment to stop it.
On Linux it was no problem at all, and glfw3 works on windows like a charm, so I assume that my setup understands opengl.
But I would like to use audio too, so glfw3 is not an option unfortunately.
Has anyone of you a working Installation with sdl2 on windows and can give me hints how it could work?
If not: is there a companion audio library to glfw3 I could try? I need to play music in the background and parallel to it some sound effects.
And why has everything that has something to do with programming must always be a pain if you want to use it cross platform? But thats another question...