【问题标题】:kotlin Native Unknown Host Targetkotlin 本机未知主机目标
【发布时间】:2018-06-27 10:55:23
【问题描述】:

我在 CLion IDE 中创建了一个新的 Hello World Kotlin Native 项目,但我得到了。 kotlin native unknown host target 中的错误。

 if (NOT KONANC_TARGET)
    if (APPLE)
        set(KONANC_TARGET macbook)
    elseif (UNIX)
        set(KONANC_TARGET linux)
    else ()
        **message(FATAL_ERROR "Unsupported host target")**

因为我使用的是 Windows,而 KONANC 仅在 macOS 和 Linux 上受支持。 如何修复此错误并在 windows 上运行 Kotlin Native 项目?

我关注了这个Kotlin Native Tutorial

【问题讨论】:

    标签: ios kotlin clion kotlin-native kotlin-multiplatform


    【解决方案1】:

    这个问题是已知的,但仅限于 CMake 文件。您仍然可以在 Windows 上使用 Gradle 或命令行工具。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-02-04
      • 2013-12-10
      • 2013-03-10
      • 2021-10-26
      相关资源
      最近更新 更多