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

相关推荐
TorchWeiye18 小时前
车规可靠性设备升级:汽车电子企业采购真空共晶炉的实用考量
其他
hgfsjk20 小时前
跨境电商ERP系统软件哪个好?2026年选型指南
大数据·经验分享·笔记·其他
goodzz2221 天前
中天至尊系列,不止是地板
其他
TorchWeiye1 天前
储能设备厂采购台式回流焊,选型核心看三点
其他
ZKXinHuo1 天前
异构集成集成电路真空回流焊需求分化与设备选型逻辑
其他
gu_qing_qing1 天前
不同机型适配飞机腊克线规格与材质匹配逻辑解析
其他
JiNan.YouQuan.Soft1 天前
Windows下编译libconfig
其他
ZKXinHuo2 天前
芯片中试为何越来越重要?无锡12英寸晶圆加工服务商的工程解答
其他
ZKXinHuo3 天前
苏州FPGA集成电路研发企业的封装工艺底层逻辑
其他
Ztt6666666663 天前
月白大竹节壶不露锋芒,竹意藏在嘴把转折里
经验分享·笔记·其他·百度·微信公众平台