原创 Openssl 編譯

編譯版本: openssl 1.0.2u 編譯主機:Ubuntu 14.04.1 編譯命令: ./Configure shared no-asm --prefix=安裝路徑 && make depend make && make i

原创 linux 刪除文件,空間不釋放

linux 使用 unlink() / system("rm -f xxx") 刪除文件,刪除後 df 發現空間只釋放了一部分或未釋放。 可能有效的方法 :            添加 sync();  

原创 sockaddr 和 sockaddr_in 的坑

結構: sockaddr struct sockaddr { sa_family_t sa_family; /* address family, AF_xxx */ char sa_data[

原创 Orange_pi_one 主線u-boot 編譯

交叉編譯工具:gcc-linaro-4.9.4-2017.01-i686_arm-linux-gnueabihf.tar.xz u-boot 版本:u-boot-2017.01-rc1 前提:安裝設備樹編譯器 1.配置 : make or

原创 protobuf-c 中repeated類型處理

github上的代碼執行不過,修改之: proto文件:【emessage.proto】 syntax="proto2"; message Submessage { required int32 value=1; } message

原创 Qt 5.0.2 (32 bit) 編譯錯誤

23:28:02: 爲項目1執行步驟 ... 23:28:02: 無法啓動進程"D:\Software\Qt\5.0.2\mingw47_32\bin\qmake.exe" C:\Users\LK\Documents\1\1.pro -r

原创 protobuf-c 的安裝及交叉編譯arm庫文件

一 、 protobuf 安裝 1.   確認安裝依賴庫:automake ,autoconf ,libtool  2.   下載 protobuf 安裝文件,protobuf-cpp-3.5.0.tar.