xdelta icon indicating copy to clipboard operation
xdelta copied to clipboard

Compile guide?

Open mdhari opened this issue 8 years ago • 12 comments

Sorry if I haven't looked hard enough. I'm trying to figure out how to compile this on my Mac OSX with El Capitan. Usually I'm able to run these commands:

./configure make install

But it's failing on the first command:

./configure.ac ./configure.ac: line 1: syntax error near unexpected token '[Xdelta3],' ./configure.ac: line 1: 'AC_INIT([Xdelta3], [3.1.0], [[email protected]], '

Are there any helpful links that you could point me to for compiling this?

mdhari avatar Apr 27 '16 17:04 mdhari

Have you tried running "automake --add-missing" and possibly autoreconf before "./configure" ?

fenugrec avatar Jun 05 '16 03:06 fenugrec

Is autoremake another program I need to download?

mdhari avatar Jun 05 '16 04:06 mdhari

Sorry I typo'd, it's automake and autoreconf. Part of GNU autotools

fenugrec avatar Jun 05 '16 04:06 fenugrec

If it helps, this is what I've managed to put together to build xdelta on Centos 6, which isn't using most of the stuff that xdelta3 requires (for some reason, not sure why xdelta which simply handles bytes needs the latest of anything, but there you go).

Depending on your problems, some or more of these steps may not be needed. However, it does give a pretty good idea of the steps needed where almost nothing is of the version needed, and nothing works.

This uses the sources from the gnu website.

If you get errors about Makefile.in mission, install libtool

#!/bin/sh -                                                                                 

rm -rf autoconf-2.69
rm -rf autoconf-bin

tar -xvf autoconf-2.69.tar.gz

cd autoconf-2.69

./configure --prefix=`pwd`/../autoconf-bin
make
make install

rm -rf automake-1.15
rm -rf automake-bin

cd ..

tar -xvf automake-1.15.tar.gz

cd automake-1.15

PATH=../autoconf-bin/bin:$PATH ./configure --prefix=`pwd`/../automake-bin AUTOCONF=`pwd`/..\
/autoconf-bin/bin/autoconf
make
make install

cd ..

rm -rf xdelta-3.1.0

tar xvf xdelta-3.1.0.tar.gz

cd xdelta-3.1.0/xdelta3

PATH=../../autoconf-bin/bin/:$PATH ../../automake-bin/bin/aclocal
../../autoconf-bin/bin/autoconf
../../autoconf-bin/bin/autoheader

PATH=../../autoconf-bin/bin/:$PATH ../../automake-bin/bin/automake --add-missing

./configure

cat Makefile | sed -e "s/11/0x/g" > Makefile.new
mv -f Makefile.new Makefile


make

lgpmichael2 avatar Jun 18 '16 06:06 lgpmichael2

These instructions didn't work for me. I had to set up my own set of m4, autoconf, automake and libtool; and then run

libtoolize
aclocal
autoconf
automake --add-missing
./configure --prefix=$HOME/tools

The call to libtoolize seems to be missing from most instructions I have found on the web.

watercrossing avatar May 10 '17 10:05 watercrossing

Thanks so much @watercrossing. After numerous failed attempt that worked for me on Ubuntu 16.04.

samuelcolvin avatar May 13 '17 12:05 samuelcolvin

Actually, turns out autoheader before automake --add-missing is required too.

samuelcolvin avatar May 13 '17 13:05 samuelcolvin

@mdhari Did you compile successfully under Mac?What is the compile step?

zmsoft avatar Jun 21 '17 06:06 zmsoft

Nah, I don't think so. I think I tried an older compiled version on the net.

On Tue, Jun 20, 2017 at 11:47 PM 迦南 [email protected] wrote:

@mdhari https://github.com/mdhari Did you compile successfully under Mac?

— You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub https://github.com/jmacd/xdelta/issues/213#issuecomment-309979692, or mute the thread https://github.com/notifications/unsubscribe-auth/AAxeGZMATIkuViai5Z5f4OJmjaDdH0OUks5sGLyUgaJpZM4IRKLS .

mdhari avatar Jun 21 '17 07:06 mdhari

@mdhari Can you share it?Many thanks

zmsoft avatar Jun 21 '17 07:06 zmsoft

It looks like it's on homebrew

http://brewformulas.org/xdelta

Try brew install xdelta

On Wed, Jun 21, 2017 at 12:42 AM 迦南 [email protected] wrote:

@mdhari https://github.com/mdhari Can you share it?Many thanks

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/jmacd/xdelta/issues/213#issuecomment-309990538, or mute the thread https://github.com/notifications/unsubscribe-auth/AAxeGeDVQ7FYab9vMP8x2sRAa0C80X_Jks5sGMlwgaJpZM4IRKLS .

mdhari avatar Jun 21 '17 07:06 mdhari

Here is how to build it - https://github.com/jmacd/xdelta/issues/235#issuecomment-468763347

codemerx avatar Jul 11 '19 16:07 codemerx