-
Notifications
You must be signed in to change notification settings - Fork 46
Description
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};