Menu

#337 Current -9999 version (3.1.2-52) missed option USE_FREETYPE2

All platforms
open
nobody
None
5
2015-03-04
2015-02-07
No

On my system I have three available versions of freetype package:
[I] media-libs/freetype
Available versions: (2) 2.5.3-r1 ~2.5.4-r1 ~2.5.5
The first one is installed.

The default build failes with the following error message:

[ 45%] Building CXX object crengine/CMakeFiles/crengine.dir/src/lvfntman.cpp.o
cd /var/tmp/portage/app-text/coolreader3-9999-r2/work/coolreader3-9999_build/crengine && /usr/bin/x86_64-pc-linux-gnu-g++ -DBIG_PAGE_MARGINS=0 -DCHM_SUPPORT_ENABLED=1 -DCOLOR_BACKBUFFER=1 -DCR3_ANTIWORD_PATCH=1 -DDOC_BUFFER_SIZE=0x400000 -DDOC_DATA_COMPRESSION_LEVEL=1 -DENABLE_ANTIWORD=1 -DLDOM_USE_OWN_MEM_MAN=1 -DLINUX=1 -DMAX_IMAGE_SCALE_MUL=0 -DNDEBUG=1 -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NO_DEBUG -DUSE_EXTERNAL_EDICT_DICTIONARY=0 -DUSE_FREETYPE=1 -DUSE_UNRAR=0 -D_LINUX=1 -march=native -O2 -pipe -Wall -Wno-long-long -pedantic -O3 -DNDEBUG -isystem /usr/include/qt4 -isystem /usr/include/qt4/QtGui -isystem /usr/include/qt4/QtCore -I/var/tmp/portage/app-text/coolreader3-9999-r2/work/coolreader3-9999/thirdparty/antiword -I/usr/include/freetype2 -I/var/tmp/portage/app-text/coolreader3-9999-r2/work/coolreader3-9999/thirdparty/chmlib/src -I/var/tmp/portage/app-text/coolreader3-9999-r2/work/coolreader3-9999/crengine/include -I/var/tmp/portage/app-text/coolreader3-9999-r2/work/coolreader3-9999/tinydict -o CMakeFiles/crengine.dir/src/lvfntman.cpp.o -c /var/tmp/portage/app-text/coolreader3-9999-r2/work/coolreader3-9999/crengine/src/lvfntman.cpp
/var/tmp/portage/app-text/coolreader3-9999-r2/work/coolreader3-9999/crengine/src/lvfntman.cpp:58:38: fatal error: freetype/config/ftheader.h: No such file or directory
#include <freetype config="" ftheader.h="">

Changing USE_FREETYPE=1 to USE_FREETYPE2=1 in CMakeLists.txt makes patched version buildable.

1 Attachments

Discussion

  • dliw

    dliw - 2015-03-04

    I can confirm this issue. Provided patch solved the problem.

     

    Last edit: dliw 2015-03-04
    • Starikov Sergey

      Starikov Sergey - 2015-03-14

      But it is quick and dirty (and, probably, incomplete) solution.
      It just makes recent version of CoolReader3 buildable on PC.

       

Log in to post a comment.