-
Notifications
You must be signed in to change notification settings - Fork 984
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
[bug] cross compilation with build requirements is total broken #7566
Comments
Cross-building using only one profile is very problematic. It required recipes intended to be build-requires to have Recipes in ConanCenter are moving away from settings |
I agree that the 2 profiles approach looks better, but here conan-io/conan-center-index#2566
I am still on conan 1, so I thought, I ill continue using the 1 profile approach, also because of this (did not have any problems building for iOS, as far as I remember, but I stopped experiments with the 2 profiles because as said above) but, if you tell me that I am better with the 2 profile approach, I will go this way, no problem in this case, shall I set the CONAN_V2_MODE variable to ON ? alternative, I stick with the 1 profile approach, remove the build requirement to cmake and use that one from the system, or set it to ignore openssl, or create a cmake_installer (or something better anmed) with os_buid / os_arch and use that I just do not like it when I have so many different solution possibilities and all seem to be temporary .... what is that one with the best future proof chances ? |
Hi @jgsogo , I try to re-write bincrafters/community#1255 i a way so it fits the 2 profile approach, but there is something that blows my mind. the Android NDK makes a lot of use from
to something like
seems not to be possible. or do I have to ignore the in
or are those not part of the package id anyway and / or is there anything else I need to know and understand. |
Hi @a4z I found some time to play with the Android NDK recipe some time ago and I used it to compile several packages. I did some modifications to the @bincrafters one, you can find mine here: https://github.com/jgsogo/conan-center-index/tree/android_ndk/recipes/android-ndk/all I used the two-profiles approach, any default profile for my build machine and this one for the host profile:
If you have a look at the @theodelrieu motivated me to try this recipe, the idea behind the modifications was to have only one package that can be used for any api-level. |
That looks like a promising begin, @jgsogo ! Thanks a lot, and this recipe seems way simpler to work with than the existing one. Actually, I just started to adopt the recipe my own and moved into the same direction, but it makes no fun to work with a package of this size especially if it is uncertain for me if the outcome will ever be usable. But I will invest some more time, based on you work May I ask, the |
@jgsogo Looks great! I don't exactly remember why I failed to use I'm looking forward to having these changes merged in bincrafters. |
Hi @jgsogo , your NDK build is great, but it does not work for all archs, for i686 it builds arm32 binaries, and for x86_64 android builds it fails, but I made a hybrid, out of yours and the old one, and this seem to work (have running it in the background while writing this, not all done but so far not problems) works of course only with the 2 profile build, what is OK, but I wonder, what and when will the transition to 2 profiles work for cci? Edit, instead of having the recipe here, link to there |
I think I can close that, the 2 profile approach solves, if not everything, at least a lot |
Environment Details (include every applicable attribute)
Steps to reproduce (Include if Applicable)
This is wrong, cmake is a build requirement and on my system or os_build / arch_build and so is openssl
What does conan want to build, cmake for Android?
It shall use the existing cmake I have on my box
Note that I had this working, this break came recently, when updated conan and the recipes from cci
Yesterday I could build all my packages with conan with exactly the same profiles, today I cant, why?
The text was updated successfully, but these errors were encountered: