-
Notifications
You must be signed in to change notification settings - Fork 49
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
Running example2 compressor tutorial on UCRT64 #159
Comments
Hi @lafleurh Thanks for your feedback. Building in msys2 environment requires a bit more configuration, and it is a different use case just building in msys2 but using the In this case it seems you are building for msys2 backend with MinGW. The first important bit is that recipes in ConanCenter are tested and built with |
Thanks for the quick response. Yes, the build log looks OK. It is using cc/gcc installed with msys2, which is on the path. Obviously something is missing or can't be found but I don't know enough about it to understand what's going wrong. This is the run after I manually removed it from the cache.
Here's the info on cc:
|
Thanks for the article. Based on this, I think we will switch to msvc on Windows rather than fight the uphill battle and risk compatibility issues with consuming the dll with msvc later. |
I am not sure what could be failing, I have tried the following and it seems to work here:
I am using mingw as a
I think this is recommended, yes. Specially recalling my comment above that some recipes in ConanCenter might have different support for mingw, in general the support for Regarding this ticket, as you wish, feel free to close it if not really interested in investigating what would be the issue, or leave it open and keep having a look. Don't hesitate to create new tickets for any other further question that you might have. Thanks for the feedback! |
I'm trying to run the example app, https://docs.conan.io/2/tutorial/consuming_packages/build_simple_cmake_project.html, with the Windows MSYS2 UCRT64 environment, and I get to the cmake step and get an error message. Everything works up until this step. The only thing I did differently was install cmake with pacman using the ucrt_x86_64 package and changed the OS in the default profile to Windows.
This is what I get:
UCRT64 /c/source/examples2/tutorial/consuming_packages/simple_cmake_project
$ cmake.exe .. -DCMAKE_TOOLCHAIN_FILE=conan_toolchain.cmake -DCMAKE_BUILD_TYPE=Release
-- Using Conan toolchain: C:/source/examples2/tutorial/consuming_packages/simple_cmake_project/build/conan_toolchain.cmake
-- Conan toolchain: Defining architecture flag: -m64
-- Conan toolchain: C++ Standard 17 with extensions ON
-- Conan: Target declared 'ZLIB::ZLIB'
CMake Error at build/cmakedeps_macros.cmake:67 (message):
Library 'z' not found in package. If 'z' is a system library, declare it
with 'cpp_info.system_libs' property
Call Stack (most recent call first):
build/ZLIB-Target-release.cmake:23 (conan_package_library_targets)
build/ZLIBTargets.cmake:24 (include)
build/ZLIBConfig.cmake:16 (include)
CMakeLists.txt:4 (find_package)
-- Configuring incomplete, errors occurred!
Here is my conan default profile
[settings]
arch=x86_64
build_type=Release
compiler=gcc
compiler.cppstd=gnu17
compiler.libcxx=libstdc++11
compiler.version=13
os=Windows
(for some reason, I have to use cmake.exe instead of cmake)
The text was updated successfully, but these errors were encountered: