Skip to content
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] Install the OpenCV/4.10.0 dependency xz_utils/5.4.5 ERROR #17536

Open
1 task done
QingXu-hub opened this issue Dec 29, 2024 · 5 comments
Open
1 task done
Assignees

Comments

@QingXu-hub
Copy link

QingXu-hub commented Dec 29, 2024

Install the OpenCV/4.10.0 dependency xz_utils/5.4.5 ERROR

my profile:

Profile host:
[settings]
arch=x86_64
build_type=Debug
compiler=gcc
compiler.cppstd=gnu17
compiler.libcxx=libstdc++11
compiler.version=14
os=Windows

Profile build:
[settings]
arch=x86_64
build_type=Debug
compiler=gcc
compiler.cppstd=gnu17
compiler.libcxx=libstdc++11
compiler.version=14
os=Windows


The following error occurred when I installed the OpenCV/4.10.0 dependency xz_utils/5.4.5
image
Is this because I use the MinGW toolchain? How to fix it?

Have you read the CONTRIBUTING guide?

  • I've read the CONTRIBUTING guide
@QingXu-hub QingXu-hub changed the title [question] SHORT DESCRIPTION [question] Install xz_utils/5.4.50 ERROR Dec 29, 2024
@QingXu-hub QingXu-hub changed the title [question] Install xz_utils/5.4.50 ERROR [question] Install the OpenCV/4.10.0 dependency xz_utils/5.4.50 ERROR Dec 29, 2024
@QingXu-hub QingXu-hub changed the title [question] Install the OpenCV/4.10.0 dependency xz_utils/5.4.50 ERROR [question] Install the OpenCV/4.10.0 dependency xz_utils/5.4.5 ERROR Dec 29, 2024
@valgur
Copy link
Contributor

valgur commented Dec 29, 2024

Run the command with increased verbosity as a start (-vvv). Maybe the stack trace is more informative.

@memsharded
Copy link
Member

Hi @QingXu-hub

Thanks for your question.

It would be necessary to have some more details:

  • The exact command to reproduce (better if reduced to the minimal, like if the error is xz_utils, something like conan install --requires=xz_utils/5.4.5 --build=xz_utils/5.4.5 ... would be better
  • The full output of the command, better with verbose output
  • The conan version command output

@memsharded
Copy link
Member

Just to follow up, using the mingw toolchain instead of Visual Studio (which is the default and the one used to build and test recipes in ConanCenter), typically a bit more configuration is needed than the one showed in the above profiles like:

  • tools.build:compiler_executables definition
  • Definition of [buildenv] with some env-vars like CC/CXX, and/or adding the mingw path to the PATH env-var

@QingXu-hub
Copy link
Author

You mean Conan profile? My Conan profile Settings have been set for mingw Toolchain. And I have added the mingw path to the PATH env-var.
image
The contents of my conanfile.py file are as follows:
image
And the command I use when following OpenCV is conan install. --build=missing.
The first 24 of OpenCV 46 dependencies were installed successfully, but the error mentioned earlier occurred when installing xz_utils.
image
Checking when installing xz_utils. Then came a series of warnings and finally an error. There's too much output from the terminal. I've only taken a few.
image
image
image

@memsharded
Copy link
Member

Thanks for the feedback.

It is recommended to share it as text not as images. Github can do block quoting and syntax highlighting, so it is much better to do as text, as it allows copy&paste, it is much faster to load, Github search allows to find things, etc. And also you can add way longer output text, the full output if necessary (and it can use a "collapse/expand" link for convenience).

The conanfile.py is not necessary, you should be able to reproduce with:

conan install --requires=xz_utils/5.4.5 --build=xz_utils/5.4.5

Which also greatly helps to reduce the output logs, reduce the noise and focus on the problem.

I'd say it is possible that the mingw profile is missing some more settings, if you check https://docs.conan.io/2/examples/dev_flow/tool_requires/mingw.html, you will see there are other settings such as:

compiler.threads=posix
compiler.exception=sjlj

which can affect how mingw is building.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants