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

[Android] Use c++17 for ndk-build #4495

Merged
merged 2 commits into from
Jun 25, 2024
Merged

Conversation

niley7464
Copy link
Contributor

This patch changes the c++ version to 17 in the jni files. meson.build also uses cpp_std=c++17.
#4493

Self evaluation:

  1. Build test: []Passed [ ]Failed []Skipped
  2. Run test: [ ]Passed [ ]Failed [*]Skipped

@myungjoo
Copy link
Member

NDK r12b appears not compatible with the option -std=c++17. You may need to update the NDK version requirement, too.
You will need to update https://github.com/nnstreamer/nnstreamer/blob/main/jni/README.md and the Android github-action workflow.

@wooksong
Copy link
Member

How about overriding it from the nnstreamer-android build script?

This patch changes the c++ version to 17 in the jni files.

Signed-off-by: Yelin Jeong <yelini.jeong@samsung.com>
This patch changes ndk-version in github action to use c++17 in Android.

Signed-off-by: Yelin Jeong <yelini.jeong@samsung.com>
Copy link
Member

@anyj0527 anyj0527 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM👍

@jaeyun-jung jaeyun-jung merged commit a9bb5cd into nnstreamer:main Jun 25, 2024
15 checks passed
@niley7464 niley7464 deleted the android/c++17 branch June 25, 2024 06:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants