make: Missing dependency operator

Murk Fletcher murk.fletcher at gmail.com
Wed Jul 29 11:28:10 UTC 2015


Hi!

Thank you so much! I took the liberty of adding your patch to the repo:

https://github.com/danielgtaylor/jpeg-archive/pull/28

I hope it's okay I mentioned your name.

All the best,
Murk

On Sun, Jul 26, 2015 at 10:11 PM, Carlos Jacobo Puga Medina <cpm at fbsd.es>
wrote:

> El dom, 26-07-2015 a las 19:42 +0200, Carlos Jacobo Puga Medina
> escribió:
> > El dom, 26-07-2015 a las 12:19 -0400, Michael B. Eichorn escribió:
> > > On Sun, 2015-07-26 at 18:11 +0200, Carlos Jacobo Puga Medina wrote:
> > > > > # gmake
> > > > > cc -std=3Dc99 -Wall -O3 -I../mozjpeg -c -o src/util.o
> > > > > src/util.c
> > > > > In file included from src/util.c:1:
> > > > > src/util.h:9:10: fatal error: 'jpeglib.h' file not found
> > > > > #include <jpeglib.h>
> > > > >          ^
> > > > > 1 error generated.
> > > > > Makefile:50: recipe for target 'src/util.o' failed
> > > > > gmake: *** [src/util.o] Error 1
> > > > > =20
> > > > > # find / -name "jpeglib.h"
> > > > > /usr/local/include/jpeglib.h
> > > > > =20
> > > > > Any idea how to point it to that path?
> > > > > =20
> > > >
> > > > You need to add the configure arg --with-jpeg=yes
> > > >
> > >
> > > There is no configure script, its a hand crafted makefile with hard
> > > coded
> > > paths based on uname -s
> >
> > Hmm.. you need to do some changes in Makefile
> >
> > --- Makefile.orig     2015-07-26 19:34:04.000000000 +0200
> > +++ Makefile  2015-07-26 19:30:49.000000000 +0200
> > @@ -28,6 +28,12 @@
> >               CFLAGS += -I../mozjpeg
> >               MAKE = mingw32-make
> >       endif
> > +     ifeq ($(UNAME_S),FreeBSD)
> > +             # FreeBSD
> > +             LIBJPEG = $(PREFIX)/lib/libjpeg.a
> > +             CFLAGS += -I$(PREFIX)/include
> > +             MAKE = gmake
> > +     endif
> >  endif
> >
> >  LIBIQA=src/iqa/build/release/libiqa.a
> >
> > Also mozjpeg port is needed. Anyway, it fails due mozjpeg conflicts
> > with jpeg.
> >
> > pkg-static: mozjpeg-3.1 conflicts with jpeg-8_6 (installs files into
> > the same place).  Problematic file: /usr/local/bin/cjpeg
> > *** Error code 70
> >
>
> To build jpeg-archive on FreeBSD
>
> First, deinstall jpeg port and install mozjpeg port (be sure to install
> it with static libraries because we need libjpeg.a)
>
> Second, add the following to jpeg-archive/Makefile
>
> --- jpeg-archive/Makefile.orig  2015-07-26 19:34:04.000000000
> +0200
> +++ jpeg-archive/Makefile       2015-07-26 21:53:27.000000000 +0200
> @@ -28,6 +28,12 @@
>                 CFLAGS += -I../mozjpeg
>                 MAKE = mingw32-make
>         endif
> +       ifeq ($(UNAME_S),FreeBSD)
> +               # FreeBSD
> +               LIBJPEG = $(PREFIX)/lib/mozjpeg/libjpeg.a
> +               CFLAGS += -I$(PREFIX)/include/mozjpeg
> +               MAKE = gmake
> +       endif
>  endif
>
> Finally, run
> % gmake
> % sudo gmake install
>
> > Regards,
> --
> Carlos Jacobo Puga Medina <cpm at fbsd.es>
> PGP fingerprint = C60E 9497 5302 793B CC2D  BB89 A1F3 5D66 E6D0 5453
>


More information about the freebsd-questions mailing list