博客轉自: https://icytown.com/game/vcpkg-build-opengl/ && https://blog.csdn.net/binbingg/article/details/8653527?utm_source=blogxgwz6
openGL, freeglut, gl3w, glfw3都可以通過vcpkg如下類似指令正常安裝
./vcpkg install opengl
最近一個項目用到了openIL庫,現在命名為 devil,利用vcpkg安裝過程中,devil的依賴庫
- Libpng, for .png support.
- Zlib, for compression.
- Libjpeg, for .jpg support.
- Libtiff, for .tif support.
- Libmng, for .mng support.
- Little CMS, for colour profiles.
- JasPer, for JPEG 2000 support.
都安裝順利,但是在對 DentonW-DevIL-v1.8.0.tar.gz 源代碼編譯過程中編譯失敗
Line 191: D:\Home\pkgs\Udacity\vcpkg-master\buildtrees\devil\src\v1.8.0-94cf6d6cea\DevIL\src-IL\src\il_ktx.cpp(176): error C2059: syntax error: 'bad suffix on number' Line 191: D:\Home\pkgs\Udacity\vcpkg-master\buildtrees\devil\src\v1.8.0-94cf6d6cea\DevIL\src-IL\src\il_ktx.cpp(176): error C2059: syntax error: 'bad suffix on number' Line 192: D:\Home\pkgs\Udacity\vcpkg-master\buildtrees\devil\src\v1.8.0-94cf6d6cea\DevIL\src-IL\src\il_ktx.cpp(176): error C2017: illegal escape sequence Line 193: D:\Home\pkgs\Udacity\vcpkg-master\buildtrees\devil\src\v1.8.0-94cf6d6cea\DevIL\src-IL\src\il_ktx.cpp(176): error C2001: newline in constant Line 194: D:\Home\pkgs\Udacity\vcpkg-master\buildtrees\devil\src\v1.8.0-94cf6d6cea\DevIL\src-IL\src\il_ktx.cpp(176): error C2137: empty character constant Line 195: D:\Home\pkgs\Udacity\vcpkg-master\buildtrees\devil\src\v1.8.0-94cf6d6cea\DevIL\src-IL\src\il_ktx.cpp(177): error C2143: syntax error: missing ';' before '}' Line 195: D:\Home\pkgs\Udacity\vcpkg-master\buildtrees\devil\src\v1.8.0-94cf6d6cea\DevIL\src-IL\src\il_ktx.cpp(177): error C2143: syntax error: missing ';' before '}' Line 196: D:\Home\pkgs\Udacity\vcpkg-master\buildtrees\devil\src\v1.8.0-94cf6d6cea\DevIL\src-IL\src\il_ktx.cpp(179): error C2059: syntax error: 'if' Line 196: D:\Home\pkgs\Udacity\vcpkg-master\buildtrees\devil\src\v1.8.0-94cf6d6cea\DevIL\src-IL\src\il_ktx.cpp(179): error C2059: syntax error: 'if' Line 197: D:\Home\pkgs\Udacity\vcpkg-master\buildtrees\devil\src\v1.8.0-94cf6d6cea\DevIL\src-IL\src\il_ktx.cpp(179): error C2143: syntax error: missing ';' before '{' Line 197: D:\Home\pkgs\Udacity\vcpkg-master\buildtrees\devil\src\v1.8.0-94cf6d6cea\DevIL\src-IL\src\il_ktx.cpp(179): error C2143: syntax error: missing ';' before '{'
最后直接下載了,官網已經編譯好的SDK