danielgtaylor / jpeg-archive

Utilities for archiving JPEGs for long term storage.
1.16k stars 121 forks source link

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

Open HyperDevil opened 4 years ago

HyperDevil commented 4 years ago

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

zvezdochiot commented 4 years ago

@HyperDevil say:

'configure.ac' or 'configure.in'

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

What are you talking about?

HyperDevil commented 4 years ago

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

zvezdochiot commented 4 years ago

@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

qmegas commented 4 years ago

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.

lanochan commented 4 years ago

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?

pietervanleeuwen commented 4 years ago

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
SomeTroglodyte commented 3 years ago

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