Re: SDL2 and OpenGL 3.0+ on Picolisp 64bit (Linux)

2019-03-22 Thread alfonso . villen
Hi Curtis, thanks a lot for testing! You're right, a rather recent SDL2 version is needed because of SDL_CreateRGBSurfaceWithFormat. I hope you can give picoblocks and breakout a try, they're the only examples that include sound/music. Best, Alfonso -- UNSUBSCRIBE:

Re: SDL2 and OpenGL 3.0+ on Picolisp 64bit (Linux)

2019-03-22 Thread Curtis
This is wonderful work. I can see myself having fun with it. Thank you. I am running Ubuntu 16.04.0 LTS (xenial). Many of the demos worked just fine, but the sdl_pong.l demo, and the picoblocks game both failed with the following error:    !? (native

Re: SDL2 and OpenGL 3.0+ on Picolisp 64bit (Linux)

2019-03-18 Thread C K Kashyap
Excellent news :) ... that means that image itself has everything that's needed (atleast for demos 1 to 13). It maybe just a matter of tweaking the X server settings on my mac - adding OpenGL 3.3 support perhaps ... I'll look. Docker in general would be slower than host because of virtualization.

Re: SDL2 and OpenGL 3.0+ on Picolisp 64bit (Linux)

2019-03-18 Thread alfonso . villen
Hello Kashyap, I've tried your Docker image again. I configured my display manager (LightDM, file: /etc/lightdm/lightdm.conf) with xserver-allow-tcp=true. Then I run "xhost +" in a terminal. All demos 1 to 13 worked, but with errors from libGL: libGL error: MESA-LOADER: failed to retrieve

Re: SDL2 and OpenGL 3.0+ on Picolisp 64bit (Linux)

2019-03-18 Thread C K Kashyap
Could you try enabling TCP in you X server please? On Mon, Mar 18, 2019 at 9:29 AM C K Kashyap wrote: > Oh!!! ... It assumes communication over TCP port 6000! ... Linux by > default uses unix socket I think - which is not TCP. > > On Mon, Mar 18, 2019 at 7:50 AM wrote: > >> Hello Kashyap, >>

Re: SDL2 and OpenGL 3.0+ on Picolisp 64bit (Linux)

2019-03-18 Thread C K Kashyap
Oh!!! ... It assumes communication over TCP port 6000! ... Linux by default uses unix socket I think - which is not TCP. On Mon, Mar 18, 2019 at 7:50 AM wrote: > Hello Kashyap, > > the Docker image starts, but when I run the command "run-alfonso- > sdl.sh" I get the following error: > > error:

Re: SDL2 and OpenGL 3.0+ on Picolisp 64bit (Linux)

2019-03-17 Thread C K Kashyap
I do not have access to a linux host currently. If you could just give this a try on Docker on linux that would be great - if not anything, it will give you first hand view of the issue. All you need to do is install Docker (on your Linux box) and run the image. docker run -it --rm

Re: SDL2 and OpenGL 3.0+ on Picolisp 64bit (Linux)

2019-03-17 Thread alfonso . villen
Hi Kashyap, I'm afraid I can't help you with the Windows/Mac issues... But I'd be glad to help if you tell me how. By the way, did you also try the toy game in the picoblocks/ folder? Regards, Alfonso -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Re: SDL2 and OpenGL 3.0+ on Picolisp 64bit (Linux)

2019-03-17 Thread C K Kashyap
Hey Alfonso, I tried the new demo 4 and got the same result - "Could not create GL context" -- Error creating OpenGL context: Regards, Kashyap On Sun, Mar 17, 2019 at 4:21 AM Alfonso Villén wrote: > Hello Kashyap, > > you're doing some serious work to make everything run under Docker, thank

Re: SDL2 and OpenGL 3.0+ on Picolisp 64bit (Linux)

2019-03-17 Thread Alfonso Villén
Hello Kashyap, you're doing some serious work to make everything run under Docker, thank you! The problem still seems to be OpenGL. You said that only demos 1 to 3 run. Demo 1-3 tell SDL2 to open a window with an associated renderer (+RenderWindow from sdlutil.l), but from demo 4 onwards a

Re: SDL2 and OpenGL 3.0+ on Picolisp 64bit (Linux)

2019-03-17 Thread alfonso . villen
Hello Kashyap, you're doing some serious work to make everything run under Docker, thank you! The problem still seems to be OpenGL. You said that only demos 1 to 3 run. Demo 1-3 tell SDL2 to open a window with an associated renderer (+RenderWindow from sdlutil.l), but from demo 4 onwards a

Re: SDL2 and OpenGL 3.0+ on Picolisp 64bit (Linux)

