Skip to content

Instantly share code, notes, and snippets.

@qrush
Created September 4, 2008 18:25
Show Gist options
  • Save qrush/8835 to your computer and use it in GitHub Desktop.
Save qrush/8835 to your computer and use it in GitHub Desktop.
qrush@q-laptop ~/Sources> git clone git://github.com/why/shoes.git
Initialized empty Git repository in /home/qrush/Sources/shoes/.git/
remote: Counting objects: 5925, done.
remote: Compressing objects: 100% (1774/1774remote: ), done.
remote: Total 5925 (delta 4079), reused 5925 (delta 4079)
Receiving objects: 100% (5925/5925), 1.96 MiB | 225 KiB/s, done.
Resolving deltas: 100% (4079/4079), done.
qrush@q-laptop ~/Sources> cd shoes/
qrush@q-laptop ~/S/shoes> rake
(in /home/qrush/Sources/shoes)
gcc -I. -O -c -oshoes/app.o -I/usr/include -I/usr/include/cairo -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/pixman-1 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/lib/ruby/1.8/i486-linux -DSHOES_GTK -fPIC -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/pixman-1 shoes/app.c
gcc -I. -O -c -oshoes/ruby.o -I/usr/include -I/usr/include/cairo -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/pixman-1 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/lib/ruby/1.8/i486-linux -DSHOES_GTK -fPIC -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/pixman-1 shoes/ruby.c
gcc -I. -O -c -oshoes/world.o -I/usr/include -I/usr/include/cairo -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/pixman-1 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/lib/ruby/1.8/i486-linux -DSHOES_GTK -fPIC -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/pixman-1 shoes/world.c
gcc -I. -O -c -oshoes/canvas.o -I/usr/include -I/usr/include/cairo -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/pixman-1 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/lib/ruby/1.8/i486-linux -DSHOES_GTK -fPIC -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/pixman-1 shoes/canvas.c
gcc -I. -O -c -oshoes/effects.o -I/usr/include -I/usr/include/cairo -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/pixman-1 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/lib/ruby/1.8/i486-linux -DSHOES_GTK -fPIC -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/pixman-1 shoes/effects.c
gcc -I. -O -c -oshoes/internal.o -I/usr/include -I/usr/include/cairo -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/pixman-1 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/lib/ruby/1.8/i486-linux -DSHOES_GTK -fPIC -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/pixman-1 shoes/internal.c
gcc -I. -O -c -oshoes/image.o -I/usr/include -I/usr/include/cairo -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/pixman-1 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/lib/ruby/1.8/i486-linux -DSHOES_GTK -fPIC -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/pixman-1 shoes/image.c
gcc -I. -O -c -oshoes/native/gtk.o -I/usr/include -I/usr/include/cairo -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/pixman-1 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/lib/ruby/1.8/i486-linux -DSHOES_GTK -fPIC -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/pixman-1 shoes/native/gtk.c
gcc -I. -O -c -oshoes/http/curl.o -I/usr/include -I/usr/include/cairo -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/pixman-1 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/lib/ruby/1.8/i486-linux -DSHOES_GTK -fPIC -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/pixman-1 shoes/http/curl.c
gcc -o dist/libshoes.so shoes/app.o shoes/ruby.o shoes/world.o shoes/canvas.o shoes/effects.o shoes/internal.o shoes/image.o shoes/native/gtk.o shoes/http/curl.o -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 -lcurl -lgssapi_krb5 -fPIC -shared -lruby1.8 -lpng -lcairo -lpangocairo-1.0 -lungif -ljpeg -lrt -L/usr/lib -lcairo -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0
gcc -I. -O -c -obin/main.o -I/usr/include -I/usr/include/cairo -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/pixman-1 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/lib/ruby/1.8/i486-linux -DSHOES_GTK -fPIC -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/pixman-1 bin/main.c
gcc -Ldist -o dist/shoes-bin bin/main.o -lruby1.8 -lpng -lcairo -lpangocairo-1.0 -lungif -ljpeg -lrt -L/usr/lib -lcairo -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 -lshoes -L. -Wl,-Bsymbolic-functions -rdynamic -Wl,-export-dynamic
echo 'LD_LIBRARY_PATH=$APPPATH $APPPATH/shoes-bin "$@"' >> dist/shoes
strip -x dist/*.so.*
strip -x dist/*.so
qrush@q-laptop ~/S/shoes> dist/shoes
fish: Failed to execute process “dist/shoes”
execve: Exec format error
fish: Backtrace:
fish [0x8073e42]
fish [0x8056fc5]
fish [0x8057f89]
fish [0x80625e3]
fish [0x8065a0b]
fish [0x80675e0]
fish [0x80798f5]
/lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe0) [0xb7d9b450]
fish [0x804a761]
fish: Job 1, “dist/shoes” terminated by signal SIGINT (Quit request from job control (^C))
qrush@q-laptop ~/S/shoes> dist/shoes-bin
dist/shoes-bin: error while loading shared libraries: libshoes.so: cannot open shared object file: No such file or directory
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment