I successfully compiled the example in this way: $gcc example1.c -I/home/parth/anaconda3/include/freetype2 -L/home/parth/anaconda3/lib -lfreetype -lm But, when I run $./a.out font sample-text for checking output it shows Segmentation fault (core dumped). Please help.
On Fri, Feb 16, 2018 at 3:28 AM, Werner LEMBERG <w...@gnu.org> wrote: > > > When I try to compile the example given on the website after > > installing the library like this: > > > > $gcc example1.c -I/home/parth/anaconda3/include/freetype2 -lm -lfreetype > > > > I get the following error > > > > *:* > > /usr/bin/ld: cannot find -lfreetype > > collect2: error: ld returned 1 exit status > > > > I searched on the internet and also the mail archives but could not > > find a solution. Please help. > > You are missing an -L flag to specify the directory where libfreetype > is located. > > > Werner >
_______________________________________________ Freetype-devel mailing list Freetype-devel@nongnu.org https://lists.nongnu.org/mailman/listinfo/freetype-devel