- 博客(214)
- 资源 (328)
- 收藏
- 关注
原创 FFMpeg: “Invalid audio stream. Exactly one MP3 audio stream is required“
【代码】FFMpeg: “Invalid audio stream. Exactly one MP3 audio stream is required“
2023-06-20 15:04:14
2579
原创 qt5在vs2017中的设置
项目使用vs2017来编译。有几个地方要设置下中添加一个ui文件,右键这个ui文件,选择属性,项类型选择自定义生成工具这时候左侧会生成自定义生成工具选项命令行中输入"$(QTDIR)\bin\uic.exe" -o ".\GeneratedFiles\ui_%(Filename).h" "%(FullPath)"说明输入Uic%27ing %(Identity)...输出.\GeneratedFiles\ui_%(Filename).h;%(Outputs)$(Q
2022-04-29 16:49:59
1528
原创 qt每天生成一个日志文件
好的日志需要记录详细的时间,不同的运用就生成不现的日志名。另外日志比较大,一般是一天生成一个。参考了其它博主的代码。最终代码实现如下//日志void outputMessage(QtMsgType t, const QMessageLogContext &context, const QString &msg){ static QMutex mutex; mutex.lock(); QString text; switch(int(t)) {
2022-04-21 07:47:03
626
原创 windows10中docker迁移目录
比如要把docker转移到d:/docker中1.暂停docker中的服务在管理工具中暂停2.把文件复制到d:/docker中去c:\Program Files\Docker -> E:\docker\Dockerc:\ProgramData\DockerDesktop -> e:\docker\DockerDesktop3.创建链接C:\Users\Administrator>cmd /c mklink /D "c:\Program Files\Docker
2022-04-04 08:54:15
1456
原创 QOCI for the Oracle Call Interface (OCI)
The Qt OCI plugin supports Oracle 9i, 10g and higher. After connecting to the Oracle server, the plugin will auto-detect the database version and enable features accordingly.It's possible to connect to a Oracle database without a tnsnames.ora file. This
2022-03-16 16:45:58
967
原创 How to Define an Auto Increment Primary Key in Oracle
Much to the frustration of database administrators worldwide, prior to Oracle version 12c in mid-2014, Oracle simply had no inherent ability to inherently generate auto incrementing columns within a table schema. While the reasons for this design decision
2022-03-16 09:44:52
905
转载 连接driver not loaded解决方法
我想你和我一样,照着终于编译好了qt的oracle驱动QOCI,连接成功!!! 一文编译了QOCI,我目前遇到下面错误:(代码我直接用原文的)QSqlDatabase: QOCI driver not loadedQSqlDatabase: available drivers: QSQLITE QMYSQL QMYSQL3 QODBC QODBC3 QPSQL QPSQL7error_Oracle: "Driver not loaded Driver not loaded" 解决这..
2022-03-15 17:37:29
3145
原创 Accessing Oracle Database Using C++
This chapter describes the basics of developing C++ applications using Oracle C++ Call Interface (OCCI) to work with data stored in relational databases.This chapter contains these topics: About Connecting to a Database About Pooling Connections
2022-03-12 12:30:10
2239
原创 Introduction to OCCI
This chapter describes the basics of developing C++ applications using Oracle C++ Call Interface (OCCI) to work with data stored in relational databases.This chapter contains these topics: About Connecting to a Database About Pooling Connections
2022-03-12 10:31:20
1827
原创 Oracle11g 卸载
1.关闭oracle所有的服务。Window7用户可以在windows的任务管理器-->服务内关闭以oracle开头的所有服务;xp用户可以在我的电脑右击-->管理-->服务和应用程序-->服务,找到所有以oracle开头的服务,右击,关闭。2.打开注册表:regedit打开路径: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\删除该路径下的所有以oracle开始的服务名称,这个键是标识Orac...
2022-03-10 09:17:19
144
原创 Windows 7 with SP1各版本下载
在工程中如下设置INCLUDEPATH += "C:/Program Files (x86)/Microsoft SDKs/Windows/v7.1A/Include/"
2022-03-08 10:41:39
2939
原创 How to use Windows API in Qt (A simple example)
Qt is a cross-platform framework that encapsulates API across many Operating Systems but one always faces situations in which he/she needs to access and use OS specific capabilities. Windows API is a massive collection of interfaces that allow a programmer
2022-03-08 10:06:30
107
原创 How to create a library with Qt and use it in an application
IntroductionThis tutorial illustrates different approaches for using a custom library in your application on Windows. The first part explains how to create a shared library and how to link against it in your application. The second part is about creating
2022-03-07 17:01:04
814
原创 undefined reference to `vtable for`
undefined reference to typeinfo - C++ error messageThere are some compiler and loader error messages that shout obviously as to their cause, but there are others that simply don't give the new user much of an indication as to what's really wrong. And most
2022-03-07 10:12:01
183
原创 qt单例实例模板
经常需要使用单例,这里写一个直接看代码#define DECLARE_SINGLETON(Class) \Q_DISABLE_COPY(Class) \public: \ static Class* Instance() \ { \ static QMutex mutex; \ static QScopedPointer<Class> inst; \ if (Q_UNLIKELY(!inst)) { \
2022-03-03 08:56:40
377
原创 Using Google Breakpad with Qt
I M A N edited this pageon 15 Dec 2016·39 revisionsPages6 Home Change Jenkins Temporary Directory Produce a stacktrace when something goes wrong in your application Using Google Breakpad with Qt Introduction Integration into ...
2022-03-01 11:03:10
406
原创 How to Install vsftpd FTP Server on Debian 11
FTP, short for File Transfer Protocol, is a popular protocol for transferring files to and from an FTP server. However, it is fraught with security risks since it sends data and sensitive information such as usernames and passwords in plain text.VSFTPD( ..
2022-02-26 00:00:16
159
原创 Qt超大文本文件读取
Qt读取,显示几百M甚至几个G的超大文本文件时,调用QFile::open()读取,容易出现加载卡死。对此,可以调用QFile::map()反射内存。uchar *QFileDevice::map(qint64 offset, qint64 size, QFileDevice::MemoryMapFlags flags = NoOptions)Maps size bytes of the file into memory starting at offset. A file should be o
2022-02-25 14:56:28
3526
原创 error writing to -: Invalid argument
qt中出现如上的错误,解决办法error writing to -: Invalid argument工程目录下缺少编译中间文件存放目录:release 和 debug文件夹。创建两个文件夹就可以
2022-02-25 14:36:43
922
原创 创建和使用您自己的动态链接库 (C++)
此分步演练演示如何使用 Visual Studio IDE 创建自己的动态链接库 (DLL),这些库是用 Microsoft C++ (MSVC) 编写的。然后,它展示了如何使用另一个C++应用程序中的 DLL。DLL(在基于 UNIX 的操作系统中也称为共享库)是最有用的 Windows 组件类型之一。你可以使用它们来共享代码和资源,并缩小应用的大小。DLL 甚至可以更轻松地服务和扩展应用。在本演练中,您将创建一个实现某些数学函数的 DLL。然后,你将创建一个使用 DLL 中的函数的控制台应用。您还将
2022-02-25 13:15:53
1835
原创 qt发布windows脚本
echo onD:\soft\Qt5.6.3\5.6.3\mingw49_32\bin\windeployqt.exe %1xcopy /s /q /y D:\soft\Qt5.6.3\5.6.3\mingw49_32\bin\*.dll .自己写了一个qt打包程序
2022-02-24 19:14:41
201
原创 qtcreator4.0远程调试
1.远程主机ip 192.168.31.532.本地ip(qtcreator5.6版本): 192.168.31.128步骤远程主机配置1.本地 192.168.31.128 编译好debug的 helloworld.exe 放到远程主机上192.168.31.53。拷贝必须的*d.dll,保证可以运行可以使用 D:\soft\Qt5.6.3\5.6.3\mingw49_32\bin\windeployqt.exe打包2.把 D:\soft\Qt5.6.3\Tools\mingw492_32.
2022-02-24 17:34:30
1562
2
原创 Windows XP Targeting with C++ in Visual Studio 2012
BackgroundIn June, weannouncedenhanced targeting for Windows XP using the Visual Studio 2012 C++ compiler and libraries. This feature has been included in Visual Studio 2012 Update 1. You can download it fromhere. The purpose of this article is to pro...
2022-02-24 14:55:01
161
原创 QT5.7 做支持XP的程序
Step1、http://download.qt.io/new_archive/qt/5.7/5.7.0/上面网址下载 qt-opensource-windows-x86-msvc2015-5.7.0.exe注意!!!!,QT版本一定要和上面的一样!安装的时候如果有相同版本的QT,记得改下名字!Step2、使用Qt Creator新建一个基于窗口的test工程,然后在pro中加入:win32 { QMAKE_LFLAGS_WINDOWS = /SUBSYSTEM:WINDOWS,5.0.
2022-02-24 14:23:12
1084
原创 error: taking address of temporary array av_make_error_string((char[AV_ERROR_MAX_STRING_SI。。。
/** * Convenience macro, the return value should be used only directly in * function arguments but never stand-alone. *///#define av_err2str(errnum) \ // av_make_error_string((char[AV_ERROR_MAX_STRING_SIZE]){0}, AV_ERROR_MAX_STRING_SIZE, errnum)...
2022-02-24 11:59:41
1152
原创 ffmpeg使用的全部命令
Hyper fast Audio and Video encoderusage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...Getting help: -h -- print basic options -h long -- print more options -h full -- print all options (including all fo...
2022-02-19 13:02:42
396
原创 qt中socket中错误获取的方法
qt5.15之前是使用QAbstractSocket::error5.5版本以后就可以使用 errorOccurred 了,这时就可以使用 connect愉快的绑定了connect(this,&QIODevice::readyRead,this,&ClientSocket::slotReadData); connect(this,&QAbstractSocket::disconnected,this,&ClientSocket::slotDisconnect
2022-01-23 17:14:04
2107
原创 qt6随机数
qt6中不能再使用 qsrand 与qrand.应当使用 QRandomGenerator比如生成0到300的随机数#include <QRandomGenerator>int rand = QRandomGenerator::global()->bounded(0,300);QRandomGenerator may be used to generate random values from a high-quality random number generator
2022-01-13 20:25:24
2524
1
原创 debian 安装libGL库
直接执行命令apt-get update && apt-get install libgl1-mesa-dev再不行再执行sudo apt-get install build-essentialsudo apt-get install libgl1-mesa-devsudo apt-get install libglu1-mesa-devsudo apt-get install libglut-dev最后一个库libglut-dev不行就执行sudo apt-
2022-01-13 09:22:48
2839
1
原创 ubuntu 挂载ntfs硬盘
1.安装ntfs-3g包sudo apt install ntfs-3g2.创建挂载点sudo mkdir /disk_hdd03.查看设备的信息 lsblk 比如生成的是sda 8:0 0 12.8T 0 disk ├─sda1 8:1 0 16M 0 part └─sda2 8:2 0 12.8T 0 part
2021-08-13 15:04:29
4462
原创 linux中硬盘修改uuid
生成uuid及修复硬盘root@huntkey004:~# uuidgen12ec596c-d13e-43f5-aad7-00e90ac39544root@huntkey004:~# e2fsck -f /dev/sdt1修改uuidroot@huntkey004:~# tune2fs /dev/sdt1 -U 12ec596c-d13e-43f5-aad7-00e90ac39544tune2fs 1.45.5 (07-Jan-2020)Setting the UUID on th
2021-08-05 15:52:35
3016
原创 golang注册服务
// Copyright 2015 Daniel Theophanes.// Use of this source code is governed by a zlib-style// license that can be found in the LICENSE file.// simple does nothing except block while running the service.package mainimport ( "log" "github.com/kardi.
2021-07-14 14:25:44
285
原创 pip设置成阿里云源
步骤pip config list 查看当前 pip 的配置接着修改配置文件pip config set global.index-url http://mirrors.aliyun.com/pypi/simple/pip config set install.trusted-host mirrors.aliyun.com
2021-07-10 16:50:34
1614
ffmpeg book 详细教程 2023年最新版
2023-02-01
osgeo4w64开发包
2022-11-21
QGIS Desktop 3.22 User Guide(官方使用文档)
2022-08-09
qgis官方例子学习代码
2022-05-03
qt5写的文件上传大文件源代码
2022-04-25
qt5.14.2中使用的 mysql5库
2022-04-25
qt-vsaddin 2017 2019 2022 三个插件
2022-04-21
QGIS Desktop 3.16 User Guide中文版
2022-03-16
qt官方正式版api文档
2022-02-21
qtftp官方原版代码
2022-02-20
bcgcontrol全部实例源代码
2022-02-16
bcg官方实例全部例子
2022-02-16
vc官方实例原代码全部例子
2022-02-15
Postman金丝雀版for Mac
2021-03-25
OpenGL开发库.zip(glaux.h,gl.h)
2021-02-08
44个微信小程序,全部源代码(精心准备)
2020-12-24
Go Modules.docx
2020-04-19
Cocos-Creator开发(来自于网络).pdf
2020-04-17
centos8 sql server2019 安装包(mssql-server-15.0.4013.40-8.x86_64.rpm)
2020-03-30
microsoft sql server management studio(SSMS-Setup-CHS.exe)
2020-03-30
python3.8-windows与linux两个版本源码.zip
2020-03-08
srs-3.0release.zip源代码
2020-03-06
RunHiddenConsole.zip
2019-09-03
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人