13

I am trying to build Cocos2d-x project in Codeblocks IDE in Ubuntu 14. I got fontconfig/fontconfig.h not found error during compiling. I'm stuck here. How can I solve this?

Ken Y-N
  • 14,644
  • 21
  • 71
  • 114
charlotte
  • 1,031
  • 3
  • 12
  • 19

1 Answers1

34

The problem is that you are missing the package libfontconfig1-dev. From the command line run the following command:

sudo apt-get install libfontconfig1-dev

Or else use Software Centre and search for the package, if you prefer the graphical approach.

Ken Y-N
  • 14,644
  • 21
  • 71
  • 114