jpeg-archive icon indicating copy to clipboard operation
jpeg-archive copied to clipboard

autoreconf: 'configure.ac' or 'configure.in' is required

Open HyperDevil opened this issue 5 years ago • 7 comments

Trying to install mozjpeg on ubuntu 19.10, but unable to generate ./configure file.

HyperDevil avatar Feb 14 '20 20:02 HyperDevil

@HyperDevil say:

'configure.ac' or 'configure.in'

This project does not use autotools. For build, a Makefile is used.

What are you talking about?

zvezdochiot avatar Feb 14 '20 21:02 zvezdochiot

The instruction on this repo on how to install mozjpeg was not using cmake, so they are wrong.

HyperDevil avatar Feb 14 '20 21:02 HyperDevil

@HyperDevil say:

so they are wrong.

Not. You are wrong. And the instructions are correct for v.3.2.

See also https://github.com/mozilla/mozjpeg/blob/master/BUILDING.md

zvezdochiot avatar Feb 14 '20 21:02 zvezdochiot

I used installation instruction from main readme.md file:

sudo apt-get install build-essential autoconf pkg-config nasm libtool
git clone https://github.com/mozilla/mozjpeg.git
cd mozjpeg
autoreconf -fiv
./configure --with-jpeg8
make
sudo make install

And I also got error message like @HyperDevil described on autoreconf -fiv command. All other command after that also not worked as well.

qmegas avatar Apr 09 '20 10:04 qmegas

I used installation instruction from main readme.md file:

sudo apt-get install build-essential autoconf pkg-config nasm libtool
git clone https://github.com/mozilla/mozjpeg.git
cd mozjpeg
autoreconf -fiv
./configure --with-jpeg8
make
sudo make install

And I also got error message like @HyperDevil described on autoreconf -fiv command. All other command after that also not worked as well.

i got the same error; are you done it?

lanochan avatar Jun 12 '20 02:06 lanochan

I also got the autoreconf -fiv error, turns out mozjpeg removed support for autotools, see https://github.com/mozilla/mozjpeg/issues/314#issuecomment-441228794

You have to use cmake, so this is what I did:

git clone https://github.com/mozilla/mozjpeg.git
cd mozjpeg
mkdir build && cd build
cmake -G"Unix Makefiles" --with-jpeg8 ../
make
sudo make install
cd ../..
git clone https://github.com/danielgtaylor/jpeg-archive.git
cd jpeg-archive/
make
sudo make install

pietervanleeuwen avatar Jun 17 '20 13:06 pietervanleeuwen

Pieter is right. I specifically came here to document the same solution. One detail: you'll also need libpng-dev which is not available by default on an out-of-the-box Mint 20.1

SomeTroglodyte avatar Feb 26 '21 00:02 SomeTroglodyte