Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile guide? #213

Open
mdhari opened this issue Apr 27, 2016 · 12 comments
Open

Compile guide? #213

mdhari opened this issue Apr 27, 2016 · 12 comments

Comments

@mdhari
Copy link

mdhari commented Apr 27, 2016

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?

@fenugrec
Copy link

fenugrec commented Jun 5, 2016

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

@mdhari
Copy link
Author

mdhari commented Jun 5, 2016

Is autoremake another program I need to download?

@fenugrec
Copy link

fenugrec commented Jun 5, 2016

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

@lgpmichael2
Copy link

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

@watercrossing
Copy link

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.

@samuelcolvin
Copy link
Contributor

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

@samuelcolvin
Copy link
Contributor

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

@zmsoft
Copy link

zmsoft commented Jun 21, 2017

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

@mdhari
Copy link
Author

mdhari commented Jun 21, 2017 via email

@zmsoft
Copy link

zmsoft commented Jun 21, 2017

@mdhari Can you share it?Many thanks

@mdhari
Copy link
Author

mdhari commented Jun 21, 2017 via email

@codemerx
Copy link

Here is how to build it - #235 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants