[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[mgp-users-jp 00650] Re: Snap-19991122.tar.gz cannot compile w/VFlib



	許です。

> しかし、直接freetypeは使いたくないけど、VFlib経由なら使うってのは、
> 微妙な要求な気もしますが。。

	非常に大きな勘違いをしていることに気がつきました。

	もういちど、よーくconfigureを見たら、freetype.hを探すDirectoryに
	/usr/local/include/freetype が無い事に気づきました。

	freetype-1.3では、/usr/local/includeではなく、
	/usr/local/include/freetypeにHeaderがおかれるのですが、そのせいで、
	FreeTypeがないと思われていたんですね。
	で、その時に VFlib だけcheckしにいって失敗すると。

> VFlibをソースからbuildすると、--disable-freetypeを指定しない限り
> libttfを見つけると ttfを必要とする versionをつくるようになってるみたいです。

	というわけで、大きな勘違いだったようです。
# itojunさんのMailで気付くべきだった。恥ずかしい

	これだけではあまりに情けないので、coonfigure.inのpatchを作りました。
	これで、freetype-1.1/1.2 と freetype-1.3の両方に対応できるはずです。
	実際、問題は解決しました。

ほ
--- configure.in.orig	Fri Sep 10 16:14:51 1999
+++ configure.in	Thu Nov 25 00:40:51 1999
@@ -89,7 +89,9 @@
  		fi
  		if test -d $dir/include -a -f $dir/include/freetype.h; then
  			ac_cv_ft_include="$dir/include"
- 		fi
+ 		elif test -d $dir/include/freetype -a -f $dir/include/freetype/freetype.h; then
+ 			ac_cv_ft_include="$dir/include/freetype"
+		fi
  		if test "$ac_cv_ft_lib" != "no" -a "$ac_cv_ft_include" != "no"; then
  			LIBS="-L$ac_cv_ft_lib $LIBS"
  			CFLAGS="-I$ac_cv_ft_include $CFLAGS"