Skip to content

Mac OS 10.4.6 npm installation error: unknown type name 'constexpr' #62

@tom-longmeadow

Description

@tom-longmeadow

Hello. I have installed pocketsphinx and have successfully run the hello_ps.c example. I am now trying to get the npm version installed. When installing I get an error: unknown type name 'constexpr'. I have looked up reasons for this error and they suggest compiling with c11, but i am unsure how to set this up for the npm installation.

relevant part of the build:

[ 16%] Generating swig bindings
Scanning dependencies of target SphinxBase
[ 33%] Building CXX object sphinxbase/CMakeFiles/SphinxBase.dir/sb.cpp.o
In file included from /Users/T/m/node_modules/pocketsphinx/build/sphinxbase/sb.cpp:172:
In file included from /Users/T/.cmake-js/node-x64/v12.18.0/include/node/node.h:67:
In file included from /Users/T/.cmake-js/node-x64/v12.18.0/include/node/v8.h:27:
/Users/T/.cmake-js/node-x64/v12.18.0/include/node/v8-internal.h:51:1: error: unknown type name 'constexpr'
constexpr intptr_t kIntptrAllBitsSet = intptr_t{-1};

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions