C/C++包管理器conon入门使用

conan包管理器安装

$] yum install centos-release-scl -y
$] yum install rh-python36 -y
$] python --verison
$] yum groupinstall 'Development Tools' -y
$] yum install python-pip -y
$] pip …

阅读全文

cmake静态编译和golang静态编译

cmake静态编译(Linux)

首先安装libstdc静态库

yum install libstdc++-static

CMakefile中增加 set(CMAKE_EXE_LINKER_FLAGS “-static”) 即可

CMakeLists.txt

cmake_minimum_required(VERSION …

阅读全文

查看exe依赖的DLL

Windows下使用dumpbin

dumpbin.exe通常在下面的路径下:

C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\Hostx64\x64

将该路径加入到PATH环境变量中即可

$ dumpbin …

阅读全文

cmake学习08 - 交叉编译

交叉编译

Cross Compiling for Linux

set(CMAKE_SYSTEM_NAME Linux)
set(CMAKE_SYSTEM_PROCESSOR arm)

set(CMAKE_SYSROOT /home/devel/rasp-pi-rootfs)
set(CMAKE_STAGING_PREFIX …

阅读全文