-
Notifications
You must be signed in to change notification settings - Fork 991
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
Error in consuming dependencies using Conan 2.0 #12542
Comments
Quick feedback:
The I think the message might not be very informative, could you please try to specify |
Sure, we will try to use CMakeDeps and CMakeToolChain in 1.x first. After changing to openssl*, build has moved forward. What difference did * make? Also, now the build is failing with the below error. -------- Computing dependency graph -------- -------- Computing necessary packages -------- |
Conan 2.0 has normalized and standardized a bit better the pattern matching that happens for package names. If the reference is not complete, like
Yes, that failure is expected. Conan 2.0 uses only |
I am merely using conanfile.txt. There is no conanfile.py. |
Your dependencies are: |
Looks like very few packages are migrated to Conan 2.0. For instance, we use rapidjson and OpenSSL, and those are not converted yet. Do we have a plan in place for conversion? |
You can check the status in conan-io/conan-center-index#12888. Still binaries are not being uploaded to ConanCenter. The best is to test and report recipe issues to the https://github.com/conan-io/conan-center-index repo. |
Closing this as solved, CCI is almost 100% compatible with v2 and binaries have ben uploaded for over a year, feel free to reopen/create a new issue should you have any other questions or requests, thanks! |
We had a simple component build consuming Conan packages using Conanfile.txt. This was working with Conan version 1.54. After upgrading to Conan version 2.0.0-beta5, conan install command is failing as below.
$ conan install .. --profile=temp
ERROR: Error while parsing [options] in conanfile
Options should be specified as 'pkg:option=value'
-------- Input profiles --------
Profile host:
[settings]
arch=x86_64
compiler=gcc
compiler.cppstd=14
compiler.libcxx=libstdc++11
compiler.version=8
os=Linux
Profile build:
[settings]
arch=x86_64
build_type=Release
compiler=gcc
compiler.cppstd=gnu14
compiler.libcxx=libstdc++11
compiler.version=8
os=Linux
ERROR: Error while parsing [options] in conanfile
Options should be specified as 'pkg:option=value'
$ cat ../conanfile.txt
[requires]
grpc/1.30@FTA/testing
protobuf/3.14.0@FTA/testing
openssl/1.1.1d
rapidjson/1.1.0
[generators]
cmake
[options]
openssl:shared=True
Profile temp:
$ cat temp
[settings]
os=Linux
arch=x86_64
compiler=gcc
compiler.version=8
compiler.libcxx=libstdc++11
compiler.cppstd=14
[conf]
Could you please help to understand what is the issue?
The text was updated successfully, but these errors were encountered: