GithubHelp home page GithubHelp logo

Installing on Windows needs DLL's about ggez HOT 8 CLOSED

ggez avatar ggez commented on May 8, 2024
Installing on Windows needs DLL's

from ggez.

Comments (8)

onelson avatar onelson commented on May 8, 2024

The docs on distribution Love2D games talks about having to bundle a smattering of DLLs for the same reason on windows. iirc the DLLs must be produced with the same compiler as your binary. I'd been thinking about trying to include source for the deps and build against a static deps crate that'll build all that stuff in-line. Seems like a lot of work though...

from ggez.

icefoxen avatar icefoxen commented on May 8, 2024

Yeah it appears that SDL2_mixer's dll download includes a pile of codec DLL's along with SDL_mixer itself. We need to make a bundle and include them all. (Or solve issue #29 )

from ggez.

icefoxen avatar icefoxen commented on May 8, 2024

SDL_mixer is going away, but we really should provide a nice bundle of DLL's for the handiness of our users, as long as such things are necessary.

from ggez.

Gordon-F avatar Gordon-F commented on May 8, 2024

@icefoxen How about using glutin and wininit instead of SDL2 ? Or distributing SDL2 source code in repo and compile it with ggez.

from ggez.

icefoxen avatar icefoxen commented on May 8, 2024

@Gordon-F Glutin is eventually the goal, it will take a little while though. Joystick/game controller support is a sticking point, and there's myriad tiny things that are currently done through SDL so it's not going to be a super quick change. And right now I'm busy working on other bits instead.

Distributing SDL2's source I honestly hadn't thought of. Hmmm...

from ggez.

Gordon-F avatar Gordon-F commented on May 8, 2024

@icefoxen But this will increase compile time. This is not a best part of Rust.

from ggez.

onelson avatar onelson commented on May 8, 2024

I feel like non-windows platforms make it easy enough to get sdl installed, and really providing DLLs for Win is probably the way to go in the short term.
(This is what Love2D does)
Longer term, I guess a pure rust input system is something to explicitly add to the roadmap.

Alternatively, maybe there's a way to get SDL statically linked for ggez projects? That's a thing, right?

from ggez.

icefoxen avatar icefoxen commented on May 8, 2024

This isn't going to stop while we use SDL2, and the rust-sdl2 peoples have better docs on installing the SDL2 dll's than we ever will. Additionally, while developers can distribute the DLL's to dodge this problem for their binaries, we can't do that because our users are developers who need to compile against said DLL's. So they're just going to have to suck it up and put them in the Right Place themselves.

from ggez.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.