安装 LTIB 依懒的包

sudo apt-get install gcc build-essential zlib1g-dev libncurses-dev m4 bison rpm ccache flex tcl gettext libfreetype6-dev libglib2.0-dev libxt-dev libdbus-glib-1-2 libgtk2.0-dev liborbit2-dev libbonobo2-dev intltool texinfo

 

当使用ltib compile OS p_w_picpath时注意到如下:
cannot stat ‘/home/user/.gvfs’: Permission denied

google 之 ,原来这是GNOME的bug之一 编号Bug#225361

解决方法:
[root@zhangge ~]# sudo umount  ~/.gvfs

Fedora Version: 11
Expected Behaviour: well, grant access to the superuser whenever he tries to access ~/.gvfs

 

This bug might be related to

 

编译 texinfo-4.8 失败时检查下rpm的版本对不对。sudo atp-get install libxt-dev

缺少 glib-genmarshal 时安装 libglib2.0-dev

缺少 dbus-binding-tool 时安装 libdbus-glib-1-dev

缺少命令 /bin/bash: no: command not found 时安装 libgtk2.0-dev

o rule to make target `/usr/bin/orbit-idl-2', needed by `orbit-interface.h'. 安装liborbit2-dev

/usr/bin/ld: cannot find -lXtst 安装libxtst-dev

 

编译gtkhtml-3.24.2 出现undefined reference to `__isoc99_sscanf'错误时

ive it a shot.

 

To begin with, you have to get the sources for gtkhtml into your local tree.

 

As far as I can tell, this is done through the '-m prep'  mode like so:

 

~/ltib$ ./ltib -m prep -p gtkhtml

    ... lots of spew

 

After this, you should have a directory in the rpm/BUILD sub-directory for gtkhtml:

 

~/ltib$ ls -l rpm/BUILD/
...
drwxr-xr-x  7 ericn ericn 4096 2008-11-23 21:26 gtkhtml-3.24.2

 

Then you should be able to cd to the directory and apply the patch with the -p1 directive.

 

~/ltib$ cd rpm/BUILD/gtkhtml-3.24.2

~/ltib/rpm/BUILD/gtkhtml-3.24.2$ patch -p1 < ~/gtkhtml-3.24.2-1278389569.patch

 

Or you can just read the patch and hand-edit gtkhtml-3.24.2/gtkhtml/Makefile.in to remove the  line that says

     -I$(includedir)

 

Once you've changed things, I think you can use ltib to compile it like so:

 

           ~/ltib$ ltib -p gtkhtml

 

I still have a lot of questions about ltib, though. Once I used it to generate the patch, it seems to be

keeping the patch around, so I get the already-patched version when I try to reproduce these steps.

 

I hope that helps,

 

 

Eric

遇到 fsl_shw_rand.c:46:24: error: shw_driver.h: No such file or directory

./ltib -m prep -p linux 把LINUX源码解压出来,不同的LTIB版本支持不同的LINUX内核。到时需要根据具体情况决定。