【问题标题】:Visual Studio Compile SourceVisual Studio 编译源
【发布时间】:2015-09-26 03:43:32
【问题描述】:

我想编译源码: https://github.com/Benjamin-Dobell/Heimdall

我已经下载了启动 Visual Studio 的源代码并打开了 heimdall/main.cpp 但是,当尝试 F5 时没有任何反应。

请帮忙

【问题讨论】:

  • 您可能需要将源文件放入VS项目中。
  • 听起来你需要创建一个VS项目才能编译它
  • 看起来很复杂,以前没做过,有没有分步说明? thx 我只需要命令行

标签: c++ visual-studio-2010


【解决方案1】:

查看自述文件(例如Win32):

附录 B - 从源代码安装 Heimdall Suite

Heimdall and Heimdall Frontend both utilise CMake for managing the build
process. CMake can generate files for various build systems including GNU
Make and Visual Studio. However, official packages are compiled with GNU
Make and MinGW-W64 GCC/G++.

NOTE: Official builds use MinGW-W64 simply because on-going cross-platform
      development is simpler when using just the one IDE (Jetbrain's CLion)
      and similar toolchains.

1. Setup a MinGW-W64 build environment by utilising MSYS2:

    http://msys2.github.io/

2. After installing MSYS2 a command prompt will launch, enter:

    Pacman -Syu
    Pacman -S mingw-w64-x86_64 mingw-w64-x86_64-clang mingw-w64-x86_64-cmake mingw-w64-x86_64-libusb mingw-w64-x86_64-qt5-static make

3. Add the MinGW-W64 binaries to your PATH environment variable:

    export PATH="/mingw64/bin:$PATH"

4. Build Heimdall & Heimdall Frontend

    mkdir build
    cd build
    cmake -G "MSYS Makefiles" -DCMAKE_BUILD_TYPE=Release -DQt5Widgets_DIR=/c/msys64/mingw64/qt5-static/lib/cmake/Qt5Widgets ..
    make

【讨论】:

    【解决方案2】:

    您可以签出 v1.4.0 标签,打开 msvc2012.sln 并构建该代码。 你需要Qt Developer Framework (4.7 or later, but prior to 5.0) 来构建它

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-03-13
      • 1970-01-01
      • 1970-01-01
      • 2013-03-01
      • 2013-06-21
      • 1970-01-01
      相关资源
      最近更新 更多