On Sun, 6 Aug 2017, Sebastien BALLET wrote:

can you post the output of :
8<------------------------------------------------------
$ find /usr/include -iname "freetype.h"

/usr/include/freetype2/freetype.h

$ find /usr/local/include -iname "freetype.h"

<nothing>

$ freetype-config --cflags

  Aha!
-I/usr/local/include/freetype2 -I/usr/local/include

Now, run the command below :

$ find $(freetype-config --cflags | cut -f2- -d"I") -iname "freetype.h"

  OK. Somehow, freetype ended up in /usr/local rather than /usr:

[root@salmo ~]# find $(freetype-config --cflags | cut -f2- -d"I") -iname
"freetype.h"
find: unknown predicate -I/usr/local/include'

  The freetype-2.5.5 package was installed by the 14.1 distribution DVD.

In /tmp, create a directory cmake-test, then, in that directory create the
file CMakeLists.txt with the content below :

$ cmake .

Here is what you should get :
freetype_include_dirs: /usr/include/freetype2;/usr/include

  Somehow, /usr/local/include was added:

[root@salmo /tmp/cmake-test]# cmake .
-- The C compiler identification is GNU 4.8.2
-- The CXX compiler identification is GNU 4.8.2
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Found Freetype: /usr/lib/libfreetype.so (found version "2.5.5") freetype_include_dirs: /usr/local/include;/usr/include
-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/cmake-test

  How should I clean this up by removing inclusion of /usr/local/ for
freetype?

Thanks very much, Sebastien,

Rich
_______________________________________________
SlackBuilds-users mailing list
SlackBuilds-users@slackbuilds.org
https://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users
Archives - https://lists.slackbuilds.org/pipermail/slackbuilds-users/
FAQ - https://slackbuilds.org/faq/

Reply via email to