Skip to content
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

[Build]: fatal error: 'napi.h' file not found on Homebrew installation on Mac OS X #24300

Closed
2 tasks done
tobbi opened this issue Apr 29, 2024 · 4 comments
Closed
2 tasks done
Assignees
Labels
category: build OpenVINO cmake script / infra platform: macOS OpenVINO on macOS support_request

Comments

@tobbi
Copy link
Contributor

tobbi commented Apr 29, 2024

OpenVINO Version

openvino 2024.0.0

Operating System

macOS Systems for Intel CPU

Hardware Architecture

x86 (64 bits)

Target Platform

No response

Build issue description

I'm trying to update on my MacOS X 10.15 (Catalina) using homebrew. However, upon building, I keep getting an error that says that napi.h could not be found. I tried installing the node-addons-api using npm to no avail.

Build scrip or step-by-step to reproduce

openvino_build_logs.zip

Relevant log output

[ 62%] Building CXX object src/bindings/js/node/CMakeFiles/ov_node_addon.dir/src/node_output.cpp.o
cd /tmp/openvino-20240428-66266-2tymto/openvino-2024.0.0/build/src/bindings/js/node && /usr/local/Homebrew/Library/Homebrew/shims/mac/super/clang++ -DIE_BUILD_POSTFIX=\"\" -DIE_THREAD=IE_THREAD_TBB -DIN_OV_COMPONENT -DNAPI_VERSION=6 -DOV_BUILD_POSTFIX=\"\" -DOV_NATIVE_PARENT_PROJECT_ROOT_DIR=\"openvino-2024.0.0\" -DOV_THREAD=OV_THREAD_TBB -DTBB_PREVIEW_WAITING_FOR_WORKERS=1 -Dov_node_addon_EXPORTS -I/tmp/openvino-20240428-66266-2tymto/openvino-2024.0.0/build/_deps/node-api-headers-src/include -I/tmp/openvino-20240428-66266-2tymto/openvino-2024.0.0/build/_deps/node-addon-api-src -I/tmp/openvino-20240428-66266-2tymto/openvino-2024.0.0/src/bindings/js/node/.. -I/tmp/openvino-20240428-66266-2tymto/openvino-2024.0.0/src/core/include -I/tmp/openvino-20240428-66266-2tymto/openvino-2024.0.0/src/frontends/common/include -I/tmp/openvino-20240428-66266-2tymto/openvino-2024.0.0/src/inference/include -Wsuggest-override  -fsigned-char -ffunction-sections -fdata-sections -fdiagnostics-show-option -Wall -Wundef -Wmissing-declarations -Wno-missing-declarations -O3 -DNDEBUG  -Wformat -Wformat-security -D_FORTIFY_SOURCE=2 -fstack-protector-all -ffile-prefix-map=/tmp/openvino-20240428-66266-2tymto/openvino-2024.0.0/= -ffile-prefix-map=..//= -std=c++17 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -MD -MT src/bindings/js/node/CMakeFiles/ov_node_addon.dir/src/node_output.cpp.o -MF CMakeFiles/ov_node_addon.dir/src/node_output.cpp.o.d -o CMakeFiles/ov_node_addon.dir/src/node_output.cpp.o -c /tmp/openvino-20240428-66266-2tymto/openvino-2024.0.0/src/bindings/js/node/src/node_output.cpp
In file included from /tmp/openvino-20240428-66266-2tymto/openvino-2024.0.0/src/bindings/js/node/src/node_output.cpp:4:
/tmp/openvino-20240428-66266-2tymto/openvino-2024.0.0/src/bindings/js/node/../node/include/node_output.hpp:6:10: fatal error: 'napi.h' file not found
#include <napi.h>
         ^~~~~~~~

Issue submission checklist

  • I'm reporting an issue. It's not a question.
  • I checked the problem with the documentation, FAQ, open issues, Stack Overflow, etc., and have not found a solution.
@ilya-lavrenov
Copy link
Contributor

Is it possible to try Homebrew/homebrew-core#169752 ? Which has disabled ENABLE_JS cmake option

@ilya-lavrenov ilya-lavrenov added category: build OpenVINO cmake script / infra platform: macOS OpenVINO on macOS labels Apr 29, 2024
@tobbi
Copy link
Contributor Author

tobbi commented Apr 29, 2024

I'm gonna try and report back.

Why was ENABLE_JS disabled in the first place? Was it because of said build errors?

@tobbi
Copy link
Contributor Author

tobbi commented Apr 29, 2024

I tried the new homebrew formula and it built successfully.

@ilya-lavrenov
Copy link
Contributor

OpenVINO 2024.1 is available in homebrew in a prebuilt form.
Thank you for reporting the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: build OpenVINO cmake script / infra platform: macOS OpenVINO on macOS support_request
Projects
None yet
Development

No branches or pull requests

3 participants