Closed andreubernadserra closed 12 months ago
Hi @andreubernadserra
Thanks for your feedback
Yes, it seems the lack of compiler
in profile "build" is the root cause. There are missing binaries for your configuration (ConanCenter does not build gcc binaries in Windows), and when trying to build the tool_requires
applying the "build" profile, it didn't define enough inputs.
Some clarifications:
default
profile? Was it Conan? Maybe you created or cmake-conan auto-detected it when you hadn't installed any compiler?msvc
compiler setting), so maybe you can find binaries in ConanCenter?I'd try:
default
profile from the cache, and see if cmake-conan detect a new one with a new compilerFinally, it is very possible that for building with gcc
in Windows some extra configuration is needed, that is not detected or configured yet by cmake-conan
integration. If that is the case, we will move this ticket to the cmake-conan
repo.
Hi @memsharded , thanks for your prompt reply!
I did create my own default
profile with a separate command window, independently from CLion. Additionally, I was using the bundled toolkit from the IDE (gcc
).
I managed to solve my issue, as suggested, by:
default
profile.MSVS
.This allowed me to use conan
as a package manager seamlessly with CLion.
Unfortunately, the original code did not run on Windows. The response_string
returned by function download_image
seems to be empty. I've tried another project with different dependencies and this worked fine.
Thanks once again! A
This allowed me to use conan as a package manager seamlessly with CLion.
Great, happy that you made it work
Unfortunately, the original code did not run on Windows. The response_string returned by function download_image seems to be empty. I've tried another project with different dependencies and this worked fine.
Thanks for the feedback, this is worth checking, it should run in Windows as well, even if it seems this issue would be responded and could be closed, let's investigate it.
Cheers!
Just double checked, the example test code is running in CI in Windows too in: https://ci.conan.io/blue/organizations/jenkins/Examples2.0/detail/PR-111/6/pipeline, but using MSVC. It could be some side issue of using gcc.
Thanks once again for your support! I'll triple check by creating a new project and starting from scratch.
Have a nice day :)
Hi!
I'm having trouble trying to reproduce the Conan 2.x - CLion example produced here. I'm using a Windows machine with CLion 2023.2.1.
I'm getting the following error when trying to install the two required packages, upon reloading the CMake project.
Could it be that Conan is using the default profile instead of the one from the project? My suspicion is based on the following part of the CMake output. If so, how can I force CMake to use the host profile instead of the build one?
Thanks in advance!
PS. The full output from CMake is the following: