主要的編譯參考來著官方文件
Unity安裝
-
安裝unity hub
-
安裝2020.3.3f1在unity hub上
但是我發(fā)現(xiàn)沒有2020.3.3f1,只有2020.3.3f1c1,其實c1就是中國版,沒有什么影響
GIT安裝
- 安裝GIT
- 安裝Git LFS
- 驗證git-lfs(輸出Git LFS initialized就??了)
輸入:git lfs install
> Git LFS initialized.
拉項目
官方:
- 打開終端并導航到要將模擬器下載到的位置
如果你想模擬器在你的Documents
文件夾,使用cd
在終端中,以便終端的輸入類似于/Documents$
- 開源用戶:
git clone https://github.com/lgsvl/simulator.git
- 驗證下載
上面的克隆將創(chuàng)建一個Simulator
文件夾
打開文件資源管理器并導航到Simulator
文件夾是
導航到 Simulator/Assets/Materials/EnvironmentMaterials/
應(yīng)該有一個EnvironmentDamageAlbedo.png
在此文件夾中
打開圖像,它應(yīng)該如下圖所示
問題來了?。。?!
報錯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 :/'
根據(jù)網(wǎng)上的說法
// 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
到第三部的時候還是會出現(xiàn)報錯
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'
然后到此網(wǎng)上的辦法都沒有用,我懷疑是這個項目的原因
找了很久終于找到了辦法!
從另外一個項目拉
git clone https://gitlab.com/OSSDC/OSSDC-SIM.git
又拉取失敗
報錯如下:
fetch-pack: unexpected disconnect while reading sideband packet
fatal: early EOF
fatal: fetch-pack: invalid index-pack output
原因猜測,拉取項目過大,可能太慢 ,超時了
解決:
- 拖長克隆的時間
(我用了這個成功了)
git config --global http.postBuffer 600000
- 網(wǎng)上說可以用鏡像,沒試
將鏈接中的 github.com 替換為 github.com.cnpmjs.org
如果方法1報以下錯誤
Could not resolve host: github.com.cnpmjs.org
在git控制臺上輸入下面這句,然后在正常去拉取,它會使你默認使用鏡像
git config --global url."https://hub.fastgit.xyz/".insteadOf https://github.com/
繼續(xù)
進入項目目錄,然后git lfs pull
到此,再去檢查那個照片,終于能看到了文章來源:http://www.zghlxwxcb.cn/news/detail-706135.html
項目必須必須拉完整,不然unity項目不會顯示simulator
文章來源地址http://www.zghlxwxcb.cn/news/detail-706135.html
到了這里,關(guān)于記LGSVL Map Annotation(1) LGSVL本地編譯記錄、安裝的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!