3D slicer编译过程中遇到的问题总结

3D slicer编译过程中遇到的问题总结系列一

1,有关python部分编译

1>------ 已启动生成: 项目: python-setuptools, 配置: Debug x64 ------
1>  Creating directories for 'python-setuptools'
1>  Building Custom Rule D:/S/S4/CMakeLists.txt
1>  No download step for 'python-setuptools'
1>  No update step for 'python-setuptools'
1>  No patch step for 'python-setuptools'
1>  Generate version-python-setuptools.txt and license-python-setuptools.txt
1>  fatal: not a git repository (or any of the parent directories): .git
1>  CMake Warning (dev) at D:/S/SD/CMakeFiles/python-setuptools-generate-project-description.cmake:68 (message):
1>    python-setuptools: Could not find a license file
1>  This warning is for project developers.  Use -Wno-dev to suppress it.
1>  No configure step for 'python-setuptools'
1>  No build step for 'python-setuptools'
1>  Performing install step for 'python-setuptools'
1>  CMake Error at D:/S/SD/python-setuptools-prefix/src/python-setuptools-stamp/python-setuptools-install-Debug.cmake:49 (message):
1>    Command failed: 1
1>     'D:/S/SD/python-install/bin/SlicerPython.exe' '-m' 'pip' 'install' '--require-hashes' '-r' 'D:/S/SD/python-setuptools-requirements.txt'
1>    See also
1>      D:/S/SD/python-setuptools-prefix/src/python-setuptools-stamp/python-setuptools-install-*.log
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(171,5): error MSB6006: “cmd.exe”已退出,代码为 1。

解决办法是关闭代理服务器,但是不能断网,然后重新编译。

2,fatal: early EOF fatal: index-pack failed

出现这个问题的原因是要clone文件太大需要讲文件压缩,解决方法是在git_bash中输入:
git config --global core.compression 9

3,fatal: Not a git repository (or any of the parent directories): .git

产生这个的问题的主要原因是没有初始化git本地版本管理仓库,所以无法执行git命令。解决方法是以管理员身份运行git_bash,然后输入“git init”命令。

4,fatal: remote error: The unauthenticated git protocol on port 9418 is no longer supported.

GitHub于2022年1月11日发布了最新的git协议安全规定,其中说明端口9418上未经验证的git协议不再受支持。解决这个问题的办法就是在git_bash运行以下命令:

git config –global url.”https://”.insteadOf git://

这是最快捷的方法。亲测有效。还有其他几种方法详见参考链接。

5,OpenSSL SSL_connect: Connection was reset in connection to github.com:443

产生这个问题的主要原因可能与你使用了VPN有关,这时候需要设置http.proxy就可以了。
一定要查看自己的VPN端口号,假如你的端口号是1234,在git bash命令行中执行以下命令:

git config --global http.proxy 127.0.0.1:1234
git config --global https.proxy 127.0.0.1:1234

亲测有效,如果还是下载不下来,建议多重复几次。
参考链接:
[1]: https://exerror.com/solved-the-unauthenticated-git-protocol-on-port-9418-is-no-longer-supported/
[2]: https://stackoverflow.com/questions/21277806/fatal-early-eof-fatal-index-pack-failed
[3]: https://discourse.slicer.org/t/failed-in-building-3d-slicer-on-win10-with-vs2015x64/10773/9
[4]: https://www.jianshu.com/p/189fd3c9d0ac
[5]:https://blog.csdn.net/qq_37555071/article/details/114260533

  • 5
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 5
    评论
评论 5
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值