Did you follow the installation step by step that can be found in the SDK (SDK1.6.1RM20.11/public/site/setup_windows_wsl_ubuntu.html)? Especially the "Setup Packages" and "Dependencies for Crossbuild (Multiarch)" part?
Please clean up your programming environment when changing from one target to another. E.g. do a CMake clean all or at least delete the folders set up by the process (like build, generated, ...). Probably you could have some artifacts left over.
... View more