Scribus 1.5 svn installation - freetype error

Archived topics about LMDE 1 and LMDE 2
Locked
toroka

Scribus 1.5 svn installation - freetype error

Post by toroka »

Hi there!

I have installed LMDE lately. As I previously used Scribus 1.5 with other distros and I have some templates prepared with that version, I wanted to install under LMDE, as well, but no success. I am stuck at the installation of freetype. The error message I receive is:
CMake Error at /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:108 (message):
Could NOT find Freetype (missing: FREETYPE_INCLUDE_DIRS)
The funny thing is that freetype is installed. See partial output of

Code: Select all

locate freetype
command:
/usr/bin/freetype-config
/usr/include/freetype2
/usr/include/freetype2/config
/usr/include/freetype2/freetype.h
...
/usr/include/freetype2/ttunpat.h
/usr/include/freetype2/config/ftconfig.h
/usr/include/freetype2/config/ftheader.h
/usr/include/freetype2/config/ftmodule.h
/usr/include/freetype2/config/ftoption.h
/usr/include/freetype2/config/ftstdlib.h
/usr/lib/girepository-1.0/freetype2-2.0.typelib
/usr/lib/i386-linux-gnu/libfreetype.so.6
/usr/lib/i386-linux-gnu/libfreetype.so.6.11.0
/usr/lib/vlc/plugins/text_renderer/libfreetype_plugin.so
/usr/lib/x86_64-linux-gnu/libfreetype.a
/usr/lib/x86_64-linux-gnu/libfreetype.la
/usr/lib/x86_64-linux-gnu/libfreetype.so
/usr/lib/x86_64-linux-gnu/libfreetype.so.6
/usr/lib/x86_64-linux-gnu/libfreetype.so.6.11.0
/usr/lib/x86_64-linux-gnu/pkgconfig/freetype2.pc
/usr/share/aclocal/freetype2.m4
/usr/share/doc/freetype2-demos
/usr/share/doc/libfont-freetype-perl
...
/usr/share/doc-base/libfreetype6-dev
/usr/share/doc-base/libisfreetype-java-doc
/usr/share/java/isfreetype-5.3.20100629.jar
/usr/share/java/isfreetype.jar
/usr/share/man/man1/freetype-config.1.gz
Output of

Code: Select all

ls | grep free
for /var/cache/apt/archives :
freetds-common_0.91-5_all.deb
freetype2-demos_2.5.1-1_amd64.deb
libfont-freetype-perl_0.03-1+b3_amd64.deb
libfreeimage3_3.15.1-2_amd64.deb
libfreeimage-dev_3.15.1-2_amd64.deb
libfreetype6_2.5.1-1_i386.deb
libfreetype6-dev_2.5.1-1_amd64.deb
libisfreetype-java_5.3.20100629-3_all.deb
libisfreetype-java-doc_5.3.20100629-3_all.de
At line 623 cmakelist.txt says:
#<< FreeType2
FIND_PACKAGE(Freetype REQUIRED)
IF (FREETYPE_FOUND)
MESSAGE(STATUS "FreeType2 Library Found OK")
INCLUDE(CheckLibraryExists)
CHECK_LIBRARY_EXISTS(${FREETYPE_LIBRARY} FT_Get_First_Char "" HAVE_FREETYPE_FIRST)
CHECK_LIBRARY_EXISTS(${FREETYPE_LIBRARY} FT_Get_Next_Char "" HAVE_FREETYPE_NEXT)
# here we have an alternative
# a) Setup CFLAGS with the FREETYPE_INCLUDE_DIR_freetype2 provided by cmake
# b) Insert ${FREETYPE_INCLUDE_DIRS} in include sections of CMakeLists that need it
# I prefer (b) and at some point & from my opinion it should be just needed in scribus/fonts/CmakeLists.txt - pm
ELSE (FREETYPE_FOUND)
I don't know, whether I understood well, but I have even tried to edit the above mentioned "Include Directories" section like this:
#Set up include dirs with all found packages
INCLUDE_DIRECTORIES(
${CMAKE_BINARY_DIR}
${CMAKE_BINARY_DIR}/scribus
${QT_INCLUDES}
${FREETYPE_INCLUDE_DIR}/usr/include/freetype2
${FONTCONFIG_INCLUDE_DIR}
${JPEG_INCLUDE_DIR}
......
No more idea. Anyone has a clue?
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
py-thon

Re: Scribus 1.5 svn installation - freetype error

Post by py-thon »

Two ideas, but I don't know whether they'll solve anything:
1. Add an S to your added line, it should read "FREETYPE_INCLUDE_DIRS".
2. Check whether scribus 1.5 needs a newer version of freetype than the one that comes with LMDE.
DrHu

Re: Scribus 1.5 svn installation - freetype error

Post by DrHu »

Also there could be some specific issues with Cmake itself..
http://forums.pcsx2.net/Thread-Linux-Co ... ort?page=3
--about cmake and another program being compiled..

https://github.com/Unvanquished/Unvanquished/issues/273
http://stackoverflow.com/questions/2388 ... with-cmake
http://www.cplusplus.com/forum/lounge/117899/
--some clues but relate specifically to those distributions..

http://stackoverflow.com/questions/1671 ... -a-library
--point to the library in question, edits needed?
Additionally use the latest version of Cmake that is available, that may fix some errors that existed for an earlier version..
http://askubuntu.com/questions/355565/h ... mmand-line
http://www.linux.com/news/software/appl ... 0-released
--latest version available ?
toroka

Re: Scribus 1.5 svn installation - freetype error

Post by toroka »

Thanks guys for the quick reply, I need some time to check them!
toroka

Re: Scribus 1.5 svn installation - freetype error

Post by toroka »

py-thon wrote:Two ideas, but I don't know whether they'll solve anything:
1. Add an S to your added line, it should read "FREETYPE_INCLUDE_DIRS".
2. Check whether scribus 1.5 needs a newer version of freetype than the one that comes with LMDE.
Thanks py-thon

To 1. -

Code: Select all

${FREETYPE_INCLUDE_DIR}
is part of the original script and I have simply added /usr/include/freetype2 as my part. I do not think, that I should change to ...INCLUDE_DIRS. (To be frank I tried, but it did not help.)

To 2. I found only one piece of information about that:
Official:Compilation Requirements: Freetype2 2.1.7+. Due to various freetype2 bugs, we recommend, if your distribution/OS allows, to use 2.3.x
and I have libfreetype6 2.5.1-1 (both 64 and 32 bits).

I may try to downgrade. or install newest freetype version, what is 2.5.3, but first, I'll check what was suggested by DrHu

Thanks anyway!
toroka

Re: Scribus 1.5 svn installation - freetype error

Post by toroka »

DrHu wrote:....
http://stackoverflow.com/questions/1671 ... -a-library
--point to the library in question, edits needed?
Additionally use the latest version of Cmake that is available, that may fix some errors that existed for an earlier version..
http://askubuntu.com/questions/355565/h ... mmand-line
http://www.linux.com/news/software/appl ... 0-released
--latest version available ?
Starting form the other end. I have downloaded latest cmake. I tried to install from cmake-gui. It first complained about missing gtk and again about Freetype :shock: . Then I installed from synaptic what I thought to be handy, it complained again about curses and qt-core. I Installed qt4-core, too. Now it has only one error:
Curses libraries were not found. Curses GUI for CMake will not be built.
Here I stop for a while.
py-thon

Re: Scribus 1.5 svn installation - freetype error

Post by py-thon »

toroka wrote: To 1. -

Code: Select all

${FREETYPE_INCLUDE_DIR}
is part of the original script and I have simply added /usr/include/freetype2 as my part. I do not think, that I should change to ...INCLUDE_DIRS. (To be frank I tried, but it did not help.)
Maybe it was a misunderstanding on my part, because in your first post, you quoted a line that contained the "S".
toroka wrote: To 2. I found only one piece of information about that:
Official:Compilation Requirements: Freetype2 2.1.7+. Due to various freetype2 bugs, we recommend, if your distribution/OS allows, to use 2.3.x
and I have libfreetype6 2.5.1-1 (both 64 and 32 bits).

I may try to downgrade. or install newest freetype version, what is 2.5.3, but first, I'll check what was suggested by DrHu
I wouldn't downgrade. The mentioned bugs won't exist in 2.5.1-1 if 2.3.x is recommended (but there might be others...).
py-thon

Re: Scribus 1.5 svn installation - freetype error

Post by py-thon »

If you are brave and have an uptodate backup you could try the deb-files from Ubuntu's ppa at https://launchpad.net/~scribus/+archive ... /+packages
Click the arrow before scribus-trunk-.... and you can directly download the 1.5.0svn for 14.04 (which should be more similar to LMDE than 14.10 :wink:
toroka

Re: Scribus 1.5 svn installation - freetype error

Post by toroka »

py-thon wrote:
toroka wrote: To 1. -

Code: Select all

${FREETYPE_INCLUDE_DIR}
is part of the original script and I have simply added /usr/include/freetype2 as my part. I do not think, that I should change to ...INCLUDE_DIRS. (To be frank I tried, but it did not help.)
Maybe it was a misunderstanding on my part, because in your first post, you quoted a line that contained the "S".
Yes, there was, but that was in the error message. Then I tried to include the path into the script where was a FREETYPE_INCLUDE_DIR command without S.
py-thon wrote:
toroka wrote: To 2. I found only one piece of information about that:
Official:Compilation Requirements: Freetype2 2.1.7+. Due to various freetype2 bugs, we recommend, if your distribution/OS allows, to use 2.3.x
and I have libfreetype6 2.5.1-1 (both 64 and 32 bits).

I may try to downgrade. or install newest freetype version, what is 2.5.3, but first, I'll check what was suggested by DrHu
I wouldn't downgrade. The mentioned bugs won't exist in 2.5.1-1 if 2.3.x is recommended (but there might be others...).
I thought the same. Thanks anyway.
toroka

Re: Scribus 1.5 svn installation - freetype error

Post by toroka »

py-thon wrote:If you are brave and have an uptodate backup you could try the deb-files from Ubuntu's ppa at https://launchpad.net/~scribus/+archive ... /+packages
Click the arrow before scribus-trunk-.... and you can directly download the 1.5.0svn for 14.04 (which should be more similar to LMDE than 14.10 :wink:
Thanks, I'll try.
Locked

Return to “LMDE Archive”