% ./configure % gmake
エラーになるので
% touch test/ftdump.o test/ftdump
としてずるをする.
% gmake
% ./configure % gmake # gmake install # ln -s freetype2/freetype /usr/local/include (後で使う xdvik のため) # cp -i include/ft2build.h /usr/local/include/freetype2/freetype/ (バグ?) # vi /usr/local/include/freetype2/freetype/freetype.h
として 20行目から 25行目までをコメントアウト.
#ifndef FT_FREETYPE_H /* TNK #error "`ft2build.h' hasn't been included yet!" #error "Please always use macros to include FreeType header files." #error "Example:" #error " #include <ft2build.h>" #error " #include FT_FREETYPE_H" */ #endif
http://typehack.aial.hiroshima-u.ac.jp/VFlib/dl.html
% PATH=${PATH}:/usr/openwin/bin % ./configure --with-freetype \ --with-freetype-includedir=/usr/local/include/freetype \ --with-freetype-libdir=/usr/local/lib % make In file included from disol.c:36: /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.3.2/include/varargs.h:4:2: #error "GCC no longer implements <varargs.h>." /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.3.2/include/varargs.h:5:2: #error "Revise your code to use <stdarg.h>." make[1]: *** [disol.lo] Error 1 make[1]: Leaving directory `/home/nullpyon/build/VFlib2-2.25.6/tools' make: *** [all] Error 2
といったエラーが出るので,
% vi +36 tools/disol.c
として
#include <varargs.h>
という行を
#include <stdarg.h>
と書き換える.
# make install
vfontcap は /usr/local/share/VFlib/2.25.2 にあるので それを適宜変更する.
また,Solaris の場合は TrueType フォントが /usr/openwin/lib/locale/ja/X11/fonts/TT にあるので 適宜利用する.
vfontcap の変更箇所は先頭の渡邊フォントの部分を コメントアウトして,OS 付属の TrueType フォントを freetype を通して使うようにした.
#min:\ # :fc=watanabe-mincho: #goth:\ # :fc=watanabe-mincho: min:\ :ft=freetype:\ :ff=/usr/openwin/lib/locale/ja/X11/fonts/TT/HG-MinchoL.ttf: goth:\ :ft=freetype:\ :ff=/usr/openwin/lib/locale/ja/X11/fonts/TT/HG-GothicB.ttf: