kashif / node-geos

GEOS (Geometry Engine) bindings for Node.js
MIT License
57 stars 21 forks source link

create a gyp file #11

Closed booo closed 12 years ago

booo commented 12 years ago

The build system is going to change in the new node version. We should add a xyz.gpy file to the project.

Good starting point is: https://github.com/TooTallNate/node-gyp

kashif commented 12 years ago

but it does not work yet:

$ node-gyp configure build                                                                                                                                system master@55a6f2e ✗
gyp info it worked if it ends with ok
gyp info using node-gyp@0.5.7
gyp info using node@0.8.1
gyp info spawn python
gyp info spawn args [ '/Users/kashif/.node-gyp/0.8.1/tools/gyp_addon',
gyp info spawn args   'binding.gyp',
gyp info spawn args   '-I/Users/kashif/node/node-geos/build/config.gypi',
gyp info spawn args   '-f',
gyp info spawn args   'make' ]
gyp info spawn make
gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
  CXX(target) Release/obj.target/geos/src/cpp/binding.o
In file included from /usr/local/Cellar/geos/3.3.5/include/geos/geom/GeometryFactory.h:26,
                 from /usr/local/Cellar/geos/3.3.5/include/geos/io/WKTReader.h:26,
                 from ../src/cpp/wktreader.hpp:4,
                 from ../src/cpp/binding.cpp:2:
/usr/local/Cellar/geos/3.3.5/include/geos/geom/MultiPoint.h: In copy constructor ‘geos::geom::MultiPoint::MultiPoint(const geos::geom::MultiPoint&)’:
/usr/local/Cellar/geos/3.3.5/include/geos/geom/MultiPoint.h:112: warning: base class ‘class geos::geom::Puntal’ should be explicitly initialized in the copy constructor
  CXX(target) Release/obj.target/geos/src/cpp/geometry.o
In file included from ../src/cpp/geojsonwriter.hpp:21,
                 from ../src/cpp/geometry.hpp:7,
                 from ../src/cpp/geometry.cpp:1:
/usr/local/Cellar/geos/3.3.5/include/geos/geom/MultiPoint.h: In copy constructor ‘geos::geom::MultiPoint::MultiPoint(const geos::geom::MultiPoint&)’:
/usr/local/Cellar/geos/3.3.5/include/geos/geom/MultiPoint.h:112: warning: base class ‘class geos::geom::Puntal’ should be explicitly initialized in the copy constructor
../src/cpp/geometry.cpp: In static member function ‘static v8::Handle<v8::Value> Geometry::IsSimple(const v8::Arguments&)’:
../src/cpp/geometry.cpp:158: error: ‘exception’ was not declared in this scope
...
kashif commented 12 years ago

ok this 9291ca9d1795f17ef7d5ef2127734f031df2146d should fix the compile error on os x.