Crosscompiling issues going from Ubuntu terminal to RPI4

Ah okay so that couldn’t be the issue. Do you have any idea why the cmake error occurs for my situation then? I’ve been looking on the internet and the forum for a while now but can’t find the solution.

Maybe posting the specific error is helpful so:

CMake Error at cmake/OpenCVCompilerOptimizations.cmake:564 (message):
  Required baseline optimization is not supported: NEON
  (CPU_BASELINE_REQUIRE=;NEON)
Call Stack (most recent call first):
  cmake/OpenCVCompilerOptions.cmake:324 (include)
  CMakeLists.txt:652 (include)