Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

windows 编译问题 #86

Closed
sjtusyl opened this issue Apr 2, 2022 · 7 comments
Closed

windows 编译问题 #86

sjtusyl opened this issue Apr 2, 2022 · 7 comments

Comments

@sjtusyl
Copy link

sjtusyl commented Apr 2, 2022

我在windows上编译simple的时候遇到个问题,我的电脑连不上网;
我就手动下了个 release-1.10.0.zip文件在编译目录下;
但是 文件hash校验一直不过,还是会重新下载;
请教下作者,有什么办法可以规避么

@wangfenjin
Copy link
Owner

https://github.com/wangfenjin/simple/archive/refs/tags/v0.2.0.zip 是说这个文件下载不下来?

@sjtusyl
Copy link
Author

sjtusyl commented Apr 2, 2022

@wangfenjin
Copy link
Owner

mkdir build
cd build
cmake ..  -DCMAKE_BUILD_TYPE=Release -DCODE_COVERAGE=OFF -DBUILD_SHELL=OFF -DBUILD_TEST_EXAMPLE=OFF -DSIMPLE_WITH_JIEBA=OFF
make

这样编译的时候就不会下载任何文件

@sjtusyl
Copy link
Author

sjtusyl commented Apr 2, 2022

还是会下载googletest,是不是CMakeLists要做些修改呢

@wangfenjin
Copy link
Owner

不会啊,你把目录清空重新编译

@wangfenjin
Copy link
Owner

不要再来问这种问题了,我完整的命令都放出来了

@sjtusyl
Copy link
Author

sjtusyl commented Apr 2, 2022

好的 我再看看 感谢

@sjtusyl sjtusyl closed this as completed Apr 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants