Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SDL_image #29

Closed
mweastwood opened this issue Jan 4, 2019 · 7 comments
Closed

SDL_image #29

mweastwood opened this issue Jan 4, 2019 · 7 comments

Comments

@mweastwood
Copy link

Thanks for making this package! I'm using it in a personal project and it's been working great so far!

It'd be nice to have SDL_image wrapped as well to help load textures from png files, etc. I spent an afternoon trying to get Clang.jl to cooperate with me so that this could be a PR instead of an issue, but I couldn't figure out the correct incantation (it seems like Clang.jl is in a state of flux at the moment?).

For now I've worked around my immediate need by using SDL_CreateRGBSurfaceFrom and loading images with FileIO.jl, but it's super hacky.

@jonathanBieler
Copy link
Collaborator

jonathanBieler commented Jan 4, 2019

SDL_image is an extension right ? As I remember is was a bit awkward to install some of them with BinDeps, but it looks like SDL_image is in Homebrew and apt at least so it should be feasible. Clang tests all pass on 1.0, I can check if I still have my script.

@mweastwood
Copy link
Author

I think so.

Clang.jl just had some giant PR merged when I was looking at this, so I'm pretty skeptical of the passing tests.

If there are BinDeps problems, I'd be happy to help with putting together a BinaryBuilder/Provider repo as well. I have some experience with that.

@jonathanBieler
Copy link
Collaborator

jonathanBieler commented Jan 7, 2019

I would be curious to see how BinaryBuilder, I've tried it a couple of times at the beginning but I always had issues with it. For Clang I should still have the v0.6 version working, I could use that.

@mweastwood
Copy link
Author

BinaryBuilder works really well now for simpler things. I think the biggest remaining issue with it is that they haven't quite figured out how to share binary dependencies between Julia packages. For instance, to build SDL_image, we're going to have a dependency on libpng, which is built for the ImageMagick.jl package (at https://github.com/SimonDanisch/LibpngBuilder). So either we declare a dependency or ImageMagick.jl or we have to build libpng ourselves and you potentially end up with two copies of libpng if you have both packages installed. The relevant issue for fixing this is JuliaLang/Pkg.jl#841

@jonathanBieler
Copy link
Collaborator

Yeah that's not ideal. In our case I guess having two copies of libpng wouldn't too bad since it's small.

@jonathanBieler
Copy link
Collaborator

@mweastwood I've made a pull request #30 with SDL_image wrapped. I only added the build for mac os and I haven't made any tests besides calling a function into the library. You can check it out and see if it works.

@jonathanBieler jonathanBieler mentioned this issue Jun 15, 2019
@aviks
Copy link
Contributor

aviks commented Jan 26, 2020

Fixed by #42

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants