From: bd s. <bds...@gm...> - 2014-07-07 17:32:28
|
Hi, I just downloaded mlterm-3.3.7, but build fails with two errors: 1. First error: mlterm-3.3.7 $ make -C /tmp/mlterm-3.3.7/xwindow/libtype make: Entering directory `/tmp/mlterm-3.3.7/xwindow/libtype' ../../libtool --mode=compile gcc -I../../kiklib/include -I../../mkf/include -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -DUSE_TYPE_CAIRO -DNO_DYNAMIC_LOAD_TYPE -g -O2 -I/usr/local/include -I../../mlterm -DUSE_TYPE_CAIRO -DNO_DYNAMIC_LOAD_TYPE -c libtool: compile: cannot determine name of library object from `-c' make: *** [x_font_ft.o] Error 1 make: Leaving directory `/tmp/mlterm-3.3.7/xwindow/libtype' It's clear that the filename is missing after the -c option. Adding 'x_font_ft.c' as pre-requisite in line 62 of file mlterm-3.3.7/xwindow/libtype/Makefile.in fixes the problem: x_font_ft.o: x_font_ft.c $(LIBTOOL_CC) -DUSE_TYPE_CAIRO -DNO_DYNAMIC_LOAD_TYPE -c $< 2. Second error gcc -o mlterm daemon.o main_loop.o main.o ../xwindow/libxwindow.a ../mlterm/libmlterm.a ../mlterm/libmlterm_core.a ../mkf/lib/.libs/libmkf.a ../kiklib/src/.libs/libkik.a -ldl -L/usr/local/lib ../xwindow/libtype/libtype.a /usr/lib/x86_64-linux-gnu/libcairo.so -lX11 ../mlterm/libctl/libctl_iscii.a -Wl,--rpath -Wl,/usr/local/lib /usr/bin/ld: ../xwindow/libtype/libtype.a(x_font_ft.o): undefined reference to symbol 'FcPatternAddDouble' //usr/lib/x86_64-linux-gnu/libfontconfig.so.1: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status make[1]: *** [mlterm] Error 1 make[1]: Leaving directory `/tmp/mlterm-3.3.7/main' make: *** [all] Error 2 Adding the missing libraries -lfontconfig -lfreetype at the end of the command line fixes the above linker error. If it matters, this was the configure line: ./configure --prefix=$HOME --enable-static --disable-shared --enable-ind --with-pic --with-x --with-gtk=2.0 --with-type-engines=cairo --enable-ibus --with-scrollbars=simple,extras --enable-m17nlib Last but not the least, thank you and all contributors for all your hard work! mlterm is very good. -- Thanks & Regards, --Satish -- Thanks & Regards, --Satish |