-
Notifications
You must be signed in to change notification settings - Fork 15
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
Installation error of OpenCV.jl with julia 1.10.2. #39
Comments
Hey, Images.jl is the standard package for image processing in Julia and OpenCV.jl is barely standing in older versions if even then. |
Guys are not maintaining julia packages. This issue is not only with this package, but many other. Don´t know whats happening with julia language. Its losing traction. |
Hi I am sorry, but this comment contradicts the statement that This seems a problem related to All the best Marco PS No. I am a "luser", not a developer! |
Too much testosterone (and masochism) flowing towards crustaceans :) |
Looks like the simple fix is to bump the Cxx compat to include 0.16 (or anything higher than 0.15) rather than the 0.13 max that is currently there. Can someone with permissions do that? (see this thread JuliaInterop/CxxWrap.jl#424) |
Is there an update on this problem? |
I think the solution I suggested could be an easy fix, though I don't have the permissions and/or time to fix. I ended up taking @ashwani-rathee's advice, which worked for my case. I had installed a slightly old package, tried to use an image with it, and it return error messages asking me to add OpenCV.jl (and some other packages). However, ignoring those error message requests and just installing and using Images.jl (and some of the other modern images ecosystem like ImageIO.jl) fixed all of my problems. So it seems like maybe part of the problem is that the error messages are leading people to older packages rather that the newer ecosystem? In any case, you should give that a try, unless OpenCV.jl is an explicit dependency of a package you are trying to use. |
@andrew-saydjari Thanks. But OpenCV.jl is The package I'm trying to use. |
Attempting to see if we can get this package working and refreshed (even though Images.jl is the way to go). See #47. Help and maintainers appreciated. CXXWrap has new versions and they seem to work fine when included in Project.toml. However at least on mac, the opencv binaries seem to be having some trouble:
Attempting to build newer versions here JuliaPackaging/Yggdrasil#9602, but probably all the patches need to be checked again if still needed and re-applied to 4.10 if required. |
Hi
The issue is the following.
The binding is generated from files that are created by a - ahem - less
than documented Python script ('hdr_parser.py') in a - ahem - even less
documented format, due to the macrology used in the OpenCV source code.
The setup is the same as the one used by the Python binding. Note that the
Java binding seems to be built in a different way, but I have not really
looked at it.
The result file is munged to produce the Julia binding; see the .
../opencv_contrib/modules/julia/gen. That’s where the work must be done.
And that requires knowledge of the Julia low-level binding machinery and of
the file generated by the Python header parser.
Unless some better, Python-less, solution can be found.
Marco Antoniotti
Somewhere over the Rainbow
…On Sun, 13 Oct 2024 at 02:48, Viral B. Shah ***@***.***> wrote:
Attempting to see if we can get this package working and refreshed (even
though Images.jl is the way to go). See #47
<#47>. Help and maintainers
appreciated.
—
Reply to this email directly, view it on GitHub
<#39 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAD5SWWIA5OYQBA6HPMVC5LZ3G7NRAVCNFSM6AAAAABFGL5RKGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMBYG43DONJWGM>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
It seems like what needs to be done is what is described in JuliaPackaging/Yggdrasil#8820 (comment). This actually feels tractable. As a first step let's try to rebuild the Yggdrasil recipe with the latest opencv and the suggested modifications. |
Thanks for the help @ViralBShah. Facing the same issues and came across this timely thread! As another data point, I compiled
I'm on an intel macbook pro running Sonoma 14.2.1. So there's some weirdness happening with the OpenCV module in addition to the artifacts potentially... Let me know if I can help guinea pig anything. I may try building with older versions of everything involved. |
Where is this compiler error? I assume this is in the building of the C++ bindings. I think the first step might be to try with Julia 1.10, since 1.11 does need some updates based on the comments in the Yggdrasil PR. cc @barche |
It would also be nice to start getting a PR going on Yggdrasil for others to try this out. |
Yeah, sorry, this is indeed in the building of the C++ bindings in the OpenCV repo. Will try that out... |
The particular error above may actually be related to added STL support in libcxxwrap, which seems problematic on some apple compilers. I think it's best to try to build using binarybuilder, maybe in a draft PR on Yggdrasil. |
I updated PR JuliaPackaging/Yggdrasil#8820 and created an opencv_contrib branch with the changes here: https://github.com/barche/opencv_contrib/tree/julia-fixes |
@ksil Could you try out the binaries from the Yggdrasil PR? |
I tried them and they don't work with the error that C++ type |
Very close to running again: #47 |
Would be nice if you can try the dev version and verify. |
There is an installation error of OpenCV.jl with julia 1.10.2.
I got error message as follows.
What's wrong with OpenCV.jl ?
The text was updated successfully, but these errors were encountered: