conan-center-index: [package] boost/1.74.0: build error for Android

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?

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 19 (19 by maintainers)

Most upvoted comments

Great work! ⭐⭐⭐⭐⭐

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

@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?

the lockfiles should be stored with the project in git, right?

Yes! My “base lockfile” can be found here https://github.com/prince-chrismc/user-management/blob/d6fb746a2ab03e6a12610687bbf04cc9e14942ee/backend/conan.lock

For working locally I let cmake create the lockfiles https://github.com/prince-chrismc/user-management/blob/d6fb746a2ab03e6a12610687bbf04cc9e14942ee/backend/cmake/conan-setup.cmake#L16 however in CI to create a conan package it needs to be done before the CMake configurration

https://github.com/conan-io/cmake-conan offered a few good helpers

Today’s check still working 👍

@prince-chrismc

Probably, this is the next issue on the list to look at. Looks like iOS is working so that’s that.