Comments (6)
可以自行在连接时加上。
from acl.
我的意思是,应该不需要这个判断,docker容器和wsl,uname -a出来是一样的,但是不知道docker用的是什么镜像。
就像这里没有加-liconv的理由一样
#Path for Linux
ifeq ($(findstring Linux, $(OSNAME)), Linux)
ifeq ($(findstring i686, $(OSNAME)), i686)
RPATH = linux32
endif
ifeq ($(findstring x86_64, $(OSNAME)), x86_64)
RPATH = linux64
endif
# CFLAGS += -DLINUX2
SYSLIB += -rdynamic
endif
from acl.
OS_ENV=$(shell uname -a)
ifeq (
SYSLIB += -liconv
endif
这个是针对WSL的环境的编译选项。
from acl.
windows的docker desktop,启动任何一个镜像,uname -a出来,也会带有WSL的字样,但是不代表有iconv,会导致编译不过。并不是只有wsl才会uname -a出来WSL。
from acl.
有的Linux上的 glibc 包含有 iconv,有的不包含,需要单独引入,目前还没有更好的办法在 Makefile 中探测到底属于哪种情形,所以只能是粗略地通过 uname -a 来加以区分。
from acl.
可以直接安装个iconv就好了。apt-get install libiconv-dev。
from acl.
Related Issues (20)
- vs2022搞出来的静态库为啥用不明白? HOT 2
- ssl怎样正常工作 HOT 6
- Unable to compile on windows using MSYS2 or MINGW and throws Linux header file error HOT 19
- Any plan to support MongoDB? HOT 1
- smember崩溃 HOT 4
- redis pipeline 偶尔崩溃的问题,疑似用 mbox wait 不保证强同步 HOT 5
- incrbyfloat 函数错误使用sizeof判断char* HOT 4
- 增加CI/CD工作流
- keys_pattern function inside redis_key.cpp is not working correclty HOT 3
- 3.6.0升级到3.6.0-2版本 测试工程链接失败 HOT 3
- gson是否支持std::array HOT 1
- 能不能讲一下怎么使用websocket+ssl? HOT 2
- dns解析支持毫秒级超时设置吗 HOT 3
- vs2015 windows使用acl redis库时报错
- 项目中使用acl-redis client 报错 HOT 1
- 求解释一些设计理念
- 各平台的编译支持 HOT 11
- mingw支持问题 HOT 2
- mbedtls_conf.cpp代码疑问 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from acl.