Windows下编译Qwt

本文记录在Windows下编译Qwt的流程。

零、环境

一、依赖

二、编译

2.1 代码下载

bash 复制代码
git clone https://github.com/czyt1988/QWT.git 
cd ./QWT/
git checkout v7.3.2

2.2 构建

新建CMakeUserPresets.json,增加以下内容,

复制代码
{
    "version": 6,
    "cmakeMinimumRequired": {
        "major": 3,
        "minor": 28,
        "patch": 0
    },
    "configurePresets": [
        {
            "name": "default",
            "hidden": true,
            "displayName": "Default Config",
            "description": "Default build configuration",
            "binaryDir": "${sourceDir}/out/build/${presetName}",
            "cacheVariables": {
                "CMAKE_INSTALL_PREFIX": "${sourceDir}/out/install/${presetName}",
                "CMAKE_BUILD_TYPE": "Debug"
            }
        },
        {
            "name": "vs2022",
            "hidden": true,
            "inherits": "default",
            "displayName": "Visual Studio 17 2022",
            "description": "This build is using Visual Studio 17 2022 generator",
            "generator": "Visual Studio 17 2022",
            "toolset": "host=x64",
            "architecture": "x64",
            "cacheVariables": {
            },
            "environment": {
            },
            "condition": {
                "type": "equals",
                "lhs": "${hostSystemName}",
                "rhs": "Windows"
            }
        },
        {
            "name": "vs2022-Debug",
            "hidden": false,
            "inherits": "vs2022",
            "displayName": "Visual Studio 17 2022 Debug",
            "description": "This build is using Visual Studio 17 2022 generator in Debug mode",
            "cacheVariables": {
                "CMAKE_BUILD_TYPE": "Debug"
            },
            "condition": {
                "type": "equals",
                "lhs": "${hostSystemName}",
                "rhs": "Windows"
            }
        },
        {
            "name": "vs2022-Release",
            "hidden": false,
            "inherits": "vs2022",
            "displayName": "Visual Studio 17 2022 Release",
            "description": "This build is using Visual Studio 17 2022 generator in Release mode",
            "cacheVariables": {
                "CMAKE_BUILD_TYPE": "Release"
            },
            "condition": {
                "type": "equals",
                "lhs": "${hostSystemName}",
                "rhs": "Windows"
            }
        }
    ],
    "buildPresets": [
        {
            "name": "vs2022-Debug",
            "configurePreset": "vs2022-Debug",
            "configuration": "Debug",
            "jobs": 1,
            "nativeToolOptions": [
                "/p:CL_MPCount=1"
            ]
        },
        {
            "name": "vs2022-Release",
            "configurePreset": "vs2022-Release",
            "configuration": "Release",
            "jobs": 1,
            "nativeToolOptions": [
                "/p:CL_MPCount=1"
            ]
        }
    ],
    "testPresets": [
        {
            "name": "vs2022-Debug",
            "configurePreset": "vs2022-Debug",
            "configuration": "Debug"
        },
        {
            "name": "vs2022-Release",
            "configurePreset": "vs2022-Release",
            "configuration": "Release"
        }
    ]
}

网络

QCustomPlot

Qwt

kplotting

PLplot

Matplotlib

gnuplot

相关推荐
TorchWeiye2 小时前
台式真空焊接设备:精密制造的核心工艺与选型指南
其他
TorchWeiye5 小时前
台式焊膏印刷设备:小型电子制造的核心工艺解决方案
其他
TorchWeiye5 小时前
PCB蚀刻机:精密电路制造的核心技术解析
其他
驰风设计-七哥5 小时前
户外文化墙设计怎么选?材质、工艺、预算与避坑实测指南
其他
cs198706116 小时前
FPG平台:从服务细节读懂信息更新节奏
其他
半导体真空封装设备10 小时前
石英晶体真空封装炉技术详解:从原理到应用
其他
MuMuMu12231 天前
智慧固废项目招投标选型思考:越华环保集团碳惠小屋全生命周期成本与工程约束解析
其他
TorchWeiye1 天前
台式全自动锡膏印刷机:精密电子制造的核心装备
其他
半导体真空封装设备1 天前
金属陶瓷封装解决方案应用指南与关键注意事项
其他
芯片封装工程师1 天前
台式选择性波峰焊接炉:精密电子制造的关键工艺解决方案
其他