Skip to content

Compilation error #11

Open
Open
@mimooh

Description

@mimooh

First thing is I cannot find /usr/include/node/node.h. Which I fix by adding this line to makefile:
CPPFLAGS+=-I/usr/include/node/

make[1]: Leaving directory '/home/mimooh/recastCLI.js-nodejs/recast'
===> Building main.a:
make[1]: Entering directory '/home/mimooh/recastCLI.js-nodejs/main'
CC build.o
CC port.o
port.cpp:3:18: fatal error: node.h: No such file or directory
compilation terminated.
: recipe for target 'port.o' failed
make[1]: *** [port.o] Error 1
make[1]: Leaving directory '/home/mimooh/recastCLI.js-nodejs/main'
makefile:13: recipe for target 'main' failed
make: *** [main] Error 2

Second thing is I get this compile error:

recastCLI.js-nodejs$ make
===> Building recast.a:
make[1]: Entering directory '/home/mimooh/recastCLI.js-nodejs/recast'
CC RecastAlloc.o
CC RecastMeshDetail.o
CC RecastRasterization.o
CC RecastLayers.o
CC RecastFilter.o
CC RecastMesh.o
CC ChunkyTriMesh.o
CC InputGeom.o
CC RecastContour.o
CC MeshLoaderObj.o
CC RecastAssert.o
CC RecastRegion.o
CC Recast.o
CC RecastArea.o
AR all
make[1]: Leaving directory '/home/mimooh/recastCLI.js-nodejs/recast'
===> Building main.a:
make[1]: Entering directory '/home/mimooh/recastCLI.js-nodejs/main'
CC build.o
CC port.o
CC main.o
main.cpp: In function 'int main(int, const char**)':
main.cpp:49:236: error: cannot convert 'const char*' to 'float' for argument '1' to 'char* build(float, float, float, float, float, float, float, float, float, float, float, float, float)'
_agentMaxClimp, c_agentMaxSlope, c_regionMinSize, c_regionMergeSize, c_edgeMaxLen, c_edgeMaxError, c_vertsPerPoly, c_detailSampleDist, c_detailSampleMaxErro);
^
: recipe for target 'main.o' failed
make[1]: *** [main.o] Error 1
make[1]: Leaving directory '/home/mimooh/recastCLI.js-nodejs/main'
makefile:13: recipe for target 'main' failed
make: *** [main] Error 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateThis issue or pull request already exists

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions