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

Sebastien BALLET slacker6896 at gmail.com
Sun Aug 6 10:57:25 UTC 2017


Hello,

can you post the output of :

8<------------------------------------------------------
$ find /usr/include -iname "freetype.h"

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

$ freetype-config --cflags
8<-----------------------------------------------------------

Here is what I get on my side :
8<--------------------------------------------------------
$ find /usr/include -iname "freetype.h"
/usr/include/freetype2/freetype.h

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

$ freetype-config --cflags
-I/usr/include/freetype2
8<--------------------------------------------------------

Now, run the command below :

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

On my side, I get this :

8<----------------------------------------------
find $(freetype-config --cflags | cut -f2- -d"I") -iname "freetype.h"
/usr/include/freetype2/freetype.h
8<----------------------------------------------

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

8<------------/tmp/cmake-test/CMakeLists.txt ------------
cmake_minimum_required(VERSION 2.8)
find_package(Freetype)
if (FREETYPE_FOUND)
  include_directories(${FREETYPE_INCLUDE_DIRS})
endif (FREETYPE_FOUND)

MESSAGE("freetype_include_dirs: ${FREETYPE_INCLUDE_DIRS}")
8<----------------------------------------------------------

In /tmp/cmake-test, run the command below :
8<---------------------------------------------------------
$ cmake .
8<---------------------------------------------------------

Here is what you should get :
8<---------------------------------------------------------
-- 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/include/freetype2;/usr/include
-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/cmake-test
8<---------------------------------------------------------
​
-- 
SeB

2017-08-05 22:49 GMT+02:00 Rich Shepard <rshepard at appl-ecosys.com>:

