Comments (8)
What I see in that message is an error building boost, I don't see any conflict:
[ERROR:vcvars.bat] Toolset directory for version '14.3' was not found.
[ERROR:VsDevCmd.bat] *** VsDevCmd.bat encountered errors. Environment may be incomplete and/or incorrect. ***
It could be that they don't have that toolset installed in their Visual Studio installation?
In any case, this would be a different thing. The original issue about the package seems to have been solved, and the issue was that your friend had some stale/old packages in their cache, updating it seems to solve the issue.
I'd recommend to close this ticket as solved, and open a new one specific for the new issue (not sure if it is boost not building or a conflict with zlib, but please provide the specific output and the new details to reproduce). Thanks!
from conan.
Thanks man, you are right about the original issue being fixed! I will see if we can't work out the reason he is not able to build boost before opening a new ticket.
from conan.
Hi @Codinablack
Thanks for your report.
I don't think this is a bug, but expected behavior.
The first important bit to take into account: please don't share the same cache among different machines. The Conan cache is not concurrent, so having 2 machines accessing the same cache can easily result in race conditions. The recommended flow is to upload the binary packages built with one machine to a package server, like the free ArtifactoryCE in our downloads page.
Then, what you are seeing seems to be the default behavior of the default compatibility.py
plugin. Please check: https://docs.conan.io/2/reference/binary_model/custom_compatibility.html#the-compatibility-py-plugin, but in general the whole section is relevant: https://docs.conan.io/2/reference/binary_model
That is, packages built with different compiler.cppstd
are assumed to be binary compatible. This is a good default that works well in the majority of cases. For other use cases you can:
- Change the default behavior of the
compatibility.py
plugin - Disable in the package
conanfile.py
recipe the default compatibility withextension_properties = {"compatibility_cppstd": False}
(read https://docs.conan.io/2/reference/extensions/binary_compatibility.html#reference-extensions-binary-compatibility)
Please let me know if this clarifies the behavior.
from conan.
Thanks for the quick response, but I feel there is a bit of confusion here. I am not sharing binaries. I am only sharing sources and conanfile.py, along with a setup_build.py, and a premake5.lua (premake is the build app I use, instead of cmake). These are the only things shared between the two machines, and the setup_build.py just runs conan and premake for me.
I am not using any custom recipes, I am only using the conan center. I would expect when using the conanfile.py, on two windows machines, to get the same packages...
from conan.
Ok, I understood it wrong.
Can you please share the full output of the conan install
command for those 2 different computers?
Also I understand you are using packages from ConanCenter?
Please make sure to completely wipe the Conan cache in both computers before trying the conan install
, to make sure you don't have anything different cached in those computers.
from conan.
How can I completely wipe the conan cache? One computer is fine, everything works perfectly and as expected, the other however, not so much.
I am using the packages from conan center from the example for each of those packages, the conanfile.py example. Here to clarify what my file looks like..
conanfile.txt
I had to change it to a text file because python files are not allowed to be uploaded
from conan.
How can I completely wipe the conan cache? One computer is fine, everything works perfectly and as expected, the other however, not so much.
The packages cache can be done with conan remove "*" -c
. Completely wiping everything is just removing the ~/.conan2
folder (or wherever the CONAN_HOME is pointing to)
Yeah, you can wipe the one that is not working and then repeat the conan install
and share the full output.
from conan.
message(3).txt
Here is a text file containing the output from the machine I am having a problem with. It was a friend who was issueing the commands and such, it appears he may have used the same notepad to copy multiple outputs. Anyways, it seems that clearing the cache fixed the problem with the three libs it was issueing the wrong versions for, but for some reason, there is still a conflict with zlib for some reason, which is keeping my friend from being able to compile.
from conan.
Related Issues (20)
- [question] multiple "flavors" of same package depending on preprocessor HOT 2
- [question] How to improve conan performance? HOT 10
- [question] How to replace `tools.vcvars()` context manager in Conan 2? HOT 6
- [question] Overriding build requirements HOT 2
- [question] What is a launcher in Conan 2 context? HOT 2
- [question] Protobuf build module for `protoc` compiler not generated and cannot be consumed by grpc. HOT 5
- [platform_requires] and consumers use of dependencies['somelib'] HOT 2
- [question] Does the use of conans.AutoToolsBuildEnvironment make the current swig recipe incompatible with Conan 2? HOT 8
- [question] ERROR: 'settings.os_build' doesn't exist for 'settings' HOT 2
- [question] Need help to understand the packaging mechanism in Conan 2 HOT 2
- cannot import name 'ConanFile" from 'conans' HOT 2
- [question] Perform 2-step build and upload to same remote package HOT 1
- [question] Cross-building on Windows (build-profile) for NI LinuxRT (host-profile) and using of gRPC HOT 8
- [question] What corresponds to `tools.replace_prefix_in_pc_file()` in Conan 2? HOT 4
- [question] Add new config HOT 1
- [question] Conan2 / Conan1 profile compatibility? HOT 2
- [question] Is it possible to check if local cache is corrupted? HOT 2
- [question] conan info --graph replacement? HOT 2
- [question] Conan1 vs Conan2 package id compatibility + possibility of Artifactory hash collision? HOT 2
- Conan2 Config Uninstall HOT 3
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.