Skip to content

Wrong letter case in a constant name #274

@wzhqwq

Description

@wzhqwq

An incorrect modification was made to a constant name in #235, causing a build failure.

The FONTCONFIG_LIBRARY is set in FindConfigFont.cmake while the Fontconfig_LIBRARY is used in demos/CMakeLists.txt. Therefore the library path of FontConfig is not included in the linking phase of target markup, resulting in the following error:

...
[ 94%] Linking C executable markup
Undefined symbols for architecture x86_64:
  "_FcConfigSubstitute", referenced from:
      _match_description in markup.c.o
  "_FcDefaultSubstitute", referenced from:
      _match_description in markup.c.o
  "_FcFontMatch", referenced from:
      _match_description in markup.c.o
  "_FcInit", referenced from:
      _match_description in markup.c.o
  "_FcNameParse", referenced from:
      _match_description in markup.c.o
  "_FcPatternDestroy", referenced from:
      _match_description in markup.c.o
  "_FcPatternGet", referenced from:
      _match_description in markup.c.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [demos/markup] Error 1
make[1]: *** [demos/CMakeFiles/markup.dir/all] Error 2
make: *** [all] Error 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions