QT
shmily138
暂缺
展开
-
ubuntu Qt console 不能调试
1 sudo apt install xterm2 QtCreator菜单栏[Tools]->[Options…] system。在弹出的选项对话框里 terminal:/usr/bin/xterm -e原创 2020-07-06 14:39:46 · 412 阅读 · 0 评论 -
windows下Qt 编译Mysql驱动,并使用
写这篇博客的原因很简单,百度一堆答案看的眼花缭乱,有用的没几个,也不想下次在安装QT数据库环境上浪费时间,也希望大家也不要在这里浪费时间。第一次Windows下安装Mysql实在是痛苦。注意:图省事的朋友可以直接在这里下载我编译好的驱动文件,能不能使用我就不清楚了:http://pan.baidu.com/s/1qYktUhA本来Qt5.6.0已经自带了Mysql的驱动。在此目录中C:\Q...转载 2020-03-08 11:33:27 · 377 阅读 · 0 评论 -
QT android platform SDK installed error
QT android platform SDK installed errorinstalling JDK 8 and changing原创 2019-11-19 07:49:00 · 1743 阅读 · 0 评论 -
QT IED 开发 and protobuf 编译
QT5.10.0sudo apt-get install libgl1-mesa-devsudo apt-get install libffi-devsudo apt-get install autoconf automake libtool curl make g++ unzipprotobuf 3.6.1curl 7.53.0openssl 1.1.0gsudo apt inst...原创 2019-09-30 15:12:26 · 197 阅读 · 0 评论 -
Ubuntu16.04 32位编译使用 libcurl 使用curl库出现了__curl_rule_01__ is negative问题
在编译arm64的curl库时出现了__curl_rule_01__ is negative问题,发现是#define CurlchkszEQ(t, s) sizeof(t) == s ? 1 : -1,具体就是CurlchkszEQ(long, CURL_SIZEOF_LONG)计算出了问题。也就是对对CURL_SIZEOF_LONG的定义与系统得到long长度不一致。类型通过sizeof计算时...原创 2019-08-26 19:42:36 · 2354 阅读 · 0 评论 -
Ubuntu16.04 QT打包
Ubuntu16.04 QT打包1.获取 app动态库 使用脚本#!/bin/bashLibDir=$PWD"/lib"Target=$1lib_array=($(ldd $Target | grep -o “/." | grep -o "/./[1]*”))$(mkdir $LibDir)for Variable in libarray[@]docp"{lib...原创 2019-07-18 10:42:10 · 814 阅读 · 0 评论 -
QT5.11 C++ 使用Protobuf
最近在弄一个游戏后台,服务之间使用protobuf进行通信,但模拟客户端使用json与网关通信,为了统一格式模拟客户端使用protobuf。当然C++使用Protobuf比较麻烦,需要自行编译源码然后加入到项目中。 第一步,从github下载最新protobuf源码进行编译,地址:https://github.com/google/protobuf 下载后 1. 进入文件夹 cd ...转载 2018-12-12 12:00:41 · 909 阅读 · 0 评论 -
ubuntu protobuf install
C++ Installation - UnixTo build protobuf from source, the following tools are needed:autoconfautomakelibtoolmakeg++unzipOn Ubuntu/Debian, you can install them with:$ sudo apt-get install aut...转载 2018-12-12 10:16:55 · 488 阅读 · 0 评论 -
ubuntu16.04 install protobuf
sudo apt install autoconf安装时出现configure.ac:17: error: possibly undefined macro: AC_PROG_LIBTOOL If this token and others are legitimate, please use m4_pattern_allow. ...原创 2018-12-22 11:36:54 · 957 阅读 · 1 评论 -
QT
QTsudo apt install cmake g++sudo apt install libgl1-mesa-devsudo apt install valgrind原创 2018-12-11 11:52:17 · 117 阅读 · 0 评论 -
QT 使用 libcurl
.pro文件 中unix|win32: LIBS += -lcurl -lssh2 -lssl -lcrypto原创 2018-12-14 15:57:01 · 1454 阅读 · 1 评论 -
Linux curl
如下为Linux下的操作一。下载需要用到的第三方库的源码,如libcurl ,并用tar命令解压http://curl.haxx.se/download.html二。创建一个文件用于保存库文件,如/curl_lib三。进入解压后的libcurl目录,执行 ./configure --prefix=/curl_lib --enable-static --enable-shared其中,/...转载 2018-12-14 14:34:38 · 127 阅读 · 0 评论