Headers are not found in build step (Mac OS 10.6) #9

Closed
akidee opened this Issue Mar 11, 2012 · 4 comments

Comments

Projects
None yet
2 participants
Collaborator

akidee commented Mar 11, 2012

$ node -v
v0.6.12

Andis-MacBook:node-geos andi$ node-waf configure build
Checking for program g++ or c++ : /usr/bin/g++
Checking for program cpp : /usr/bin/cpp
Checking for program ar : /usr/bin/ar
Checking for program ranlib : /usr/bin/ranlib
Checking for g++ : ok
Checking for node path : ok /Users/andi/.node_libraries
Checking for node prefix : ok /usr/local
Checking for program geos-config : /opt/local/bin/geos-config
'configure' finished successfully (0.186s)
Waf: Entering directory /Users/andi/.node_libraries/node-geos/build' [1/8] cxx: src/binding.cpp -> build/Release/src/binding_1.o [2/8] cxx: src/geometry.cpp -> build/Release/src/geometry_1.o In file included from ../src/geometry.cpp:1: ../src/geometry.hpp:4:32: error: geos/geom/Geometry.h: No such file or directory ../src/geometry.hpp:5:37: error: geos/util/GEOSException.h: No such file or directory ... ... Waf: Leaving directory/Users/andi/.node_libraries/node-geos/build'
Build failed:
-> task failed (err #1):
{task: cxx binding.cpp -> binding_1.o}
-> task failed (err #1):
{task: cxx geometry.cpp -> geometry_1.o}

The headers for v3.3.1 are located in /opt/local/include/geos

Owner

kashif commented Mar 11, 2012

Could you kindly send me the output of node-waf -v configure build? Thanks!

Collaborator

akidee commented Mar 11, 2012

http://pastebin.com/vQ71V3v5

Let me guess that '-I-I/opt/local/include' is an issue.

Owner

kashif commented Mar 11, 2012

Indeed! Fix coming now. Thanks!

@kashif kashif added a commit that referenced this issue Mar 11, 2012

@kashif kashif Fix for issue #9.
The geos_config `--cflags` was returning a `-I /usr/...` which was being
appended to a `-I` in `CPPPATH_GEOS`. So using `--includes` now.
af1cbc2
Collaborator

akidee commented Mar 12, 2012

Much appreciated. Thanks. There are just some issues left: #12

akidee closed this Mar 12, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment