[geos-devel] Can't build geos with ruby swig bindings on Mac OS

Ramie Blatt rblatt at warmlyyours.com
Wed Oct 24 14:02:17 EDT 2007


Hi Charlie,

I've built both from the hourly snapshot two days ago and from the  
HEAD svn version last night.

 From the hourly snapshot I get the same "geos_wrap.cxx: error:  
invalid conversion from 'size_t*' to 'unsigned int*'" error that I  
get with geos-3.0.0rc1,2 and 3.

 From the HEAD svn version (r2029) it won't build because it can't  
find "geos_c.h" in line 1612 of geos_wrap.cxx. After I remedied that,  
it built OK, but then again the *same* issue of "LoadError: no such  
file to load -- geos" error when I typed "require 'geos'" in the irb  
console. This acts just like the geos-3.0.0rc4 issue.

Charlie, have you (or anyone out there) successfully built a geos-3  
release with --enable-ruby set on Mac OS? If so, can you send me a  
log of the whole build process so I can troubleshoot my own issues?

Thanks,
Ramie


On Oct 23, 2007, at 8:46 PM, Charlie Savage wrote:

> Ramie,
>
> > Hi Charlie,
> >
> > After (a seemingly successful) build of geos-3.0.0rc4, I did cd  
> to the
> > both the "/usr/local/src/geos-3.0.0rc4/" build directory and the
> > "/usr/local/lib/ruby/site_ruby/1.8/i686-darwin8.9.1/" directory  
> (which
> > contains the resulting geos.a, geos.la, and geos.so files) and  
> try irb
> > and got the "LoadError: no such file to load -- geos" error when  
> I typed
> > "require 'geos'" in the irb console.
> >
>
> Try using the head version from SVN or a snapshot build.  I made a  
> large number of changes to the SWIG bindings after RC4 (see http:// 
> geos.refractions.net/ro/SVN.txt).
>
> Charlie
>
>

> From: Ramie Blatt
> Date: October 23, 2007 6:59:21 PM MDT
> Subject: Re: [geos-devel] Can't build geos with ruby swig bindings  
> on Mac OS
>
> Hi Charlie,
>
> After (a seemingly successful) build of geos-3.0.0rc4, I did cd to  
> the both the "/usr/local/src/geos-3.0.0rc4/" build directory and  
> the "/usr/local/lib/ruby/site_ruby/1.8/i686-darwin8.9.1/" directory  
> (which contains the resulting geos.a, geos.la, and geos.so files)  
> and try irb and got the "LoadError: no such file to load -- geos"  
> error when I typed "require 'geos'" in the irb console.
>
> I'm attaching a full terminal log of the rc4 build process and the  
> irb sessions called "geos-3.0.0rc4_err.txt"
>
> A partial trace for the make error on the geos-3.0.0rc1,2 and 3  
> tarballs is below. and I attach a full terminal log for the build  
> process on rc3 called "geos-3.0.0rc3_err.txt".
>
> ----------------------------------------------
>  g++ -DHAVE_CONFIG_H -I. -I. -I../../source/headers -I../../source/ 
> headers/geos -I/usr/local/lib/ruby/1.8/i686-darwin8.9.1 -I../../ 
> capi -g -O2 -DGEOS_INLINE -Wall -ansi -pedantic -Wno-long-long -MT  
> geos_la-geos_wrap.lo -MD -MP -MF .deps/geos_la-geos_wrap.Tpo -c  
> geos_wrap.cxx  -fno-common -DPIC -o .libs/geos_la-geos_wrap.o
> geos_wrap.cxx: In function 'void checkCoordSeqBounds 
> (GEOSCoordSeq_t*, size_t)':
> geos_wrap.cxx:1702: error: invalid conversion from 'size_t*' to  
> 'unsigned int*'
> geos_wrap.cxx: In function 'int GeosCoordinateSequence_getSize 
> (GeosCoordinateSequence*)':
> geos_wrap.cxx:1844: error: invalid conversion from 'size_t*' to  
> 'unsigned int*'
> geos_wrap.cxx: In function 'int GeosCoordinateSequence_getDimensions 
> (GeosCoordinateSequence*)':
> geos_wrap.cxx:1850: error: invalid conversion from 'size_t*' to  
> 'unsigned int*'
> make[4]: *** [geos_la-geos_wrap.lo] Error 1
> make[3]: *** [all-recursive] Error 1
> make[2]: *** [all] Error 2
> make[1]: *** [all-recursive] Error 1
> make: *** [all-recursive] Error 1
> ----------------------------------------------
>
> Many thanks for your help!
> Ramie




-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/geos-devel/attachments/20071024/e401e19e/attachment.html


More information about the geos-devel mailing list