Skip to content

[Mobile] after build and install miss some file #22531

Open

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:

.\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:

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

ffceed9

ONNX Runtime API

C++/C

Architecture

ARM64

Execution Provider

NNAPI

Execution Provider Library Version

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    contributions welcomelower priority issues for the core ORT teamsfeature requestrequest for unsupported feature or enhancementplatform:mobileissues related to ONNX Runtime mobile; typically submitted using template

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions