2021年2月23日
摘要: #ifndef G_DECL_EXPORT #ifdef WIN32 #define G_DECL_EXPORT __declspec(dllexport) #else #define G_DECL_EXPORT __attribute__((visibility("default"))) #end 阅读全文
posted @ 2021-02-23 16:21 码农er 阅读(153) 评论(0) 推荐(0) 编辑
摘要: #include <inttypes.h> typedef int8_t int8; //<有符号 1字节 typedef uint8_t uint8; //无符号 1字节 typedef uint8_t byte; //< 无符号 1字节 typedef int16_t int16;//有符号 2 阅读全文
posted @ 2021-02-23 15:59 码农er 阅读(110) 评论(0) 推荐(0) 编辑
摘要: linux-g++*{ DEFINES +=OS_LINUX #gcc默认为导出所有符号,此处修改为默认不导出,和msvc行为一致,原因如下: #1.避免不必要的冲突。导出的符号载入到进程的全局符号表,如果同名符号已存在则直接使用已存在的符号,可能导致调用到错误地址 #2.影响编译和运行时加载速度 阅读全文
posted @ 2021-02-23 14:57 码农er 阅读(354) 评论(0) 推荐(0) 编辑
  2020年1月3日
摘要: 源码:https://github.com/wang-bin/QtAV/archive/v1.12.0.tar.gz 编译依赖库:http://sourceforge.net/projects/qtav/files/depends/QtAV-depends-windows-x86+x64.7z/do 阅读全文
posted @ 2020-01-03 10:02 码农er 阅读(542) 评论(0) 推荐(0) 编辑
  2019年12月31日
摘要: 1.强制删除 DEL /F /A /Q \\?\%1RD /S /Q \\?\%1 2.批量删除vc及vs临时文件 @echo offecho echo By MoreWindows (http://blog.csdn.net/MoreWindows)echo Press any key to de 阅读全文
posted @ 2019-12-31 14:48 码农er 阅读(150) 评论(0) 推荐(0) 编辑
摘要: #!/bin/sh#written by dmer corepath=/corefiles #echo $corepath if [ -d $corepath ];then #echo aaaa if [ $(state -c %a $corepath) -ne 777 ]; then #echo 阅读全文
posted @ 2019-12-31 14:27 码农er 阅读(539) 评论(0) 推荐(0) 编辑
  2019年12月23日
摘要: lua_State* lua_state; //定义对象 lua_state = luaL_newstate(); luaL_openlibs(lua_state); if(lua_state == NULL) { LOGERROR("错误:初始化lua环境失败!"); m_error = "错误: 阅读全文
posted @ 2019-12-23 13:40 码农er 阅读(827) 评论(0) 推荐(0) 编辑
  2019年12月4日
摘要: 生成ts 文件 :lupdate.exe xxx.pro -ts en.ts 把ts文件转为qm文件: lrelease .\en.ts 阅读全文
posted @ 2019-12-04 09:30 码农er 阅读(102) 评论(0) 推荐(0) 编辑
摘要: 在文件根目录打开命令行,输入: qmake –spec win32-msvc –r -tp vc 阅读全文
posted @ 2019-12-04 09:16 码农er 阅读(251) 评论(0) 推荐(0) 编辑
  2019年11月12日
摘要: QMessageBox msgBox; msgBox.setText(tr("包含未确认报警!")); msgBox.setInformativeText("是否跳过该项?"); QPushButton *skip = msgBox.addButton(tr("跳过"), QMessageBox:: 阅读全文
posted @ 2019-11-12 13:19 码农er 阅读(370) 评论(0) 推荐(0) 编辑