This error pops up when your system is neither x86_64 nor aarch64. Are you using a raspberry Pi? Cause you might have Armv7, which is aarch32.
if (USE_SYSTEM_ARCH MATCHES LINUX)
add_definitions(-DSYSTEM_ARCH_LINUX)
add_subdirectory(samples/sample_c/platform/linux/manifold2)
add_subdirectory(samples/sample_c++/platform/linux/manifold2)
execute_process(COMMAND uname -m OUTPUT_VARIABLE DEVICE_SYSTEM_ID)
if (DEVICE_SYSTEM_ID MATCHES x86_64)
set(LIBRARY_PATH psdk_lib/lib/x86_64-linux-gnu-gcc)
elseif (DEVICE_SYSTEM_ID MATCHES aarch64)
set(LIBRARY_PATH psdk_lib/lib/aarch64-linux-gnu-gcc)
else ()
message(FATAL_ERROR "FATAL: Please confirm your platform.")
endif ()
This is the code sequent i'm reffering to. You can view the whole thing here:
https://github.com/dji-sdk/Payload-SDK/blob/master/CMakeLists.txt