-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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] Error "Library 'zlib' not found in package." during first tutorial #23330
Comments
I have zipped up the repo, incl. the generated |
Hi @TheWirv Thanks for your report, and thanks specially for the details to reproduce, it really helps. This doesn't seem a Conan issue, but this is a recipe limitation for It seems that the recipe in this case is generating for this msys2/clang: set(zlib_LIBS_RELEASE zlib) But the actual file name is A good idea to test if something is a Conan issue or a recipe issue is to test it with the I am moving this to I'd also like to do some suggestions in the meantime, maybe these help:
|
Well known issue with clang flavors on Windows. I've proposed #14644 & conan-io/conan#12678, but it never made its way into code base, so we can't really properly support MinGW clang on Windows in conancenter (it's sort of a mess where every cci contributor comes with its own interpretation of how to detect MinGW or clang flavor based on conan profile). |
Hi guys, thanks so much for the quick and very detailed answers! Well, I suppose I'll switch to LLVM/clang then. I used MSYS2 clang because the version distributed by the LLVM project directly has some MSVC dependency on Windows, and I'm trying to avoid using proprietary Microsoft tools as much as possible. But, coming from a JavaScript/TypeScript background, I gotta admit that the DX of having a package/dependency manager is more important to me than my anti M$ crusade. 😅 I'll report back when I have set up my new toolchain, and have successfully finished the tutorial. Then, I'll also close this thread, thank you! |
Definitely, but it is also fair to admit that Microsoft has been doing a good job contributing in open source some great things, and opening in general. Even being able to use easily |
You're absolutely right! And I can confirm: After having installed MSVC and LLVM/Clang, I am able to successfully build the example from the tutorial, thanks for the help! |
What is your question?
Hi, I would like to start using conan, but I already struggle with the first tutorial. I had some issues initially because I am using the MSYS64 clang64 toolchain on Windows, but I have resolved those now, and can at least get the
conan install
working, after having tweaked my profile andglobal.conf
.However, now I am running into a new problem when trying to build:
I have already looked at the two issues conan-io/conan#13963 and conan-io/conan#15473, but unfortunately, they weren't of much help, as they also had slightly different errors than mine.
I have also tried @memsharded's comment conan-io/conan#13963 (comment), but that yielded the exact same result.
I am on Windows 11 and am using the following tools:
pip
)x86_64-w64-windows-gnu
; Thread model:posix
)I am trying to finish the first tutorial, and haven't changed any of the files in the
examples2/.../simple_cmake_project
repo after having cloned it. I am also using presets, but I have tried it using the "manual command" with-DCMAKE_TOOLCHAIN_FILE="conan_toolchain.cmake"
as well -- without success.Here is the output of my command line:
Transcript
If you would need any further information, please let me know. I hope someone could help me resolve this issue, thanks in advance!
Have you read the CONTRIBUTING guide?
The text was updated successfully, but these errors were encountered: