Thanks - I've been trying to get this to work in J902 under Windows.  Partial success
at last today with these latest text-files.

Please note that each text script has two gratuitous extra lines, those in
the J-forum message footer:
<<----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm>>

I needed to change these OS- or installation-dependent definitions:

NB. in your sdl2.txt,  renamed to ...ijs ...
NB. SDLDLL =: '/usr/local/lib/libSDL2.dylib'
SDLDLL =: 'c:/sdl2/sdl2.dll'

NB. and in your sdlbmpevtex.txt renamed to ...ijs ...
NB.  WAS :-  load '~/j902-user/temp/sdl2.ijs'
load '~user/sdl2.ijs'
....
NB.  WAS:-   bmpsurf=: {. SDL_LoadBMP <'/Applications/j902/addons/graphics/bmp/toucan.bmp'
   bmpfile=. fullname_j_'~addons/graphics/bmp/toucan.bmp'
   bmpsurf=: {. SDL_LoadBMP < bmpfile

I eventually saw the birdie once I'd got that last path correct after some earlier mistakes.

I think you've already said you can't close the graphic yet.  I don't know about linux or unix,  but in this Windows OS,  the only way to close it appears to use "End Task" in Windows Task Manager; Task Manager shows the graphic/s as subtask/s - closing this/one of these closes the whole J session.

My latest Toucan has garbage in its title:  "SDL2 from J�����⎕{club}∨" (approximately) suggesting there might be some problem with the &c argument to SDL_CreateWindow.    The added characters seem to be arbitrary, as might be expected if the length is wrong.

But the Toucan appeared!  I'm old enough to remember the Guinness (I think) ad's slogan, along the
lines of   "Toucan do what toucan do."

Cheers,

Mike


On 03/12/2020 01:04, Thomas McGuire wrote:


--
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to