8000 NFIQ2 not able to compile using NDK 28.1.13356709 · Issue #405 · usnistgov/NFIQ2 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

NFIQ2 not able to compile using NDK 28.1.13356709 #405

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

Open
bhuvan1691 opened this issue Jun 6, 2025 · 1 comment
Open

NFIQ2 not able to compile using NDK 28.1.13356709 #405

bhuvan1691 opened this issue Jun 6, 2025 · 1 comment

Comments

@bhuvan1691
Copy link
bhuvan1691 commented Jun 6, 2025

While compiling NFIQ2 with NDK for andorid I encounter with belo problem

/home/Downloads/android-ndk-r28b/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/string:746:43: error: implicit instantiation of undefined template 'std::char_traits'
746 | static_assert((is_same<_CharT, typename traits_type::char_type>::value),
| ^
/home/Downloads/NFIQ2/NFIQ2/NFIQ2Algorithm/include/nfiq2_data.hpp:24:21: note: in instantiation of template class 'std::basic_string' requested here
24 | class Data : public std::basic_string<uint8_t> {
| ^
/home/Downloads/android-ndk-r28b/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/__fwd/string.h:23:29: note: template is declared here
23 | struct _LIBCPP_TEMPLATE_VIS char_traits;

In file included from /home/Downloads/android-ndk-r28b/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/string:627:
/home/Downloads/android-ndk-r28b/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/string_view:299:43: error: implicit instantiation of undefined template 'std::char_traits'
299 | static_assert((is_same<_CharT, typename traits_type::char_type>::value),
| ^
/home/Downloads/android-ndk-r28b/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/__type_traits/is_convertible.h:22:102: note: in instantiation of template class 'std::basic_string_view' requested here
22 | struct _LIBCPP_TEMPLATE_VIS is_convertible : public integral_constant<bool, __is_convertible(_T1, _T2)> {};
| ^
/home/Downloads/android-ndk-r28b/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/string:704:29: note: in instantiation of template class 'std::is_convertible<const std::basic_string &, std::basic_string_view>' requested here
704 | : public _BoolConstant< is_convertible<const _Tp&, basic_string_view<_CharT, _Traits> >::value &&
| ^
/home/Downloads/android-ndk-r28b/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/string:1136:27: note: in instantiation of template class 'std::__can_be_converted_to_string_view<unsigned char, std::char_traits, std::basic_string>' requested here
1136 | __enable_if_t<__can_be_converted_to_string_view<_CharT, _Traits, _Tp>::value &&
| ^
/home/Downloads/android-ndk-r28b/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/string:1139:47: note: while substituting prior template arguments into non-type template parameter [with _Tp = std::basic_string]
1139 | _LIBCPP_CONSTEXPR_SINCE_CXX20 basic_string& operator=(const _Tp& __t) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~

This traits_type is not defined.
Can anyone provide the solution for it.
I have tried gnu++11, gnu++17, c++11, & c++17 but it has nothing to do with it.

@gfiumara
Copy link
Member
gfiumara commented Jun 6, 2025

This should be resolved with #404. We will merge it after some more testing, but you can pull the branch from this PR for now.

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

No branches or pull requests

2 participants
0