Reputation: 33920
#include <ft2build.h>
#include FT_FREETYPE_H
int main() {
return 0;
}
Here is the compiler output:
In file included from fonttest.cpp:1:
/usr/include/ft2build.h:56:10: fatal error: 'freetype/config/ftheader.h' file not found
#include <freetype/config/ftheader.h>
^
1 error generated.
I follow the official tutorial.
I have the packages installed:
i libfreetype6 - FreeType 2 font engine, shared library files
i A libfreetype6:i386 - FreeType 2 font engine, shared library files
i libfreetype6-dev - FreeType 2 font engine, development files
File /usr/include/freetype2/freetype/config/ftheader.h
is there.
Upvotes: 3
Views: 7093
Reputation: 1087
If someone out there is struggling, you can try
sudo apt-get install libfreetype6-dev
Upvotes: 1
Reputation: 1
I think it's better to install pkg-config
.
pkg-config
will help the configure to find the freetype2
.
Upvotes: 0