microsoft / microsoft/onnxruntime
[Mobile] after build and install miss some file
- Dominant language
- C++
- Stars
- 21.9k
- Forks
- 4.2k
- Avg merge
- 4d 11h
- Merged PRs (30d)
- 184
Description
### Describe the issue
after build and install miss "nnapi_provider_factory.h"
env:
os:
Windows 10 pro
version 22H2
os version: 19045.5011
Windows Feature Experience Pack 1000.19060.1000.0
android studio:
Android Studio Ladybug | 2024.2.1 Patch 1
Build #AI-242.23339.11.2421.12483815, built on October 11, 2024
Runtime version: 21.0.3+-12282718-b509.11 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Toolkit: sun.awt.windows.WToolkit
Windows 10.0
GC: G1 Young Generation, G1 Concurrent GC, G1 Old Generation
Memory: 4096M
Cores: 12
Registry:
ide.instant.shutdown=false
ide.experimental.ui=true
i18n.locale=
Non-Bundled Plugins:
com.jetbrains.plugins.ini4idea (242.23339.18)
com.developerphil.adbidea (1.6.18)
com.github.tuchg.nonasciicodecompletionhelper (1.0.1)
android sdk path:
C:\Users\dell\AppData\Local\Android\Sdk
installed sdk platforms:
Android 15.0 api:35 revision:1
Android 14.0 api:34 revision:3
Android 10.0 api:29 revision:5
Android 8.1 api:27 revision:3
android ndk path:
C:\Users\dell\AppData\Local\Android\Sdk\ndk\27.2.12479018
### To reproduce
git clone this project and checkout v1.19.2, use cmd to build:
``` cmd
.\build.bat --config Release --android --skip_tests --android_sdk_path "C:\Users\dell\AppData\Local\Android\Sdk" --android_ndk_path "C:\Users\dell\AppData\Local\Android\Sdk\ndk\27.2.12479018" --android_abi arm64-v8a --android_api 29 --cmake_generator Ninja --use_nnapi
```
and into build/Windows/Release use cmd to install:
``` cmd
cmake --install .
```
into "C:\Program Files (x86)\onnxruntime\include\onnxruntime" cant't fund "nnapi_provider_factory.h" only see "cpu_provider_factory.h", and into "C:\Program Files (x86)\onnxruntime\lib" fund "libonnxruntime_providers_nnapi.a"
### Urgency
_No response_
### Platform
Android
### OS Version
windows
### ONNX Runtime Installation
Built from Source
### Compiler Version (if 'Built from Source')
1.19.2
### Package Name (if 'Released Package')
None
### ONNX Runtime Version or Commit ID
ffceed9d44f2f3efb9dd69fa75fea51163c91d91
### ONNX Runtime API
C++/C
### Architecture
ARM64
### Execution Provider
NNAPI
### Execution Provider Library Version
_No response_
Contributor guide
Research direction
Reproduce the Android NNAPI build using build.bat and the provided CMake install command, then inspect the installation output under the onnxruntime include and lib directories. Trace how nnapi_provider_factory.h and the NNAPI provider library are packaged; done means the expected NNAPI header is installed alongside the provider library.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, cmake, cpp
- Domain
- build-system, mobile-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100