Re: Using bindbc-sdl with D

2025-03-26 Thread Claus D. Volko via Digitalmars-d-learn
Hi there, I cloned https://git.sleeping.town/BindBC/bindbc-sdl.git to get the latest SDL bindings for D. In addition I cloned bindbc-loader and bindbc-common and copied the files into the appropriate directories. Then I cloned SDL and SDL_net and built everything in Release mode using Visual

bindbc, SDL

2025-03-26 Thread Claus D. Volko via Digitalmars-d-learn
Hi there, I cloned https://git.sleeping.town/BindBC/bindbc-sdl.git to get the latest SDL bindings for D. In addition I cloned bindbc-loader and bindbc-common and copied the files into the appropriate directories. Then I cloned SDL and SDL_net and built everything in Release mode using Visual

Re: bindbc, SDL

2025-03-27 Thread Claus D. Volko via Digitalmars-d-learn
I got my program to work. The DLL files had been missing and I had to include a call to loadSDL. That was all that had to be done. Hooray! Thanks again for your help.

Re: bindbc, SDL

2025-03-26 Thread Claus D. Volko via Digitalmars-d-learn
It did build without errors after I removed the line subConfiguration "bindbc-sdl" "staticBC" from dub.sdl.

Re: bindbc, SDL

2025-03-26 Thread Claus D. Volko via Digitalmars-d-learn
Well, I've now used dub build and am basically getting the same issues: C:\Users\Acer\source\repos\adokhugi\game-d>dub build Fetching bindbc-sdl 2.1.0 (getting selected version) Fetching bindbc-common 1.0.5 (getting selected version) Fetching bindbc-loader 1.1.5 (gett

Re: bindbc, SDL

2025-03-26 Thread Claus D. Volko via Digitalmars-d-learn
Well, well. Now my code builds but it seems that the call of SDL_Init fails. I wonder if SDL3.lib is okay since I built it myself using Visual Studio. Maybe there is some prebuilt version available somewhere?

Re: bindbc, SDL

2025-03-27 Thread Claus D. Volko via Digitalmars-d-learn
On Thursday, 27 March 2025 at 07:40:38 UTC, ryuukk_ wrote: If you are using the shared library instead of the static library, you need to load it, call the `loadSDL` function Judging from what's written on https://en.wikipedia.org/wiki/Shared_library it should actually be a static library as