-
Notifications
You must be signed in to change notification settings - Fork 50
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
not working in macOS #49
Comments
Thanks Dimitre, |
Yes, the installed installs the lib in /usr/local/lib/libndi.dylib |
I think this could be a more significant problem. @eduardfrigola |
Any results on this? I have updated the NDI include and dll files to 5.6.1. For Windows, I can confirm that the runtime installer downloads correctly from "http://ndi.link/NDIRedistV5" and installs to "C:\Program Files\NDI\NDI 5 Runtime\v5" and the environment variable used by ofxNDIdynLoader "NDI_RUNTIME_DIR_V5" is the same path. |
Another update to NDI 6.0.0.0 |
Dimitre - did you ever find out what the two different paths were that ofxNDIdynloader was trying? |
Hi @leadedge, sorry for not replying earlier... When you posted this I tried to replicate the issue with no luck. ofxNDI/src/ofxNDIdynloader.cpp Line 198 in 93e90e5
But last week I was with another computer using the library, and this problem appeared. Tying to find an easy workaround for the situation, I found out that using the app build with the previous machine (macOS 13.2.1 / Xcode 14.2) it runs and finds the library as expected, so seems the issue is not with macOS 14.2 but with Xcode 15.2 builds. Searching the possible issue in that direction I found some things that reaffirmed my suspicions: As I can understand in this threads, All this using libndi 5.6.0. Maybe libndi 6.x.x solves that issue and installs the library in another location? I still have not resolved the issue when compiling from Xcode 15, @dimitre fork should work, but I will try to make it work with an installed version of libndi instead of a local one. Eduard |
Thanks very much Eduard. The question is what path is returned for the NDI runtime. This is Correction - that is for windows. It should be http://ndi.link/NDIRedistV6Apple We expect this to be |
Some observations.
If that's the case, the result of querying the environment variable might not be correct, and a hard-coded path to |
I've just tested now again. I've installed libNDI v6 and it is correctly installed in
and software output
it seems to me it will try to load the library in the same app folder just as a quick test, it works if I change this define to the full path
|
Thanks Dimitre, the NDI runtime environment variable is clearly not in the list, so there is no use in testing for it. If the full path works for you, it can be used directly in "FindRuntime" and I have made the changes to try. If loading still fails for Xcode 15.2, the library file will have to be copied to the application folder. I have included a section explaining library installation in the readme and can extend that slightly if there is still a problem. I have found that a re-boot is required before Windows environment variables can be accessed. Fortunately, a registry read works around it until the machine is re-started. I have also changed from deprecated NDIlib_v4* to NDIlib_v5* p_NDILib, changed "libs/NDI/export/vs" to "libs/NDI/bin/vs" to align with the current NDI SDK folder naming and updated to NDI 6.0.1.0. All this is now in the Master branch and hopefully it will get a bit closer to a solution. |
All good now! working with installed libNDI v6 |
Thank you @leadedge |
That's good news. Thanks for your time and the heads up on extra files. |
I've made some changes in a fork to make it work locally
basically I've renamed libs/NDI/export to libs/NDI/lib
updated addon_config.mk
and copied libndi.dylib to libs/NDI/lib/osx
https://github.com/dimitre/ofxNDI
The text was updated successfully, but these errors were encountered: