@@ -11,12 +11,15 @@ Make sure you have the following applications installed on your system
11
11
- [ VS 2019] ( https://visualstudio.microsoft.com/vs/features/cplusplus/ ) for the C/C++ compiler
12
12
- [ cmake] ( https://cmake.org/download/ )
13
13
- [ 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
15
17
- [ 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 `
18
20
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
20
23
21
24
The libraries required for setting up ` libgit2 ` with ` libssh2 ` and ` openssl ` are available as a zip file
22
25
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>
45
48
mkdir build && cd build
46
49
47
50
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 \
51
53
-DEMBED_SSH_PATH=../libssh2 ..
52
54
53
55
# If the above command completes without any error, execute the following command
0 commit comments