RIGHT:[[フリーソフトウェアのコンパイル]]
//
// freetype
//
*プラットフォーム [#ybfa9cb0]
-Solaris 8 07/03
-gcc-3.3.2
-LD_RUN_PATH=/usr/local/lib:/usr/local/ssl/lib
-PATH=/usr/bin:/usr/sbin:/usr/local/bin:/usr/ccs/bin:/usr/ucb
//------------
*FreeType2 [#db27523e]
**必要なもの [#u3a69a68]
http://www.freetype.org/
-freetype-1.3.1.tar.gz
-freetype-2.1.7.tar.gz
//--------------
**freetype1コンパイル,インストール [#bdeb2ad2]
 % ./configure
 % gmake
エラーになるので
 % touch test/ftdump.o test/ftdump
としてずるをする.
 % gmake
**freetype2コンパイル,インストール [#q07c4194]
 % ./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
//----------------------
//  VFlib2
//----------------------
*VFlib2 [#k227e7d0]
**必要なもの [#q86eb3a3]
http://typehack.aial.hiroshima-u.ac.jp/VFlib/dl.html
-VFlib2-2.25.6.tar.gz
//--------------
**コンパイル,インストール [#rd610076]
 % 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 の編集 [#l0c521b0]
vfontcap は /usr/local/share/VFlib/2.25.2 にあるので
それを適宜変更する.

また,Solaris の場合は TrueType フォントが
/usr/openwin/lib/locale/ja/X11/fonts/TT にあるので
適宜利用する.
-HG-GothicB.ttf
-HG-MinchoL.ttf
-HeiseiMin-W3H.ttf

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:

トップ   編集 差分 履歴 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS