<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.yoctoproject.org/wiki/index.php?action=history&amp;feed=atom&amp;title=How_to_Build_Target_Application_in_the_Host_Machine</id>
	<title>How to Build Target Application in the Host Machine - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.yoctoproject.org/wiki/index.php?action=history&amp;feed=atom&amp;title=How_to_Build_Target_Application_in_the_Host_Machine"/>
	<link rel="alternate" type="text/html" href="https://wiki.yoctoproject.org/wiki/index.php?title=How_to_Build_Target_Application_in_the_Host_Machine&amp;action=history"/>
	<updated>2026-04-10T15:21:07Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.5</generator>
	<entry>
		<id>https://wiki.yoctoproject.org/wiki/index.php?title=How_to_Build_Target_Application_in_the_Host_Machine&amp;diff=123&amp;oldid=prev</id>
		<title>Scottrif: Created page with &#039;=== Build target app in host machine ===  If you want to build your target application in host machine just by command line, you can refer to the following example:  ==== 1. Crea…&#039;</title>
		<link rel="alternate" type="text/html" href="https://wiki.yoctoproject.org/wiki/index.php?title=How_to_Build_Target_Application_in_the_Host_Machine&amp;diff=123&amp;oldid=prev"/>
		<updated>2010-10-22T22:31:08Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;#039;=== Build target app in host machine ===  If you want to build your target application in host machine just by command line, you can refer to the following example:  ==== 1. Crea…&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;=== Build target app in host machine ===&lt;br /&gt;
&lt;br /&gt;
If you want to build your target application in host machine just by command line, you can refer to the following example:&lt;br /&gt;
&lt;br /&gt;
==== 1. Create a file, named setup-cross-environment ====&lt;br /&gt;
&lt;br /&gt;
This file can be got by &amp;quot;bitbake meta-ide-support&amp;quot;, or you can refer to the following as an example.&lt;br /&gt;
You should modify &amp;quot;/sda1/poky-20100903/build-qemuppc-gcc&amp;quot; to your own poky build path, besides you should modify the sysroot path to fit your own cross architecture. The example is for powerpc.&lt;br /&gt;
&lt;br /&gt;
 export PATH=/sda1/poky-20100903/build-qemuppc-gcc/tmp/sysroots/i686-linux/usr/bin/ppc603e-poky-linux:/sda1/poky-20100903/build-&lt;br /&gt;
 qemuppc-gcc/tmp/sysroots/ppc603e-poky-linux/usr/bin/crossscripts:/sda1/poky-20100903/build-qemuppc-gcc/tmp/sysroots/i686-&lt;br /&gt;
 linux/usr/sbin:/sda1/poky-20100903/build-qemuppc-gcc/tmp/sysroots/i686-linux/usr/bin:/sda1/poky-20100903/build-qemuppc-&lt;br /&gt;
 gcc/tmp/sysroots/i686-linux/sbin:/sda1/poky-20100903/build-qemuppc-gcc/tmp/sysroots/i686-&lt;br /&gt;
 linux//bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin&lt;br /&gt;
 &lt;br /&gt;
 export PKG_CONFIG_SYSROOT_DIR=/sda1/poky-20100903/build-qemuppc-gcc/tmp/sysroots/ppc603e-poky-linux&lt;br /&gt;
 export PKG_CONFIG_PATH=/sda1/poky-20100903/build-qemuppc-gcc/tmp/sysroots/ppc603e-poky-linux/usr/lib/pkgconfig&lt;br /&gt;
 export CONFIG_SITE=&amp;quot;/sda1/poky-20100903/meta/site/endian-little /sda1/poky-20100903/meta/site/common-glibc /sda1/poky-&lt;br /&gt;
 20100903/meta/site/ix86-common /sda1/poky-20100903/meta/site/common&amp;quot;&lt;br /&gt;
 export CC=powerpc-poky-linux-gcc&lt;br /&gt;
 export CXX=powerpc-poky-linux-g++&lt;br /&gt;
 export CONFIGURE_FLAGS=&amp;quot;--target=powerpc-poky-linux --host=powerpc-poky-linux --build=i686-linux&amp;quot;&lt;br /&gt;
&lt;br /&gt;
==== 2. Source the file ====&lt;br /&gt;
&lt;br /&gt;
 # source setup-cross-environment&lt;br /&gt;
&lt;br /&gt;
==== 3. Configure the target application ====&lt;br /&gt;
&lt;br /&gt;
If your target application is autotool based, you should run configure like:&lt;br /&gt;
&lt;br /&gt;
 # ./configure --target=powerpc-poky-linux --host=powerpc-poky-linux --build=i686-linux&lt;br /&gt;
&lt;br /&gt;
==== 4. Build the target application ====&lt;br /&gt;
&lt;br /&gt;
 # make&lt;br /&gt;
&lt;br /&gt;
==== 5. Copy the application binary into target system ====&lt;/div&gt;</summary>
		<author><name>Scottrif</name></author>
	</entry>
</feed>