I’m trying to get Xojo-OpenCVC up to date with the latest version of Xojo. It’s here.
Concurrently, we are updating OpenCV-C, the wrapper upon which this xojo project is based, to add some new functionality.
On the Xojo side, I’ve now got all the important deprecation errors handled and the project opens successfully in 2024r4.2. It opens up just fine with the old dylib on the github repo, which is from 4 years ago.
I’ve been using builds of this new library on Windows, and it just compiles and works with no issues on VisualStudio.
I’m trying to get the Mac version working, so I built a new version of the dylib in xCode, and when I try to use that from this Xojo project, I get Function Not Found exceptions. If I delete the build copy step and replace the library with the old dylib, it works. Delete the build copy step again and replace it with the new library, it doesn’t work.
So my hunch is that there’s an issue with how I’m building the OpenCV-C library in xCode. I don’t do any coding in Xcode normally, and I don’t really know my way around it. I’m wondering if someone can walk me through what I need to do here. It’s probably something to do with the annoyingly complex build settings in xCode, I’m guessing.
One thing I’ve noticed is that the old LibOpenCVC.dylib file was 45MB in size. My new one is only 11.3MB. Also, When I last did this 4 years ago I was on an intel-based mac, and now I’m on an M2Max. Maybe it’s only building the library for this CPU? I couldn’t find any architecture-specific settings there, but maybe I missed something.
I am building it in xCode 15.2 on a Mac running Ventura (13.6.7). I can see that the dylib is being correctly copied to the frameworks folder, when I look inside the debug app package.
Any ideas?