开发者

How do I build SDL_TTF?

开发者 https://www.devze.com 2022-12-31 11:26 出处:网络
Okay, so I\'m on Windows Vista, an开发者_开发问答d I want to use SDL_TTF, but the idiots who made it decided you have to build everything from source, so I to build the .lib files and all that other s

Okay, so I'm on Windows Vista, an开发者_开发问答d I want to use SDL_TTF, but the idiots who made it decided you have to build everything from source, so I to build the .lib files and all that other stuff, but I'm on Windows, so how am I suppose to do this?


I'm not sure where you looked, but the SDL_TTF page have precompiled win32 binaries, http://www.libsdl.org/projects/SDL_ttf/ , or more specifically, http://www.libsdl.org/projects/SDL_ttf/release/SDL_ttf-devel-2.0.10-VC.zip


I've had good luck using MinGW and MSYS to build autotools-based projects like SDL and its associated libraries.

SDL_TTF also provides a Visual Studio project in VisualC.zip.


Well bad news for Windows user you will get "unresolved external symbol _TTF_GetFontOutline" or "unresolved external symbol _TTF_SetFontOutline". Both function are NOT INCLUDED with the Windows lib of this version. (But the dll does). So you may need to compile them.

0

精彩评论

暂无评论...
验证码 换一张
取 消