Closed dimitre closed 2 years ago
Thanks Dimitre, yes you are right. CopyMemory is a Windows function and it can be simply replaced by memcpy. I think __int32_t should be OK. I will check when I get up to this. Meanwhile if you can make those changes manually it will solve the problem. The ReadTexturePixels has been revised recently so I hope it is OK for MacOS.
super. in fact I have an error right there
It looks like the glBufferStorage extension is not defined. What I might do is put in an alternative function that does not require glBufferStorage and see if that works.
I replaced the ReadTexturePixels function with a previous version to avoid the problem. I also changed "unsigned __int32" to "uint32_t". This had been an issue previously.
Great! Everything running here!
For me it is working when compiling to rosetta (intel) with debug option. Release for Intel complain for intrinsics in some lines, it is falling out of #ifdef __x86_64__ for some reason. it is the same error as trying to compile for Apple Silicon:
Use of undeclared identifier '__builtin_ia32_readeflags_u32'
Thank you!
I will look into that, but it might be difficult to guess.
Thanks, in fact this Debug / Release is probably an OpenFrameworks unexpected behavior. just opened an issue here https://github.com/openframeworks/openFrameworks/issues/6784#issuecomment-974186565
if yes it will explain this one too https://github.com/leadedge/ofxNDI/issues/19
OK I hope something comes of this. Meanwhile if the workaround is a solution, maybe that could be documented. Does it solve issue #19 as well?
I have not found any clear reason for the error message, but somewhere I found that order of include could be important.
Move the block of intrinsic includes up to just after "#include "ofxNDIplatforms.h""
That's about all I can suggest right now.
Thank you! everything fixed here
Thanks for your time with this. All works fine with Windows.
Just writing to let you know macOs complain about the absence of CopyMemory function and __int32 data type in your addon. Thanks
PS: I could make it run with the following:
I've heard internally it is the same function. and changing unsigned int32 to int32_t