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

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

Closed
davidenco opened this issue Nov 23, 2018 · 4 comments
Closed

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

davidenco opened this issue Nov 23, 2018 · 4 comments

Comments

@davidenco
Copy link

davidenco commented Nov 23, 2018

A few days ago I could run autoreconf -fiv after doing a fresh clone of the mozjpeg master branch without issue, but today it says either configure.ac or configure.in is required as there is no configure file.

@kornelski
Copy link
Member

We've merged with libjpeg 2.0, which removed support for autotools. Now cmake is the only option.

@davidenco
Copy link
Author

My apologies. I have used cmake now and all is well.

@MurKit
Copy link

MurKit commented Jan 22, 2019

How to use cmake in this case?

@kornelski
Copy link
Member

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

Un*x

The following procedure will build libjpeg-turbo on Unix and Unix-like systems.
(On Solaris, this generates a 32-bit build. See "Build Recipes" below for
64-bit build instructions.)

cd {build_directory}
cmake -G"Unix Makefiles" [additional CMake flags] {source_directory}
make

This will generate the following files under {build_directory}:

libjpeg.a

Static link library for the libjpeg API

libjpeg.so.{version} (Linux, Unix)

libjpeg.{version}.dylib (Mac)

cygjpeg-{version}.dll (Cygwin)

Shared library for the libjpeg API

By default, {version} is 62.2.0, 7.2.0, or 8.1.2, depending on whether
libjpeg v6b (default), v7, or v8 emulation is enabled. If using Cygwin,
{version} is 62, 7, or 8.

libjpeg.so (Linux, Unix)

libjpeg.dylib (Mac)

Development symlink for the libjpeg API

libjpeg.dll.a (Cygwin)

Import library for the libjpeg API

libturbojpeg.a

Static link library for the TurboJPEG API

libturbojpeg.so.0.2.0 (Linux, Unix)

libturbojpeg.0.2.0.dylib (Mac)

cygturbojpeg-0.dll (Cygwin)

Shared library for the TurboJPEG API

libturbojpeg.so (Linux, Unix)

libturbojpeg.dylib (Mac)

Development symlink for the TurboJPEG API

libturbojpeg.dll.a (Cygwin)

Import library for the TurboJPEG API

Visual C++ (Command Line)

cd {build_directory}
cmake -G"NMake Makefiles" -DCMAKE_BUILD_TYPE=Release [additional CMake flags] {source_directory}
nmake

This will build either a 32-bit or a 64-bit version of libjpeg-turbo, depending
on which version of cl.exe is in the PATH.

The following files will be generated under {build_directory}:

jpeg-static.lib

Static link library for the libjpeg API

jpeg{version}.dll

DLL for the libjpeg API

jpeg.lib

Import library for the libjpeg API

turbojpeg-static.lib

Static link library for the TurboJPEG API

turbojpeg.dll

DLL for the TurboJPEG API

turbojpeg.lib

Import library for the TurboJPEG API

{version} is 62, 7, or 8, depending on whether libjpeg v6b (default), v7, or
v8 emulation is enabled.

Visual C++ (IDE)

Choose the appropriate CMake generator option for your version of Visual Studio
(run cmake with no arguments for a list of available generators.) For
instance:

cd {build_directory}
cmake -G"Visual Studio 10" [additional CMake flags] {source_directory}

NOTE: Add "Win64" to the generator name (for example, "Visual Studio 10 Win64")
to build a 64-bit version of libjpeg-turbo. A separate build directory must be
used for 32-bit and 64-bit builds.

You can then open ALL_BUILD.vcproj in Visual Studio and build one of the
configurations in that project ("Debug", "Release", etc.) to generate a full
build of libjpeg-turbo.

This will generate the following files under {build_directory}:

{configuration}/jpeg-static.lib

Static link library for the libjpeg API

{configuration}/jpeg{version}.dll

DLL for the libjpeg API

{configuration}/jpeg.lib

Import library for the libjpeg API

{configuration}/turbojpeg-static.lib

Static link library for the TurboJPEG API

{configuration}/turbojpeg.dll

DLL for the TurboJPEG API

{configuration}/turbojpeg.lib

Import library for the TurboJPEG API

{configuration} is Debug, Release, RelWithDebInfo, or MinSizeRel, depending
on the configuration you built in the IDE, and {version} is 62, 7, or 8,
depending on whether libjpeg v6b (default), v7, or v8 emulation is enabled.

MinGW

NOTE: This assumes that you are building on a Windows machine using the MSYS
environment. If you are cross-compiling on a Un*x platform (including Mac and
Cygwin), then see "Build Recipes" below.

cd {build_directory}
cmake -G"MSYS Makefiles" [additional CMake flags] {source_directory}
make

This will generate the following files under {build_directory}:

libjpeg.a

Static link library for the libjpeg API

libjpeg-{version}.dll

DLL for the libjpeg API

libjpeg.dll.a

Import library for the libjpeg API

libturbojpeg.a

Static link library for the TurboJPEG API

libturbojpeg.dll

DLL for the TurboJPEG API

libturbojpeg.dll.a

Import library for the TurboJPEG API

{version} is 62, 7, or 8, depending on whether libjpeg v6b (default), v7, or
v8 emulation is enabled.

Debug Build

Add -DCMAKE_BUILD_TYPE=Debug to the CMake command line. Or, if building
with NMake, remove -DCMAKE_BUILD_TYPE=Release (Debug builds are the default
with NMake.)

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

3 participants