2019-03-16 Thread C K Kashyap
Okay ... good news. So, now mac and windows are at parity wrt Docker. I had to run defaults write org.macosforge.xquartz.X11 enable_iglx -bool true to get the demos work in X. I took the liberty to create a new docker image with a script that clones Alfonso's SDL and runs demo1.l. This should

Re: SDL2 and OpenGL 3.0+ on Picolisp 64bit (Linux)

2019-03-16 Thread C K Kashyap
Hi Alfonso, Getting to work with SDL was on my TODO anyway - so it's my pleasure to test it out :) and Thank you! I'll dig further - since it's docker, it's still Linux (ubuntu in my case) .. I am optimistic since it worked on Docker on windows. Regards, Kashyap On Sat, Mar 16, 2019 at 4:26

Re: SDL2 and OpenGL 3.0+ on Picolisp 64bit (Linux)

2019-03-16 Thread Alfonso Villén
Hi Kashyap, it's also possible that the OpenGL drivers simply don't support OpenGL 3.3 core profile, or that there's no OpenGL support at all... Am Sa., 16. März 2019 um 05:25 Uhr schrieb C K Kashyap : > Quick report - > 1. WSL + XMing - demo1.l worked just fine! I get a mix of * !? (native >

Re: SDL2 and OpenGL 3.0+ on Picolisp 64bit (Linux)

2019-03-16 Thread Alfonso Villén
Hello Kashyap! First of all, thanks for testing. The first demo doesn't use SDL2_image, but the others do (to load images and make textures from them). The line "!? (native NIL "IMG_Init" 'I IFlag)" shows that SDL2_image either isn't installed or the shared library couldn't be found by the

Re: SDL2 and OpenGL 3.0+ on Picolisp 64bit (Linux)

2019-03-16 Thread alfonso . villen
Thanks, Rick! I added a comment to sdl/findlib.l so I don't forget your FreeBSD change. I really didn't expect everything would work on FreeBSD with just a single change! I'm happy about that. -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Re: SDL2 and OpenGL 3.0+ on Picolisp 64bit (Linux)

2019-03-16 Thread alfonso . villen
Thanks Alex! I think it'd be really great to see people using Picolisp in things where they use other languages such as Python or Lua. But for this, the community must offer them some help... Will be nice to know if everything also works on arm64. -- UNSUBSCRIBE:

Re: SDL2 and OpenGL 3.0+ on Picolisp 64bit (Linux)

2019-03-15 Thread C K Kashyap
Quick report - 1. WSL + XMing - demo1.l worked just fine! I get a mix of * !? (native NIL "IMG_Init" 'I IFlag) *and *"Could not create GL context" -- Error creating OpenGL context:* for the other demos. 2. Docker on windows + XMing - same as WSL 3. Docker + XQuartz on Mac - none of the demos run

Re: SDL2 and OpenGL 3.0+ on Picolisp 64bit (Linux)

2019-03-15 Thread C K Kashyap
Great news ... cant wait to try it out on docker + xserver On Fri, Mar 15, 2019 at 7:41 PM wrote: > Works on FreeBSD too, if I make this change: > > $ git diff | cat > diff --git a/sdl/findlib.l b/sdl/findlib.l > index 20371af..f532cb8 100644 > --- a/sdl/findlib.l > +++ b/sdl/findlib.l > @@

Re: SDL2 and OpenGL 3.0+ on Picolisp 64bit (Linux)

2019-03-15 Thread rick
Works on FreeBSD too, if I make this change: $ git diff | cat diff --git a/sdl/findlib.l b/sdl/findlib.l index 20371af..f532cb8 100644 --- a/sdl/findlib.l +++ b/sdl/findlib.l @@ -5,7 +5,7 @@ (de findlib (Lib) (let Matches - (in '(ldconfig "-p") + (in '(ldconfig "-r")

Re: SDL2 and OpenGL 3.0+ on Picolisp 64bit (Linux)

2019-03-15 Thread rick
>From the project README: > However, in the tests I did, Picolisp performed its fixed-point > arithmetic calculations much faster than I had expected. In the end, > I abandoned the C alternative, but left it there for the records. Excellent! Great to hear. -- UNSUBSCRIBE:

Re: SDL2 and OpenGL 3.0+ on Picolisp 64bit (Linux)

2019-03-15 Thread Alexander Williams
Wow this is AMAZING!!! I haven't tested it yet, but I looked at the source files and it is **very** clean code, well-documented, descriptive comments, screenshots, etc. This is by far the most impressive PicoLisp project I've ever seen. You clearly put a lot of effort into this, thank you!