librelist archives

« back to archive

Building Shoes from Github on Snow Leopard with Homebrew providing the dependencies

Building Shoes from Github on Snow Leopard with Homebrew providing the dependencies

From:
Chris Patti
Date:
2011-06-27 @ 19:18
Folks;

I'm trying to build shoes using Homebrew to provide most of the needed
dependencies, I think this will make it much easier to get started.

I'm seeing the following error though, maybe it's a missing
dependency, but I'm not sure.  Can anyone offer any clues as to what
I'm missing?

Thanks!
-Chris
---
[14:32][admin@Chris-Patti:~/src/shoes(develop)]$ rake
(in /Users/admin/src/shoes)
rm -rf dist
mkdir -p dist
gcc -I. -c -oshoes/app.o -Wall -I/usr/include -D_REENTRANT
-I/usr/local/Cellar/cairo/1.10.2/include/cairo
-I/usr/local/Cellar/glib/2.28.7/include/glib-2.0
-I/usr/local/Cellar/glib/2.28.7/lib/glib-2.0/include
-I/usr/local/Cellar/gettext/0.18.1.1/include
-I/usr/local/Cellar/glib/2.28.7/include
-I/usr/local/Cellar/pixman/0.22.0/include/pixman-1 -I/usr/X11/include
-I/usr/X11/include/freetype2 -I/usr/X11/include/libpng12 -D_REENTRANT
-I/usr/local/Cellar/pango/1.28.4/include/pango-1.0
-I/usr/local/Cellar/glib/2.28.7/include/glib-2.0
-I/usr/local/Cellar/glib/2.28.7/lib/glib-2.0/include
-I/usr/local/Cellar/gettext/0.18.1.1/include
-I/usr/local/Cellar/glib/2.28.7/include
-I/usr/local/Cellar/ruby/1.9.2-p180/lib/ruby/1.9.1/x86_64-darwin10.6.0
-I/usr/local/Cellar/ruby/1.9.2-p180/include/ruby-1.9.1
-I/usr/local/Cellar/ruby/1.9.2-p180/include/ruby-1.9.1/x86_64-darwin10.6.0
-O  -DRUBY_1_9 -DSHOES_QUARTZ -Wall -Wstrict-prototypes
-Wmissing-prototypes -Wmissing-declarations -Wredundant-decls
-fpascal-strings -O3 -march=core2 -msse4.1 -w -pipe -fno-common -x
objective-c -fobjc-exceptions -isysroot /Developer/SDKs/MacOSX10.6.sdk
-arch x86_64 shoes/app.c
gcc -I. -c -oshoes/canvas.o -Wall -I/usr/include -D_REENTRANT
-I/usr/local/Cellar/cairo/1.10.2/include/cairo
-I/usr/local/Cellar/glib/2.28.7/include/glib-2.0
-I/usr/local/Cellar/glib/2.28.7/lib/glib-2.0/include
-I/usr/local/Cellar/gettext/0.18.1.1/include
-I/usr/local/Cellar/glib/2.28.7/include
-I/usr/local/Cellar/pixman/0.22.0/include/pixman-1 -I/usr/X11/include
-I/usr/X11/include/freetype2 -I/usr/X11/include/libpng12 -D_REENTRANT
-I/usr/local/Cellar/pango/1.28.4/include/pango-1.0
-I/usr/local/Cellar/glib/2.28.7/include/glib-2.0
-I/usr/local/Cellar/glib/2.28.7/lib/glib-2.0/include
-I/usr/local/Cellar/gettext/0.18.1.1/include
-I/usr/local/Cellar/glib/2.28.7/include
-I/usr/local/Cellar/ruby/1.9.2-p180/lib/ruby/1.9.1/x86_64-darwin10.6.0
-I/usr/local/Cellar/ruby/1.9.2-p180/include/ruby-1.9.1
-I/usr/local/Cellar/ruby/1.9.2-p180/include/ruby-1.9.1/x86_64-darwin10.6.0
-O  -DRUBY_1_9 -DSHOES_QUARTZ -Wall -Wstrict-prototypes
-Wmissing-prototypes -Wmissing-declarations -Wredundant-decls
-fpascal-strings -O3 -march=core2 -msse4.1 -w -pipe -fno-common -x
objective-c -fobjc-exceptions -isysroot /Developer/SDKs/MacOSX10.6.sdk
-arch x86_64 shoes/canvas.c
gcc -I. -c -oshoes/effects.o -Wall -I/usr/include -D_REENTRANT
-I/usr/local/Cellar/cairo/1.10.2/include/cairo
-I/usr/local/Cellar/glib/2.28.7/include/glib-2.0
-I/usr/local/Cellar/glib/2.28.7/lib/glib-2.0/include
-I/usr/local/Cellar/gettext/0.18.1.1/include
-I/usr/local/Cellar/glib/2.28.7/include
-I/usr/local/Cellar/pixman/0.22.0/include/pixman-1 -I/usr/X11/include
-I/usr/X11/include/freetype2 -I/usr/X11/include/libpng12 -D_REENTRANT
-I/usr/local/Cellar/pango/1.28.4/include/pango-1.0
-I/usr/local/Cellar/glib/2.28.7/include/glib-2.0
-I/usr/local/Cellar/glib/2.28.7/lib/glib-2.0/include
-I/usr/local/Cellar/gettext/0.18.1.1/include
-I/usr/local/Cellar/glib/2.28.7/include
-I/usr/local/Cellar/ruby/1.9.2-p180/lib/ruby/1.9.1/x86_64-darwin10.6.0
-I/usr/local/Cellar/ruby/1.9.2-p180/include/ruby-1.9.1
-I/usr/local/Cellar/ruby/1.9.2-p180/include/ruby-1.9.1/x86_64-darwin10.6.0
-O  -DRUBY_1_9 -DSHOES_QUARTZ -Wall -Wstrict-prototypes
-Wmissing-prototypes -Wmissing-declarations -Wredundant-decls
-fpascal-strings -O3 -march=core2 -msse4.1 -w -pipe -fno-common -x
objective-c -fobjc-exceptions -isysroot /Developer/SDKs/MacOSX10.6.sdk
-arch x86_64 shoes/effects.c
gcc -I. -c -oshoes/image.o -Wall -I/usr/include -D_REENTRANT
-I/usr/local/Cellar/cairo/1.10.2/include/cairo
-I/usr/local/Cellar/glib/2.28.7/include/glib-2.0
-I/usr/local/Cellar/glib/2.28.7/lib/glib-2.0/include
-I/usr/local/Cellar/gettext/0.18.1.1/include
-I/usr/local/Cellar/glib/2.28.7/include
-I/usr/local/Cellar/pixman/0.22.0/include/pixman-1 -I/usr/X11/include
-I/usr/X11/include/freetype2 -I/usr/X11/include/libpng12 -D_REENTRANT
-I/usr/local/Cellar/pango/1.28.4/include/pango-1.0
-I/usr/local/Cellar/glib/2.28.7/include/glib-2.0
-I/usr/local/Cellar/glib/2.28.7/lib/glib-2.0/include
-I/usr/local/Cellar/gettext/0.18.1.1/include
-I/usr/local/Cellar/glib/2.28.7/include
-I/usr/local/Cellar/ruby/1.9.2-p180/lib/ruby/1.9.1/x86_64-darwin10.6.0
-I/usr/local/Cellar/ruby/1.9.2-p180/include/ruby-1.9.1
-I/usr/local/Cellar/ruby/1.9.2-p180/include/ruby-1.9.1/x86_64-darwin10.6.0
-O  -DRUBY_1_9 -DSHOES_QUARTZ -Wall -Wstrict-prototypes
-Wmissing-prototypes -Wmissing-declarations -Wredundant-decls
-fpascal-strings -O3 -march=core2 -msse4.1 -w -pipe -fno-common -x
objective-c -fobjc-exceptions -isysroot /Developer/SDKs/MacOSX10.6.sdk
-arch x86_64 shoes/image.c
shoes/image.c:22:21: error: jpeglib.h: No such file or directory
shoes/image.c:23:20: error: jerror.h: No such file or directory
shoes/image.c:31:21: error: gif_lib.h: No such file or directory
shoes/image.c: In function ‘shoes_surface_create_from_gif’:
shoes/image.c:282: error: ‘GifFileType’ undeclared (first use in this function)
shoes/image.c:282: error: (Each undeclared identifier is reported only once
shoes/image.c:282: error: for each function it appears in.)
shoes/image.c:282: error: ‘gif’ undeclared (first use in this function)
shoes/image.c:284: error: ‘GifPixelType’ undeclared (first use in this function)
shoes/image.c:284: error: ‘rows’ undeclared (first use in this function)
shoes/image.c:285: error: ‘GifRecordType’ undeclared (first use in
this function)
shoes/image.c:285: error: expected ‘;’ before ‘rec’
shoes/image.c:286: error: ‘ColorMapObject’ undeclared (first use in
this function)
shoes/image.c:286: error: ‘cmap’ undeclared (first use in this function)
shoes/image.c:299: error: ‘rec’ undeclared (first use in this function)
shoes/image.c:299: error: ‘GIF_ERROR’ undeclared (first use in this function)
shoes/image.c:300: error: ‘TERMINATE_RECORD_TYPE’ undeclared (first
use in this function)
shoes/image.c:301: error: ‘IMAGE_DESC_RECORD_TYPE’ undeclared (first
use in this function)
shoes/image.c:321: error: expected expression before ‘)’ token
shoes/image.c:325: error: expected expression before ‘)’ token
shoes/image.c:325: error: too few arguments to function ‘__builtin___memset_chk’
shoes/image.c:325: error: expected expression before ‘)’ token
shoes/image.c:329: error: expected expression before ‘)’ token
shoes/image.c:349: error: ‘EXTENSION_RECORD_TYPE’ undeclared (first
use in this function)
shoes/image.c:352: error: ‘GifByteType’ undeclared (first use in this function)
shoes/image.c:352: error: ‘ext’ undeclared (first use in this function)
shoes/image.c: At top level:
shoes/image.c:419: error: field ‘pub’ has incomplete type
shoes/image.c:427: error: expected specifier-qualifier-list before ‘JOCTET’
shoes/image.c:432: error: field ‘pub’ has incomplete type
shoes/image.c:442: error: expected ‘)’ before ‘cinfo’
shoes/image.c:447: error: expected ‘)’ before ‘cinfo’
shoes/image.c:455: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
‘__attribute__’ before ‘shoes_jpeg_fill_input_buffer’
shoes/image.c:485: error: expected ‘)’ before ‘cinfo’
shoes/image.c:505: error: expected ‘)’ before ‘cinfo’
shoes/image.c:534: error: expected ‘)’ before ‘cinfo’
shoes/image.c: In function ‘shoes_surface_create_from_jpeg’:
shoes/image.c:547: error: storage size of ‘cinfo’ isn’t known
shoes/image.c:561: error: ‘shoes_jpeg_fatal’ undeclared (first use in
this function)
rake aborted!
Command failed with status (1): [gcc -I. -c -oshoes/image.o -Wall -I/usr/in...]
/usr/local/Cellar/ruby/1.9.2-p180/lib/ruby/1.9.1/rake.rb:993:in `block in sh'
/usr/local/Cellar/ruby/1.9.2-p180/lib/ruby/1.9.1/rake.rb:1008:in `call'
/usr/local/Cellar/ruby/1.9.2-p180/lib/ruby/1.9.1/rake.rb:1008:in `sh'
/usr/local/Cellar/ruby/1.9.2-p180/lib/ruby/1.9.1/rake.rb:1092:in `sh'
/Users/admin/src/shoes/make/make.rb:28:in `cc'
/Users/admin/src/shoes/Rakefile:125:in `block in <top (required)>'
/usr/local/Cellar/ruby/1.9.2-p180/lib/ruby/1.9.1/rake.rb:632:in `call'
/usr/local/Cellar/ruby/1.9.2-p180/lib/ruby/1.9.1/rake.rb:632:in `block
in execute'
/usr/local/Cellar/ruby/1.9.2-p180/lib/ruby/1.9.1/rake.rb:629:in `each'
/usr/local/Cellar/ruby/1.9.2-p180/lib/ruby/1.9.1/rake.rb:629:in `execute'
/usr/local/Cellar/ruby/1.9.2-p180/lib/ruby/1.9.1/rake.rb:595:in `block
in invoke_with_call_chain'
/usr/local/Cellar/ruby/1.9.2-p180/lib/ruby/1.9.1/monitor.rb:201:in
`mon_synchronize'
/usr/local/Cellar/ruby/1.9.2-p180/lib/ruby/1.9.1/rake.rb:588:in
`invoke_with_call_chain'
/usr/local/Cellar/ruby/1.9.2-p180/lib/ruby/1.9.1/rake.rb:605:in `block
in invoke_prerequisites'
/usr/local/Cellar/ruby/1.9.2-p180/lib/ruby/1.9.1/rake.rb:602:in `each'
/usr/local/Cellar/ruby/1.9.2-p180/lib/ruby/1.9.1/rake.rb:602:in
`invoke_prerequisites'
/usr/local/Cellar/ruby/1.9.2-p180/lib/ruby/1.9.1/rake.rb:594:in `block
in invoke_with_call_chain'
/usr/local/Cellar/ruby/1.9.2-p180/lib/ruby/1.9.1/monitor.rb:201:in
`mon_synchronize'
/usr/local/Cellar/ruby/1.9.2-p180/lib/ruby/1.9.1/rake.rb:588:in
`invoke_with_call_chain'
/usr/local/Cellar/ruby/1.9.2-p180/lib/ruby/1.9.1/rake.rb:605:in `block
in invoke_prerequisites'
/usr/local/Cellar/ruby/1.9.2-p180/lib/ruby/1.9.1/rake.rb:602:in `each'
/usr/local/Cellar/ruby/1.9.2-p180/lib/ruby/1.9.1/rake.rb:602:in
`invoke_prerequisites'
/usr/local/Cellar/ruby/1.9.2-p180/lib/ruby/1.9.1/rake.rb:594:in `block
in invoke_with_call_chain'
/usr/local/Cellar/ruby/1.9.2-p180/lib/ruby/1.9.1/monitor.rb:201:in
`mon_synchronize'
/usr/local/Cellar/ruby/1.9.2-p180/lib/ruby/1.9.1/rake.rb:588:in
`invoke_with_call_chain'
/usr/local/Cellar/ruby/1.9.2-p180/lib/ruby/1.9.1/rake.rb:605:in `block
in invoke_prerequisites'
/usr/local/Cellar/ruby/1.9.2-p180/lib/ruby/1.9.1/rake.rb:602:in `each'
/usr/local/Cellar/ruby/1.9.2-p180/lib/ruby/1.9.1/rake.rb:602:in
`invoke_prerequisites'
/usr/local/Cellar/ruby/1.9.2-p180/lib/ruby/1.9.1/rake.rb:594:in `block
in invoke_with_call_chain'
/usr/local/Cellar/ruby/1.9.2-p180/lib/ruby/1.9.1/monitor.rb:201:in
`mon_synchronize'
/usr/local/Cellar/ruby/1.9.2-p180/lib/ruby/1.9.1/rake.rb:588:in
`invoke_with_call_chain'
/usr/local/Cellar/ruby/1.9.2-p180/lib/ruby/1.9.1/rake.rb:605:in `block
in invoke_prerequisites'
/usr/local/Cellar/ruby/1.9.2-p180/lib/ruby/1.9.1/rake.rb:602:in `each'
/usr/local/Cellar/ruby/1.9.2-p180/lib/ruby/1.9.1/rake.rb:602:in
`invoke_prerequisites'
/usr/local/Cellar/ruby/1.9.2-p180/lib/ruby/1.9.1/rake.rb:594:in `block
in invoke_with_call_chain'
/usr/local/Cellar/ruby/1.9.2-p180/lib/ruby/1.9.1/monitor.rb:201:in
`mon_synchronize'
/usr/local/Cellar/ruby/1.9.2-p180/lib/ruby/1.9.1/rake.rb:588:in
`invoke_with_call_chain'
/usr/local/Cellar/ruby/1.9.2-p180/lib/ruby/1.9.1/rake.rb:605:in `block
in invoke_prerequisites'
/usr/local/Cellar/ruby/1.9.2-p180/lib/ruby/1.9.1/rake.rb:602:in `each'
/usr/local/Cellar/ruby/1.9.2-p180/lib/ruby/1.9.1/rake.rb:602:in
`invoke_prerequisites'
/usr/local/Cellar/ruby/1.9.2-p180/lib/ruby/1.9.1/rake.rb:594:in `block
in invoke_with_call_chain'
/usr/local/Cellar/ruby/1.9.2-p180/lib/ruby/1.9.1/monitor.rb:201:in
`mon_synchronize'
/usr/local/Cellar/ruby/1.9.2-p180/lib/ruby/1.9.1/rake.rb:588:in
`invoke_with_call_chain'
/usr/local/Cellar/ruby/1.9.2-p180/lib/ruby/1.9.1/rake.rb:581:in `invoke'
/usr/local/Cellar/ruby/1.9.2-p180/lib/ruby/1.9.1/rake.rb:2041:in `invoke_task'
/usr/local/Cellar/ruby/1.9.2-p180/lib/ruby/1.9.1/rake.rb:2019:in
`block (2 levels) in top_level'
/usr/local/Cellar/ruby/1.9.2-p180/lib/ruby/1.9.1/rake.rb:2019:in `each'
/usr/local/Cellar/ruby/1.9.2-p180/lib/ruby/1.9.1/rake.rb:2019:in
`block in top_level'
/usr/local/Cellar/ruby/1.9.2-p180/lib/ruby/1.9.1/rake.rb:2058:in
`standard_exception_handling'
/usr/local/Cellar/ruby/1.9.2-p180/lib/ruby/1.9.1/rake.rb:2013:in `top_level'
/usr/local/Cellar/ruby/1.9.2-p180/lib/ruby/1.9.1/rake.rb:1992:in `run'
/usr/local/bin/rake:31:in `<main>'


