freetype-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

meson build system


From: Vincent Torri
Subject: meson build system
Date: Tue, 5 Jan 2021 14:37:40 +0100

Hello

i try to compile freetype 2.10.4 with harfbuzz support using meson, so
i compile in that order:
1) freetype without hb
2) hb with ft
3) ft with hb

compilation fails at step 1)

---------------------------------------------------------------------
configuration :

rm -rf builddir && mkdir builddir && cd builddir
meson .. \
      --prefix=$3 \
      --libdir=lib \
      --buildtype=release \
      --strip \
      --cross-file ../cross_toolchain.txt \
      --default-library shared \
      -Dharfbuzz=disabled > ../../config.log 2>&1

ninja $verbninja install > ../../make.log 2>&1

---------------------------------------------------------------------

meson output :

Found pkg-config:
E:\Documents\programmes_x64\msys2\opt\ewpi2_64\bin/pkg-config.EXE
(1.7.3)
Run-time dependency zlib found: YES 1.2.11
Library bz2 found: YES
Run-time dependency libpng found: YES 1.6.37
Dependency harfbuzz skipped: feature harfbuzz disabled
Found CMake: E:\Documents\programmes_x64\msys2\mingw64\bin/cmake.EXE (3.19.1)
Run-time dependency libbrotlidec found: NO (tried pkgconfig and cmake)
Compiler for C supports function attribute visibility:hidden: YES
Build targets in project: 4

Option default_library is: shared [default: both]
Found ninja-1.10.2 at E:\Documents\programmes_x64\msys2\mingw64\bin/ninja.EXE

---------------------------------------------------------------------

compilation :

[1/44] Generating ftmodule.h with a custom command
[2/44] Generating ftoption.h with a custom command
[3/44] Compiling C object libfreetype-6.dll.p/src_base_ftfstype.c.obj
[4/44] Compiling C object libfreetype-6.dll.p/src_base_ftcid.c.obj
[5/44] Compiling C object libfreetype-6.dll.p/src_base_ftgxval.c.obj
[6/44] Compiling C object libfreetype-6.dll.p/src_base_ftbdf.c.obj
[7/44] Compiling C object libfreetype-6.dll.p/src_base_ftgasp.c.obj
[8/44] Compiling C object libfreetype-6.dll.p/src_base_ftbbox.c.obj
[9/44] Compiling C object libfreetype-6.dll.p/src_base_ftglyph.c.obj
[10/44] Compiling C object libfreetype-6.dll.p/src_psnames_psnames.c.obj
[11/44] Compiling C object libfreetype-6.dll.p/src_base_ftbitmap.c.obj
[12/44] Compiling C object libfreetype-6.dll.p/src_base_ftinit.c.obj
[13/44] Compiling C object libfreetype-6.dll.p/src_base_ftotval.c.obj
[14/44] Compiling C object libfreetype-6.dll.p/src_base_ftmm.c.obj
[15/44] Compiling C object libfreetype-6.dll.p/src_winfonts_winfnt.c.obj
[16/44] Compiling C object libfreetype-6.dll.p/src_type42_type42.c.obj
[17/44] Compiling C object libfreetype-6.dll.p/src_cid_type1cid.c.obj
[18/44] Compiling C object libfreetype-6.dll.p/src_pcf_pcf.c.obj
[19/44] Compiling C object libfreetype-6.dll.p/src_pfr_pfr.c.obj
[20/44] Compiling C object libfreetype-6.dll.p/src_autofit_autofit.c.obj

FAILED: libfreetype-6.dll.p/src_autofit_autofit.c.obj

"x86_64-w64-mingw32-gcc" "-Ilibfreetype-6.dll.p" "-I." "-I.."
"-I../include" 
"-IE:/Documents/programmes_x64/msys2/opt/ewpi2_64/include/libpng16"
"-IE:/Documents/programmes_x64/msys2/opt/ewpi2_64/include"
"-fdiagnostics-color=always" "-pipe" "-D_FILE_OFFSET_BITS=64" "-Wall"
"-Winvalid-pch" "-O3" "-D_WIN32_WINNT=0x0601" "-O2" "-march=x86-64"
"-DHAVE_UNISTD_H=1" "-DHAVE_FCNTL_H" "-DFT2_BUILD_LIBRARY=1"
"-DFT_CONFIG_OPTIONS_H=<ftoption.h>" "-fvisibility=hidden" -MD -MQ
libfreetype-6.dll.p/src_autofit_autofit.c.obj -MF
"libfreetype-6.dll.p/src_autofit_autofit.c.obj.d" -o
libfreetype-6.dll.p/src_autofit_autofit.c.obj "-c"
../src/autofit/autofit.c

In file included from ../src/autofit/afglobal.h:26,
                 from ../src/autofit/afcjk.c:28,
                 from ../src/autofit/autofit.c:23:
../src/autofit/afshaper.h:28:10: fatal error: hb.h: No such file or directory
   28 | #include <hb.h>
      |          ^~~~~~
compilation terminated.

---------------------------------------------------------------------

In ftopion.h :

#define FT_CONFIG_OPTION_USE_HARFBUZZ

which seems wrong

Vincent Torri



reply via email to

[Prev in Thread] Current Thread [Next in Thread]