From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:39827) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qlpp8-0001tP-Em for qemu-devel@nongnu.org; Tue, 26 Jul 2011 18:09:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qlpp7-00017x-Fm for qemu-devel@nongnu.org; Tue, 26 Jul 2011 18:09:58 -0400 Received: from e35.co.us.ibm.com ([32.97.110.153]:40347) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qlpp7-00017m-AG for qemu-devel@nongnu.org; Tue, 26 Jul 2011 18:09:57 -0400 Received: from d03relay04.boulder.ibm.com (d03relay04.boulder.ibm.com [9.17.195.106]) by e35.co.us.ibm.com (8.14.4/8.13.1) with ESMTP id p6QLooOH025541 for ; Tue, 26 Jul 2011 15:50:50 -0600 Received: from d03av05.boulder.ibm.com (d03av05.boulder.ibm.com [9.17.195.85]) by d03relay04.boulder.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id p6QM9u8K142876 for ; Tue, 26 Jul 2011 16:09:56 -0600 Received: from d03av05.boulder.ibm.com (loopback [127.0.0.1]) by d03av05.boulder.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id p6QM9tGQ019778 for ; Tue, 26 Jul 2011 16:09:56 -0600 Message-ID: <4E2F3B33.6080100@us.ibm.com> Date: Tue, 26 Jul 2011 17:09:55 -0500 From: Anthony Liguori MIME-Version: 1.0 References: <1311670746-20498-1-git-send-email-wuzhy@linux.vnet.ibm.com> <1311670746-20498-2-git-send-email-wuzhy@linux.vnet.ibm.com> <20110726192618.GA8126@amt.cnet> <9F6FE96B71CF29479FF1CDC8046E15031876FA@039-SN1MPN1-002.039d.mgd.msft.net> In-Reply-To: <9F6FE96B71CF29479FF1CDC8046E15031876FA@039-SN1MPN1-002.039d.mgd.msft.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 04/25] Add hard build dependency on glib List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Yoder Stuart-B08248 Cc: "qemu-devel@nongnu.org" On 07/26/2011 04:51 PM, Yoder Stuart-B08248 wrote: > > I am having issues with this in a cross compilation > environment. In Power embedded, almost all our > development is using cross toolchains. > > Neither glib or pkg-config are in our cross build environment > and I'm having issues getting them built and installed. > Not even sure if pkg-config is even supposed to work > in a cross development environment...I'm new to that > tool and poking around a bit with google raises > some questions. You're probably setting up your cross environment incorrectly which, unfortunately, is very common. The proper thing to do is to have GCC use a different system include directory and a different prefix. That will result in a directory where there are gcc binaries with normal names installed in ${cross_prefix}/bin You need to build and install pkg-config to this prefix too, and then when it comes time to actually doing the QEMU configure, you should do something like: export PATH=${cross_prefix}/bin:$PATH export PKG_CONFIG_PATH=${cross_prefix}/lib/pkg-config:$PKG_CONFIG_PATH Many automated cross compiler environment scripts will install specially named versions of gcc and binutils in your normal $PATH. The trouble is, this is a bit of a hack and unless you know to make this hack work with other build tools, it all comes tumbling down. Regards, Anthony Liguori > > Wanted to make you aware of the issue... > > Stuart >