����Linux�Ż�
Linux����

Ƕ��ʽlinux��xdeltaʵ�ֳ����Զ������

����ʱ��:2017-06-22 15:17:21��Դ:linux��վ����:xiezhaoxuan
��˾LinuxǶ��ʽ��Ʒ��ʹ�õ�3G���磬��ҪԶ���������������������ʮ���ף������Ҳ����С�����ÿ�ζ���ȫ�滻�Ļ����ڲ�Ʒ�������ڹ���Ҳ�Dz�С�����������Կ�ʼ�����Dz�����ͨ���򲹶��ķ���ʵ��Զ�������������ļ���
��������������ȷʵ�����ַ�����ʹ�õ�һ����������:xdelta��
 
��˵�����ã�
1�����Զ�ϵͳ��ubuntu14.04
2��Ƕ��ʽӲ����BBB��   
3��Ƕ��ʽϵͳ��TI SDK-08��������ġ�
�����������汾��xdelta��xdelta3�����߹��ܸ��ࡣֱ�Ӱ�װxdelta3�ɣ���Ȼ�ò�������ǿ���ܣ��Ժ�ʡ�������ˡ�
 
���������������̣�
1����https://github.com/jmacd/xdelta-gpl����Դ�롣
 
2�����ڵ��Զ˰�װxdelta3��ͷһ�νӴ����ְ�װ��ʽ��֮ǰֱ��./configureȻ��make�����Դ����Ҫͨ��automake����������װ��Ҳ�������沽�����õ���һЩ����Ϳ⣬automake�������İ�װ���������¡�
1)������Դ��Ŀ¼��ִ��aclocal����aclocal.m4�ļ�
2)��ִ��autoconf����configure�ļ�
3)��ִ��autoheader
4)��ִ��automake --add-missing���������������warning
5)���ֱ�ִ��: touch NEWS;touch README;touch AUTHORS;touch ChangeLog;  ���ɼ����ļ���
6)����ִ��һ��automake --add-missing�������������������warning
7)�����ڣ�����ִ��./configure�ˣ�����Makefile�ļ�
8)��ִ��make
9)��ִ��sudo make install
���ղ���һ�����ߣ��ͻ�ɹ���װxdelta3�ˡ�
 
3����װ��xdelta3����ʹ��һ�������Ƴ������һ���Ƿ���ĺ�ʹ����Ҫ�õ�������������:
1)���������ļ�:xdelta3 -e -s(Sorce file) (Destination file) test.patch
2)�򲹶�:xdelta3 -d -s (Source file) test.patch (Destination file)
ʵ��ʹ����һ��13M���ҵ��ļ��������õIJ����ļ�ֻ��450K���ң���Ȼ��Ӧ���Ǹ����ļ��Ķ��Ķ������仯�ģ������������Դ�ļ���˵���϶�С�ܶ��ˣ����������Ļ����ʡ�ܶ�������
 
4����Ȼ���ã������Ӧ�ñ��뵽Ƕ��ʽlinuxϵͳ���ˣ��������¡�
 
5����Ȼ����֮ǰ��xdelta3Դ��Ŀ¼��������make distclean ,ɾ��֮ǰ�ı����ļ���
 
6��ִ��./configure --help �鿴�����������������飬��Ҫ�����沿��:     
Ƕ��ʽlinux��xdeltaʵ�ֳ����Զ������
Ƕ��ʽlinux��xdeltaʵ�ֳ����Զ������
 
7��ִ��./configure --prefix=/home/InstallDir CC=arm-linux-gnueabihf-gcc
CXX=arm-linux-gnueabihf-g++ CPP=arm-linux-gnueabihf-cpp�����������
Ƕ��ʽlinux��xdeltaʵ�ֳ����Զ������
������ʾ��ִ��./configure --prefix=/home/InstallDir --host=arm-linux-gnueabihf   �ɹ���������Makefile�ļ���
(һ��ʼ��--host=������˸��ո񣬽���Ҳ���������������������ͷ�ԡ�)
 
8��ִ��make��make install; ��ɺ���/home/InstallDirĿ¼�õ������ļ���:   bin  share
 
9�����õ����ļ���bin�е��ļ����Ƶ�BBB��/usr/local/bin�У�share�е��ļ����Ƶ�BBB��/usr/local/share�С�
������Ҫ����ִ��Ȩ�ޣ�����ִ��./xdelta3,�������´������:
Ƕ��ʽlinux��xdeltaʵ�ֳ����Զ������
ò����ȱ��lzma�⣬����һ�£���һ����ѹ����������װ��
1]����https://tukaani.org/xz/����xz��Դ�롣
2]������Դ��Ŀ¼������Ҳ��automake������������ò��ǰ��IJ��趼�Ѿ������ˣ�ֱ�ӣ�
./configure --prefix=/home/InstallDir --host=arm-linux-gnueabihf
Ȼ��make;makeinstall;
3]�������ɵİ�װ�ļ��ֱ��Ƶ�BBB��/usr/bin����Ӧ��Ŀ¼�С�
�ٴ�ִ��./xdelta3 -V�������������
Ƕ��ʽlinux��xdeltaʵ�ֳ����Զ������
�㶨��
��֮ǰ���Զ˲��Ե�Դ�ļ������ɵIJ������Ƶ�BBB�壬��Դ�ļ��򲹶������ɵ�Ŀ���ļ������Զ˵�Ŀ���ļ�һ�£���ɡ�
 
�������ø��µ�ַ��//m.ajphoenix.com/linux/31673.html