#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.
If someone out there is struggling, you can try
sudo apt-get install libfreetype6-dev
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With