> On Sat, 5 Aug 2017, Sebastien BALLET wrote:
>
> The differences between the line I sent in my previous post and the
>> corresponding line from your last build is as below :
>>
>
> --I/usr/include/freetype2
>> +-I/usr/local/include
>>
>
> I'm wondering why /usr/include/freetype2 is not found on your side. It
>> seems (but I can be wrong) that /usr/local/include is used instead of
>> /usr/include/freetype2. Maybe you have something in /usr/local/include
>> which cause your issue.
>>
>
> Sebastien,
>
>   Two years ago, for reasons long forgotten, I made a soft link in
> /usr/local/include/freetype2 to /usr/include/freetype2. I just removed that
> link.
>
>   But, that does not fix the problem:
>
> Scanning dependencies of target scribus_desaxe_lib
> [  0%] Building CXX object
> scribus/desaxe/CMakeFiles/scribus_desaxe_lib.dir/saxXML.cpp.o
> [  0%] Building CXX object
> scribus/desaxe/CMakeFiles/scribus_desaxe_lib.dir/saxiohelper.cpp.o
> In file included from
> /tmp/SBo/scribus-1.4.6/scribus/desaxe/saxiohelper.cpp:10:0:
> /tmp/SBo/scribus-1.4.6/scribus/scfonts.h:19:23: fatal error: freetype.h:
> No
> / such file or directory
>  #include FT_FREETYPE_H
>                        ^
> compilation terminated.
> make[2]: ***
> [scribus/desaxe/CMakeFiles/scribus_desaxe_lib.dir/saxiohelper.cpp.o]
> Error 1
> make[1]: *** [scribus/desaxe/CMakeFiles/scribus_desaxe_lib.dir/all] Error
> 2
> make: *** [all] Error 2
>
>   This might help:
>
> Invoking alternate editor...
>
>> Friday, I can meet you somewhere closer to you. Otherwise it'll pretty
>>
>     IW   /tmp/pico.60854 (Modified)(mail)
> Row 41   Col 1    1:47  Ctrl-K H for help
>
>> The differences between the line I sent in my previous post and the
>> corresponding line from your last build is as below :
>>
>
> --I/usr/include/freetype2
>> +-I/usr/local/include
>>
>
> I'm wondering why  /usr/include/freetype2 is not found on your side. It
>> seems (but I can be wrong) that /usr/local/include is used instead of
>> /usr/include/freetype2. Maybe you have something in /usr/local/include
>> which cause your issue.
>>
>
> Sebastien,
>
>   Two years ago, for reasons long forgotten, I made a soft link in
> /usr/local/include/freetype2 to /usr/include/freetype2. I just removed that
> link.
>
>   But, that does not fix the problem:
>
> Scanning dependencies of target scribus_desaxe_lib
> [  0%] Building CXX object
> scribus/desaxe/CMakeFiles/scribus_desaxe_lib.dir/saxXML.cpp.o
> [  0%] Building CXX object
> scribus/desaxe/CMakeFiles/scribus_desaxe_lib.dir/saxiohelper.cpp.o
> In file included from
> /tmp/SBo/scribus-1.4.6/scribus/desaxe/saxiohelper.cpp:10:0:
> /tmp/SBo/scribus-1.4.6/scribus/scfonts.h:19:23: fatal error: freetype.h:
> No
> / such file or directory
>  #include FT_FREETYPE_H
>                        ^
> compilation terminated. make[2]: ***
> [scribus/desaxe/CMakeFiles/scribus_desaxe_lib.dir/saxiohelper.cpp.o]
> Error 1
> make[1]: *** [scribus/desaxe/CMakeFiles/scribus_desaxe_lib.dir/all] Error
> 2 make: *** [all] Error 2
>
>   This might help:
>
> Invoking alternate editor...
>
>> Friday, I can meet you somewhere closer to you. Otherwise it'll pretty
>>
>     IW   /tmp/pico.60854 (Modified)(mail)
> Row 41   Col 1    1:47  Ctrl-K H for help
>
>> The differences between the line I sent in my previous post and the
>> corresponding line from your last build is as below :
>>
>
> --I/usr/include/freetype2
>> +-I/usr/local/include
>>
>
> I'm wondering why  /usr/include/freetype2 is not found on your side. It
>> seems (but I can be wrong) that /usr/local/include is used instead of
>> /usr/include/freetype2. Maybe you have something in /usr/local/include
>> which cause your issue.
>>
>
> Sebastien,
>
>   Two years ago, for reasons long forgotten, I made a soft link in
> /usr/local/include/freetype2 to /usr/include/freetype2. I just removed that
> link.
>
>   But, that does not fix the problem:
>
> Scanning dependencies of target scribus_desaxe_lib
> [  0%] Building CXX object
> scribus/desaxe/CMakeFiles/scribus_desaxe_lib.dir/saxXML.cpp.o
> [  0%] Building CXX object
> scribus/desaxe/CMakeFiles/scribus_desaxe_lib.dir/saxiohelper.cpp.o
> In file included from
> /tmp/SBo/scribus-1.4.6/scribus/desaxe/saxiohelper.cpp:10:0:
> /tmp/SBo/scribus-1.4.6/scribus/scfonts.h:19:23: fatal error: freetype.h:
> No
> / such file or directory
>  #include FT_FREETYPE_H
>                        ^
> compilation terminated. make[2]: ***
> [scribus/desaxe/CMakeFiles/scribus_desaxe_lib.dir/saxiohelper.cpp.o]
> Error 1
> make[1]: *** [scribus/desaxe/CMakeFiles/scribus_desaxe_lib.dir/all] Error
> 2 make: *** [all] Error 2
>
>   This might help:
>
> Invoking alternate editor...
>
>> Friday, I can meet you somewhere closer to you. Otherwise it'll pretty
>>
>     IW   /tmp/pico.60854 (Modified)(mail)
> Row 41   Col 1    1:47  Ctrl-K H for help
>
>> The differences between the line I sent in my previous post and the
>> corresponding line from your last build is as below :
>>
>
> --I/usr/include/freetype2
>> +-I/usr/local/include
>>
>
> I'm wondering why  /usr/include/freetype2 is not found on your side. It
>> seems (but I can be wrong) that /usr/local/include is used instead of
>> /usr/include/freetype2. Maybe you have something in /usr/local/include
>> which cause your issue.
>>
>
> Sebastien,
>
>   Two years ago, for reasons long forgotten, I made a soft link in
> /usr/local/include/freetype2 to /usr/include/freetype2. I just removed that
> link.
>
>   But, that does not fix the problem:
>
> Scanning dependencies of target scribus_desaxe_lib
> [  0%] Building CXX object
> scribus/desaxe/CMakeFiles/scribus_desaxe_lib.dir/saxXML.cpp.o
> [  0%] Building CXX object
> scribus/desaxe/CMakeFiles/scribus_desaxe_lib.dir/saxiohelper.cpp.o
> In file included from
> /tmp/SBo/scribus-1.4.6/scribus/desaxe/saxiohelper.cpp:10:0:
> /tmp/SBo/scribus-1.4.6/scribus/scfonts.h:19:23: fatal error: freetype.h:
> No
> / such file or directory
>  #include FT_FREETYPE_H
>                        ^
> compilation terminated. make[2]: ***
> [scribus/desaxe/CMakeFiles/scribus_desaxe_lib.dir/saxiohelper.cpp.o]
> Error 1
> make[1]: *** [scribus/desaxe/CMakeFiles/scribus_desaxe_lib.dir/all] Error
> 2 make: *** [all] Error 2
>
>   This might help:
>
> Invoking alternate editor...
>
>> Friday, I can meet you somewhere closer to you. Otherwise it'll pretty
>>
>     IW   /tmp/pico.60854 (Modified)(mail)
> Row 41   Col 1    1:47  Ctrl-K H for help
>
>> The differences between the line I sent in my previous post and the
>> corresponding line from your last build is as below :
>>
>
> --I/usr/include/freetype2
>> +-I/usr/local/include
>>
>
> I'm wondering why  /usr/include/freetype2 is not found on your side. It
>> seems (but I can be wrong) that /usr/local/include is used instead of
>> /usr/include/freetype2. Maybe you have something in /usr/local/include
>> which cause your issue.
>>
>
> Sebastien,
>
>   Two years ago, for reasons long forgotten, I made a soft link in
> /usr/local/include/freetype2 to /usr/include/freetype2. I just removed that
> link.
>
>   But, that does not fix the problem:
>
> Scanning dependencies of target scribus_desaxe_lib
> [  0%] Building CXX object
> scribus/desaxe/CMakeFiles/scribus_desaxe_lib.dir/saxXML.cpp.o
> [  0%] Building CXX object
> scribus/desaxe/CMakeFiles/scribus_desaxe_lib.dir/saxiohelper.cpp.o
> In file included from
> /tmp/SBo/scribus-1.4.6/scribus/desaxe/saxiohelper.cpp:10:0:
> /tmp/SBo/scribus-1.4.6/scribus/scfonts.h:19:23: fatal error: freetype.h:
> No
> / such file or directory
>  #include FT_FREETYPE_H
>                        ^
> compilation terminated. make[2]: ***
> [scribus/desaxe/CMakeFiles/scribus_desaxe_lib.dir/saxiohelper.cpp.o]
> Error 1
> make[1]: *** [scribus/desaxe/CMakeFiles/scribus_desaxe_lib.dir/all] Error
> 2 make: *** [all] Error 2
>
>   This might help:
>
> [root at salmo /opt/slackbuilds/Office/scribus]# find / -name freetype2
> /usr/include/freetype2
>
>   It's there, but not being picked up. Makes no sense to me.
>
> Thanks,
>
> 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/523abbff/attachment-0001.html>


More information about the SlackBuilds-users mailing list