TheCherno / Sparky

Cross-Platform High Performance 2D/3D game engine for people like me who like to write code.
Apache License 2.0
1.09k stars 222 forks source link

Emscripten #129

Open mahmoudghonim opened 7 years ago

mahmoudghonim commented 7 years ago

Failed to compile "Harfbuzz" which is a text shaping library

According to : https://github.com/TheCherno/Sparky/edit/3D/Dependencies/FreeType-Emscripten/em_build_freetype.bat

I'm trying to simulate sparky Emscripten Experience with "Harfbuzz".

kindly, check this link: http://pastebin.com/z5G3apC0

I successfully compiled freetype source code ==> freetype.bc

but I failed to compile "Harfbuzz" I faced Exception "helper-cairo-ansi.cc:28:" In file included from /home/harfbuzz-master/util/helper-cairo-ansi.cc:28: /home/harfbuzz-master/util/options.hh:261:5: error: use of undeclared identifier 'hb_ot_shape_glyphs_closure' hb_ot_shape_glyphs_closure (font, buffer, features, num_features, glyphs); ^ 1 error generated. ERROR root: compiler frontend failed to generate LLVM bitcode, halting

helper-cairo-ansi.cc source code https://github.com/behdad/harfbuzz/blob/02bfd965af588640250c47f344ad3096c8a373e0/util/helper-cairo-ansi.cc

options.hh source code https://github.com/behdad/harfbuzz/blob/02bfd965af588640250c47f344ad3096c8a373e0/util/options.hh

Any help plz.