Update _index.de.md

This commit is contained in:
Mr-Update 2023-01-14 23:10:28 +01:00 committed by GitHub
parent 168e1f82ce
commit c801b610c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,6 +1,75 @@
---
title: FAQ
title: FAQ für Windows
weight: 40
---
[English](/docs/en/dev/build/faq)
## Herunterladen des Pakets vcpkg fehlgeschlagen
### Fehler
```
-- Fetching https://chromium.googlesource.com/libyuv/libyuv 287158925b0e03ea4499a18b4e08478c5781541b...
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:127 (message):
Command failed: D:/program/Git/mingw64/bin/git.exe fetch https://chromium.googlesource.com/libyuv/libyuv 287158925b0e03ea4499a18b4e08478c5781541b --depth 1 -n
```
### Lösung
Verwenden Sie einen Browser, um `https://chromium.googlesource.com/libyuv/libyuv/+archive/287158925b0e03ea4499a18b4e08478c5781541b.tar.gz` herunterzuladen, verschieben Sie es dann in `vcpkg/downloads` und installieren Sie es neu.
## Paket in Cargo.lock nicht vorhanden
### Fehler
```
$ cargo run
Updating git repository `https://github.com/open-trade/confy`
warning: spurious network error (2 tries remaining): failed to receive response: Operation Timeout
; class=Os (2)
error: failed to get `confy` as a dependency of package `hbb_common v0.1.0 (D:\rustdesk\rustdesk\rustdesk\libs\hbb_common)`
Caused by:
failed to load source for dependency `confy`
Caused by:
Unable to update https://github.com/open-trade/confy#27fa1294
Caused by:
object not found - no match for id (27fa12941291b44ccd856aef4a5452c1eb646047); class=Odb (9); code=NotFound (-3)
```
Vielleicht hat der Autor `git force push` benutzt und der vorherige Beitrag wurde überschrieben.
### Lösung
`cargo update`erzwingt die Aktualisierung des Pakets.
## VCPKG_ROOT nicht gesetzt
### Fehler
```
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
```
### Lösung
Fügen Sie die Umgebungsvariable `VCPKG_ROOT` hinzu oder starten Sie mit `VCPKG_ROOT=<vcpkg_dir> cargo run`.
## clang nicht installiert oder LIBCLANG_PATH nicht gesetzt
### Fehler
```
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
```
### Lösung
Installieren Sie [llvm](https://releases.llvm.org/download.html), fügen Sie die Umgebungsvariable `LIBCLANG_PATH` als `llvm_install_dir/bin` hinzu.