Openim三方库安装指南
背景:遇到一些需求需要使用Openim库的dll文件,特此来记录编译过程
github地址:https://github.com/openimsdk/openim-sdk-cpp
从GitHub上克隆下来后发现里面的shared为空,这里需要自己手动编译
前置条件:GO环境 MinGW64 (已经配置好系统环境变量)
1.运行bootstrap_install_mage.bat这个文件
遇到的坑 go build -buildmode=c-shared -trimpath -ldflags=“-s -w” -o openimsdk.dll export.go constant.go protocol.go tools.go go: downloading github.com/openimsdk/openim-sdk-core/v3 v3.8.1-rc.10 export.go:19:2: github.com/openimsdk/openim-sdk-core/v3@v3.8.1-rc.10: Get “https://proxy.golang.org/github.com/openimsdk/openim-sdk-core/v3/@v/v3.8.1-rc.10.zip”: dial tcp 142.251.211.241:443: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.