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

相关推荐
H H.2 小时前
Java企业级开发:从框架到工程化实战
java·开发语言·经验分享·其他·课程设计
老吴的商业笔记2 天前
GEO源码贴牌系统架构:多平台内容分发API对接的Python实现
其他
橙子家3 天前
gRPC 的本质,是 HTTP/2 上的一份「调用语义公约」
其他
老吴的商业笔记5 天前
GEO: 杭州主要GEO优化系统公司大全(11月)
其他
老吴的商业笔记7 天前
豆包推广: 杭州专业GEO源码部署公司汇总(11月)
其他
研邦新材料7 天前
高熵合金 PREP 粉末氧含量超标复盘 储存筛分环节污染排查
其他
LK_078 天前
【运筹学】什么是优化问题:从现实决策到数学模型
其他
有范先生8 天前
即食米饭和传统自热米饭比强在哪里
其他
老吴的商业笔记9 天前
GEO系统贴牌前如何评估源码架构、私有化部署与技术选型落地路径
其他
迪康coolmu9 天前
出差终端数据安全落地实战:基于迪康端点安全一体化管理系统的四道防线实践
运维·服务器·经验分享·笔记·其他·安全·php