【问题标题】:How can I build this Project? (VapourSynth Editor r20)我怎样才能建立这个项目? (VapourSynth Editor r20)
【发布时间】:2021-09-29 04:28:57
【问题描述】:

我想为 Windows 构建 this project,但我不知道如何构建它。请帮我建立这个项目。

我阅读了BUILDING file,其中说明了如何为 Windows 构建此项目,如下所示。

Windows:

- get compiler of your choice (MinGW and MSVC are fully supported);
- if you use MSVC - you might also need to install Windows SDK; also you need to open the file "pro/local_quirks.pri" with text editor or your IDE and change the paths to headers and libraries to those that correspond to your MSVC and Windows SDK installation paths; if you experience any problems during the building related to missing headers or "unresolved externals" - fixing these paths is the most likely solution to such problems;
- get Qt5 distribution corresponding to your compiler (https://www.qt.io/download/).

然后我打开"pro/local_quirks.pri" 文件,看到一些目录如下。

我没有使用 Visual Studio 2014,我使用的是 Visual Studio 2019,并且没有名为 "..Windows Kits/8.1Lib/winv6.3/um/x64/"的文件夹在我的电脑里。

这些目录对于 Visual Studio 2019 和 Windows 10 build 21h2 的等效项是什么?

我怎样才能正确构建这个项目?

HOST_64_BIT = contains(QMAKE_HOST.arch, "x86_64")
TARGET_64_BIT = contains(QMAKE_TARGET.arch, "x86_64")
ARCHITECTURE_64_BIT = $$HOST_64_BIT | $$TARGET_64_BIT

win32:contains(QMAKE_COMPILER, msvc) {

    VC_INCLUDEPATH += 'C:/Program Files (x86)/Windows Kits/10/Include/10.0.14393.0/shared/'
    VC_INCLUDEPATH += 'C:/Program Files (x86)/Windows Kits/10/Include/10.0.14393.0/um/'
    VC_INCLUDEPATH += 'C:/Program Files (x86)/Windows Kits/10/Include/10.0.14393.0/ucrt/'
    VC_INCLUDEPATH += 'C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/include/'
    VC_INCLUDEPATH += 'C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/include/'

    RC_INCLUDEPATH += $${VC_INCLUDEPATH}
    INCLUDEPATH += $${VC_INCLUDEPATH}

    if($$ARCHITECTURE_64_BIT) {
        QMAKE_LIBDIR += 'C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/lib/amd64/'
        QMAKE_LIBDIR += 'C:/Program Files (x86)/Windows Kits/8.1/Lib/winv6.3/um/x64/'
        QMAKE_LIBDIR += 'C:/Program Files (x86)/Windows Kits/10/Lib/10.0.14393.0/ucrt/x64/'
    } else {
        QMAKE_LIBDIR += 'C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/lib/'
        QMAKE_LIBDIR += 'C:/Program Files (x86)/Windows Kits/8.1/Lib/winv6.3/um/x86/'
        QMAKE_LIBDIR += 'C:/Program Files (x86)/Windows Kits/10/Lib/10.0.14393.0/ucrt/x86'
    }

}

【问题讨论】:

    标签: c++ qt5 visual-studio-2019 mingw msvc12


    【解决方案1】:

    我建议忽略您的 PC 中找不到的目录。

    关注编译器的抱怨,

    例如,它抱怨无法打开'vapoursyth/vapoursyth.h'

    ,我在这里下载最新版本https://github.com/vapoursynth/vapoursynth/releases

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2017-08-11
      • 1970-01-01
      • 2011-04-27
      • 2017-07-06
      • 2022-10-24
      • 1970-01-01
      • 2021-07-10
      相关资源
      最近更新 更多