Hi, I'm having a very difficult time trying to set...
# kotlin-native
w
Hi, I'm having a very difficult time trying to setup the SDL library for cinterop. I'm using mpp 1.9.0 with a target of mingwX64. The error I'm getting is:
Copy code
<stdin>:1556:24: error: '__builtin_ia32_crc32qi' needs target feature sse4.2
        return (unsigned int)(__builtin_ia32_crc32qi(p0, p1));
I know my cpu supports sse4.2 so I assume it's a config for clang that konan uses? Google is failing entirely here, does anyone know if this is some flag I can provide to konan/clang to indicate that this should be enabled during cinterop? The error does not indicate at all what code in the SDL headers that it's choking on.
1
Sorry, spent a day on this and managed to find a solution shortly after. Looks this is a problem with SDL with cmake and not with KN. They don't specify the -msse4.2 when it appears to be necessary somewhere. Adding this to compilerOpts solved the problem.