freetype2 のインストール
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
|
ログイン
]
開始行:
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...
//------------
*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 (後で使う ...
# cp -i include/ft2build.h /usr/local/include/freetype2/...
(バグ?)
# 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 hea...
#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/includ...
/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.3.2/includ...
make[1]: *** [disol.lo] Error 1
make[1]: Leaving directory `/home/nullpyon/build/VFlib2-...
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....
goth:\
:ft=freetype:\
:ff=/usr/openwin/lib/locale/ja/X11/fonts/TT/HG-GothicB....
終了行:
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...
//------------
*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 (後で使う ...
# cp -i include/ft2build.h /usr/local/include/freetype2/...
(バグ?)
# 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 hea...
#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/includ...
/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.3.2/includ...
make[1]: *** [disol.lo] Error 1
make[1]: Leaving directory `/home/nullpyon/build/VFlib2-...
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....
goth:\
:ft=freetype:\
:ff=/usr/openwin/lib/locale/ja/X11/fonts/TT/HG-GothicB....
ページ名: