From owner-freebsd-questions@freebsd.org Wed Jul 29 11:28:10 2015 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id EC19B9AEAFA for ; Wed, 29 Jul 2015 11:28:09 +0000 (UTC) (envelope-from murk.fletcher@gmail.com) Received: from mail-qg0-x22f.google.com (mail-qg0-x22f.google.com [IPv6:2607:f8b0:400d:c04::22f]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A181F20B for ; Wed, 29 Jul 2015 11:28:09 +0000 (UTC) (envelope-from murk.fletcher@gmail.com) Received: by qgeu79 with SMTP id u79so2511616qge.1 for ; Wed, 29 Jul 2015 04:28:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=xtjjT4RyR7PuiBFNvLXF3Bop0Kg+KQW2qmF3DC/4e9c=; b=O8Rzvxi/868NEEwGpjvnMpLkX6qeYQ585icAlZ1iWy/xEJaxmPFcRatlI6ney6KpRD mvY9VD6JIbHY0zWlYdP1lj6Ow7aBG0NYGXtPPpBbAOjBwoW3gDrAT+VS6N7YlANEj56w kLcTpQdqON9cxd68OTSyK7VQNuzgrAxqMvTe9Ljd5SVtyfGaaekKp/8L1yq9phsGMCh7 9MfxD3jYNiCYDyLpMEbeN8JACcyds1Ks5fWJZgBtDsgT93dLO7M6efScMITZju+b19Ec LyWddFJ70Fw2St2vOfrPU04Yco998RQiUQYBJ371EqvocRGZTqoyhqfPA1UJGLyPJtx8 n6Ag== MIME-Version: 1.0 X-Received: by 10.140.18.240 with SMTP id 103mr59443189qgf.103.1438169288673; Wed, 29 Jul 2015 04:28:08 -0700 (PDT) Received: by 10.96.242.142 with HTTP; Wed, 29 Jul 2015 04:28:08 -0700 (PDT) In-Reply-To: <1437941472.2723.5.camel@fbsd.es> References: <1437927104.6033.3.camel@fbsd.es> <1437927568.3133.11.camel@michaeleichorn.com> <1437932538.15939.6.camel@fbsd.es> <1437941472.2723.5.camel@fbsd.es> Date: Wed, 29 Jul 2015 13:28:08 +0200 Message-ID: Subject: Re: make: Missing dependency operator From: Murk Fletcher To: Carlos Jacobo Puga Medina Cc: "Michael B. Eichorn" , User Questions Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Jul 2015 11:28:10 -0000 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 wrote: > El dom, 26-07-2015 a las 19:42 +0200, Carlos Jacobo Puga Medina > escribi=C3=B3: > > El dom, 26-07-2015 a las 12:19 -0400, Michael B. Eichorn escribi=C3=B3: > > > On Sun, 2015-07-26 at 18:11 +0200, Carlos Jacobo Puga Medina wrote: > > > > > # gmake > > > > > cc -std=3D3Dc99 -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 > > > > > ^ > > > > > 1 error generated. > > > > > Makefile:50: recipe for target 'src/util.o' failed > > > > > gmake: *** [src/util.o] Error 1 > > > > > =3D20 > > > > > # find / -name "jpeglib.h" > > > > > /usr/local/include/jpeglib.h > > > > > =3D20 > > > > > Any idea how to point it to that path? > > > > > =3D20 > > > > > > > > You need to add the configure arg --with-jpeg=3Dyes > > > > > > > > > > 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 +=3D -I../mozjpeg > > MAKE =3D mingw32-make > > endif > > + ifeq ($(UNAME_S),FreeBSD) > > + # FreeBSD > > + LIBJPEG =3D $(PREFIX)/lib/libjpeg.a > > + CFLAGS +=3D -I$(PREFIX)/include > > + MAKE =3D gmake > > + endif > > endif > > > > LIBIQA=3Dsrc/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 +=3D -I../mozjpeg > MAKE =3D mingw32-make > endif > + ifeq ($(UNAME_S),FreeBSD) > + # FreeBSD > + LIBJPEG =3D $(PREFIX)/lib/mozjpeg/libjpeg.a > + CFLAGS +=3D -I$(PREFIX)/include/mozjpeg > + MAKE =3D gmake > + endif > endif > > Finally, run > % gmake > % sudo gmake install > > > Regards, > -- > Carlos Jacobo Puga Medina > PGP fingerprint =3D C60E 9497 5302 793B CC2D BB89 A1F3 5D66 E6D0 5453 >