Comments (4)
The way to control the inputs to Conan are mostly settings
, options
, conf
and environment buildenv
.
In this case we would be talking about settings. You can see them in your output, if you share the output of your conan install
, you will see your current profile. You can see the general default settings.yml
definition in https://docs.conan.io/2/reference/config_files/settings.html
Macos:
version: [null, "10.6", "10.7", "10.8", "10.9", "10.10", "10.11", "10.12", "10.13", "10.14", "10.15",
"11.0", "11.1", "11.2", "11.3", "11.4", "11.5", "11.6", "11.7",
"12.0", "12.1", "12.2", "12.3", "12.4", "12.5", "12.6", "12.7",
"13.0", "13.1", "13.2", "13.3", "13.4", "13.5", "13.6",
"14.0", "14.1", "14.2", "14.3", "14.4", "14.5"]
sdk_version: [null, "10.13", "10.14", "10.15", "11.0", "11.1", "11.3", "12.0", "12.1",
"12.3", "13.0", "13.1", "13.3", "14.0", "14.2", "14.4", "14.5"]
subsystem:
null:
catalyst:
ios_version: *ios_version
You can control those inputs defining things like -s os.version=13.4 -s os.sdk_version=13.1
in the command line, but in general it is recommended to define these values in profile files (and profile files can be managed as code, putting them in a git repo and sharing it with conan config install
or conan config install-pkg
if you want to put the profiles in a conan package)
from conan.
from my understanding, every MacOS 10.15 or higher should be able to run this program right?
Is there any advantage to lowering the SDK, I'm not sure why it's part of the platform, to me an SDK is like a compiler, and the version you use is not really important.
To be honest, I know little about the Apple ecosystem, I might need someone else to help.
Even the "compiler" version is factored into the Conan package_id
and Conan treats as different binaries with different binary compatibility by default packages created with different compiler versions. Even if in theory binary compatibility should happen, there is ton of code out there with preprocessor macros using the compiler version to do different things that can affect even the API, but also the ABI in subtle ways (types sizes, alignment, etc).
With the SDK versions happen the same, there might be small differences in the binary that can make them incompatible. In general Apple SDKs keep good forward compatibility, no idea about backwards. This SDK version might also become more important not only for running, but for being linked together with other libraries.
from conan.
@memsharded Thank you! You are the best!
from conan.
@memsharded First of all I would like to thank you for your precise and clear answer.
I was able to build my program for MacOS 10.15 by adding os.version=10.15
to a conan2 profile located in ~/.conan2/profiles
.
here is what the new binary output:
platform 1
minos 10.15
sdk 14.5
from my understanding, every MacOS 10.15 or higher should be able to run this program right?
Is there any advantage to lowering the SDK, I'm not sure why it's part of the platform, to me an SDK is like a compiler, and the version you use is not really important. But my understanding might be wrong.
from conan.
Related Issues (20)
- [question] Please help how to use NuGet Libraries with Conan and CMake for Builds. HOT 3
- Error uploading file: conanmanifest.txt, '404 Client Error: Not Found for url: https://artifactory.com/artifactory/api/conan/conan-test/v2/conans/xxx/revisions/b9c4826ad9445ea5257f6432b5a019dd/files/conanmanifest.txt[bug] HOT 3
- [question] Confusion around python_requires using minor_mode HOT 6
- [bug] incorrect paths generated by pkgconfigdeps.py when using --deployer option HOT 2
- [question] Filtering options for package to get path to local cache HOT 4
- [bug] `conan list` filtering option asks users to use scope patterns when those don't work in that context HOT 2
- [question] Set cmake_find_mode for all deps in CMakeDeps [conan 2] HOT 2
- [feature] Option to suppress generation of script files HOT 2
- [bug] Initial setup for Conan test suite is not automated or documented HOT 3
- [question] disable package revisions HOT 3
- [bug] `conan source` does not actually get `global.conf`'s `core.` confs HOT 1
- [question] Install a binary package without matching the compiler version HOT 3
- [question] preset name != profile name HOT 5
- [question] Include jinja profile template into another HOT 7
- [question] How to disable compatilibity? HOT 5
- [question] CMAKE_INSTALL_PREFIX in toolchain - local/cache build difference [conan 2] HOT 3
- [feature] Introduce os.version or os=Ubuntu in profiles HOT 2
- [question] PUBLIC compile definition not propagated HOT 3
- [question] How to access a value defined in the `[conf]` section of a profile? HOT 1
- [feature] Add properties to MakeDeps generator HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from conan.