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

Ramie Blatt rblatt at warmlyyours.com
Tue Oct 23 20:59:21 EDT 2007


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



On Oct 23, 2007, at 2:16 PM, Charlie Savage wrote:

>> I tried building GEOS with ruby enabled using the hourly svn  
>> snapshot yesterday and get the same "make" issue I get with the  
>> geos-3.0.0rc1,2 and 3 tarballs, namely:
>> "geos_wrap.cxx:1702: error: invalid conversion from 'size_t*' to  
>> 'unsigned int*"
>
> What's the line of code?
>
>
>> Strangely, the geos-3.0.0rc4.tar.bz2 release builds fine, but then  
>> I can't access GEOS in ruby, getting a "MissingSourceFile: no such  
>> file to load -- geos" whenever 'require 'geos' is encountered  
>> (though the library files seem to be where they should).
>
> Open a command line.  Go to that directory.  Type "irb"  Then try  
> to load geos.  Does that work?
>
> Charlie
> _______________________________________________
> geos-devel mailing list
> geos-devel at geos.refractions.net
> http://geos.refractions.net/mailman/listinfo/geos-devel

Ramie Blatt
rblatt at warmlyyours.com



-------------- next part --------------
Skipped content of type multipart/mixed


More information about the geos-devel mailing list