small change

This commit is contained in:
rustdesk 2022-05-09 15:01:40 +08:00
parent a56431b5c6
commit 4f6d2fd91e
12 changed files with 29 additions and 29 deletions

View File

@ -1,6 +1,6 @@
---
title: FAQ
weight: 20
weight: 40
---
[English](/docs/en/dev/build/faq)

View File

@ -1,11 +1,11 @@
---
title: FAQ
weight: 20
title: FAQ for Windows
weight: 40
---
## vcpkg download package failed
### error
### Error
```
-- Fetching https://chromium.googlesource.com/libyuv/libyuv 287158925b0e03ea4499a18b4e08478c5781541b...
@ -13,15 +13,15 @@ weight: 20
Command failed: D:/program/Git/mingw64/bin/git.exe fetch https://chromium.googlesource.com/libyuv/libyuv 287158925b0e03ea4499a18b4e08478c5781541b --depth 1 -n
```
### solution
### Solution
Use a browser to download `https://chromium.googlesource.com/libyuv/libyuv/+archive/287158925b0e03ea4499a18b4e08478c5781541b.tar.gz`, then move it into `vcpkg/downloads` and reinstall.
## package in Cargo.lock not exist
## Package in Cargo.lock not exist
### error
### Error
```
$ cargo run
@ -42,7 +42,7 @@ $ cargo run
Maybe the author used `git force push` and the previous commit was overwritten.
### solution
### Solution
`cargo update`, force the package to be updated
@ -50,26 +50,26 @@ Maybe the author used `git force push` and the previous commit was overwritten.
## VCPKG_ROOT not set
### error
### Error
```
thread 'main' panicked at 'Failed to find package: VcpkgNotFound("No vcpkg installation found. Set the VCPKG_ROOT environment variable or run 'vcpkg integrate install'")', libs\scrap\build.rs:7:45
```
### solution
### Solution
Add `VCPKG_ROOT` environment variable, or run with `VCPKG_ROOT=vcpkg_dir cargo run`
Add `VCPKG_ROOT` environment variable, or run with `VCPKG_ROOT=<vcpkg_dir> cargo run`
## clang not installed, or LIBCLANG_PATH not set
### error
### Error
```
thread 'main' panicked at 'Unable to find libclang: "couldn't find any valid shared libraries matching: ['clang.dll', 'libclang.dll'], set the `LIBCLANG_PATH` environment variable to a path where one of these files can be found (invalid: [])"', C:\Users\selfd\.cargo\registry\src\mirrors.ustc.edu.cn-61ef6e0cd06fb9b8\bindgen-0.59.2\src/lib.rs:2144:31
```
### solution
### Solution
Install [llvm](https://releases.llvm.org/download.html), Add the `LIBCLANG_PATH` environment variable as `llvm_install_dir/bin`

View File

@ -1,6 +1,6 @@
---
title: FAQ
weight: 20
weight: 40
---
[English](/docs/en/dev/build/faq)

View File

@ -1,6 +1,6 @@
---
title: FAQ
weight: 20
weight: 40
---
[English](/docs/en/dev/build/faq)

View File

@ -1,6 +1,6 @@
---
title: FAQ
weight: 20
weight: 40
---
[English](/docs/en/dev/build/faq)

View File

@ -1,6 +1,6 @@
---
title: FAQ
weight: 20
weight: 40
---
[English](/docs/en/dev/build/faq)

View File

@ -1,6 +1,6 @@
---
title: FAQ
weight: 20
weight: 40
---
[English](/docs/en/dev/build/faq)

View File

@ -1,6 +1,6 @@
---
title: 常见问题
weight: 20
title: Windows 常见问题
weight: 40
---
## vcpkg下载包失败
@ -45,7 +45,7 @@ $ cargo run
thread 'main' panicked at 'Failed to find package: VcpkgNotFound("No vcpkg installation found. Set the VCPKG_ROOT environment variable or run 'vcpkg integrate install'")', libs\scrap\build.rs:7:45
```
### 解决办法
添加VCPKG_ROOT环境变量, 或者使用`VCPKG_ROOT=vcpkg_dir cargo run`
添加VCPKG_ROOT环境变量, 或者使用`VCPKG_ROOT=<vcpkg_dir> cargo run`

View File

@ -1,6 +1,6 @@
---
title: 常見問題
weight: 20
title: Windows 常見問題
weight: 40
---
## vcpkg下載包失敗
@ -58,7 +58,7 @@ thread 'main' panicked at 'Failed to find package: VcpkgNotFound("No vcpkg insta
### 解決辦法
添加VCPKG_ROOT環境變量, 或者使用`VCPKG_ROOT=vcpkg_dir cargo run`
添加VCPKG_ROOT環境變量, 或者使用`VCPKG_ROOT=<vcpkg_dir> cargo run`

View File

@ -5,7 +5,7 @@ weight: 20
## Dependencies
### c++ build environment
### C++ build environment
Download [msvc](https://visualstudio.microsoft.com/) and install.

View File

@ -5,7 +5,7 @@ weight: 20
## 依赖
### c++编译环境
### C++编译环境
推荐下载[msvc](https://visualstudio.microsoft.com/)并安装
@ -30,7 +30,7 @@ weight: 20
![](/docs/en/dev/build/windows/images/env.png)
### sciter
### Sciter
桌面版本使用[sciter](https://sciter.com/) , 下载动态库[sciter.dll](https://raw.githubusercontent.com/c-smile/sciter-sdk/master/bin.win/x64/sciter.dll)

View File

@ -5,7 +5,7 @@ weight: 20
## 依賴
### c++編譯環境
### C++編譯環境
推薦下載[msvc](https://visualstudio.microsoft.com/)並安裝
@ -30,7 +30,7 @@ weight: 20
![](/docs/en/dev/build/windows/images/env.png)
### sciter
### Sciter
桌面版本使用[sciter](https://sciter.com/) , 下載動態庫[sciter.dll](https://raw.githubusercontent.com/c-smile/sciter-sdk/master/bin.win/x64/sciter.dll)