-- 
Christopher Patti - Geek At Large | GTalk: cpatti@gmail.com | AIM:
chrisfeohpatti | P: (260) 54PATTI
"Technology challenges art, art inspires technology." - John Lasseter, Pixar

Re: [shoes] Building Shoes from Github on Snow Leopard with Homebrew providing the dependencies

From:
Cecil Coupe
Date:
2011-06-27 @ 20:29
From your error messages, you're missing 3 include files. I have no idea
why they are missing. 

On Mon, 2011-06-27 at 15:18 -0400, Chris Patti wrote:
> shoes/image.c:22:21: error: jpeglib.h: No such file or directory
> shoes/image.c:23:20: error: jerror.h: No such file or directory
> shoes/image.c:31:21: error: gif_lib.h: No such file or directory
> 
> 

Re: [shoes] Building Shoes from Github on Snow Leopard with Homebrew providing the dependencies

From:
Chris Patti
Date:
2011-06-27 @ 20:30
Thanks.

Do you know what they're from though? Are they part of Shoes? Or part
of a third party dependency?


On Mon, Jun 27, 2011 at 4:29 PM, Cecil Coupe <ccoupe@cableone.net> wrote:
> >From your error messages, you're missing 3 include files. I have no idea
> why they are missing.
>
> On Mon, 2011-06-27 at 15:18 -0400, Chris Patti wrote:
>> shoes/image.c:22:21: error: jpeglib.h: No such file or directory
>> shoes/image.c:23:20: error: jerror.h: No such file or directory
>> shoes/image.c:31:21: error: gif_lib.h: No such file or directory
>>
>>
>
>



