[Slackbuilds-users] Scribus-1.4.6: build fails not finding freetype.h

Sebastien BALLET slacker6896 at gmail.com
Sun Aug 6 16:11:16 UTC 2017


Hello,

can you post the output of commands below :

$ find /usr/include -iname "ft2build.h"

$ cat /usr/lib/pkgconfig/freetype2.pc | grep "includedir"

$ ls -l /var/log/packages/freetype*

$ cat /var/log/packages/freetype-* | grep -E "ft2build.h|freetype.h"

-- 
SeB


2017-08-06 15:39 GMT+02:00 Rich Shepard <rshepard at appl-ecosys.com>:

> 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 at 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 at 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 at slackbuilds.org
> https://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users
> Archives - https://lists.slackbuilds.org/pipermail/slackbuilds-users/
> FAQ - https://slackbuilds.org/faq/
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.slackbuilds.org/pipermail/slackbuilds-users/attachments/20170806/ad8f8b60/attachment.html>


More information about the SlackBuilds-users mailing list