zhuyie / drawtext-gl-freetype-harfbuzz Goto Github PK
View Code? Open in Web Editor NEWExample of drawing text on OpenGL using FreeType2 and HarfBuzz.
License: MIT License
Example of drawing text on OpenGL using FreeType2 and HarfBuzz.
License: MIT License
大佬好,请问一下,我照你的源码搬到Android ndk环境下编译OK,但是文字就是没绘制出来,不知道为什么,是不是定点着色器配置不对,能否加V援助,不胜感谢。
[ 88%] Building CXX object CMakeFiles/drawtext.dir/main.cpp.o
[ 88%] Building CXX object CMakeFiles/drawtext.dir/font.cpp.o
[ 90%] Building CXX object CMakeFiles/drawtext.dir/texture_atlas.cpp.o
[ 91%] Building CXX object CMakeFiles/drawtext.dir/skyline_binpack.cpp.o
[ 94%] Building CXX object CMakeFiles/drawtext.dir/text_render.cpp.o
[ 94%] Building CXX object CMakeFiles/drawtext.dir/shader.cpp.o
[ 95%] Building CXX object CMakeFiles/drawtext.dir/text_run.cpp.o
[ 97%] Building C object CMakeFiles/drawtext.dir/deps/glad/src/glad.c.o
[ 98%] Building CXX object CMakeFiles/drawtext.dir/deps/harfbuzz/src/hb-ft.cc.o
[100%] Linking CXX executable drawtext
/usr/bin/ld: CMakeFiles/drawtext.dir/deps/harfbuzz/src/hb-ft.cc.o: in function unsigned int const& hb_hashmap_t<unsigned int, unsigned int, true>::item_t::default_value<true, (void*)0>()': hb-ft.cc:(.text._ZN12hb_hashmap_tIjjLb1EE6item_t13default_valueILb1ELPv0EEERKjv[_ZN12hb_hashmap_tIjjLb1EE6item_t13default_valueILb1ELPv0EEERKjv]+0x7): undefined reference to
minus_1'
/usr/bin/ld: CMakeFiles/drawtext.dir/deps/harfbuzz/src/hb-ft.cc.o: in function Null<hb_bit_page_t>::get_null()': hb-ft.cc:(.text._ZN4NullI13hb_bit_page_tE8get_nullEv[_ZN4NullI13hb_bit_page_tE8get_nullEv]+0x7): undefined reference to
_hb_NullPool'
/usr/bin/ld: CMakeFiles/drawtext.dir/deps/harfbuzz/src/hb-ft.cc.o: in function Null<hb_bit_set_t::page_map_t>::get_null()': hb-ft.cc:(.text._ZN4NullIN12hb_bit_set_t10page_map_tEE8get_nullEv[_ZN4NullIN12hb_bit_set_t10page_map_tEE8get_nullEv]+0x7): undefined reference to
_hb_NullPool'
/usr/bin/ld: CMakeFiles/drawtext.dir/deps/harfbuzz/src/hb-ft.cc.o: in function hb_pair_t<unsigned int, unsigned int>& Crap<hb_pair_t<unsigned int, unsigned int> >()': hb-ft.cc:(.text._Z4CrapI9hb_pair_tIjjEERT_v[_ZN10CrapHelperI9hb_pair_tIjjEE8get_crapEv]+0xb): undefined reference to
_hb_CrapPool'
/usr/bin/ld: CMakeFiles/drawtext.dir/deps/harfbuzz/src/hb-ft.cc.o: in function OT::IntType<unsigned short, 2u>& Crap<OT::IntType<unsigned short, 2u> >()': hb-ft.cc:(.text._Z4CrapIN2OT7IntTypeItLj2EEEERT_v[_ZN10CrapHelperIN2OT7IntTypeItLj2EEEE8get_crapEv]+0xb): undefined reference to
_hb_CrapPool'
/usr/bin/ld: CMakeFiles/drawtext.dir/deps/harfbuzz/src/hb-ft.cc.o: in function Null<OT::IntType<unsigned short, 2u> >::get_null()': hb-ft.cc:(.text._ZN4NullIN2OT7IntTypeItLj2EEEE8get_nullEv[_ZN4NullIN2OT7IntTypeItLj2EEEE8get_nullEv]+0x7): undefined reference to
_hb_NullPool'
/usr/bin/ld: CMakeFiles/drawtext.dir/deps/harfbuzz/src/hb-ft.cc.o: in function Null<hb_pair_t<unsigned int, unsigned int> >::get_null()': hb-ft.cc:(.text._ZN4NullI9hb_pair_tIjjEE8get_nullEv[_ZN4NullI9hb_pair_tIjjEE8get_nullEv]+0x7): undefined reference to
_hb_NullPool'
/usr/bin/ld: CMakeFiles/drawtext.dir/deps/harfbuzz/src/hb-ft.cc.o: in function Null<unsigned long long>::get_null()': hb-ft.cc:(.text._ZN4NullIyE8get_nullEv[_ZN4NullIyE8get_nullEv]+0x7): undefined reference to
_hb_NullPool'
/usr/bin/ld: CMakeFiles/drawtext.dir/deps/harfbuzz/src/hb-ft.cc.o: in function Null<OT::OS2>::get_null()': hb-ft.cc:(.text._ZN4NullIN2OT3OS2EE8get_nullEv[_ZN4NullIN2OT3OS2EE8get_nullEv]+0x7): undefined reference to
_hb_NullPool'
/usr/bin/ld: drawtext: hidden symbol `_hb_NullPool' isn't defined
/usr/bin/ld: final link failed: bad value
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/drawtext.dir/build.make:228: drawtext] Error 1
make[1]: *** [CMakeFiles/Makefile2:153: CMakeFiles/drawtext.dir/all] Error 2
make: *** [Makefile:156: all] Error 2
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.