From owner-freebsd-questions@freebsd.org Sun Jul 26 20:11:48 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 0650E9AB6F0 for ; Sun, 26 Jul 2015 20:11:48 +0000 (UTC) (envelope-from cpm@fbsd.es) Received: from imap2-2.ox.privateemail.com (imap2-2.ox.privateemail.com [192.64.116.207]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "privateemail.com", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id BCFC75F5 for ; Sun, 26 Jul 2015 20:11:47 +0000 (UTC) (envelope-from cpm@fbsd.es) Received: from localhost (localhost [127.0.0.1]) by imap2.ox.privateemail.com (Postfix) with ESMTP id EDB558C0080; Sun, 26 Jul 2015 16:11:45 -0400 (EDT) X-Virus-Scanned: Debian amavisd-new at imap2.ox.privateemail.com Received: from imap2.ox.privateemail.com ([127.0.0.1]) by localhost (imap2.ox.privateemail.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id LlARUl_QimwE; Sun, 26 Jul 2015 16:11:45 -0400 (EDT) Received: from daemonlab (unknown [77.229.99.246]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by imap2.ox.privateemail.com (Postfix) with ESMTPSA id D9CF58C0069; Sun, 26 Jul 2015 16:11:43 -0400 (EDT) Message-ID: <1437941472.2723.5.camel@fbsd.es> Subject: Re: make: Missing dependency operator From: Carlos Jacobo Puga Medina To: "Michael B. Eichorn" Cc: User Questions Date: Sun, 26 Jul 2015 22:11:12 +0200 In-Reply-To: <1437932538.15939.6.camel@fbsd.es> References: <1437927104.6033.3.camel@fbsd.es> <1437927568.3133.11.camel@michaeleichorn.com> <1437932538.15939.6.camel@fbsd.es> Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="=-JN9iKb3rjWHgPJRWSyYl" X-Mailer: Evolution 3.16.4 (3.16.4-2.fc22) Mime-Version: 1.0 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: Sun, 26 Jul 2015 20:11:48 -0000 --=-JN9iKb3rjWHgPJRWSyYl Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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=20 > > > > 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 > > >=20 > > > You need to add the configure arg --with-jpeg=3Dyes > > >=20 > >=20 > > There is no configure script, its a hand crafted makefile with hard=20 > > coded > > paths based on uname -s >=20 > Hmm.. you need to do some changes in Makefile >=20 > --- 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 > =20 > LIBIQA=3Dsrc/iqa/build/release/libiqa.a=20 >=20 > Also mozjpeg port is needed. Anyway, it fails due mozjpeg conflicts > with jpeg. >=20 > 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 >=20 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=20 Finally, run=20 % gmake=20 % sudo gmake install > Regards,=20 --=20 Carlos Jacobo Puga Medina PGP fingerprint =3D C60E 9497 5302 793B CC2D BB89 A1F3 5D66 E6D0 5453 --=-JN9iKb3rjWHgPJRWSyYl Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAABCAAGBQJVtT7gAAoJEKHzXWbm0FRTd/cIAKbtpETqOQ0JdM1GqP9SUVme owFckJy0Tegh/QmCwmG5I9AuZXjHOXC7C0H2KOQmc2hYfvwQhuxs1z4sARf703R6 8nnpbGUvMGpLnrPjhk7jHpzvWsUeKkwKXvRVedc8gNGd7/OTafMQDDCgGY31uh5w CyzHbHCVC/eb0QybWC3xDXoeKv+teDVXwMm7i0zwJF/9jpNpBkOAtuAPiGTRrrjb EhoM0f3Pj7irkwTx8rL0R2bYrfXqhaK8qgP+X0yCkYQgxehh4jsDENqfXnYIBSbS yZY/W7RDXsQe6ZQN2AYtCwv4NtKNeW1jpFl/xRJ/tXcgIY1ILTGm7lV/Fn5NcJ8= =Q+H6 -----END PGP SIGNATURE----- --=-JN9iKb3rjWHgPJRWSyYl--