Giter VIP home page Giter VIP logo

rubysdl's People

Contributors

akicho8 avatar ohai avatar oscdis avatar soutaro avatar yhara avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

rubysdl's Issues

Help getting up and running on OSX?

% brew list | grep sdl
sdl
sdl_gfx
sdl_image
sdl_net
sdl_ttf

I have all the libraries installed, and rubysdl installs fine, but if I manually run the build I see the following from extconf.rb:

10079 % sdl-config --cflags
-I/usr/local/include/SDL -D_GNU_SOURCE=1 -D_THREAD_SAFE
10080 % sdl-config --libs
-L/usr/local/lib -lSDLmain -lSDL -Wl,-framework,Cocoa
10071 % ruby extconf.rb 
checking for SMPEG_new() in -lsmpeg... no
checking for Mix_OpenAudio() in -lSDL_mixer... no
checking for IMG_Load() in -lSDL_image... no
checking for TTF_Init() in -lSDL_ttf... no
checking for sge_Line() in -lSGE... no
checking for TTF_OpenFontIndex()... no
checking for TTF_FontFaces()... no
checking for TTF_FontFaceIsFixedWidth()... no
checking for TTF_FontFaceFamilyName()... no
checking for TTF_FontFaceStyleName()... no
checking for Mix_LoadMUS_RW()... no
checking for rb_thread_blocking_region()... yes
checking for ruby/thread.h... yes
checking for rb_thread_call_without_gvl()... yes
checking for rb_enc_str_new()... yes
checking for rb_str_export_to_enc()... yes
checking for SDLSKK_Context_new() in -lSDLSKK... no
creating Makefile

That's a lot of "no" and I'm seeing errors when I run the samples:

10077 % rsdl sample/aadraw.rb 
sample/aadraw.rb:8:in `<main>': undefined method `draw_line' for #<SDL::Screen:0x007f83539430f8> (NoMethodError)

Any hints?

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.