GithubHelp home page GithubHelp logo

zhuyie / drawtext-gl-freetype-harfbuzz Goto Github PK

View Code? Open in Web Editor NEW
8.0 1.0 4.0 30.69 MB

Example of drawing text on OpenGL using FreeType2 and HarfBuzz.

License: MIT License

CMake 5.28% C++ 94.72%
opengl freetype2 harfbuzz

drawtext-gl-freetype-harfbuzz's People

Contributors

zhuyie avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

drawtext-gl-freetype-harfbuzz's Issues

android opengl es 绘制不出来

大佬好,请问一下,我照你的源码搬到Android ndk环境下编译OK,但是文字就是没绘制出来,不知道为什么,是不是定点着色器配置不对,能否加V援助,不胜感谢。

带的harfbuzz编译有错,载了官网的,链接有错!

[ 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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.