From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-gh0-f175.google.com ([209.85.160.175]) by linuxtogo.org with esmtp (Exim 4.72) (envelope-from ) id 1SynKK-00008B-GF for openembedded-core@lists.openembedded.org; Tue, 07 Aug 2012 19:12:16 +0200 Received: by ghbz2 with SMTP id z2so2188961ghb.6 for ; Tue, 07 Aug 2012 10:00:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; bh=keqzY+K64hgniKb+ihZqLsETFpYltEk1pUFGmTxN2X8=; b=P672tb3NuMRb5FopJzEHTJt1wweBg3iqnqTcnJRzcl3nioHKbm0tc/NJx1F9G7buzT XIwWKqgzVJPEoXMJLgzeKpobBRwnM2nhuXbOSnDjt2hAl/561Sr+O3xsdKO9qHymfS/J 1dGKkHFhqWWdlAmoLDYoNCiZO1WKhm0xxqs75aTAlISA9IN0YUfUHKM8IAMWccgDHzOh FY+M7EYjnm7O+bpvb7GEnUaznMO74KzY0kGYEpLk9YUrvqvDdbY6GBBY/6ASqgu1VNCp sfKxWeq8m9BAcw1p6AuhNIDwC8mJyQiiJQgvRqrqpW4YwqSXwLdiKJRHdPKWhWjUjw7g SgoQ== Received: by 10.42.155.135 with SMTP id u7mr2440625icw.25.1344358829622; Tue, 07 Aug 2012 10:00:29 -0700 (PDT) Received: from [192.168.1.111] (S0106586d8f4832af.tb.shawcable.net. [24.109.142.27]) by mx.google.com with ESMTPS id gx1sm178970igb.16.2012.08.07.10.00.28 (version=SSLv3 cipher=OTHER); Tue, 07 Aug 2012 10:00:28 -0700 (PDT) Message-ID: <5021499A.60008@gmail.com> Date: Tue, 07 Aug 2012 13:00:10 -0400 From: Derek Buitenhuis User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:14.0) Gecko/20120713 Thunderbird/14.0 MIME-Version: 1.0 To: Patches and discussions about the oe-core layer References: <1343942157-15997-1-git-send-email-yao.zhao@windriver.com> <501D7090.2040500@gmail.com> <50213316.8080503@windriver.com> In-Reply-To: <50213316.8080503@windriver.com> X-Enigmail-Version: 1.4.3 Subject: Re: [PATCH] gstreamer: gst-ffmpeg: fix build issues for libav X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: Patches and discussions about the oe-core layer List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Aug 2012 17:12:16 -0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit On 07/08/2012 11:24 AM, Yao Zhao wrote: >>> 1.The included libav configure is not generated by autotools >>> patch use-correct-toolchain.patch patched its configure to >>> use correct toolchain wrapper. >> Why are you patching the toolchain instead of passing the correct parameters >> to configure (--enable-cross-compile, --cross-prefix-..., etc)? > in the configure, > ar_default="${cross_prefix}${ar_default}" > cc_default="${cross_prefix}${cc_default}" > nm_default="${cross_prefix}${nm_default}" > pkg_config_default="${cross_prefix}${pkg_config_default}" > ranlib="${cross_prefix}${ranlib}" > > cc_default is the gcc so cc_default will be for example: > powerpc-xxx-gcc, it won't use the toolcain wrapper. > > I will try whether command line will solve these too. Perhaps you are looking for --cc=? Same thing can be done with --ld, and pals if you desire. Remember to set --arch, maybe --cpu and --target-os too, as well as --enable-cross-compile. >>> 3.detect whether toolchain supports altivec, if not then add >>> disable-altivec to libav's configure line or configure will fail >> Wrong fix. >> >> http://git.libav.org/?p=libav.git;a=blob;f=configure;h=b139008d2b1aa5faea3f33c2a1922d0e1cb1fa5c;hb=HEAD#l2318 >> >> It should be fixed by passing the proper CPU to libav's configure as an argument. > > e500v2) > cpuflags="-mcpu=8548 -mhard-float -mfloat-gprs=double" > disable altivec > ;; > e500) > cpuflags="-mcpu=8540 -mhard-float" > disable altivec > ;; > > I am fixing for e500mc which is not a case here and I am not sure what > exactly the cpuflags should be. > Any idea? http://lists.libav.org/pipermail/libav-devel/2012-August/032990.html Working on it. - Derek