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] How to use MinGW as build profile on Windows? #16131
Comments
It seems a bumpy road. I tried also to dupplicate the mingw-builds recipes, remove the 7z build dependency and use this profile for building but I have other issues while running the tests. the libstdc++.dll library is not found in the system. |
Plese read https://blog.conan.io/2024/04/23/Introducing-local-recipes-index-remote.html, it might help
Support for ConanCenter recipes in
Yes, this is expected, if
in the profile, it will try to add that tool-requires to all tool-requires, including itself, in an infinite loop.
If you need something more complex you can use jinja templates.
There are some UX improvements you can do here:
This might be a recipe-related issue, more than a Conan one, trying with |
What is your question?
It's already a full day and I think I am missing some very basic knowledge about conan.
What I want to achieve:
I am setting up a private conan-center-index and I am preparing the build environment. I would like to avoid installing Visual C++ as it's not needed. We are mainly targeting Android, and the host can be Windows, Linux or MacOS.
Some packages requires a native build (i.e. ninja, protobuf, grpc). I was thinking that I can use MinGW as build profile for buildiing the requirements. But I also would like to execute unit tests on Windows as well. So MinGW would be used both as host and build profile.
I don't want to install the toolchain on the host, conan has already a
mingw-builds
package and that's enough.What I've tried:
I took the most naive approach:
mingw
profile used for building the host packages:mingw_build
used for building tool requirments:Now the issue is that conan is detecting a cycle/loop in the graph, indeed
mingw-builds
is there twice. How can I solve this problem? What options do I have? Do I need to a pre-installed toolchain?How I would like to use the two profiles:
The tools should be built only with the build profile:
The packages should be built in a similar way:
Would that be possible?
Have you read the CONTRIBUTING guide?
The text was updated successfully, but these errors were encountered: