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
133 stars 48 forks source link

Trouble building example sender with MSYS2 MINGW64 on Windows 11 #52

Closed PeteHaughie closed 1 week ago

PeteHaughie commented 1 month ago

I've got what I think is a pretty good CLI and VSCode only pipeline working across Mac OS and Windows but I'm still rounding out the edges of my Windows knowledge when trying to get your send/receive example up and running.

Both Silicon and Intel Macs are happy to build the build the example sender but Windows throws this error after running the build Debug task:

../../../addons/ofxNDI6/src/ofxNDIdynloader.cpp:205:9: error: 'p_ndi_runtime' was not declared in this scope
  205 |         p_ndi_runtime = getenv("NDILIB_REDIST_FOLDER");
      |         ^~~~~~~~~~~~~

The addon is cloned into a folder called ofxNDI6 because I have the older ofxNDI installed as well. I have changed the metaname to ofxNDI6 to reflect this fact.

The NDI distributable is also installed. I can see that the dylib loader file is looking in the default location I have installed to. System has been restarted previous to build attempt.

I've tried exporting a variable with the name NDILIB_REDIST_FOLDER and the location of the NDI distributable - C:\Program Files\NDI\NDI 6 Runtime\v6 - and also adding a system variable with that name and location to no avail. Can you suggest anything else I might try?

leadedge commented 1 month ago

This is a typo, it should be -

p_NDI_runtime_folder

Note the caps. I don't know why this was not detected earlier.

PeteHaughie commented 1 week ago

👍