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:
The funny thing is that freetype is installed. See partial output ofCMake Error at /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:108 (message):
Could NOT find Freetype (missing: FREETYPE_INCLUDE_DIRS)
Code: Select all
locate freetype
Output of/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
Code: Select all
ls | grep free
At line 623 cmakelist.txt says: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
I don't know, whether I understood well, but I have even tried to edit the above mentioned "Include Directories" section like this:#<< 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)
No more idea. Anyone has a clue?#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}
......