ofxKinectV2 on m1 Mac

Hello everyone,

I am currently trying to build a project with KinectV2 sensor on m1 Mac but I got an error message:

error build: In …/…/…/addons/ofxKinectV2/libs/libturbojpeg/lib/osx/libturbojpeg.a(jcapimin.c.o), building for macOS, but linking in object file built for iOS, file ‘…/…/…/addons/ofxKinectV2/libs/libturbojpeg/lib/osx/libturbojpeg.a’ for architecture arm64

I tried to link the libturbojpeg.a file from ios folder but then it came up with a bunch of undefined symbols with regard to libusb

Does anyone know how to solve this? Many Thanks!!