大家好,
最近想装一个fbterm,于是就让朋友帮忙下了一个源码包,./configure之后优如下信息(重点的位置我描红了):
checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking for g++... g++ checking whether the C++ compiler works... yes checking for C++ compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking for style of include used by make... GNU checking dependency style of g++... gcc3 checking for gcc... gcc checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking dependency style of gcc... gcc3 checking for ranlib... ranlib checking for pkg-config... /usr/bin/pkg-config checking pkg-config is at least version 0.9.0... yes checking for forkpty in -lutil... yes checking for FT2... configure: error: Package requirements (freetype2) were not met:
No package 'freetype2' found
Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix.
Alternatively, you may set the environment variables FT2_CFLAGS and FT2_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details.
==========================
请问: 1、C89这个怎么调?似乎用不了./configure --prefix=/usr/cjk/fbterm --std=89这个参数... 2、交叉编译这个是因为什么没过去?
3、这个FT2包在哪里?需要额外的设置或源的支持吗?
另:提前祝大家春节快乐
孙冰:
On 02/17/2015 08:26 AM, 孙冰 wrote:
最近想装一个fbterm,于是就让朋友帮忙下了一个源码包,./configure之后优 如下信息(重点的位置我描红了): ... 请问: 1、C89这个怎么调?似乎用不了./configure --prefix=/usr/cjk/fbterm --std=89这个参数... 2、交叉编译这个是因为什么没过去? 3、这个FT2包在哪里?需要额外的设置或源的支持吗?
1、程式 C89 的支援應該是默認的,不須人手調用。 2、你正在為同一架構(例:i686 或 x86_64)的系統編譯源碼,因此不屬交叉編 譯(見 http://ryan0988.pixnet.net/blog/post/166022613-cross-compile 的例子) 3、若要編譯採用 FreeType 2 的源碼,可先安裝 freetype-devel 套件。
Timothy Lee