-
Notifications
You must be signed in to change notification settings - Fork 412
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
node.h: No such file or directory compilation terminated. #225
Comments
Hi! You might have |
Thanks man, Get the following from cmake so I assume its found INFO - Target arch is i586 -- Configuring done Tried echo $NODE_DIR but not getting anything back however. Looking to use node a little so would obviously like to keep. |
|
The mraa has been built successfully but I'm not sure if it has had its node bindings configured correctly, how can i verify this? Tried the above when running cmake and still having the same error |
You can check your Can you please try running It's very likely that your node binary is there but the includes are somewhere else or missing, in fact, it's a rather known issue when using Ubilinux (sorry I just noticed now that you're not using Yocto). See this MRAA issue. I have no clue if Ubilinux provides Otherwise, my suggestion would be to start with node from scratch, and build from sources for your distro. And if your SWIG version is less than 3 build that too. |
Did you ever resolve this? I plan to close the question as our node builds have changed quite a bit in the last months... |
Hi,
You may notice that mraa that compiled like a charm is also installed in default /usr/local, following your advice I tried For me the answer solved the question! Many thanks |
Closing as newer versions of the library will detect and use Node.js properly thus this should no longer be an issue. Just remember that you also need the Node.js headers, as the binary alone is not enough to build the bindings. |
Hi there, following the build guide on my device when I'm met with the following error when trying to install the individual driver at the section? Any ideas?
root@ubilinux:/home/edison/upm-master/build# make
[ 0%] Built target _pyupm_joystick12
[ 0%] Built target joystick12
[ 0%] Building CXX object src/joystick12/CMakeFiles/jsupm_joystick12.dir/jsupm_joystick12JAVASCRIPT_wrap.cxx.o
/home/edison/upm-master/build/src/joystick12/jsupm_joystick12JAVASCRIPT_wrap.cxx:156:18: fatal error: node.h: No such file or directory
compilation terminated.
make[2]: *** [src/joystick12/CMakeFiles/jsupm_joystick12.dir/jsupm_joystick12JAVASCRIPT_wrap.cxx.o] Error 1
make[1]: *** [src/joystick12/CMakeFiles/jsupm_joystick12.dir/all] Error 2
make: *** [all] Error 2
The text was updated successfully, but these errors were encountered: