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

origin/dev: Commit 7b820ad18 breaks Android build #1065

Closed
lpechacek opened this issue Mar 1, 2018 · 5 comments
Closed

origin/dev: Commit 7b820ad18 breaks Android build #1065

lpechacek opened this issue Mar 1, 2018 · 5 comments
Assignees
Labels
Milestone

Comments

@lpechacek
Copy link
Member

While building Mapper Android/ARM version with Superbuild, the following error pops up:

/tmp/android-build/source/openorienteering-mapper-master/src/core/symbols/symbol.cpp: In copy constructor 'OpenOrienteering::Symbol::Symbol(const OpenOrienteering::Symbol&)':
/tmp/android-build/source/openorienteering-mapper-master/src/core/symbols/symbol.cpp:78:37: error: cannot convert 'const std::array<int, 3u>' to 'int' in initialization
 , is_protected { proto.is_protected }
                                     ^

Bisected down to 7b820ad.

Please note that there are more errors with current origin/dev. Compiler complains about undefined rbegin()/rend() in the same file.

@dg0yt
Copy link
Member

dg0yt commented Mar 1, 2018

I'm sorry for that. We need a more modern Android toolchain than the deprecated gcc 4.9. So far the size of the resulting binaries with Clang on ARM was an issue for Qt (and Firefox) but there seems to be a solution now: android/ndk#133. Still need to put this into a Qt 5.9 superbuild.

@lpechacek
Copy link
Member Author

No need for apologies. I'd welcome an NDK update though. :)

@dg0yt dg0yt added the build label Mar 2, 2018
@dg0yt
Copy link
Member

dg0yt commented Mar 25, 2018

Maybe we shouldn't be too optimistic about an NDK update with Qt:
http://lists.qt-project.org/pipermail/android-development/2018-March/001010.html

dg0yt added a commit that referenced this issue May 3, 2018
@dg0yt
Copy link
Member

dg0yt commented Nov 12, 2018

Finally, I succeeded in building dev with Qt 5.9 with Android NDK r18b / Clang / libc++ (OpenOrienteering Superbuild). APK size is reasonable, and the app runs indeed. However, compile time may have increased.

@dg0yt dg0yt added this to the v0.9.0 milestone Nov 12, 2018
@dg0yt dg0yt self-assigned this Nov 12, 2018
@dg0yt
Copy link
Member

dg0yt commented Jun 12, 2019

NDK r18b is now established, at least in CI for v0.9.0.

@dg0yt dg0yt closed this as completed Jun 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants