Building fails on latest git master #1082
Replies: 12 comments
-
|
Nothing changed in MLT. It is a OpenCV-CUDA CMake issue. You can disable the OpenCV module in MLT if you would like. |
Beta Was this translation helpful? Give feedback.
-
|
Thanks for your input. |
Beta Was this translation helpful? Give feedback.
-
|
Is your log snippet actually from running cmake for MLT or from OpenCV? I cannot see from it anything that MLT needs to “deal with.” |
Beta Was this translation helpful? Give feedback.
-
|
This is compiling mlt from git master with the following commands: This used to work reliably up until now. Its rather early to lay the blame on any package at the moment. However, I would like to know how to troubleshoot this further to figure out the best way to get mlt from git master to compile on this system again. The reason I reported it here, is that it is mlt that is not building, and I figured that you might be interested in something that might be potentially lurking in the future of other distrobutions. |
Beta Was this translation helpful? Give feedback.
-
You should check the Issues in the OpenCV project. |
Beta Was this translation helpful? Give feedback.
-
|
I have checked the github page of OpenCV, and there are indeed some reports of issues with building against Qt 6.9. The bit that I am not understanding is that I have opencv installed on my system. Does mlt not build against the binary that is installed? Is it somehow building a copy of opencv in it's own tree? |
Beta Was this translation helpful? Give feedback.
-
MLT does not try to find CUDA. The "this package" refers to the "CMake Error at /usr/lib/cmake/opencv4/OpenCVConfig.cmake" not provided by MLT, which is why I said it can be an OpenCV problem. CMake generally provides 2 ways to find dependencies. One is good-old pkg-config via the |
Beta Was this translation helpful? Give feedback.
-
|
Hmm, I can see that opencv-cuda does, indeed provide /usr/lib/cmake/opencv4/OpenCVConfig-version.cmake. As per the error. Thanks for your insight. |
Beta Was this translation helpful? Give feedback.
-
|
I found this documentation page about FindCUDA.cmake that includes a deprecation notice. CMake 4, which generally removes deprecated things, was released a few weeks ago and creating big ripples in the ecosystem. For example, I created a fix for OpenCV for this bug opencv/opencv#27122. The fix was merged minutes ago; however, it was a simple minimal fix. I am not surprised if there are less explicit lurking issues like this one. What is your cmake version? |
Beta Was this translation helpful? Give feedback.
-
|
My cmake is at 4.0.1 |
Beta Was this translation helpful? Give feedback.
-
|
Update for you here... The recommendation from the OpenCV guys is to build opencv-cuda with a compiler flag that enables CUDA as a language. I have reported this to the maintainer of the opencv-cuda, and hopefully once that has been updated mlt will compile again from sources, on Arch at least. |
Beta Was this translation helpful? Give feedback.
-
|
The changes have made it into opencv-cuda in Arch, and mlt-git builds again. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there!
Building from sources currently fails on my system. I can provide the full logs if requested, but for brevity's sake, here is the error:
It looks like the compiler is looking for cuda 12.8 specifically.
On my system I have cuda 12.8.1 installed:
I also see references to opencv4. I have opencv4 installed, with cuda bindings:
Compilation from sources worked until fairly recently, but since it gets updated regularly and it is a rolling release something might have changed on my system that prevents building now.
Did some compiler switch related to this change recently? Which direction should I look into to solve this issue?
What are some things that I can try?
Here is some more information on my system:
Beta Was this translation helpful? Give feedback.
All reactions