<div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><font size="2">Hello,<br><br></font></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><font size="2">can you post the output of commands below :<br><br></font></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><font size="2">$ find /usr/include -iname "ft2build.h"<br><br></font></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><font size="2">$ cat /usr/lib/pkgconfig/freetype2.pc | grep "includedir"<br><br></font></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><font size="2">$ ls -l /var/log/packages/freetype*<br><br></font></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><font size="2">$ cat /var/log/packages/freetype-* | grep -E "ft2build.h|freetype.h"<br></font></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><font size="2"><br>-- <br></font></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:large"><font size="2">SeB<br></font><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2017-08-06 15:39 GMT+02:00 Rich Shepard <span dir="ltr"><<a href="mailto:rshepard@appl-ecosys.com" target="_blank">rshepard@appl-ecosys.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Sun, 6 Aug 2017, Sebastien BALLET wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
can you post the output of :<br>
8<----------------------------<wbr>--------------------------<br>
$ find /usr/include -iname "freetype.h"<br>
</blockquote>
<br>
/usr/include/freetype2/freetyp<wbr>e.h<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
$ find /usr/local/include -iname "freetype.h"<br>
</blockquote>
<br>
<nothing><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
$ freetype-config --cflags<br>
</blockquote>
<br>
  Aha!<br>
-I/usr/local/include/freetype2 -I/usr/local/include<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Now, run the command below :<br>
</blockquote>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
$ find $(freetype-config --cflags | cut -f2- -d"I") -iname "freetype.h"<br>
</blockquote>
<br>
  OK. Somehow, freetype ended up in /usr/local rather than /usr:<br>
<br>
[root@salmo ~]# find $(freetype-config --cflags | cut -f2- -d"I") -iname<br>
"freetype.h"<br>
find: unknown predicate -I/usr/local/include'<br>
<br>
  The freetype-2.5.5 package was installed by the 14.1 distribution DVD.<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
In /tmp, create a directory cmake-test, then, in that directory create the<br>
file CMakeLists.txt with the content below :<br>
</blockquote>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
$ cmake .<br>
</blockquote>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Here is what you should get :<br>
freetype_include_dirs: /usr/include/freetype2;/usr/in<wbr>clude<br>
</blockquote>
<br>
  Somehow, /usr/local/include was added:<br>
<br>
[root@salmo /tmp/cmake-test]# cmake .<br>
-- The C compiler identification is GNU 4.8.2<br>
-- The CXX compiler identification is GNU 4.8.2<br>
-- Check for working C compiler: /usr/bin/cc<br>
-- Check for working C compiler: /usr/bin/cc -- works<br>
-- Detecting C compiler ABI info<br>
-- Detecting C compiler ABI info - done<br>
-- Check for working CXX compiler: /usr/bin/c++<br>
-- Check for working CXX compiler: /usr/bin/c++ -- works<br>
-- Detecting CXX compiler ABI info<br>
-- Detecting CXX compiler ABI info - done<br>
-- Found Freetype: /usr/lib/libfreetype.so (found version "2.5.5") freetype_include_dirs: /usr/local/include;/usr/includ<wbr>e<br>
-- Configuring done<br>
-- Generating done<br>
-- Build files have been written to: /tmp/cmake-test<br>
<br>
  How should I clean this up by removing inclusion of /usr/local/ for<br>
freetype?<br>
<br>
Thanks very much, Sebastien,<br>
<br>
Rich<br>
______________________________<wbr>_________________<br>
SlackBuilds-users mailing list<br>
<a href="mailto:SlackBuilds-users@slackbuilds.org" target="_blank">SlackBuilds-users@slackbuilds.<wbr>org</a><br>
<a href="https://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users" rel="noreferrer" target="_blank">https://lists.slackbuilds.org/<wbr>mailman/listinfo/slackbuilds-u<wbr>sers</a><br>
Archives - <a href="https://lists.slackbuilds.org/pipermail/slackbuilds-users/" rel="noreferrer" target="_blank">https://lists.slackbuilds.org/<wbr>pipermail/slackbuilds-users/</a><br>
FAQ - <a href="https://slackbuilds.org/faq/" rel="noreferrer" target="_blank">https://slackbuilds.org/faq/</a><br>
<br>
</blockquote></div><br></div>