VincentWei / mgncs4touch

A set of mGNCS-compliant controls for devices with a touch screen.
GNU General Public License v3.0
5 stars 7 forks source link

编译时报mgplus的agg相关的错误 #2

Open huohongpeng opened 4 years ago

huohongpeng commented 4 years ago

编译mgncs4touch时总是报下面libmgplus.so相关的信息,在编译mgplus时,已经加入了--enable-ft2support=yes /home/hhp/minigui/install/lib/libmgplus.so: undefined reference to agg::font_engine_freetype_base::font_engine_freetype_base(bool, unsigned int)' /home/hhp/minigui/install/lib/libmgplus.so: undefined reference to agg::font_engine_freetype_base::load_font(char const, unsigned int, agg::glyph_rendering, char const, long)'

报错信息: arm-linux-gnueabihf-gcc -g -O2 -D__MGNCS4TOUCH_LIB__ -Wstrict-prototypes -pipe -o .libs/switchbutton switchbutton.o -L/home/hhp/minigui/install/lib ../src/.libs/libmgncs4touch.so /home/hhp/minigui/install/lib/libmgncs.so /home/hhp/minigui/install/lib/libmgutils.so /home/hhp/minigui/install/lib/libmgeff.so /home/hhp/minigui/install/lib/libmgplus.so -lstdc++ /home/hhp/minigui/install/lib/libminigui_procs.so /home/hhp/minigui/install/lib/libjpeg.so -lrt -lpthread /home/hhp/minigui/install/lib/libharfbuzz.so /home/hhp/minigui/install/lib/libfreetype.so /home/hhp/minigui/install/lib/libpng16.so -lm -lz -lchipmunk -Wl,--rpath -Wl,/home/hhp/minigui/install/lib /home/hhp/minigui/install/lib/libmgplus.so: undefined reference to agg::font_engine_freetype_base::write_glyph_to(unsigned char*) const' /home/hhp/minigui/install/lib/libmgplus.so: undefined reference toagg::font_engine_freetype_base::width(double)' /home/hhp/minigui/install/lib/libmgplus.so: undefined reference to agg::font_engine_freetype_base::flip_y(bool)' /home/hhp/minigui/install/lib/libmgplus.so: undefined reference toagg::font_engine_freetype_base::prepare_glyph(unsigned int)' /home/hhp/minigui/install/lib/libmgplus.so: undefined reference to agg::font_engine_freetype_base::font_engine_freetype_base(bool, unsigned int)' /home/hhp/minigui/install/lib/libmgplus.so: undefined reference toagg::font_engine_freetype_base::load_font(char const, unsigned int, agg::glyph_rendering, char const, long)' /home/hhp/minigui/install/lib/libmgplus.so: undefined reference to agg::font_engine_freetype_base::height(double)' /home/hhp/minigui/install/lib/libmgplus.so: undefined reference toagg::font_engine_freetype_base::~font_engine_freetype_base()' collect2: error: ld returned 1 exit status Makefile:547: recipe for target 'switchbutton' failed