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

Version Conflict #16935

Closed
alLiucb opened this issue Apr 7, 2023 · 4 comments · Fixed by #19298
Closed

Version Conflict #16935

alLiucb opened this issue Apr 7, 2023 · 4 comments · Fixed by #19298
Labels
question Further information is requested

Comments

@alLiucb
Copy link

alLiucb commented Apr 7, 2023

What is your question?

  • conan 2.0.3
  • cmake 3.26.2
  • Software:Clion

confile.txt:
[requires]
eigen/3.4.0
openssl/1.1.1t
zlib/1.2.12
sqlite3/3.36.0
qt/5.15.5
gdal/3.1.0
[generators]
cmake_find_package
[options]
qt*:shared=True

and showed error
======== Computing dependency graph ========
Graph root
conanfile.txt: D:\CodeBase\pipeline\RSPGUITools-master\cmake-build-debug\conanfile.txt
Requirements
eigen/3.4.0#2e192482a8acff96fe34766adca2b24c - Cache
openssl/1.1.1t#7d9fc949345908e1b8609d9d9f528a08 - Cache
qt/5.15.5#0c219a005daa86ec92bed9694374e6f2 - Cache
sqlite3/3.36.0#a28e9cdc62d449874c25fa05744c9c95 - Cache
zlib/1.2.12#b1fd071d8a2234a488b3ff74a3526f81 - Cache
Build requirements
nasm/2.15.05#799d63b1672a337584b09635b0f22fc1 - Cache
strawberryperl/5.32.1.1#8f83d05a60363a422f9033e52d106b47 - Cache
ERROR: Version conflict: qt/5.15.5->zlib/1.2.13, None->zlib/1.2.12.

@alLiucb alLiucb added the question Further information is requested label Apr 7, 2023
@a120471
Copy link

a120471 commented Apr 9, 2023

I met the same problem. If I remember correctly, when I use conan 1.x, I can use "zlib/1.2.13" in conanfile.txt to force override the version. But I didn't find out how to do this with conanfile.txt in conan 2.x.
The documents I've checked, https://docs.conan.io/2/tutorial/consuming_packages/intro_to_versioning.html, https://docs.conan.io/2/tutorial/versioning/conflicts.html, FYI.

@SpaceIm
Copy link
Contributor

SpaceIm commented Apr 10, 2023

You can't in a conanfile.txt, only in conanfile.py: conan-io/conan#13201 (comment)

@a120471
Copy link

a120471 commented Apr 11, 2023

You can't in a conanfile.txt, only in conanfile.py: conan-io/conan#13201 (comment)

Thanks, I'll take a look at how to use a conanfile.py. Hope it's as easy as conanfile.txt. :)

@alLiucb
Copy link
Author

alLiucb commented Apr 11, 2023

你不能在 conanfile.txt 中,只能在 conanfile.py 中:conan-io/conan#13201(评论)

I tried this way to solve my problem
conan-io/conan#13648 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants