cmake_build_type cmake build type

nginx配置都媒体文件Content-Type

用nginx做代理用来做多媒体文件的下载,因为有些文件名后缀类型没有匹配。所以返回个请求端的响应头会是: Content-Type: application/octet-stream,给请求端造成困扰。例如:acc 文件需要是: Content-Type: audio/aac,wav 文件需要是:C ......

The type or namespace name "' does not exist in the namespace "' (are you missing an assembly reference?)

看了很多的文章都说这个是目标框架的版本问题,亦或者是先行版和正式版,但是我的目标电脑框架为.NET FrameWork4.6.1开发版,我的电脑为.NET FrameWork4.8开发版,不存在此问题,于是我从自己电脑上面下载了NET FrameWork4.8开发板,安装到电脑上面之后,问题完美解决 ......
namespace quot reference assembly missing

cmake string example

string(CONCAT result ${var1} "/how") string(FIND ${var1} "targetPattern" foundResultIndex) if(${foundResultIndex} GREATER_EQUAL 0 ) endif() string(LEN ......
example string cmake

03-创建一个jenkis build任务

1.创建任务 2.配置项目 输入gitee仓库地址 用户密码保存 这是我们刚刚创建的任务 终于build成功了 ......
任务 jenkis build 03

cmake get_filename_component

get_filename_component(<var> <FileName> <mode> [BASE_DIR <dir>] var : outputValue FileName: inputValue mode DIRECTORY = Directory without file name NA ......

cmake tree

https://stackoverflow.com/questions/31966135/cmake-source-group-not-working-correctly-with-hierarchical-project-setup https://stackoverflow.com/questi ......
cmake tree

cmake CMAKE_BUILD_TYPE

https://stackoverflow.com/questions/24460486/cmake-build-type-is-not-being-used-in-cmakelists-txt There are two types of generators: single-configurat ......
CMAKE_BUILD_TYPE cmake CMAKE BUILD TYPE

CMake 使用环境变量

为了传播性考虑,使用CMake编译工程时,有一些路径需要能方便地在新机器上更改,这就需要使用“环境变量”。 调用环境变量,在文件管理器中是用“%NAME%”,在Visual Studio中则是"${NAME}"。 在CMake中是“$(NAME)”,像这样: ......
变量 环境 CMake

cmake xcode

1. generate project cmake .. -G Xcode error: error: No CMAKE_C_COMPILER could be found. solu: If you have installed Xcode or Command Line Tools for Xc ......
cmake xcode

Cmake

1.Generate a Project Buildsystem cmake [<options>] <path-to-source> cmake [<options>] <path-to-existing-build> cmake [<options>] -S <path-to-source> - ......
Cmake

MSVC 踩坑记录:`set(CMAKE_CXX_STANDARD)` 需要设置 `/Zc:__cplusplus`

[MSVC 踩坑记录] set(CMAKE_CXX_STANDARD) 需要设置 /Zc:__cplusplus 最近在使用 MSVC 编译项目 CFSApp 的时候,eigen 总是报错说我 C++ 语言标准太低,在 cmakelists 中写了 set(CMAKE_CXX_STANDARD 17 ......

Spring 项目运行提示错误 Not a managed type

在启动 Spring 项目的时候提示下面的错误信息。 问题和原因 这个问题的原因是你的类没有在 Spring 管理的容器中注册。 主要原因是上面的包的路径不正确。 修改上面的包的路径后重启服务就可以解决启动的时候对象没有注册的问题。 https://www.ossez.com/t/spring-no ......
错误 managed 项目 Spring type

初见 cmake

初见 cmake cmake 是自动生成构建系统的一个工具。cmake 本身不是构建系统,它是一个生成构建系统的工具。或者说 cmake 不是一个构建工具,是一个能根据平台生成对应平台构建系统配置的构建工具。 Cmake 构建系统 Unix 平台的最常见的 C/C++ 构建工具 make,根据 Ma ......
cmake

类型类Type classes(第一部分)类约束 Eq、Ord、Show、Read、Enum、Num、Integral、Floating

类型类Type classes是一种定义某种行为的接口。如果类型是类型类的成员,则意味着类型支持并实现了类型类定义的行为。 #类约束 == 函数的类型,如下 :type (==) (==) :: Eq a => a -> a -> Bool =>符号定义了一个类约束,==函数接受两个相同类型的形参, ......
第一部 Integral Floating classes 类型

docker build 构建时 alpinelinux 镜像权限错误

使用 docker 构建镜像时发生错误:ERROR: https://dl-cdn.alpinelinux.org/alpine/v3.15/main: Permission denied 是什么原因以及如何解决呢... ......
alpinelinux 镜像 权限 错误 docker

What's the Client_Credentials grant type?

What's the Client_Credentials grant type? The Client Credentials grant type is a type of OAuth2 authentication flow that enables a client to authentic ......

webpack基本使用(七)build命令打包

运行npm run build后 出现了dist的目录 此目录里面存放的就是要发布的代码。 我们把dist打包,发给运维就可以进行发布了。 ......
命令 webpack build

nvcc fatal : Unsupported gpu architecture 'compute_80' ninja: build stopped: subcommand failed.

问题描述 3090显卡,运行示例代码报错。 解决方法 export PATH="$PATH:/usr/local/cuda/bin/nvcc" ......

error TS2339: Property '$route' does not exist on type

<template> <div id="app"> <router-view v-slot="{ Component }"> <keep-alive> <component :is="Component" :key="$route.name" v-if="$route.meta.keepAlive" ......
Property error route exist 2339

vue-qr引入时报错You may need an appropriate loader to handle this file type. 问题

今天研究了一下vue生成二维码的功能,在使用vue-qr插件的时候,在所需页面引入,报错,于是就研究了一番。 解决方法 找到node_modules/vue-qr/dist/vue-qr.js文件,搜...e,将...去掉,然后重新运行就好。 ......
appropriate 时报 vue-qr loader handle

Ceres 中的线性求解器类型(linear_solver_type)

Ceres Solver中的线性求解器类型(linear_solver_type)有多个选项,包括: DENSE_QR:使用稠密QR分解方法求解线性方程组。适用于内存足够的小规模问题,求解速度较快。 DENSE_SCHUR:使用Schur补方法进行求解。适用于大规模问题,但内存消耗较大。 SPARS ......

nginx配置vue打包npm build的静态页面

nginx 配置vue项目 server { listen 8081; server_name 10.8.8.8; index index.html; root /home/www/crm/vue/dist; #SSL-START SSL相关配置,请勿删除或修改下一行带注释的404规则 #error ......
静态 页面 nginx build vue

echarts export three types picture: png、html、svg

import './styles.css' import echarts from 'echarts' import { saveAs } from 'file-saver' import JSPDF from 'jspdf' import { init } from 'canvas-to-blob ......
echarts picture export three types

=Required reguest parameter 'min' for method parameter type Integer is not present

出现这个错具体原因就是你前端的数据没有传到后端 后端只要就看你的注解有没有写对 controller层的get请求是@QequestParam 绝大部分就是前端的原因 前端没有把数据传过了 或者传过来的数据等于null 都会报这个错 ......
parameter Required Integer reguest present

cannot configure a CMake target with CLion (Nothing to run on)?

ERROR:打开之前的stm32项目 Clion 无法识别 CMakeLists.txt,编译按钮变成灰色,点击run按钮会产生 cannot build xxx.elf 或者 Nothing to run on,在run配置target和executable不到elf文件。 解决方法:抽风了大概, ......
configure Nothing cannot target CMake

无效或损坏的PDF文件。 更少信息关闭 PDF.js v1.1.159 (build: 82536f8) 信息:Invalid PDF structure

当我们需要预览一个pdf我们首选开源项目来做 https://github.com/mozilla/pdf.js 就是下载到本地然后看到文档把这个项目的文件复制到我们项目 然后启动项目 <a href="http://localhost:8088/web/viewer.html?file=http: ......
PDF 信息 structure 82536f8 Invalid

小程序input设置为type="number"聚焦时,会出现白屏的情况

在微信小程序开发过程中,input聚焦时会出现白屏的情况,如图: 经过测试发现当input设置为type="number"聚焦时,当微信数字键盘弹出来的时候就会白屏,有的手机会闪(一下整个白屏,一下能看见输入框) 可能出现的原因: 1.a页面使用了cover-view,然后跳转到b页面点击type= ......
quot 情况 程序 number input

注入了一个记录日志的接口,启动微服务工程的时候报错了:No qualifying bean of type 'com.cscecnf.common.log.SysOprLogDao'

【问题描述】 Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'monitorAreaServiceImpl': Injection of resour ......

vue table type=select列不能使用if判断

因为当前这个selection用【querySource】字段状态来判断显示和隐藏,在el-table标签里需要加:key=“querySource” ......
select table type vue

Clion+Qt+CMake写Qt项目出现黑框的解决方法

使用Clion+Qt+CMake写Qt项目得到的应用程序运行时会伴随有一个黑框,这个时候在CMakeList.txt中加入以下以下两条信息 set_target_properties(${你的target名称} PROPERTIES LINK_FLAGS_DEVRELEASE "/SUBSYSTEM ......
方法 项目 Clion CMake Qt