[Slackbuilds-users] Scribus-1.4.6: build fails not finding freetype.h
Rich Shepard
rshepard at appl-ecosys.com
Sun Aug 6 13:39:48 UTC 2017
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
More information about the SlackBuilds-users
mailing list