Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Firefox depends on SDL2, I can open Firefox, so I think my SDL2 works fine.

I’m using WSL, according to their blog, WSL includes Direct3D, and I can find the .so files.

Hm, I'm not sure what exactly is the problem then. It can be that the problem was that I used some function that are not supported for some reason, or it can also be because of libffi shipped.

Do you mind doing some more testing for me? Could you download a test.zip and run `run.sh` script from it? (same link https://filebin.net/0u45faq8hwuiylyq )

I made a minimalistic sketch app, it includes 5 demos. If it won't error from the beginning, please enter :1 to run first, :2 to run second e.t.c up to :5 to run fifth demo. Please tell me if they throw errors as well.

It won’t error from the beginning, but once I input the colon number, they all pop up a black window and output the same error as before.

debugger invoked on a SDL2::SDL-RC-ERROR in thread
#<THREAD "SDL2 Main Thread" RUNNING {1003152D53}>:
  SDL Error (-1): That operation is not supported

The current thread is not at the foreground,
SB-THREAD:RELEASE-FOREGROUND has to be called in #<SB-THREAD:THREAD "main thread" RUNNING {1000558083}>
for this thread to enter the debugger.
^C
debugger invoked on a SB-SYS:INTERACTIVE-INTERRUPT in thread
#<THREAD "main thread" RUNNING {1000558083}>:
  Interactive interrupt at #x7FE6D76287FB.

Type HELP for debugger help, or (SB-EXT:EXIT) to exit from SBCL.

restarts (invokable by number or by possibly-abbreviated name):
  0: [EXIT ] Exit.
  1: [ABORT] Exit from the current thread.

("bogus stack frame")
0]

So, the problem resides in the sketch library. I wonder if that library works on Windows. I think Windows is the ultimate platform for distributing binaries.

(1 edit)

It indeed seems like that (similar issue: https://github.com/vydd/sketch/issues/40 ). As far as I know it is possible to run sketch on windows, but I don't have it installed anywhere, so I can't compile the game for it now. :(

Yeah, it is similar! Oh, so sad :(

To think about it, if you can install or have already installed: sdl2, sdl2-ttf, sdl2-image, sdl2-mixer, libffi and libgl, then you should be able to run executable without (these) foreign libraries shipped (https://filebin.net/0u45faq8hwuiylyq - rhombihexadeltille-game-without-fl.zip). If you have libffi.so.8 and not 6 or 7, you might want to create a link redirecting from libffi.so.7 to libffi.so.8.
(something like `sudo ln -sf /usr/lib64/libffi.so.8.1.0 /usr/lib64/libffi.so.7`)

I installed sdl2-ttf, sdl2-image, sdl2-mixer, libffi then created a link from libffi.so.8. However, it still throws the same error.

(+1)

Sad :( I don't know how to help with this one, but I'll try to get an executable for windows.

Hey there! I think I have something working for windows, but I might be wrong. Can you check it out?

(test windows binary: https://github.com/Gleefre/test-ga/raw/release/windows-bin.zip ; contains app.exe)

Opening app.exe results in a white window with the title “SDL2 Window (Not Responding)”. The program freezes after the “==> Launching application.” line. Good idea to use GitHub Action, though there are still unknown problems. :(

(1 edit)

I think I have missed some dependencies. Can you check this one out? (same app.exe https://github.com/Gleefre/test-ga/raw/release-v65/windows-bin.zip )

If it fails, could you please set DEPLOY_REDIRECT_OUTPUT environment variable to any empty file? That would redirect output to it, so I (we) could see the logs.

The log is:

 ==> Deploy log started on 2022.11.09 22:42:38
 ==> Performing warm boot.
   -> Runtime directory is D:/bin/
   -> Resource directory is D:/bin/
 ==> Running boot hooks.
 ==> Reloading foreign libraries.
   -> Loading foreign library #<LIBRARY LIBSDL2-TTF>.
   -> Loading foreign library #<LIBRARY LIBFFI>.
   -> Loading foreign library #<LIBRARY LIBSDL2-IMAGE>.
   -> Loading foreign library #<LIBRARY LIBSDL2>.
   -> Loading foreign library #<LIBRARY OPENGL>.
 ==> Launching application.

I found that is the same as the command line output of the previous version, so there’s no need to define an environment variable to see the log.

Ok, I will try now to build with latest SDL2 releases, this might help

(1 edit)

Here you go: https://github.com/Gleefre/test-ga/raw/release-v65/windows-bin-console.zip


Wait, something is wrong

I think it will work. I'll compile the game now, since this one will just errors that it can't find the font needed

Fixed this one: https://github.com/Gleefre/test-ga/raw/release-v65/windows-bin-console.zip

Rhombihexadeltille build is running right now :)