c++ - 在 Windows 上重建 hhvm

标签 c++ c facebook hhvm hiphop

我想在 Windows 10 中从源代码重建 hhvm(64 位,type = home)。

来源:https://github.com/facebook/hhvm/

链接 1:github.com/facebook/hhvm/wiki/Building-and-installing-HHVM-on-Windows-with-MSVC

链接 2:github.com/facebook/hhvm/wiki/Building-and-Installing-HHVM-on-Cygwin

cmake ../configure 的输出是:

-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
CMake Error at CMakeLists.txt:18 (PROJECT):
  No CMAKE_C_COMPILER could be found.



CMake Error at CMakeLists.txt:18 (PROJECT):
  No CMAKE_CXX_COMPILER could be found.



-- Configuring incomplete, errors occurred!
See also "C:/hhvm-master/CMakeFiles/CMakeOutput.log".
See also "C:/hhvm-master/CMakeFiles/CMakeError.log".

我还在msys 1.0cmdVS2015 x86 x64交叉工具命令提示符中测试了cmake .注释VS2013 x64 交叉工具命令提示符VS2013 开发人员命令提示符VS2012 开发人员命令提示符VS2012 x64 交叉工具命令提示符 和 ....

信息:

$ gcc --version
gcc (i686-posix-dwarf-rev4, Built by MinGW-W64 project) 4.8.2
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


$ g++ --version
g++ (i686-posix-dwarf-rev4, Built by MinGW-W64 project) 4.8.2
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


$ cmake --version
cmake version 3.7.0-rc3
CMake suite maintained and supported by Kitware (kitware.com/cmake).

c:\hhvm-master\ 目录中的文件、文件夹:

$ ls
CMake  CMakeCache.txt  CMakeFiles  CMakeLists.txt  CONTRIBUTING.md  ISSUE_TEMPLATE.md  LICENSE.PHP  LICENSE.ZEND  README.md  configure  deps  hphp  third-party

c:\hhvm-master\deps\ 中的文件夹:

$ ls
include  lib

还有 Cygwin B20(C:\cygnus\cygwin-b20\cygnus.bat)

bash-2.02$ cd c:/hhvm-master
bash-2.02$ cmake -DCMAKE_BUILD_TYPE=Debug .
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
CMake Error at CMakeLists.txt:18 (PROJECT):
  No CMAKE_C_COMPILER could be found.



CMake Error at CMakeLists.txt:18 (PROJECT):
  No CMAKE_CXX_COMPILER could be found.



-- Configuring incomplete, errors occurred!
See also "C:/hhvm-master/CMakeFiles/CMakeOutput.log".
See also "C:/hhvm-master/CMakeFiles/CMakeError.log".

如何解决cmake的问题?

最佳答案

我已经基于 Docker 和远程项目功能使 HHVM 在 Windows 上的 Nuclide 中工作。您可以检查我的存储库,以便它也适用于您:

https://github.com/nahuelhds/nuclide-hhvm-windows

您只需要安装 Docker,然后使用 docker 命令构建并运行其他任何东西,真的。这一切都在存储库本身中进行了解释。

我知道这不是您问题的准确答案,但也许您可以尝试一下。

希望它对你有用。 问候

关于c++ - 在 Windows 上重建 hhvm,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40537245/

相关文章:

c - 一起使用静态分配和封装

facebook - FB Open Graph : why when my app posts an action on user's wall, 与该操作相关的操作链接未显示在帖子上?

java - Facebook 支持 Java 和 C++

android - Android 上的 Facebook Unity SDK - 安装 FB 应用程序后登录失败

c++ - 在头文件名中包含句点

c++ - std::ostringstream 和 flush 成员函数

c++ - addTouchEventListener的参数是什么

c++ - Valgrind 找不到无效的写入

c - 全局数组问题不更新,C 编程

c - scanf() 将换行符保留在缓冲区中