[Fontconfig] Dependency - freetype debian stretch

Akira TAGOH akira at tagoh.org
Tue Feb 27 08:02:16 UTC 2018


AFAICT you've  misconfigured your build. check Makefile generated what
FREETYPE_CFLAGS and FREETYPE_LIBS it has.

On Tue, Feb 27, 2018 at 5:56 AM, Nicky Perian <nickyperian at yahoo.com> wrote:
> Thanks fr the reply.
>
> I managed to compile but now have a link problem….
> Below is that part of the build that fails. It appears that   ../src/.libs/libfontconfig.so  is lacking but Binary file ./fontconfig/src/.libs/libfontconfig.so.1.11.0 matches
> And is good to go.
>
> I have seen  this issue reported from the web but with no clear solution provided.
>
>
>
>
> (autobuild-1.1) nicky at nicky:~/3p-fontconfig-rebase/fontconfig/fc-cache$ /usr/bin/libtool --mode=link gcc -m64 -O -std=gnu++11 -g -fPIC -Wno-unused-local-typedefs -Wno-deprecated-declarations -D_GLIBCXX_USE_CXX11_ABI=0 -DLL_LINUX=1 -D_REENTRANT -fexceptions -fno-math-errno -fno-strict-aliasing -fsigned-char -mmmx -msse -msse2 -mfpmath=sse -pthread -DLL_LINUX=1 -DLL_OS_DRAGDROP_ENABLED=1 -DCARES_STATICLIB -DLIB_NDOF=1 -m64 -O2 -std=gnu++11 -g -fPIC -Wno-unused-local-typedefs -Wno-deprecated-declarations -D_GLIBCXX_USE_CXX11_ABI=0 -DLL_LINUX=1 -D_REENTRANT -fexceptions -fno-math-errno -fno-strict-aliasing -fsigned-char -mmmx -msse -msse2 -mfpmath=sse -pthread -DLL_LINUX=1 -DLL_OS_DRAGDROP_ENABLED=1 -DCARES_STATICLIB -DLIB_NDOF=1 -Wl,--exclude-libs -Wl,libz:libxml2:libexpat:libfreetype -o .libs/fc-cache fc-cache.o  -L/home/nicky/3p-fontconfig-rebase/stage/packages/lib/release ../src/.libs/libfontconfig.so -L/home/nicky/3p-fontconfig-rebase/stage/packages/lib/release/ -lexpat -luuid -pthread -Wl,-rpath -Wl,/home/nicky/3p-fontconfig-rebase/stage/packages/lib/release
> libtool: link: gcc -m64 -O -std=gnu++11 -g -fPIC -Wno-unused-local-typedefs -Wno-deprecated-declarations -D_GLIBCXX_USE_CXX11_ABI=0 -DLL_LINUX=1 -D_REENTRANT -fexceptions -fno-math-errno -fno-strict-aliasing -fsigned-char -mmmx -msse -msse2 -mfpmath=sse -pthread -DLL_LINUX=1 -DLL_OS_DRAGDROP_ENABLED=1 -DCARES_STATICLIB -DLIB_NDOF=1 -m64 -O2 -std=gnu++11 -g -fPIC -Wno-unused-local-typedefs -Wno-deprecated-declarations -D_GLIBCXX_USE_CXX11_ABI=0 -DLL_LINUX=1 -D_REENTRANT -fexceptions -fno-math-errno -fno-strict-aliasing -fsigned-char -mmmx -msse -msse2 -mfpmath=sse -pthread -DLL_LINUX=1 -DLL_OS_DRAGDROP_ENABLED=1 -DCARES_STATICLIB -DLIB_NDOF=1 -Wl,--exclude-libs -Wl,libz:libxml2:libexpat:libfreetype -o .libs/fc-cache fc-cache.o ../src/.libs/libfontconfig.so -pthread -Wl,-rpath -Wl,/home/nicky/3p-fontconfig-rebase/stage/packages/lib/release  -L/home/nicky/3p-fontconfig-rebase/stage/packages/lib/release -L/home/nicky/3p-fontconfig-rebase/stage/packages/lib/release/ -lexpat -luuid -pthread
> ../src/.libs/libfontconfig.so: undefined reference to `FT_Get_Sfnt_Name_Count'
> ../src/.libs/libfontconfig.so: undefined reference to `FT_Load_Glyph'
> ../src/.libs/libfontconfig.so: undefined reference to `FT_Load_Sfnt_Table'
> ../src/.libs/libfontconfig.so: undefined reference to `FT_Get_Postscript_Name'
> ../src/.libs/libfontconfig.so: undefined reference to `FT_Done_Face'
> ../src/.libs/libfontconfig.so: undefined reference to `FT_Done_FreeType'
> ../src/.libs/libfontconfig.so: undefined reference to `FT_Set_Var_Design_Coordinates'
> ../src/.libs/libfontconfig.so: undefined reference to `FT_Get_Advance'
> ../src/.libs/libfontconfig.so: undefined reference to `FT_New_Face'
> ../src/.libs/libfontconfig.so: undefined reference to `FT_Init_FreeType'
> ../src/.libs/libfontconfig.so: undefined reference to `FT_Get_First_Char'
> ../src/.libs/libfontconfig.so: undefined reference to `FT_Select_Charmap'
> ../src/.libs/libfontconfig.so: undefined reference to `FT_Get_Sfnt_Table'
> ../src/.libs/libfontconfig.so: undefined reference to `FT_Get_MM_Var'
> ../src/.libs/libfontconfig.so: undefined reference to `FT_Select_Size'
> ../src/.libs/libfontconfig.so: undefined reference to `FT_Get_Char_Index'
> ../src/.libs/libfontconfig.so: undefined reference to `FT_Get_Next_Char'
> ../src/.libs/libfontconfig.so: undefined reference to `FT_Get_Sfnt_Name'
> collect2: error: ld returned 1 exit status
> (autobuild-1.1) nicky at nicky:~/3p-fontconfig-rebase/fontconfig/fc-cache$ scanDir
> bash: scanDir: command not found
> (autobuild-1.1) nicky at nicky:~/3p-fontconfig-rebase/fontconfig/fc-cache$ which libfontconfig.so
> (autobuild-1.1) nicky at nicky:~/3p-fontconfig-rebase/fontconfig/fc-cache$ cd ../../
> (autobuild-1.1) nicky at nicky:~/3p-fontconfig-rebase$ which libfontconfig.so*
> (autobuild-1.1) nicky at nicky:~/3p-fontconfig-rebase$ grep -nr "FT_Get_Sfnt_Name_Count" .
> ./stage/packages/include/freetype/ftsnames.h:122:  /*    FT_Get_Sfnt_Name_Count                                             */
> ./stage/packages/include/freetype/ftsnames.h:134:  FT_Get_Sfnt_Name_Count( FT_Face  face );
> ./stage/packages/include/freetype/ftsnames.h:161:  /*    Use @FT_Get_Sfnt_Name_Count to get the total number of available   */
> ./stage/packages/include/freetype2/freetype/ftsnames.h:122:  /*    FT_Get_Sfnt_Name_Count                                             */
> ./stage/packages/include/freetype2/freetype/ftsnames.h:134:  FT_Get_Sfnt_Name_Count( FT_Face  face );
> ./stage/packages/include/freetype2/freetype/ftsnames.h:161:  /*    Use @FT_Get_Sfnt_Name_Count to get the total number of available   */
> Binary file ./stage/packages/lib/release/libfreetype.so.6.16.0 matches
> Binary file ./stage/packages/lib/release/libfreetype.a matches
> Binary file ./fontconfig/src/fcfreetype.o matches
> Binary file ./fontconfig/src/.libs/fcfreetype.o matches
> Binary file ./fontconfig/src/.libs/libfontconfig.so.1.11.0 matches
> Binary file ./fontconfig/src/.libs/libfontconfig.a matches
> ./fontconfig/src/fcfreetype.c:1145:    int min = 0, max = (int) FT_Get_Sfnt_Name_Count (face) - 1;
>
>
>
>> On Feb 25, 2018, at 10:08 PM, Akira TAGOH <akira at tagoh.org> wrote:
>>
>> You could siimply use PKG_CONFIG_PATH to point the location of your
>> freetype build.
>>
>> On Mon, Feb 26, 2018 at 12:11 AM, Nicky Perian <nickyperian at yahoo.com> wrote:
>>> I am building fontconfig-2.12.93 using self compiled freetype-2.9. I want to
>>> ignore system freetype.
>>> As a test I used the system freetype and it reports a too old version at
>>> configure.
>>>
>>> What freetype version is acceptable for fontconfig-2.12.93?
>>> Is there a way to sandbox fontconfig dependencies to use local versions?
>>>
>>> My present configure:
>>>            CFLAGS="$opts" \
>>>
>>> FREETYPE_CFLAGS="$stage/packages/include/freetype2/freetype/" \
>>>                CXXFLAGS="$opts" \
>>>                LDFLAGS="$opts -L$stage/packages/lib/release/" \
>>> FREETYPE_LIBS="$stage/lib/release/" \
>>>                ./configure \
>>>                --enable-static --enable-shared --disable-docs \
>>>                --with-pic --without-pkgconfigdir --disable-silent-rules \
>>>                --with-expat-includes="$stage"/packages/include/expat/ \
>>>                --with-expat-lib="$stage"/packages/lib/release/ \
>>>                --prefix="$stage" --libdir="$stage"/lib/release/
>>>            make LDFLAGS="$opts -L$stage/packages/lib/release/
>>> -Wl,--exclude-libs,libz:libxml2:libexpat:libfreetype"
>>>            make install LDFLAGS="$opts -L$stage/packages/lib/release/
>>> -Wl,--exclude-libs,libz:libxml2:libexpat:libfreetype”
>>>
>>>
>>> I looked in configure and did not see
>>>                —with-freetype-includes="$stage"/packages/include/expat/ \
>>>                —with-freetype-lib="$stage"/packages/lib/release/ \
>>> Can those be added and used in configure?
>>>
>>> Is there another way to isolate freetype and have it be friendly to
>>> fontconfig?
>>>
>>>
>>>
>>> _______________________________________________
>>> Fontconfig mailing list
>>> Fontconfig at lists.freedesktop.org
>>> https://lists.freedesktop.org/mailman/listinfo/fontconfig
>>>
>>
>>
>>
>> --
>> Akira TAGOH
>



-- 
Akira TAGOH


More information about the Fontconfig mailing list