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

相关推荐
ZKXinHuo14 小时前
深圳SiC碳化硅器件封装企业:先进封装技术新引擎
其他
打螺丝的小李15 小时前
汽车零部件 QMS 选型指南:IATF 16949 / PPAP / FMEA / 8D 落地能力怎么判断?
其他
奇逍科技圈16 小时前
订货系统数据安全吗?备份、权限与可用性说明
其他
MuMuMu122317 小时前
户外碳普惠物联网终端工程实践:越华环保集团碳惠小屋系统架构解析
其他
品牌数字化增长观察17 小时前
提升 AI 可见性的 6 步落地清单:2026 年品牌 GEO 实操路线图
其他
打螺丝的小李20 小时前
2026国产QMS行业测评|市场格局、能力分层与制造企业质量系统选型指南
其他
程曦曦2 天前
MySQL 生产库误删 98 张表后的时间点恢复实战:从 binlog 解析到资金对账
linux·数据结构·其他·算法·ubuntu·运维开发
智塑未来2 天前
课堂录的音视频想转成文字方便复习用哪个工具最推荐?
其他
智塑未来3 天前
开会汇报高效出图:快速生成逻辑清晰思维导图APP全指南
其他
ZKXinHuo3 天前
车载摄像头图像芯片打样:半导体封测的关键技术挑战与解决方案
其他