From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-wr0-f194.google.com ([209.85.128.194]:43638 "EHLO mail-wr0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932369AbdJ3Qlj (ORCPT ); Mon, 30 Oct 2017 12:41:39 -0400 Received: by mail-wr0-f194.google.com with SMTP id w105so13295285wrc.0 for ; Mon, 30 Oct 2017 09:41:39 -0700 (PDT) Date: Mon, 30 Oct 2017 17:41:36 +0100 From: Pali =?utf-8?B?Um9ow6Fy?= To: Hans Verkuil Cc: Pavel Machek , Mauro Carvalho Chehab , Sakari Ailus , Sakari Ailus , sre@kernel.org, ivo.g.dimitrov.75@gmail.com, linux-media@vger.kernel.org Subject: Re: [patch] libv4l2: SDL test application Message-ID: <20171030164136.jkn2qlzu27krqvdz@pali> References: <20171028195742.GB20127@amd> <478fd1ae-6f25-5cda-3035-1d5894c8caab@xs4all.nl> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <478fd1ae-6f25-5cda-3035-1d5894c8caab@xs4all.nl> Sender: linux-media-owner@vger.kernel.org List-ID: On Monday 30 October 2017 17:30:53 Hans Verkuil wrote: > Hi Pavel, > > On 10/28/2017 09:57 PM, Pavel Machek wrote: > > Add support for simple SDL test application. Allows taking jpeg > > snapshots, and is meant to run on phone with touchscreen. Not > > particulary useful on PC with webcam, but should work. > > When I try to build this I get: > > make[3]: Entering directory '/home/hans/work/src/v4l/v4l-utils/contrib/test' > CCLD sdlcam > /usr/bin/ld: sdlcam-sdlcam.o: undefined reference to symbol 'log2@@GLIBC_2.2.5' > //lib/x86_64-linux-gnu/libm.so.6: error adding symbols: DSO missing from command line > collect2: error: ld returned 1 exit status > Makefile:561: recipe for target 'sdlcam' failed > make[3]: *** [sdlcam] Error 1 > make[3]: Leaving directory '/home/hans/work/src/v4l/v4l-utils/contrib/test' > Makefile:475: recipe for target 'all-recursive' failed > make[2]: *** [all-recursive] Error 1 > make[2]: Leaving directory '/home/hans/work/src/v4l/v4l-utils/contrib' > Makefile:589: recipe for target 'all-recursive' failed > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory '/home/hans/work/src/v4l/v4l-utils' > Makefile:516: recipe for target 'all' failed > make: *** [all] Error 2 > > I had to add -lm -ldl -lrt to sdlcam_LDFLAGS. Is that correct? Is not for <> needed just -lm? log2 should be in mathematical library. -- Pali Rohár pali.rohar@gmail.com