【问题标题】:Compile C++ Source Generated by HipHop编译 HipHop 生成的 C++ 源代码
【发布时间】:2011-11-12 07:48:49
【问题描述】:

如何在不同的服务器(未安装 HipHop)上使用 HipHop 编译转换为 C++ 的项目?

我已经复制了源代码,它看起来像这样:

./   CMakeCache.txt  cmake_install.cmake  CodeError.js  php/      sep_extensions.mk
../  CMakeFiles/     CMakeLists.txt       Makefile      sys/

现在我该如何编译它?

【问题讨论】:

    标签: php c++ compilation hiphop


    【解决方案1】:

    目录中有Makefile;试着输入make 看看会发生什么。

    【讨论】:

    • 上面写着:CMake Error: The source directory "/home/ec2-user/Predict" does not exist. Specify --help for usage, or press the help button on the CMake GUI. make: *** [cmake_check_build_system] Error 1
    • 我将检查 makefile 并更新路径,然后看看它会说什么。
    • 现在显示:CMake Error: The current CMakeCache.txt directory /root/Predict/CMakeCache.txt is different than the directory /home/ec2-user/Predict where CMackeCache.txt was created. This may result in binaries being created in the wrong place. If you are not sure, reedit the CMakeCache.txt CMake Error: The source "/root/Predict/CMakeLists.txt" does not match the source "/home/ec2-user/Predict/CMakeLists.txt" used to generate cache. Re-run cmake with a different source directory. make: *** [cmake_check_build_system] Error 1
    • 给我留下了深刻的印象——它认识到情况已经发生了变化,并建议采取一种方法!凉爽的。尝试摆弄CMakeCache.txt 文件并尝试进行足够小的更改,使其能够在您的新环境中构建。
    • 天哪...我看到它正在寻找所有的 HipHop 库和类似的东西。看来不安装 HipHop 就没有办法编译了。
    猜你喜欢
    • 2015-12-13
    • 1970-01-01
    • 2020-07-27
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-06-06
    • 2011-09-23
    • 1970-01-01
    相关资源
    最近更新 更多