Select your build environment in platformio. Default is emulator_64bits native. When building for native check that you have configured SDL according to your platform ...