-
-
Notifications
You must be signed in to change notification settings - Fork 161
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
OPENCV_LINK_LIBS removes portions of the valid filename on Windows #237
Comments
I’ll see what can be done, but for now, can you try adding an additional “lib” in front of the lib name? So that it becomes “liblibjpeg-turbo”? |
Good idea! Didn't think of that. I should note that I just also tested a non-world build and set OpenCV_DIR so that it uses cmake to get the library list. I end up with the exact same problem. |
That’s weird, can you please post the output of |
Yep, just a sec. First I can confirm that specifying |
Also to note, I had to build OpenCV without Eigen support because the build script tried to add |
Build script of OpenCV or the crate? |
OpenCV |
|
Thanks! As far as I understand, the workaround works for you, right? I’ll try to come up with the proper solution if such even exists :) |
Yes, I think I can manage with the workaround going forward. :D |
Let's please leave this open, this is a legitimate issue |
Hello, Just reporting that I am hitting the same issue building under Linux. Cross compiling OpenCV 4.8.0 for Raspberry Pi1 creates builds and installs some 3rd party libraries within /opt/opencv/lib/opencv4/3rdparty:
Others just the usual single lib prefix (libade.a libzlib.a). When building my rust project, the cmake is inspected and both lib prefixes are stripped off when the '-l' is prepended in the link command:
Consequently I get errors:
|
Howdy!
I'm trying to specify the parameters to link with my build of OpenCV and I have a bit of a problem.
libjpeg-turbo
andlibjasper
get the prefixlib
stripped and so linking fails. I wish that libjasper and libjpeg-turbo would be named otherwise but I don't want to go down that rabbit hole right now.For the curious: you can partially replicate my setup with conda and pwsh:
The text was updated successfully, but these errors were encountered: