mirror of
https://github.com/SkinnyMind/libgit2dart.git
synced 2025-05-04 12:19:09 -04:00
docs: update README with troubleshooting instructions for Windows
This commit is contained in:
parent
ef9390d08b
commit
34d492a9b6
1 changed files with 12 additions and 0 deletions
12
README.md
12
README.md
|
@ -665,6 +665,8 @@ Fork libgit2dart, improve libgit2dart, send a pull request.
|
|||
|
||||
### Troubleshooting
|
||||
|
||||
#### Linux:
|
||||
|
||||
If you are developing on Linux using non-Debian based distrib you might encounter these errors:
|
||||
|
||||
- Failed to load dynamic library: libpcre.so.3: cannot open shared object file: No such file or directory
|
||||
|
@ -679,6 +681,16 @@ sudo ln -s /usr/lib64/libpcre.so /usr/lib64/libpcre.so.3
|
|||
sudo ln -s /usr/lib64/libpcreposix.so /usr/lib64/libpcreposix.so.3
|
||||
```
|
||||
|
||||
#### Windows:
|
||||
|
||||
If you are developing on Windows you might encounter:
|
||||
|
||||
- Failed to load dynamic library: error code 126
|
||||
|
||||
That happens because libgit2 dynamic library bundled with libgit2dart package is precompiled with ssh support, and it fails to find the `libssh2.dll`.
|
||||
|
||||
To fix that error you should [build](https://github.com/libssh2/libssh2/blob/master/docs/INSTALL_CMAKE.md) libssh2, and place resulting `libssh2.dll` somewhere in system path (e.g. "Windows\System32").
|
||||
|
||||
### Ffigen
|
||||
|
||||
To generate bindings with ffigen use (adjust paths to yours):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue