原创 Windows下minGW編譯boost庫

下載boost安裝包; 設置mingw的bin的環境變量; 進入boost的目錄,運行bootstrap.bat gcc ,需要等待一會兒運行結束,生成b2.exe和bjam.exe --prefix=<PREFIX> 編譯

原创 wxWidget實現在系統上只內運行一個程序實例或每個用戶只運行一個程序實例的類wxTaskBarIcon

wxSingleInstanceChecker 類 官方資料 1.https://docs.wxwidgets.org/trunk/classwx_single_instance_checker.html

原创 CodeBlocks自動生成makefile文件使用工具cbp2make

一、安裝 Ubuntu 安裝 :sudo apt-get install cbp2make 也可以源碼安裝。 二、生成makefile 這裏要用到CodeBlocks的工程文件 .cbp cbp2make -in xxx.cbp

原创 win下mingw編譯OpenCV

安裝環境 1.安裝cmake,安裝步驟不在詳細說明 2.下載免安裝版mingw; 下載地址:https://sourceforge.net/projects/mingw-w64/files/mingw-w64/ 選擇文件名有-po

原创 匿名函數 lambda表達式

一、lambda表達式 ISO C++ 11 標準的一大亮點是引入Lambda表達式 [capture list] (parameter list)->return type { function body } 註釋: c

原创 mingw編譯OpenCV error: 'mutex' in namespace 'std' does not name a type

在mingw構建工具鏈的“線程模型:win32”中不支持互斥。您必須選擇任何具有“線程模型:posix”的工具鏈。 選擇 -posix的免安裝包。作爲編譯器 參考資料鏈接: https://stackoverflow.com/q

原创 wxWidget創建系統托盤圖標的類wxTaskBarIcon

wxTaskBarIcon 相關資料 官方相關資料 https://wiki.wxwidgets.org/WxTaskBarIcon https://docs.wxwidgets.org/trunk/classwx_task_b

原创 wxPDFView編譯記錄

wxPDFView 作爲 wxWidgets 開發pdf文件預覽、打印、自定義加載pdf文件的開源庫。 源碼地址:https://github.com/TcT2k/wxPDFView API說明: https://tct2k.g

原创 c/c++利用ghostscript API打印機pdf文件

一、簡介 本次是利用ghostscript的api接口實現打印pdf文件的功能; 安裝包和源碼地址:https://github.com/ArtifexSoftware/ghostpdl-downloads/releases AP

原创 ffmpeg推流和拉流

1. rtsp推流rtmp ffmpeg -i rtsp://admin:[email protected]:554 -rtsp_transport tcp -vcodec h264 -acodec aac -strict

原创 Code::Blocks集成wxWidgets環境配置

一、配置 工具欄Settings—Global variables設置 project Build options 設置 ####################################################

原创 wxWidgets關於pdf文件操作的類庫wxPdfDocument

一、 資源網站: https://utelle.github.io/wxpdfdoc/

原创 關於wxPanel全屏顯示的方法

wxPanel全屏顯示 一. wxFrame 全屏很方便直接使用方法 ShowFullScreen(true) 二. wxPanel 的wxWindows* parent 對象是wxFrame,要實現全屏,this指wxFrame;m

原创 ffmpeg推流降低延遲的優化

ffmpeg推流降低延遲的優化 一.針對編碼器上下文的參數配置 AVCodecContext *vc = NULL; // AV_CODEC_FLAG_GLOBAL_HEADER -- 將全局頭文件放在引渡文件中,而不是每個關

原创 C命名空間

1.網上學習:http://blog.sina.com.cn/s/blog_af68a2c201015pqo.html