googlefonts / fontview

Demo app that displays fonts with a free/libre/open-source text rendering stack: FreeType, HarfBuzz and Raqm
Other
322 stars 37 forks source link

[Build Error] fatal error: 'ucdn.h' file not found #20

Closed lgcc closed 7 years ago

lgcc commented 7 years ago

After clone the git repo and cd into it, run python build.py will stop at

  CXX(target) out/Default/obj.target/harfbuzz/src/third_party/harfbuzz/harfbuzz/src/hb-ucdn.o
../src/third_party/harfbuzz/harfbuzz/src/hb-ucdn.cc:21:10: fatal error: 'ucdn.h' file not found
#include "ucdn.h"
         ^
1 error generated.

Then I use CPPFLAGS=-I$PWD/src/third_party/harfbuzz/harfbuzz/src/hb-ucdn python build.py to get over this. Later I stuck at

make: *** No rule to make target `out/Default/obj.target/ucdn/src/third_party/ucdn/ucdn/ucdn.o', needed by `out/Default/libucdn.a'.  Stop.
brawer commented 7 years ago

It works on Travis: https://travis-ci.org/googlei18n/fontview

lgcc commented 7 years ago

Yeah, you are right. It really works.

just now I found that I miss a submodule, when I ran git submodule init I got

Submodule 'src/third_party/ucdn/ucdn' (https://github.com/grigorig/ucdn.git) registered for path 'src/third_party/ucdn/ucdn'

so I updated submodule and I got fontview build. Sorry for it.

brawer commented 7 years ago

No problem. Enjoy the tool, and don’t hesitate to make changes; it’s free software!