Build fails on ARM based M1 MacBookPro

Ld bin/cameraLensOffsetExampleDebug.app/Contents/MacOS/cameraLensOffsetExampleDebug normal arm64
    cd /Users/sam/dev/openFrameworks/examples/3d/cameraLensOffsetExample
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -target arm64-apple-macos10.9 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk -L/Users/sam/dev/openFrameworks/examples/3d/cameraLensOffsetExample/bin -F/Users/sam/dev/openFrameworks/examples/3d/cameraLensOffsetExample/bin -filelist /Users/sam/dev/openFrameworks/examples/3d/cameraLensOffsetExample/build/cameraLensOffsetExample.build/Debug/cameraLensOffsetExample.build/Objects-normal/arm64/cameraLensOffsetExampleDebug.LinkFileList -dead_strip -Xlinker -object_path_lto -Xlinker /Users/sam/dev/openFrameworks/examples/3d/cameraLensOffsetExample/build/cameraLensOffsetExample.build/Debug/cameraLensOffsetExample.build/Objects-normal/arm64/cameraLensOffsetExampleDebug_lto.o -Xlinker -no_deduplicate -stdlib=libc++ ../../../libs/tess2/lib/osx/tess2.a ../../../libs/glew/lib/osx/glew.a ../../../libs/cairo/lib/osx/cairo-script-interpreter.a ../../../libs/cairo/lib/osx/cairo.a ../../../libs/cairo/lib/osx/pixman-1.a ../../../libs/fmod/lib/osx/libfmod.dylib ../../../libs/rtAudio/lib/osx/rtaudio.a ../../../libs/glfw/lib/osx/glfw3.a ../../../libs/FreeImage/lib/osx/freeimage.a ../../../libs/freetype/lib/osx/freetype.a ../../../libs/boost/lib/osx/boost_filesystem.a ../../../libs/boost/lib/osx/boost_system.a ../../../libs/curl/lib/osx/curl.a ../../../libs/uriparser/lib/osx/uriparser.a ../../../libs/pugixml/lib/osx/pugixml.a -framework Accelerate -framework AGL -framework AppKit -framework ApplicationServices -framework AudioToolbox -framework AVFoundation -framework Cocoa -framework CoreAudio -framework CoreFoundation -framework CoreMedia -framework CoreServices -framework CoreVideo -framework IOKit -framework OpenGL -framework QuartzCore -framework QTKit -framework Security ../../../libs/openFrameworksCompiled/lib/osx/openFrameworksDebug.a ../../../addons/ofxOpenCv/libs/opencv/lib/osx/opencv.a -Xlinker -dependency_info -Xlinker /Users/sam/dev/openFrameworks/examples/3d/cameraLensOffsetExample/build/cameraLensOffsetExample.build/Debug/cameraLensOffsetExample.build/Objects-normal/arm64/cameraLensOffsetExampleDebug_dependency_info.dat -o /Users/sam/dev/openFrameworks/examples/3d/cameraLensOffsetExample/bin/cameraLensOffsetExampleDebug.app/Contents/MacOS/cameraLensOffsetExampleDebug
ld: warning: ignoring file /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks//QTKit.framework/QTKit.tbd, missing required architecture arm64 in file /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks//QTKit.framework/QTKit.tbd
Undefined symbols for architecture arm64:
  "___TBB_machine_fetchadd4", referenced from:
      ___itt_domain_create_init_3_0 in opencv.a(ittnotify_static.c.o)
      ___itt_string_handle_create_init_3_0 in opencv.a(ittnotify_static.c.o)
      ___itt_counter_create_init_3_0 in opencv.a(ittnotify_static.c.o)
      ___itt_counter_create_typed_init_3_0 in opencv.a(ittnotify_static.c.o)
      ___itt_init_ittlib in opencv.a(ittnotify_static.c.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

** BUILD FAILED **


The following build commands failed:
	Ld bin/cameraLensOffsetExampleDebug.app/Contents/MacOS/cameraLensOffsetExampleDebug normal arm64
(1 failure)
failed building ../../examples/3d/cameraLensOffsetExample Debug

What is up with that.

Cloned master build projectGenerator, went smooth

Used the projectGenerator to recursively generate all examples

the ran cd scripts/osx/ && ./buildAllExamples.sh

Got error above.

Not a good start.

Look here on another post.