​​
​Hello,

In one of my previous post, I ask you to create the file
/tmp/cmake-test/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<----------------------------------------------

If you have deleted it, recreate it. Otherwise, run the commands below :

$ cd /tmp/cmake-test
$ rm CMakeCache.txt

Remove freetype package :

$ removepkg freetype

In /tmp/cmake-test, run the command below :

$ cmake .

You should get this :

8<----------------------------------------------
$ cmake .

-- Could NOT find Freetype (missing FREETYPE_LIBRARY FREETYPE_INCLUDE_DIRS)
freetype_include_dirs:
-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/cmake-test
8<----------------------------------------------

If freetype_include_dirs is not *empty* (which I doubt), check the returned
directories content.

Now, install freetype, with slackpkg or any other tools...

$ slackpkg install freetype

Then, in /tmp/cmake-test, run the commands below :

$ rm CMakeCache.txt
$ cmake .

You should get this :

8<----------------------------------------------
-- 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<----------------------------------------------

​If you get the output above, you can (re)try to build scribus. Otherwise
... I don't know.

-- 
SeB​


2017-08-06 18:22 GMT+02:00 Rich Shepard <rshep...@appl-ecosys.com>:

> On Sun, 6 Aug 2017, Sebastien BALLET wrote:
>
> can you post the output of commands below :
>>
>> $ find /usr/include -iname "ft2build.h"
>>
>
> /usr/include/freetype2/ft2build.h
>
> $ cat /usr/lib/pkgconfig/freetype2.pc | grep "includedir"
>>
>
> includedir=/usr/include/freetype2
> Cflags: -I${includedir}
>
> $ ls -l /var/log/packages/freetype*
>>
>
> -rw-r--r-- 1 root root 3544 May 16 17:20
> - /var/log/packages/freetype-2.5.5-i486-2_slack14.1
>
> $ cat /var/log/packages/freetype-* | grep -E "ft2build.h|freetype.h"
>>
>
> usr/include/freetype2/ft2build.h
> usr/include/freetype2/freetype.h
>
>   Wonder where the /usr/local/include came from.
>
> 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/
>
>
_______________________________________________
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