代码之家  ›  专栏  ›  技术社区  ›  BullyWiiPlaza

如何在Windows和CMake上使用Visual Studio编译Mac OS X C++

  •  0
  • BullyWiiPlaza  · 技术社区  · 6 年前

    I read that Visual Studio now supports cross-platform development . 我正在使用 CMake Windows Ubuntu (使用 WSL )到目前为止。然而,似乎没有任何关于如何使用 Visual Studio 瞄准 Mac OS X . 这是可行的吗 CMakeSettings.json this Linux-Debug Linux-Release 作为 configurationType Visual Studio 2017 Enterprise Linux 我甚至没有选择,我也没有 MacOSX .

    this 这似乎是完成工作最方便的方法。

    1 回复  |  直到 6 年前
        1
  •  2
  •   BullyWiiPlaza    6 年前

    显然你不能。

    I ended up installing a virtual machine with Mac OS X 并使用共享文件夹成功编译了其中的代码 Windows 主机源代码可供来宾使用。这样做肯定比以前更可靠、更明智 some hacky cross-compilation project . 后者仍然不能保证代码将成功运行,并且不会在交叉编译目标操作系统上意外崩溃。