Giter VIP home page Giter VIP logo

Comments (7)

polarina avatar polarina commented on May 26, 2024

Thanks! I've reduced the lower bound with ccf61b7. Can you test and see if it works for you?

from sdl2.

ocharles avatar ocharles commented on May 26, 2024

But 2.0.4 is out now - do we want that?

from sdl2.

polarina avatar polarina commented on May 26, 2024

@ocharles Yes, once we have bindings to the new functionality in SDL2 2.0.4.

from sdl2.

svenpanne avatar svenpanne commented on May 26, 2024

Yes, the patch works, thanks. Regarding 2.0.4: It would be great if the sdl2 package will still support older versions, otherwise you'll probably lose tons of users who probably aren't even interested in the brand-new stuff. (Yes, installing SDL2 from source is not that hard, but nevertheless, every additional step will scare away a significant fraction of potential users.) I can see basically 2 options:

  • Introduce a cabal flag with manual: False (the default) for the new stuff, and this flags guards the pkgconfig-depends: version. If I see this correctly, cabal should first try to build with one version, then the other.
  • Switch to dynamic binding of the API entries, just like OpenGLRaw or gl. This is the most flexible approach and makes it e.g. even possible to build the full package on machines with older libraries and avoids the need for a flag.

from sdl2.

ocharles avatar ocharles commented on May 26, 2024

Is it possible to just statically compile sdl2 into this library?

from sdl2.

svenpanne avatar svenpanne commented on May 26, 2024

Static linking on Linux/Mac OS X should be possible (don't know about Windows), but I wouldn't really recommend it. You get all the common problems, like not being able to update the linked-in library alone, perhaps needing some patches from distros to make them work there, getting lots of failed builds because the native library won't compile or doesn't work correctly, license problems, etc. etc. Basically you suddenly maintain/package two projects instead of one. IMHO all that work is better spent into e.g. making the SDL binding more dynamic by using dlopen and friends to access whatever is usable on the given platform. Just my 2c... 😉

from sdl2.

svenpanne avatar svenpanne commented on May 26, 2024

Fixed by ccf61b7

from sdl2.

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.