-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
[macOS / osx] lib path problems with ofxOpenCv and ofxKinect(libusb) [buildAllExamples] #8170
Comments
@roymacdonald is this working in your branch? |
|
hi @danoli3, I'm trying to run the OpenCV examples from the of_v20241109_osx_release nightlybuild. I just added as you mentioned the opencv.xcframework and it keeps poping an error at linking stage :
In my case the error is : ld Undefined Symbols. What I'm doing wrong ? ( I'm on a M2 MacbookPro with MacOS Sonoma 14.5 and XCode 15.2. ) |
Hi @eloimaduell which version of project generator do you have? |
I just checked it and it works with the newest PG versions > 0.78.0 (you can check this by clicking the cog icon on the top right of PG). |
Yeah I think in the build commands the NEON/Instrinics were turned off, so it shouldn't have been trying to use those, maybe config is overridden by x86_64 with custom headers included. I wonder if you remove the manually added headers and leave just the XCFrameworks (with sub headers) if that works. Let's test with it on again, I'll see if it builds, better the have these optimisations for performance anyway -DCV_ENABLE_INTRINSICS=ON -DWITH_CAROTENE=ON |
@roymacdonald - I just tried the packaged nightly which is using projectGenerator 0.83.0 and I am still seeing the issue:
|
@danoli3 if I drag the opencv.xcframework into the allAddonsExamples project I get:
Looks like it might need to be built with: |
@roymacdonald :: > Hi @eloimaduell which version of project generator do you have? I am not sure which one is being packaged but this is solved with the newest version of it I'm using Project Generator 0.84.0 |
@roymacdonald :: > I just checked it and it works with the newest PG versions > 0.78.0 (you can check this by clicking the cog icon on the top right of PG). ALthough, there is a mistake in the code itself, in the peopleDetector.h file you need to remove the line that says Thanks for pointing this out ! Anyway the linking issue happened with any OfxOpenCV example. I solved with a weird that I don't understand which was createing a folder names /opencv/include/opencv4 with folder opencv2 inside. It doesn't make any sense to me, but it worked like this .... ?¿ |
had to swap
macos
toosx
in the libs of these addons to get throughbuildAllExamples.sh
.with the macos transition not sure what is correct/incorrect in this case (other that it should compile!)
using fresh from git,
scripts/osx/download_libs.sh
and PG from last week to multi-update the examples files.NB: Makefiles do compile.
The text was updated successfully, but these errors were encountered: