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

[question] conan install error #17263

Open
1 task done
crystalsky opened this issue Oct 31, 2024 · 2 comments
Open
1 task done

[question] conan install error #17263

crystalsky opened this issue Oct 31, 2024 · 2 comments
Assignees
Labels
responded Responded by Conan team type: question

Comments

@crystalsky
Copy link

What is your question?

My Conanfile depends The opensceneGraph gdal, libtiff, proj and so on.
When using conan install ., an error occurs:

ERROR: zlib/1.2.13; libpng/1.6.38 tried to change zlib/1.2.13 option shared to False. But it was already assigned to True by libtiff/4.3.0.

I checked the Conan configuration for zlib, libpng, and libtiff, and in all configurations, zlib is set to False. Why does this error occur despite that?
How to Check This Issue???

I've been working for this issue 3 hours, But I didn't know how to solve this....
Help Me .Thanks.

Have you read the CONTRIBUTING guide?

  • I've read the CONTRIBUTING guide
@memsharded memsharded self-assigned this Oct 31, 2024
@memsharded
Copy link
Member

Hi @crystalsky

Thanks for your question.

I deduce from the error that you are still using Conan 1.X
This error is no longer happening in Conan 2, the way options conflicts are managed has been changed in Conan 2, no longer raising conflicts. Conan 2 is already 20 months old, with dozens of releases, and it is the recommended version for production, please try to prioritize updating to Conan 2 as soon as possible. Next week, ConanCenter will stop receiving updates for Conan 1.X see https://blog.conan.io/2024/09/30/Conan-Center-will-stop-receiving-updates-for-Conan-1.html

I think a way to solve this would be to define -o "zlib/*:shared=True" (or to False if you want it static) in your command line, or in your profile file. Please try that and let us know.

@memsharded
Copy link
Member

Hi @crystalsky

Did you manage to try -o "zlib/*:shared=True"? Thanks for your feedback.

@memsharded memsharded added type: question responded Responded by Conan team labels Nov 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
responded Responded by Conan team type: question
Projects
None yet
Development

No branches or pull requests

2 participants