waj has joined #crystal-lang
mverzilli has joined #crystal-lang
r0ast has joined #crystal-lang
asterite has joined #crystal-lang
asterite has joined #crystal-lang
r0ast has joined #crystal-lang
e_dub has joined #crystal-lang
waj has joined #crystal-lang
waj has joined #crystal-lang
bcardiff has joined #crystal-lang
asterite has joined #crystal-lang
mverzilli has joined #crystal-lang
bcardiff has joined #crystal-lang
CraigBuchek has joined #crystal-lang
waj has joined #crystal-lang
e_dub has joined #crystal-lang
mverzilli has joined #crystal-lang
asterite has joined #crystal-lang
TheBlueCrane has joined #crystal-lang
<TheBlueCrane> Hello all! I'm really like this project! so far it has been so easy to interface/link with C. I've started trying to update the sdl lib to sdl2 (https://github.com/TheBlueCrane/SDL2-Crystal). very fun :D
<asterite> Nice! :) I'm checking out your project
<asterite> Yes, we tried to make the C bindings as painless as possible
<asterite> It works! :D
<TheBlueCrane> :D
<TheBlueCrane> The C bindings have been very painless so far.
<TheBlueCrane> I'm just having trouble with SDL_LoadBMP, I don't know why though... I figure it out later
<asterite> What's the issue?
<asterite> By the way, I would make Window.new call SDL_CreateWindow instead of having to do SDL.create_window (feels more natural)
<asterite> (same goes for Renderer)
<asterite> Oh, yesterday I was showing @waj that you started a heroku buildpack… but one second later it seems you deleted it… frank still needs more time, right?
<asterite> Ah, no, sorry, it wasn't you
<TheBlueCrane> I'm moving SDL_CreateWindow to Window/Render.new now.
<TheBlueCrane> SDL_LoadBMP is giving me "ld: symbol(s) not found for architecture x86_64"
<TheBlueCrane> I'm following this: https://wiki.libsdl.org/SDL_LoadBMP
<asterite> Ah, I found it in the header file
<asterite> #define SDL_LoadBMP(file) SDL_LoadBMP_RW(SDL_RWFromFile(file, "rb"), 1)
<asterite> It's a macro :(
<asterite> But you can invoke that instead :)
<asterite> Are you on a mac?
<TheBlueCrane> Yes.
<asterite> Did you install sdl2 with homebrew?
<asterite> Just asking because you can do `brew info sdl2` and it will show you where it is installed… I then usually go to the include directory and whatever problem I have with the binding I look it up there
<TheBlueCrane> Ah yes, I see
<TheBlueCrane> Thanks! :)
<asterite> @TheBlueCrane How did you find about crystal?
<TheBlueCrane> I found it by scrolling through the languages on the side of the explore page,
<TheBlueCrane> explore page on github.com
waj1 has joined #crystal-lang
mverzilli_ has joined #crystal-lang
waj has joined #crystal-lang
bcardiff1 has joined #crystal-lang
e_dub has joined #crystal-lang
waj1 has joined #crystal-lang
mverzilli_ has joined #crystal-lang
Liothen has joined #crystal-lang
waj has joined #crystal-lang
waj1 has joined #crystal-lang
bcardiff has joined #crystal-lang
bcardiff has joined #crystal-lang
travis-ci has joined #crystal-lang
travis-ci has left #crystal-lang [#crystal-lang]
<travis-ci> [travis-ci] Build details : http://travis-ci.org/manastech/crystal/builds/36200625
<travis-ci> [travis-ci] manastech/crystal#1488 (master - d40daaa : Juan Wajnerman): The build passed.
travis-ci has joined #crystal-lang
travis-ci has left #crystal-lang [#crystal-lang]
<travis-ci> [travis-ci] Build details : http://travis-ci.org/manastech/crystal/builds/36200625
<travis-ci> [travis-ci] manastech/crystal#1488 (master - d40daaa : Juan Wajnerman): The build passed.
bcardiff has joined #crystal-lang
e_dub has joined #crystal-lang