I am making an Asteroids clone using SDL and OpegGL in C++. Like most games, I needed to render text and after some hassle with SDL_ttf, I decided to try FTGL which uses Freetype2. I am using Visual Studio C++ 2008 Express Edition.
There is no precompiled library included in the download. You have to compile it yourself (both freetype2 and FTGL). I have little experience with static libraries, but I managed to compile a .lib file after a couple of minutes. However, after I copied the library to my game's directory and set my project's properties to link it, it gives the following error message:
fatal error C1083: Cannot open include file: 'ft2build.h': No such file or directory
Here are my settings:
Properties -> Configuration Properties -> Linker -> Input -> Additional Dependencies:
SDL.lib SDLmain.lib SDL_image.lib SDL_mixer.lib SDL_ttf.lib freetype242_D.lib ftgl_static_D.lib opengl32.lib glu32.lib // in that order
I experienced the same situation when I tried compiling the FTGL library, but after entering the correct paths I solved it, so why is the message showing up again?
Thank you in advance for any help.