[Slackbuilds-users] Scribus-1.4.6: build fails not finding freetype.h
Sebastien BALLET
slacker6896 at gmail.com
Mon Aug 7 16:10:37 UTC 2017
Hello,
You shouldn't have removed that space. It is required. The option -D allows
to create a cmake cache entry :
$ man cmake
...
-D <var>:<type>=<value>, -D <var>=<value>
Create a cmake cache entry.
When cmake is first run in an empty build tree, it creates
a CMakeCache.txt
file and populates it with customizable settings for the
project. This option
may be used to specify a setting that takes priority
over the project's
default value. The option may be repeated for as many
cache entries as
desired.
--
SeB
2017-08-07 17:59 GMT+02:00 Rich Shepard <rshepard at appl-ecosys.com>:
> On Mon, 7 Aug 2017, Sebastien BALLET wrote:
>
> That's really weird. It would be better to find why cmake finds freetype
>> /in usr/local/include instead of /usr/include, but, you can try this hack:
>> Edit scribus.SlackBuild, then, modify the cmake block (starting at line
>> #76) as below (changes are in bold) :
>>
>> 8<--------------------------------------
>> cmake \
>> -DCMAKE_C_FLAGS="$SLKCFLAGS" \
>> -DCMAKE_CXX_FLAGS="$SLKCFLAGS" \
>> -DCMAKE_INSTALL_PREFIX:PATH=/usr \
>> -DLIB_SUFFIX=${LIBDIRSUFFIX} \
>> -DRENDER_LIB=CAIRO \
>> -D FREETYPE_INCLUDE_DIRS:PATH="/usr/include/freetype2" \
>> ./CMakeLists.txt
>> 8<--------------------------------------
>>
>
> Sebastian,
>
> Yes, it would be nice to learn why cmake finds freetype in
> /usr/local/include/ when it's actually in /usr/include/.
>
> I deleted the space between -D and FREETYPE... above and with
> freetype-2.5.5 installed this error is produced:
>
> -- Configuring done
> -- Generating done
> -- Build files have been written to: /tmp/SBo/scribus-1.4.6
> ./scribus.SlackBuild: line 83:
> -DFREETYPE_INCLUDE_DIRS:PATH=/usr/include/freetype2: No such file or
> directory
>
> /usr/include/ has freetype2/ with all the expected files, and freetype/
> with this softlink:
> lrwxrwxrwx 1 root root 9 Aug 7 08:45 /usr/include/freetype -> freetype2/
> which was apparently generated when I tried the above build.
>
> For completeness, using freetype--2.6.3-i586-1, scribus-1.4.6 builds.
>
> Summary: On my system, scribus-1.4.6 builds with freetype-2.5.0 and
> -2.6.3, but not 2.5.5. Figuring out why is well beyond my experience.
>
> Thanks again,
>
> 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/20170807/2ebb9e51/attachment.html>
More information about the SlackBuilds-users
mailing list