Skip to content

Commit f703274

Browse files
some more notes
1 parent 220a275 commit f703274

1 file changed

Lines changed: 37 additions & 1 deletion

File tree

UsingVCPKG.txt

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,48 @@ Starting from here:
55
https://learn.microsoft.com/en-us/vcpkg/get_started/get-started-vscode?source=recommendations&pivots=shell-cmd
66

77

8-
bootstrap vcpkg
8+
### bootstrap vcpkg
99

1010
Set the PATH, for me that's:
1111

1212
set PATH=%VCPKG_ROOT%;%PATH%
1313
set "VCPKG_ROOT=C:\Users\Chris.Barker\Documents\vcpkg"
1414

15+
## set up install
1516

17+
vcpkg new --application
18+
vcpkg add port pkgconf vcpkg-cmake vcpkg-cmake-config libgd
19+
20+
vcpkg install
21+
22+
#### Failure:
23+
```
24+
error: building libwebp:x64-windows failed with: BUILD_FAILED
25+
See https://learn.microsoft.com/vcpkg/troubleshoot/build-failures?WT.mc_id=vcpkg_inproduct_cli for more information.
26+
Elapsed time to handle libwebp:x64-windows: 3.5 s
27+
Please ensure you're using the latest port files with `git pull` and `vcpkg update`.
28+
```
29+
30+
31+
# Notes from:
32+
notes about vcpkg from:
33+
34+
https://github.com/NOAA-ORR-ERD/py_gd/pull/27
35+
36+
## Install libgd
37+
38+
Clone vcpkg repository in repo folder and start vcpkg.
39+
40+
git clone https://github.com/Microsoft/vcpkg.git
41+
42+
# NOTE: --depth 1 would likely make sense
43+
.\vcpkg\bootstrap-vcpkg.bat
44+
45+
Install libgd. The default location is at vcpkg\installed\x64-windows. It takes
46+
about half of an hour. This will download and prepare all the dependencies (.h
47+
and .lib).
48+
49+
vcpkg install libgd --triplet=x64-windows
50+
51+
this failed for me :-(
1652

0 commit comments

Comments
 (0)