question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[package] boost/1.74.0: build error for Android

See original GitHub issue

With the newest recipe, Android build fails.

Configuration:
[settings]
arch=armv8
arch_build=x86_64
build_type=Release
compiler=clang
compiler.libcxx=libc++
compiler.version=8
os=Android
os.api_level=21
os_build=Linux
[options]
[build_requires]
*: android_ndk_installer/r20@bincrafters/stable
[env]

Sorry for the short information here, but I’m currently not able to test it in detail, here is the relevant output from our CI runner:

ERROR: boost/1.74.0: Error in package_info() method, line 1164
	assert len(non_used) == 0, "These libraries were not used in conan components: {}".format(non_used)
	AssertionError: These libraries were not used in conan components: {'boost_log_setup', 'boost_log'}

I guess it has todo with the latest changes, and with the Android specific log parts?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:19 (19 by maintainers)

github_iconTop GitHub Comments

2reactions
prince-chrismccommented, Dec 15, 2020

Great work! ⭐⭐⭐⭐⭐

I’d like to nominate madebr as community member of the month!

2reactions
madebrcommented, Dec 14, 2020

@andioz I think it works now with #3872

I see that boost is unable to detect libiconv for the locale module. Instead of error’ing, b2 just doesn’t build the locale module. This causes the libiconv requirement not being used by a component and an error emitted.

So on android, the locale module should not be used. I can build it using:

conan create . boost/1.74.0@ -pr android21 -o boost:without_locale=True -o boost:without_log=True

Can you please verify?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Android Studio library "error: package does not exist"
While coding I can import any class from library package but while I'm trying run the application I'm getting an error package some.mylibrary....
Read more >
Kali Linux Rolling - apt-get upgrade: failed to fetch 404 not found
I used deb http://repo.kali.org/kali kali-rolling main non-free contrib deb-src http://repo.kali.org/kali kali-rolling main non-free contrib.
Read more >
Known issues with Android Studio and Android Gradle Plugin
When you navigate to Build > Generate Signed Bundle / APK and attempt to configure app signing for an app bundle or an...
Read more >
Support Library Packages - Android Developers
We recommend using the androidx libraries in all new projects. You should also consider migrating existing projects to ensure they continue to receive...
Read more >
AAPT2 - Android Developers
AAPT2 (Android Asset Packaging Tool) is a build tool that Android ... You can also debug build errors related to AAPT2 from the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found