• 记LGSVL Map Annotation(1) LGSVL本地编译记录、安装


    主要的编译参考来着官方文件

    Unity安装

    1. 安装unity hub

    2. 安装2020.3.3f1在unity hub上

    但是我发现没有2020.3.3f1,只有2020.3.3f1c1,其实c1就是中国版,没有什么影响

    GIT安装

    1. 安装GIT
    2. 安装Git LFS
    3. 验证git-lfs(输出Git LFS initialized就🆗了)
    输入:git lfs install
    > Git LFS initialized.
    
    • 1
    • 2

    拉项目

    官方:

    1. 打开终端并导航到要将模拟器下载到的位置
      如果你想模拟器在你的 Documents 文件夹,使用 cd 在终端中,以便终端的输入类似于 /Documents$
    2. 开源用户: git clone https://github.com/lgsvl/simulator.git
    3. 验证下载
      上面的克隆将创建一个 Simulator 文件夹
      打开文件资源管理器并导航到 Simulator 文件夹是
      导航到 Simulator/Assets/Materials/EnvironmentMaterials/
      应该有一个 EnvironmentDamageAlbedo.png 在此文件夹中
      打开图像,它应该如下图所示
      在这里插入图片描述
      问题来了!!!!

    报错1

    D:\Documents\s>git clone https://github.com/lgsvl/simulator.git
    
    error: external filter 'git-lfs filter-process' failed
    fatal: Assets/Animations/HumanoidIdle.fbx: smudge filter lfs failed
    warning: Clone succeeded, but checkout failed.
    You can inspect what was checked out with 'git status'
    and retry with 'git restore --source=HEAD :/'
    
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8

    根据网上的说法

    // Skip smudge - We'll download binary files later in a faster batch
    git lfs install --skip-smudge
    // Do git clone here
    git clone https://github.com/lgsvl/simulator.git
    // Fetch all the binary files in the new clone
    git lfs pull
    // Reinstate smudge
    git lfs install --force
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8

    到第三部的时候还是会出现报错

    D:\Documents\s\simulator>git lfs pull
    
    batch response: This repository is over its data quota. Account responsible for LFS bandwidth should purchase more data packs to restore access.
    Failed to fetch some objects from 'https://github.com/lgsvl/simulator.git/info/lfs'
    
    • 1
    • 2
    • 3
    • 4

    然后到此网上的办法都没有用,我怀疑是这个项目的原因

    找了很久终于找到了办法!

    从另外一个项目拉

    git clone https://gitlab.com/OSSDC/OSSDC-SIM.git
    
    • 1

    又拉取失败

    报错如下:

    fetch-pack: unexpected disconnect while reading sideband packet
    fatal: early EOF
    fatal: fetch-pack: invalid index-pack output
    
    • 1
    • 2
    • 3

    原因猜测,拉取项目过大,可能太慢 ,超时了

    解决:

    1. 拖长克隆的时间
      (我用了这个成功了)
    git config --global http.postBuffer 600000
    
    • 1
    1. 网上说可以用镜像,没试

    将链接中的 github.com 替换为 github.com.cnpmjs.org

    如果方法1报以下错误

    Could not resolve host: github.com.cnpmjs.org
    
    • 1

    在git控制台上输入下面这句,然后在正常去拉取,它会使你默认使用镜像

    git config --global url."https://hub.fastgit.xyz/".insteadOf https://github.com/
    
    • 1

    继续

    在这里插入图片描述
    进入项目目录,然后git lfs pull
    在这里插入图片描述
    到此,再去检查那个照片,终于能看到了

    项目必须必须拉完整,不然unity项目不会显示simulator

  • 相关阅读:
    feign之间相互通信RequestInterceptor拦截器失效
    C++的std::move及相关概念
    MySQL常用修改表结构及索引的SQL
    echarts常用功能配置项
    Elasticsearch 如何保证写入过程中不丢失数据的
    Java 基础面试题,JVM 内存模型?
    每日三题 10.19
    Z410 2023款无人机,专为零基础开发者打造的入门级开源无人机
    使用go开发的小tips
    算法篇-----回溯1
  • 原文地址:https://blog.csdn.net/weixin_44177594/article/details/132732668