在之前的博文中,已经说过相关 autotools,qmake转cmake,cmake-cpack,checkinstall,linuxdeployqt ,本博文将qt 安装配置做一个简单的讲解,搭配 linuxdeployqt 来说明,qmake 安装配置。
QMake 工程 转换为CMake 工程 源码目录结构 . ├── build.sh ├── businesscontrol.cpp ├── businesscontrol.h ├── globaldef.h ├── lib │ └── x86_64 ├── log │ ├── LogFileManager.cpp │ ├── LogFileManager.h ├── main.cpp ├── mqtt │ ├── mqttclient.cpp │ ├── mqttclient.h ├
总结一下一些用到的模板,后续会有补充。 1. 链接第三方库 ①unix与Windows使用相对路径链接第三方库模板 unix{ contains(QT_ARCH, i386){ LIBS += -L$$PWD/Lib/Qsci/linux_x32/lib -lqscintilla2_qt5 INCLUDEPATH += $$PWD/Lib/Qsci/linux_x32/include } contains(QT_ARCH, x86_64){
本章来写一个插件,插件功能为通过NETLINK读取linux系统中的hotplug信息,比如usb、SD卡、磁盘等设备的插拔事件产生的信息,将读到的信息通过插件间通信的方式发出。
在cef上进行二次开发,发现默认不只支持h264解码。需要重新编译chromium解决。
xmake是一个基于Lua的轻量级现代化c/c++的项目构建工具,主要特点是:语法简单易上手,提供更加可读的项目维护,实现跨平台行为一致的构建体验。
概述 由于我工作环境是Linux和Mac,个人的工作目录和开发环境一直来回切换,之前一直使用emacs。不可否认,emacs非常强大和可定制化。昨天由于个人电脑系统损坏,重装了osx。在好基友的推荐下,试用vscode,发现非常不错。于是记录和分享到博客中。今天主要给大家讲解的vscode配置c/c++ ide开发环境,当然官网支持很多种可定制化的配置。 开发环境搭建 我们首先安装vscode,官网是:vscode。我们下面来安装支持c/c++开发环境的安装包。 cpptools cmake C/C++ C
rdma The RDMA I/O engine supports both RDMA memory semantics (RDMA_WRITE/RDMA_READ) and channel semantics (Send/Recv) for the InfiniBand, RoCE and iWARP protocols. falloc IO engine that does regular fallocate to simulate data transfer as fio ioengine. DDIR_READ does fallocate(,mode = keep_size,) DDIR_WRITE does fallocate(,mode = 0) DDIR_TRIM does fallocate(,mode = punch_hole) e4defrag IO engine that does regular EXT4_IOC_MOVE_EXT ioctls to simulate defragment activity in request to DDIR_WRITE event rbd IO engine supporting direct access to Ceph Rados Block Devices (RBD) via librbd without the need to use the kernel rbd driver. This ioengine defines engine specific options. gfapi Using Glusterfs libgfapi sync interface to direct access to Glusterfs volumes without options. gfapi_async Using Glusterfs libgfapi async interface to direct access to Glusterfs volumes without having to go through FUSE. This ioengine defines engine specific options. libhdfs Read and write through Hadoop (HDFS). The 'filename' option is used to specify host, port of the hdfs name-node to connect. This engine interprets offsets a little differently. In HDFS, files once created cannot be modified. So random writes are not possible. To imitate this, libhdfs engine expects bunch of small files to be created over HDFS, and engine will randomly pick a file out of those files based on the offset generated by fio backend. (see the example job file to create such files, use rw=write option). Please note, you might want to set necessary environment variables to work with hdfs/libhdfs properly. mtd Read, write and erase an MTD character device (e.g., /dev/mtd0). Discards are treated as erases. Depending on the underlying device type, the I/O may have to go in a certain pattern, e.g., on NAND, writing sequentially to erase blocks and discarding before overwriting. The w
kubernetes 源码编译,分为本地二进制可执行文件编译和 docker 镜像编译两种, 之前演示的 minikube 方式或 kubeadm 方式安装,都是基于第二种 docker 镜像方式运行,当然也可以基于二进制文件方式安装,不管哪种方式,都是直接使用并不需要修改任何 k8s 代码。
在.vscode文件夹下,找到 c_cpp_properties.json,人家报错都跟你说了病灶,这点不用我说。
在linux环境下进行程序开发时,经常需要使用makefile管理编译代码,特别是一些大型工程,而makefile工具语法晦涩深入研究较为困难,好在有很多工具可以自动生成makefile,qmake就是其中的一种。
处理图形中的乱码 设置为中文后,zabbix图形的中文文字会显示小方框 这是因为在zabbix的字体库中没有中文字体,需要从windows上借用一个过来 vim /usr/share/zabbix/include/defines.inc.php //搜索ZBX_FONTPATH -它定义的路径是“fonts”,它是一个相对路径,绝对路径为/usr/share/zabbix/fonts,而字体文件为“ZBX_GRAPH_FONT_NAME”所定义的“graphfont”,它是一个文件,绝对路径为/usr/sh
bs_is_seq_randIfthisoptionisset,fiowillusethenormalread,writeblocksizesettingsassequential,randominstead.AnyrandomreadorwritewillusetheWRITEblocksizesettings,andanysequentialreadorwritewillusetheREADblocksizesetting.zero_buffersIfthisoptionisgiven,fiowillinittheIObufferstoallzeroes.Thedefaultistofillthemwithrandomdata.refill_buffersIfthisoptionisgiven,fiowillrefilltheIObuffersoneverysubmit.Thedefaultistoonlyfillitatinittimeandreusethatdata.Onlymakessenseifzero_buffersisn't specified, naturally. If data verification is enabled, refill_buffers is also automatically enabled. scramble_buffers=bool If refill_buffers is too costly and the target is using data deduplication, then setting this option will slightly modify the IO buffer contents to defeat normal de-dupe attempts. This is not enough to defeat more clever block compression attempts, but it will stop naive dedupe of blocks. Default: true. buffer_compress_percentage=int If this is set, then fio will attempt to provide IO buffer content (on WRITEs) that compress to the specified level. Fio does this by providing a mix of random data and a fixed pattern. The fixed pattern is either zeroes, or the pattern specified by buffer_pattern. If the pattern option is used, it might skew the compression ratio slightly. Note that this is per block size unit, for file/disk wide compression level that matches this setting, you'llalsowanttosetrefill_buffers.buffer_compress_chunk=intSeebuffer_compress_percentage.Thissettingallowsfiotomanagehowbigtherangesofrandomdataandzeroeddatais.Withoutthisset,fiowillprovidebuffer_compress_percentageofblocksizerandomdata,followedbytheremainingzeroed.Withthissettosomechunksizesmallerthantheblocksize,fiocanalternaterandomandzeroeddatathroughouttheIObuffer.buffer_pattern=strIfset,fiowillfilltheiobufferswiththispattern.Ifnotset,thecontentsofiobuffersisdefinedbytheotheroptionsrelatedtobuffercontents.Thesettingcanbeanypatternofbytes,andcanbeprefixedwith0xforhexvalues.Itmayalsobeastring,wherethestringmustthenbewrappedwit
最近在学习Redis源码,主要是目前负责华为产品FusionInsight HD中Redis组件的相关事务,不得不学习Redis源码。本文主要讲述的是怎么通过vscode查看Redis的源码(Linux平台下面).
在使用QT进行开发时,经常遇到一份工程代码在不同的平台进行编译、比如: Android、windows、Linux系统、嵌入式linux系统等。或者一份工程代码编译64位、32位不同的版本。
xmake集成了内置的远程包依赖管理,用户只需要简单地在项目中添加自己所需要的包和版本,即可自动下载和集成对应的包到项目中,并且实现编译和链接。
栗子:hdfs getconf -confKey fs.defaultFS 查看 hdfs 的 uri 地址。
CLion因其独特的CMakeLists.txt管理方式及强大的代码补全等功能,编写本地代码绝对好于前两者。
官方的 Python/C API 是针对 CPython 的实现的:公开了许多内部细节,使得 API 实现难度较大;而且,如果要为 PyPy、GraalPython、Jython、IronPython 等替代实现开发 API,更是各类问题多多。最近发现了一个性能更好的开源 Python 扩展,HPy。简单试用后,感觉值得推荐。
在 Windows 上,共享库由 .dll 表示;在 Linux 上,由 .so 表示。
C/C++ Tools插件---C/C++支持安装库文件的配置GDB本地调试配置GDB远程调试配置Remote VSCode插件---远程编辑文件安装环境配置在本地端的配置在远程端的配置工作流Ftp Sync插件--—远程代码的同步安装环境配置工作流
全球领先的开源解决方案提供商红帽公司(Red Hat, Inc.)于昨日正式推出了Red Hat Enterprise Linux 9(简称RHEL9),这款红帽企业版Linux操作系统旨在推动整个开放混合云从裸机服务器到云提供商和企业网络边缘更为一致的创新。
桥接模式是一种结构型模式,可将一个大类或一系列紧密相关的类拆分为抽象和实现两个独立的层次结构,从而能在开发时分别使用。
kubeadm 默认 ca 证书10年,k8s 证书是 1 年,虽然续期方便,但是为了一劳永逸尝试编译修改 kubeadm 默认证书有效期,并更新现有集群。
Kubernetes 是一个开源的,用于管理云平台中多个主机上的容器化的应用,Kubernetes 的目标是让部署容器化的应用简单并且高效,Kubernetes 提供了应用部署,规划,更新,维护的一种机制。
上一次和大家分享的是Linux下Qt创建共享库并链接共享库,这次和大家分享的是Windows下Qt创建共享库并链接共享库。大家肯定注意到标题中Qt后面括号中的minGW,为什么要加上minGW呢?先卖个关子,后面的介绍中会解释的。
它使用 xmake.lua 维护项目构建,相比 makefile/CMakeLists.txt,配置语法更加简洁直观,对新手非常友好,短时间内就能快速入门,能够让用户把更多的精力集中在实际的项目开发上。
因为项目的原因,最近经常使用node.js搭RESTful接口。 性能还是很不错啦,感觉比Spring Boot之类的要快。而且在不错的性能之外,只要程序结构组织好,别让太多的回调把程序结构搞乱,整体开发效率比Java快的就太多了。
由于Disqus不支持Markdown的原因,所以在评论中使用HTML标签和代码高亮就不像Markdown那样方便了。在查看了Disqus官方关于HTML标签和代码高亮的说明后,发现Disqus只支持原生的HTML标签和代码高亮方式。
如果是openstack的环境,virsh dump –file 指定文件路径后,生成的文件,不是在 指定路径而是在: /var/lib/docker/overlay2/****/diff/root
创建js文件,添加需要使用的全局变量 export default { tabBarItemSelected: '事业', newsBarSelected: '1', setnewsBarSelected (newsBar) { this.newsBarSelected = newsBar }, settabBarItemSelected (item) { this.tabBarItemSelected = item } } 1、全局变量模块导入方式 <scrip
docker pull registry.cn-hangzhou.aliyuncs.com/gloomyghost/yuzukilizard
《ShaderHelper组件速递》一篇我们介绍了ShaderHelper组件的使用,以及如何定义一个shader程序并添加到ShaderHelper组件的program枚举属性中,这里我们再简单回顾下shader模板对象定义:
本文主要解析一下nginx http模块配置参数。主要分socket相关参数,对clinet请求的buffer参数以及对response的buffer参数。
开启ENABLED_CHINESE_LIB仅会加载229kb的汉字库,内存占用比较少,但缺点是不能词组匹配输入。
19.7 主动模式和被动模式 主动模式和被动模式 主动或者被动是相对客户端来讲的 被动模式,服务端会主动连接客户端获取监控项目数据,客户端被动地接受连接,并把监控信息传递给服务端,服务端请求以后,客户端接受到请求以后,才把相应的数据汇报给服务中心 主动模式,客户端会主动把监控数据汇报给服务端,服务端只负责接收即可。 定义完策略之后,到达定义的时间以后,就会主动汇报数据给服务中心,比如系统的负载,网络的网卡流量等 当客户端数量非常多时,建议使用主动模式,这样可以降低服务端的压力。 服
在Qt编程中,有时候需要针对Debug调试版和Release发行版做条件编译,做不同的处理,比如有时在Debug版中需要在控制台打印日志,在Release版中将日志写入到文件中。 Qt中提供了QT_
门面模式,也叫外观模式,英文全称是 Facade Design Pattern。在 GoF 的《设计模式》一书中,门面模式是这样定义的:
第一次使用Visual Studio Code(vs code)并不知道她附有10种可用的显示语言(地区):英文(美国),简体中文,繁体中文,法文,德文,意大利文,日文,韩文,俄文和西班牙文。 所有10种语言的本地化显示文本都包含在主VS代码下载中,因此不需要辅助安装。
今天碰到一个奇怪的小问题,看起来是一个非常简单的问题。 我先说一下问题背景。有一台DB服务器,因为需要搭建备库,现在找了一台已有的机器临时用一下,这台临时的服务器上已经安装了Oracle软件是 11.2.0.4.0,而我们需要安装的备库版本是11.2.0.3.0所以为了兼容,所以需要在临时的服务器上再安装一套Oracle软件,把 11.2.0.4的ORACLE_HOME切换过来,直接从主库拷贝了安装目录,开始克隆安装。 克隆安装的步骤其实内部就是在做relink,当然这个也没什么问题,很快就操作完成了。 在
主动模式和被动模式 主动或者被动是相对客户端来讲的 被动模式,服务端会主动连接客户端获取监控项目数据,客户端被动地接受连接,并把监控信息传递给服务端 主动模式,客户端会主动把监控数据汇报给服务端,服务
编译环境 Ubuntu 16.04 x86_64 himix2000 编译工具链 下载openssl源码 wget https://www.openssl.org/source/openssl-1.1.1d.tar.gz 解压源码 tar xvf openssl-1.1.1d.tar.gz 执行Configure脚本 ./Configure linux-generic32 \ no-shared \ no-asm \ --prefix=/ilock/dist/himix200_openssl_11
Cocos Creator 升级的2.2之后,渲染流程发生了比较大的变化,主要是重构了一些类,属性的位置发生了变化。为了防止日后忘记,先记录下来。
http://blog.csdn.net/baidu_32237719/article/details/79509819(3239 版本编译)
STM32例子代码中会有像这样的代码 static __IO uint32_t TimingDelay; 这里边的__IO修饰符不好理解,单从字面可以看出是为IO相关,查其标准库可以得知这个__IO原来是在Core_cm3.h中被重定义,其实就是volatile,句子如下 /* IO definitions (access restrictions to peripheral registers) */ #ifdef __cplusplus #define __I volat
Kubelet 出于对节点的保护,允许在节点资源不足的情况下,开启对节点上 Pod 进行驱逐的功能。最近对 Kubelet 的驱逐机制有所研究,发现其中有很多值得学习的地方,总结下来和大家分享。
path: /usr/sap/PRD/SYS/profile profile: PRD_DVEBMGS00_sapapp 如果您想查看所有的参数及当前设定,可使用SA38 执行程序 RSPARAM 修改附加配置 T-CODE:RZ10 进行SAP系统参数的设置,设置后需激活参数并重启SAP实例,配置参数才会生效 login/system_client 登录时默认的Client号 login/password_expiration_time 密码有效期 login/fails_to_user_lock 密码输错多少次后锁定 login/failed_user_auto_unlock 用户失效后多长时间解锁 rdisp/mshost 状态栏中显示的系统名称 rdisp/rfc_use_quotas 是否激活配额资源分配,0是关闭,1是启用.以下相关限制必须这个为1时才生效. rdisp/gui_auto_logout 表示如果客户在指定时间内没有进行任何操作,则会自动退出SAP系统。时间为秒 rdisp/max_wprun_time 程序运行的最长时间限制 rdisp/rfc_max_login 最大SAP用户登录数 login/disable_multi_gui_login 限制用户多次登录,该参数可以设置同个client 同个用户ID可以允许同时登录几个,当设为1时,系统将提示用户选择: 'Terminate the Current Sessions' or 'Terminate this Login.' ,以达到保证只允许一个登录. rdisp/tm_max_no 这个参数是限制每个实例最大的用户数,默认是200个. rdisp/rfc_max_own_login 一个程序在一个服务器 上允许分配的RFC资源个数,也就是同时能运行多少个.默认值25. rdisp/rfc_min_wait_dia_wp 设置RFC保留的会话设置, rdisp/wp_no_dia 在一个实例中处理的会话数目,如果设置为10,rdisp/rfc_min_wait_dia_wp=3 则可用的会话处理是7,3个被保留 rdisp/rfc_max_own_used_wp rdisp/rfc_max_comm_entries rdisp/rfc_max_wait_time rdisp/btctime SAP调度器(SAYMSSY2),定期自动运行,由这个参数指定运行时间间隔。 rdisp/btcname 事件触发后运行envent scheduler 主机名称 rspo/store_location 文件存储位置(假脱机) wdisp/server_info_location the default is /msgserver/text/logon.The URL to retrieve the list is determined this parameter rdisp/mshost 信息服务器设置 ms/http_port http服务端口 auth/new_buffering to 该参数设为4,权限的修改将立即起作用,不用用户重新登录. Note 209899. 系统性能参数调整类: SAP 描述文件参数 参数 建议值 abap/use_paging 建议值:0(关闭)使用:重新激活旧的 ABAP/4 分页系统获得清单和简单表格类型。 abap/heaplimit 建议值:20000000(20MB)使用:用户环境完成处理后,重新启动一个工作进程来释放局部私有存储。 abap/heap_area_total 建议值:500000000(500MB)使用:设置 SAP 应用程序服务器可以使用的进程局部存储限制。对服务器的使用或交换空间设置限制。 em/initial_size_MB 建议值:250(250 MB,每个用户五 MB)使用:SAP 共享内存的大小。 em/stat_log_size_Mb 建议值:20使用:统计。 em/stat_log_size_timeout 建议值:600使用:统计。 rdisp/ROLL_MAXFS 建议值:32768使用:滚动文件的最大规模。 rdisp/ROLL_SHM 建议值:4096 使用:滚动缓冲区大小。 rdisp/PG_MAXFS 建议值:32768使用:ABAP/4 分页文件的最大规模。 rdisp/PG_SHM 建议值:0使用:分页缓冲区大小。 ztta/roll_area:滚动区域 建议值:1000000 (1 million bytes)使用:滚动区域大小。 T-CODE
领取专属 10元无门槛券
手把手带您无忧上云