Skip to content

Commit d55b868

Browse files
committed
Merge branch 'main' of github.com:neel1996/gitconvex-server
1 parent a728a83 commit d55b868

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

LIBGIT_NOTES.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,15 @@ Make sure you have the following applications installed on your system
1111
- [VS 2019](https://visualstudio.microsoft.com/vs/features/cplusplus/) for the C/C++ compiler
1212
- [cmake](https://cmake.org/download/)
1313
- [cygwin](https://www.cygwin.com/) with the following packages
14-
- [make](https://cygwin.com/packages/summary/make.html)
14+
- [gcc](https://cygwin.com/packages/summary/mingw64-x86_64-gcc-core.html)
15+
- The package will be downloaded to `<cygwin_dir>\bin\` as `x86_64-w64-mingw32-gcc.exe`. This has to be renamed
16+
to `gcc.exe` so that go can find the package while building gitconvex with libgit2
1517
- [pkg-config](https://cygwin.com/packages/summary/pkg-config.html)
16-
- [libssh2-devel](https://cygwin.com/packages/summary/libssh2-devel.html)
17-
- [zlib](https://cygwin.com/packages/summary/zlib.html) (optional)
18+
- The `pkg-config` exe will be downloaded with a different name, so rename the `<cygwin_dir>\pkgconf.exe` file
19+
to `pkg-config.exe`
1820

19-
_After setting up cygwin, add cygwin /bin folder to the **path** environment variable_
21+
_After setting up cygwin, add cygwin /bin folder to the **path** environment variable_. Also make sure that you follow
22+
the package renaming instructions for `gcc` and `pkg-config` without fail to build or run gitconvex with libgit2
2023

2124
The libraries required for setting up `libgit2` with `libssh2` and `openssl` are available as a zip file
2225
in [lib/win](lib/win). Extract the content of the zip file into the same folder (lib/win)
@@ -45,9 +48,8 @@ cd <FOLDER WHERE LIBGIT2 IS AVAILABLE>
4548
mkdir build && cd build
4649

4750
cmake -DCMAKE_INSTALL_PREFIX=../install \
48-
-DCMAKE_FIND_ROOT_PATH=../lib \
49-
-DOPENSSL_SSL_LIBRARY=../lib/win/lib \
50-
-DOPENSSL_CRYPTO_LIBRARY=../lib/win/lib \
51+
-DOPENSSL_ROOT_DIR=../lib/win/ \
52+
-DBUILD_CLAR=OFF \
5153
-DEMBED_SSH_PATH=../libssh2 ..
5254

5355
# If the above command completes without any error, execute the following command

0 commit comments

Comments
 (0)