Visual Studio Vcpkg openGL开发环境配置
博客转自: 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