Visual Studio编译源

时间:2015-07-08 09:51:35

标签: c++ visual-studio-2010

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

我已经下载了源启动视觉工作室并打开了heimdall / main.cpp 然而,当尝试F5时没有任何事情发生。

请帮忙

2 个答案:

答案 0 :(得分:0)

查看自述文件(例如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

答案 1 :(得分:0)

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