-
-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
Can this library work within a Qt project for Android using Qt Creator? #1178
Comments
@daljit97 , I don't use Qt project for Android yet. But I can build successfully this library in a project for Android with cmake and ndk. |
Please have a look at the section https://github.com/nlohmann/json#supported-compilers - it explicitly mentions the |
@nlohmann thanks for that. As suggested at that page, the NDK uses an old stl implementation and the solution is to modify |
@nguoithichkhampha hmm |
@daljit97 Do you need further assistance? |
I am using this library inside my Qt Project for Android. I am using Qt Creator and everything builds fine in Linux and I am able to run the program on my desktop without problems. However, when I try to compile the project for Android then I get errors like:
'to_string' is not a member of 'std' 'strtof' ist not a member of 'std' etc.
I know this is related to the NDK having issues with C++11. Is there any solution to make this work with Qt? I know in Android Studio is possible to edit the
Application.mk
, but is there any solution for Qt?I am aware that this might not be an issue with the library itself, but wondering if there is someone that could help me solve this.
The text was updated successfully, but these errors were encountered: