2011/04/19

Mac OS 10.5にXpdfをインストール

久しぶりの更新がこんな内容で申し訳ない.

pdftohtmlを使いたくて,Mac OS 10.5にXpdfをインストールしましたという話.少々手こずったのでメモ.

やり方は下記のサイトを参考にした.
(というかそのまま写したような内容)
http://www.web-cte.co.jp/kozakuralab/2010/12/osx%E3%81%ABxpdf%E3%82%92%E3%82%A4%E3%83%B3%E3%82%B9%E3%83%88%E3%83%BC%E3%83%AB%E3%81%99%E3%82%8B/


1)Motifをインストール
以下のサイトからopenmotif-compat-2.1.32_IST.macosx10.5.dmgを落としてインストール.
http://www.ist-inc.com/downloads/motif_download.html


2)FreeTypeをインストール
以下のサイトから最新版をダウンロード.
http://www.freetype.org/download.html

解凍後,フォルダに移動して下記コマンドでmake.
./configure
make
sudo make install


3)Xpdfをインストール
下記サイトからSource codeの最新版をダウンロード.

下記コマンドでmake.
./configure  --with-freetype2-includes=/usr/local/include/freetype2 --with-freetype2-library=/usr/local/lib --with-Xm-library=/usr/OpenMotif/lib --with-Xm-includes=/usr/OpenMotif/include
make
sudo make install


./configureだけだと以下のような警告が出てインストールできない.

configure: WARNING: Couldn’t find Motif
configure: WARNING: Couldn’t find FreeType
configure: WARNING: -- You will be able to compile pdftops, pdftotext,
pdfinfo, pdffonts, and pdfimages, but not xpdf or pdftoppm





0 件のコメント:

コメントを投稿