-- 
Christopher Patti - Geek At Large | GTalk: cpatti@gmail.com | AIM:
chrisfeohpatti | P: (260) 54PATTI
"Technology challenges art, art inspires technology." - John Lasseter, Pixar

Re: [shoes] Building Shoes from Github on Snow Leopard with Homebrew providing the dependencies

From:
Steve Klabnik
Date:
2011-06-28 @ 21:53
Hey Chris-

You caught the IRC channel on the weekend I was moving. :)

> I'm trying to build shoes using Homebrew to provide most of the needed
dependencies, I think this will make it much easier to get started.

100% agree. This would be awesome.

This error says that you don't have libjpeg installed. Maybe try 'brew
install libjpeg'-ing?

Re: [shoes] Building Shoes from Github on Snow Leopard with Homebrew providing the dependencies

From:
Eric Watson
Date:
2011-06-28 @ 23:31
If I remember right, homebrew doesn't include a recipe for libjpeg because
it's bundled with OS X. In the X11 directory, maybe?

There are a couple of libs like this. We'll have to figure out a workaround
or create custom recipes.

On Jun 28, 2011, at 5:54 PM, Steve Klabnik <steve@steveklabnik.com> wrote:

Hey Chris-

You caught the IRC channel on the weekend I was moving. :)

> I'm trying to build shoes using Homebrew to provide most of the needed
dependencies, I think this will make it much easier to get started.

100% agree. This would be awesome.

This error says that you don't have libjpeg installed. Maybe try 'brew
install libjpeg'-ing?

Re: [shoes] Building Shoes from Github on Snow Leopard with Homebrew providing the dependencies

From:
Cecil Coupe
Date:
2011-06-27 @ 20:54
You probably don't have the developer library/includes/package for jpg
files and gif. Those are system files and not Shoes. I don't remember
enough OSX to help beyond that.

--Cecil

On Mon, 2011-06-27 at 16:30 -0400, Chris Patti wrote:
> Thanks.
> 
> Do you know what they're from though? Are they part of Shoes? Or part
> of a third party dependency?
> 
> 
> On Mon, Jun 27, 2011 at 4:29 PM, Cecil Coupe <ccoupe@cableone.net> wrote:
> > >From your error messages, you're missing 3 include files. I have no idea
> > why they are missing.
> >
> > On Mon, 2011-06-27 at 15:18 -0400, Chris Patti wrote:
> >> shoes/image.c:22:21: error: jpeglib.h: No such file or directory
> >> shoes/image.c:23:20: error: jerror.h: No such file or directory
> >> shoes/image.c:31:21: error: gif_lib.h: No such file or directory
> >>
> >>
> >
> >
> 
> 
>