conan: [bug] zlib override doesn't work

Environment Details (include every applicable attribute)

  • Operating System+version: Windows10
  • Compiler+version: MSVC-2019
  • Conan version: 1.24.0
  • Python version: 3.7.0

Steps to reproduce (Include if Applicable)

profile:

[settings]
arch=x86
build_type=Debug
compiler=Visual Studio
compiler.runtime=MDd
compiler.version=14
os=Windows
os_build=Windows
arch_build=x86

conanfile.py

from conans import ConanFile

class MyConan(ConanFile):
	settings = "os", "compiler", "build_type", "arch"

	requires = (
		"openssl/1.1.1d",
		"boost/1.71.0@conan/stable",
		"cpprestsdk/2.10.14@bincrafters/stable",
		"libzip/1.5.2@bincrafters/stable",
		"bzip2/1.0.8@conan/stable",
		("zlib/1.2.11@conan/stable", "override"),
		"gsl_microsoft/2.0.0@bincrafters/stable",
		"tesseract/3.05.01@bincrafters/stable",
		"sqlcipher/4.3.0", # Caused by this line
	)

	generators = "visual_studio"

	default_options = (
		"libzip:shared=True",
	)

	def imports(self):
		self.copy("*.dll", "..\\..\\" + str(self.settings.build_type), "bin")

Logs (Executed commands with output) (Include/Attach if Applicable)

WARN: openssl/1.1.1d: requirement zlib/1.2.11 overridden by your conanfile to zlib/1.2.11@conan/stable WARN: cpprestsdk/2.10.14@bincrafters/stable: requirement zlib/1.2.11 overridden by your conanfile to zlib/1.2.11@conan/stable WARN: cpprestsdk/2.10.14@bincrafters/stable: requirement boost/1.71.0 overridden by your conanfile to boost/1.71.0@conan/stable WARN: websocketpp/0.8.1@bincrafters/stable: requirement zlib/1.2.11 overridden by cpprestsdk/2.10.14@bincrafters/stable to zlib/1.2.11@conan/stable WARN: websocketpp/0.8.1@bincrafters/stable: requirement boost/1.71.0 overridden by cpprestsdk/2.10.14@bincrafters/stable to boost/1.71.0@conan/stable WARN: libzip/1.5.2@bincrafters/stable: requirement zlib/1.2.11 overridden by your conanfile to zlib/1.2.11@conan/stable WARN: libzip/1.5.2@bincrafters/stable: requirement bzip2/1.0.8 overridden by your conanfile to bzip2/1.0.8@conan/stable WARN: libzip/1.5.2@bincrafters/stable: requirement openssl/1.0.2t overridden by your conanfile to openssl/1.1.1d ERROR: Conflict in tcl/8.6.10: ‘tcl/8.6.10’ requires ‘zlib/1.2.11’ while ‘leptonica/1.76.0@bincrafters/stable’ requires ‘zlib/1.2.11@conan/stable’. To fix this conflict you need to override the package ‘zlib’ in your root package. Exit code: 1 An error occurred when executing task ‘ConanInstall’. Error: 发生一个或多个错误。 conan install exception

About this issue

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

Most upvoted comments

@memsharded Thanks for your explanation, it is much clear now. Cheers.