htw0056 / redis-3.0-annotated-cmake-in-clion Goto Github PK
View Code? Open in Web Editor NEWLicense: BSD 3-Clause "New" or "Revised" License
License: BSD 3-Clause "New" or "Revised" License
I have a source of bash,I need run it in clion with cywin.I don't know how to write cmakelist.txt file.
the cmakelist.txt file generate by clion has error
D:\C_Study\redis-3.0-annotated-cmake-in-clion-master\deps\hiredis\hiredis.c: In function '__redisSetError':
D:\C_Study\redis-3.0-annotated-cmake-in-clion-master\deps\hiredis\hiredis.c:985:9: warning: implicit declaration of function 'strerror_r'; did you mean 'strerror_s'? [-Wimplicit-function-declaration]
strerror_r(errno,c->errstr,sizeof(c->errstr));
^~~~~~~~~~
strerror_s
[ 7%] Building C object deps/linenoise/CMakeFiles/linenoise.dir/linenoise.c.obj
D:\C_Study\redis-3.0-annotated-cmake-in-clion-master\deps\linenoise\linenoise.c:97:10: fatal error: termios.h: No such file or directory
#include <termios.h>
^~~~~~~~~~~
compilation terminated.
mingw32-make.exe[3]: *** [deps\linenoise\CMakeFiles\linenoise.dir\build.make:71: deps/linenoise/CMakeFiles/linenoise.dir/linenoise.c.obj] Error 1
mingw32-make.exe[2]: *** [CMakeFiles\Makefile2:233: deps/linenoise/CMakeFiles/linenoise.dir/all] Error 2
mingw32-make.exe[2]: *** Waiting for unfinished jobs....
[ 8%] Building C object deps/lua/CMakeFiles/lua.dir/src/lauxlib.c.obj
[ 9%] Building C object deps/lua/CMakeFiles/lua.dir/src/lstate.c.obj
D:\C_Study\redis-3.0-annotated-cmake-in-clion-master\deps\hiredis\net.c:35:10: fatal error: sys/socket.h: No such file or directory
#include <sys/socket.h>
^~~~~~~~~~~~~~
compilation terminated.
mingw32-make.exe[3]: *** [deps\hiredis\CMakeFiles\hiredis.dir\build.make:84: deps/hiredis/CMakeFiles/hiredis.dir/net.c.obj] Error 1
mingw32-make.exe[3]: *** Waiting for unfinished jobs....
作者好,按照你的说明文档,的确可以使用Clion运行Redis的源码程序,但是特别希望知道你是如何将原来的Make程序转换成CMake程序的,希望可以添加更详细的说明文档,感谢分享,谢谢!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.