Linux修改、打包依赖路径(rpath)

1. 通过环境变量修改 # 必须是绝对路径 export LD_LIBRARY_PATH=$(pwd) 2. 编译时指定rpath # 将rpath指定为当前目录 gcc test.c -L . -lhello -Wl,-rpath,'.' 3. 通过chrpath或patchelf修改 su


CMake编译Android iOS库

CMake编译Android/iOS库 CMakeLists.txt project(RayStreamNet) cmake_minimum_required(VERSION 3.1) add_compile_options(-fvisibility=hidden -std=c++14 -fPIC


查询Windows下的dll exe所依赖的文件

查询Windows下的dll/exe所依赖的文件 dumpbin -dependents your-file 如果有Image has the following delay load dependencies,列出的为运行时动态加载的dll。 如果有Image has the following


Go生成库给C C++

Go生成库给C/C++ Windows main.go package main /* #include <stdlib.h> */ import "C" import ( "net" "unsafe" ) //export GetMacAddr


Mac修改依赖动态库路径

Mac修改依赖动态库路径 查看动态库依赖路径 otool -L <*.dylib> 修改动态库路径 install_name_tool -change /usr/local/lib/libswresample.3.dylib @rpath/libswresample.3.dylib ../doul