Skip to content

Instantly share code, notes, and snippets.

@erik
Created November 21, 2010 05:29
Show Gist options
  • Save erik/708486 to your computer and use it in GitHub Desktop.
Save erik/708486 to your computer and use it in GitHub Desktop.
/Desktop$ git clone git@github.com:boredomist/rbdraw.git
Initialized empty Git repository in /home/erik/Desktop/rbdraw/.git/
remote: Counting objects: 152, done.
remote: Compressing objects: 100% (145/145), done.
remote: Total 152 (delta 62), reused 0 (delta 0)
Receiving objects: 100% (152/152), 65.98 KiB, done.
Resolving deltas: 100% (62/62), done.
~/Desktop$ cd rbdraw/
~/Desktop/rbdraw$ rake make build
(in /home/erik/Desktop/rbdraw)
Creating Makefile.
make: *** No rule to make target `clean'. Stop.
checking for main() in -lX11... yes
creating Makefile
clang -I. -I. -I/usr/lib/ruby/1.8/i686-linux -Iext -D_FILE_OFFSET_BITS=64 -fPIC -fno-strict-aliasing -g -g -O2 -fPIC -Wall -std=c99 -c ext/rbdraw.c
clang -I. -I. -I/usr/lib/ruby/1.8/i686-linux -Iext -D_FILE_OFFSET_BITS=64 -fPIC -fno-strict-aliasing -g -g -O2 -fPIC -Wall -std=c99 -c ext/window.c
clang -I. -I. -I/usr/lib/ruby/1.8/i686-linux -Iext -D_FILE_OFFSET_BITS=64 -fPIC -fno-strict-aliasing -g -g -O2 -fPIC -Wall -std=c99 -c ext/display.c
clang -I. -I. -I/usr/lib/ruby/1.8/i686-linux -Iext -D_FILE_OFFSET_BITS=64 -fPIC -fno-strict-aliasing -g -g -O2 -fPIC -Wall -std=c99 -c ext/graphics.c
clang -shared -o rbdraw.so rbdraw.o window.o display.o graphics.o -L. -L/usr/lib -L. -Wl,-Bsymbolic-functions -rdynamic -Wl,-export-dynamic -lruby1.8 -lX11 -lpthread -lrt -ldl -lcrypt -lm -lc
~/Desktop/rbdraw$ irb
>> require 'rbdraw'
=> true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment