martmists
12/18/2021, 4:50 PMheaders = Python.h
package = python
compilerOpts.windows = /I 'C:\\Program Files\\Python39\\Include'
# ignore this one, it's autogenerated from python sysconfig
compilerOpts.linux = -I'C:\\Program Files\\Python39\\Include'
linkerOpts.linux = -L/usr/lib -l python3
---
struct KtPyObject {
PyObject base;
void* ktObject;
};
I tried this but I get
Exception in thread "main" java.lang.Error: C:\Users\martm\AppData\Local\Temp\1630593588999760275.c:1:10: fatal error: 'Python.h' file not found
at org.jetbrains.kotlin.native.interop.indexer.UtilsKt.ensureNoCompileErrors(Utils.kt:192)
at org.jetbrains.kotlin.native.interop.indexer.IndexerKt.indexDeclarations(Indexer.kt:1189)
at org.jetbrains.kotlin.native.interop.indexer.IndexerKt.buildNativeIndexImpl(Indexer.kt:1178)
at org.jetbrains.kotlin.native.interop.indexer.IndexerKt.buildNativeIndexImpl(Indexer.kt:1174)
at org.jetbrains.kotlin.native.interop.gen.jvm.DefaultPlugin.buildNativeIndex(Plugins.kt:31)
at org.jetbrains.kotlin.native.interop.gen.jvm.MainKt.processCLib(main.kt:272)
at org.jetbrains.kotlin.native.interop.gen.jvm.MainKt.interop(main.kt:76)
at org.jetbrains.kotlin.cli.utilities.InteropCompilerKt.invokeInterop(InteropCompiler.kt:45)
at org.jetbrains.kotlin.cli.utilities.MainKt.mainImpl(main.kt:38)
at org.jetbrains.kotlin.cli.utilities.MainKt.main(main.kt:60)
hfhbd
12/18/2021, 4:52 PMmartmists
12/18/2021, 4:53 PMhfhbd
12/18/2021, 4:58 PMwindows
and not mingw_x64
?hfhbd
12/18/2021, 4:59 PMhfhbd
12/18/2021, 5:00 PMmartmists
12/18/2021, 5:06 PMmartmists
12/18/2021, 5:09 PMhfhbd
12/18/2021, 5:17 PMmartmists
12/18/2021, 5:55 PM