SFML community forums

Help => General => Topic started by: Lolilolight on May 19, 2014, 02:32:48 pm

Title: SFML doens't build on raspbian (Cmake module doesn't find Freetype)
Post by: Lolilolight on May 19, 2014, 02:32:48 pm
Hi!

I'm trying to build SFML on a rapsberry pi but I got this following error :

Could not find Freetype (missing Freetype include dirs).

I'm sure I've installed Freetype :with this command and it installed well.

apt-get install libfreetype6-dev.



Title: Re: SFML doens't build on raspbian (Cmake module doesn't find Freetype)
Post by: Nexus on May 19, 2014, 02:44:18 pm
Do you know in which directory Freetype was installed?

It looks like that directory is not specified in the CMake find module...
Title: Re: SFML doens't build on raspbian (Cmake module doesn't find Freetype)
Post by: Lolilolight on May 19, 2014, 03:24:16 pm
Quote
Do you know in which directory Freetype was installed?

In /usr/include

PS : It's strange, there is in the same path than on my ubuntu but it find it well on my ubuntu but not on my raspbian...
Title: Re: SFML doens't build on raspbian (Cmake module doesn't find Freetype)
Post by: Lolilolight on May 19, 2014, 03:34:51 pm
So I specified the path manually and it works, because it doesn't detected it automatically.
Title: Re: SFML doens't build on raspbian (Cmake module doesn't find Freetype)
Post by: Nexus on May 19, 2014, 03:42:08 pm
PS : It's strange, there is in the same path than on my ubuntu but it find it well on my ubuntu but not on my raspbian...
Maybe Raspberry Pi has to be handled specifically by CMake...
Title: Re: SFML doens't build on raspbian (Cmake module doesn't find Freetype)
Post by: Lolilolight on May 19, 2014, 04:01:22 pm
It seems that there are some files which are missing in their repo.

 fatal error : ft2build.h no such file or directory ...

I think I'll have to upload them manually.