Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Cool Reader Engine #18

Open
johndoe71rus opened this issue Mar 2, 2024 · 1 comment
Open

Use Cool Reader Engine #18

johndoe71rus opened this issue Mar 2, 2024 · 1 comment

Comments

@johndoe71rus
Copy link

вручную применил #17 реквест к основному коду, собрал myrulib.
решил собрать с cool reader. конфиг прошел нормально. при сборке вылезла ошибка

./3rdparty/crengine/src/../include/lvref.h: In member function ‘void LVDocView::requestRender()’:
./3rdparty/crengine/src/../include/lvref.h:34:28: note: declared here
   34 |     static ref_count_rec_t null_ref;
      |                            ^~~~~~~~
/home/johndoe/build/myrulib/myrulib/bk-deps g++ -c -o mrl_crengine_lvdrawbuf.o -I3rdparty/crengine/include -I./3rdparty/crengine/png -I./3rdparty/wxsqlite3/include -I/usr/lib/x86_64-linux-gnu/wx/include/gtk3-unicode-3.0 -I/usr/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__ -pthread  -g -O2 -I/usr/include/libxml2 -DFB_PARSE_LIBXML2  -DFB_INCLUDE_READER -I./3rdparty/crengine/include ./3rdparty/crengine/src/lvdrawbuf.cpp
/home/johndoe/build/myrulib/myrulib/bk-deps g++ -c -o mrl_crengine_lvfnt.o -I3rdparty/crengine/include -I./3rdparty/crengine/png -I./3rdparty/wxsqlite3/include -I/usr/lib/x86_64-linux-gnu/wx/include/gtk3-unicode-3.0 -I/usr/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__ -pthread  -g -O2 -I/usr/include/libxml2 -DFB_PARSE_LIBXML2  -DFB_INCLUDE_READER -I./3rdparty/crengine/include ./3rdparty/crengine/src/lvfnt.cpp
./3rdparty/crengine/src/lvfnt.cpp: In function ‘int lvfontOpen(const char*, void**)’:
./3rdparty/crengine/src/lvfnt.cpp:74:10: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   74 |     fread( *pfont, sz, 1, f );
      |     ~~~~~^~~~~~~~~~~~~~~~~~~~
/home/johndoe/build/myrulib/myrulib/bk-deps g++ -c -o mrl_crengine_lvfntman.o -I3rdparty/crengine/include -I./3rdparty/crengine/png -I./3rdparty/wxsqlite3/include -I/usr/lib/x86_64-linux-gnu/wx/include/gtk3-unicode-3.0 -I/usr/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__ -pthread  -g -O2 -I/usr/include/libxml2 -DFB_PARSE_LIBXML2  -DFB_INCLUDE_READER -I./3rdparty/crengine/include ./3rdparty/crengine/src/lvfntman.cpp
./3rdparty/crengine/src/lvfntman.cpp:50:10: fatal error: freetype/config/ftheader.h: Нет такого файла или каталога
   50 | #include <freetype/config/ftheader.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:586: mrl_crengine_lvfntman.o] Ошибка 1

lubuntu 22.04.4

@johndoe71rus
Copy link
Author

попробовал еще раз собрать, были комменты. ну а вдруг. заметил варнинг при конфиге

checking for freetype-config... no
checking for FreeType -- version >= 2.3.0... no
configure: WARNING:

  The freetype-config script installed by FreeType 2 could not be found.
  If FreeType 2 was installed in PREFIX, make sure PREFIX/bin is in
  your path, or set the FT2_CONFIG environment variable to the
  full path to freetype-config.  

libfreetype-dev, libfreetype6-dev установлены.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant