leadedge / ofxNDI

An Openframeworks addon to allow sending and receiving images over a network using the NewTek Network Device Protocol.
GNU General Public License v3.0
134 stars 48 forks source link

macOS errors #38

Closed moebiussurfing closed 2 years ago

moebiussurfing commented 2 years ago

Hello @leadedge ,

Should the add-on work on macOS? Should I make some special setup?

I am on Big Sur Xcode 13,

it compiles but crashes when opening on:

// Get NDI dll version number
std::string ofxNDIsender::GetNDIversion()
{
    return NDIsender.GetNDIversion();
}
// Get the current NDI SDK version
std::string ofxNDIsend::GetNDIversion()
{
     return p_NDILib->version();
}
leadedge commented 2 years ago

I can only build for Windows. But other people have contributed for MacOS and it works OK for them. It should be fine for Openframeworks without any special setup.

I haven't had any reports of this problem. Does it crash before returning the string or is the string null? Also you could check that p_NDILib is not null. It should show the methods available.

moebiussurfing commented 2 years ago

Captura de Pantalla 2022-07-14 a la(s) 00 52 34

moebiussurfing commented 2 years ago

here I am using of_v0.11.2_osx_release

leadedge commented 2 years ago

It looks like the NDI library has not loaded. Try installing the NDI runtime

moebiussurfing commented 2 years ago

Thanks. That link points to a .exe / windows. That runtime is the SDK? or NDI Tools is enough? I reinstalled NDI Tools to the last one from the site, but I am getting the same.

moebiussurfing commented 2 years ago

I found that repo: https://ndi.palakis.fr/runtime/

leadedge commented 2 years ago

The package for NDI 5 should work. The Tools might install it too, so the problem could still be there.

ofxNDIdynloader::Load() has some text output you could trace.

moebiussurfing commented 2 years ago

it worked after installed that pkg ndi-runtime-5.0-macOS.pkg I didn´t know about that runtime. always installed NDI Tools and worked on Windows.

leadedge commented 2 years ago

OK that's a good result. Maybe the runtime is installed with the SDK rather than the Tools. I can't test but I will see what I can find.

leadedge commented 2 years ago

From an old install of the NDI SDK for Windows, "NDI 5 Runtime.exe" is contained in a "NDI 5 SDK\Redist" folder.

I have another folder "NDI 5 Runtime" as well as "NDI 5 SDK" but that contains only the dll files. I am not sure what happens with MacOs. The NDI webpage does not mention the runtime at all as far as I can see.