<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh">
	<id>http://sw.syan.com.cn/index.php?action=history&amp;feed=atom&amp;title=SetupDevEnv</id>
	<title>SetupDevEnv - 版本历史</title>
	<link rel="self" type="application/atom+xml" href="http://sw.syan.com.cn/index.php?action=history&amp;feed=atom&amp;title=SetupDevEnv"/>
	<link rel="alternate" type="text/html" href="http://sw.syan.com.cn/index.php?title=SetupDevEnv&amp;action=history"/>
	<updated>2026-04-12T22:29:35Z</updated>
	<subtitle>本wiki上该页面的版本历史</subtitle>
	<generator>MediaWiki 1.35.6</generator>
	<entry>
		<id>http://sw.syan.com.cn/index.php?title=SetupDevEnv&amp;diff=13&amp;oldid=prev</id>
		<title>2018年7月10日 (二) 05:58 Zhuangyy</title>
		<link rel="alternate" type="text/html" href="http://sw.syan.com.cn/index.php?title=SetupDevEnv&amp;diff=13&amp;oldid=prev"/>
		<updated>2018-07-10T05:58:29Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;zh&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;←上一版本&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;2018年7月10日 (二) 05:58的版本&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l7&quot; &gt;第7行：&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;第7行：&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== 交叉编译环境 ==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== 交叉编译环境 ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* 从官方获取交叉编译工具链的下载地址, 下载交叉工具链: swgcc511-6A-cross.tar.gz;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* 从官方获取交叉编译工具链的下载地址, 下载交叉工具链: swgcc511-6A-cross.tar.gz;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* 解压缩到开发机目录, 例如/opt/crosstool, 解压缩后的目录类似/opt/crosstool/swgcc511-6A-cross, 交叉编译gcc位于./usr/bin下. ie. sw_64sw2-unknown-linux-gnu-gcc;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* 解压缩到开发机目录, 例如/opt/crosstool, 解压缩后的目录类似/opt/crosstool/swgcc511-6A-cross, 交叉编译gcc位于./usr/bin下. ie. sw_64sw2-unknown-linux-gnu-gcc;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;mkdir -p /opt/crosstool &amp;amp;&amp;amp; tar zxf swgcc511-6A-cross.tar.gz -C /opt/crosstool&amp;lt;/source&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* 由于sw_64sw2-unknown-linux-gnu-gcc的sysroot为/usr/sw/swgcc511-6A-cross, 所以为了方便编译, 可以创建一个symbolic link. ie. &amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;mkdir -p /usr/sw &amp;amp;&amp;amp; ln -s /opt/crosstool/swgcc511-6A-cross /usr/sw&amp;lt;/source&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* 由于sw_64sw2-unknown-linux-gnu-gcc的sysroot为/usr/sw/swgcc511-6A-cross, 所以为了方便编译, 可以创建一个symbolic link. ie. &amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;mkdir -p /usr/sw &amp;amp;&amp;amp; ln -s /opt/crosstool/swgcc511-6A-cross /usr/sw&amp;lt;/source&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* 为了编译结果指向正确的interpreter, 需要补充执行: &amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;rm -rf /usr/sw/swgcc511-6A-cross/usr/lib/gcc/sw_64sw2-unknown-linux-gnu/5.1.1/specs&amp;lt;/source&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* 为了编译结果指向正确的interpreter, 需要补充执行: &amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;rm -rf /usr/sw/swgcc511-6A-cross/usr/lib/gcc/sw_64sw2-unknown-linux-gnu/5.1.1/specs&amp;lt;/source&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key sw:diff::1.12:old-3:rev-13 --&gt;
&lt;/table&gt;</summary>
		<author><name>Zhuangyy</name></author>
	</entry>
	<entry>
		<id>http://sw.syan.com.cn/index.php?title=SetupDevEnv&amp;diff=3&amp;oldid=prev</id>
		<title>Zhuangyy：​创建页面，内容为“__TOC__  == Native开发环境 == 申威系列本身CPU性能较强, 因此可以直接作为开发机使用. 在作为开发机使用的时候, 有多种国产linux…”</title>
		<link rel="alternate" type="text/html" href="http://sw.syan.com.cn/index.php?title=SetupDevEnv&amp;diff=3&amp;oldid=prev"/>
		<updated>2018-07-05T05:35:47Z</updated>

		<summary type="html">&lt;p&gt;创建页面，内容为“__TOC__  == Native开发环境 == 申威系列本身CPU性能较强, 因此可以直接作为开发机使用. 在作为开发机使用的时候, 有多种国产linux…”&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新页面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;__TOC__&lt;br /&gt;
&lt;br /&gt;
== Native开发环境 ==&lt;br /&gt;
申威系列本身CPU性能较强, 因此可以直接作为开发机使用. 在作为开发机使用的时候, 有多种国产linux操作系统可以适配.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== 交叉编译环境 ==&lt;br /&gt;
* 从官方获取交叉编译工具链的下载地址, 下载交叉工具链: swgcc511-6A-cross.tar.gz;&lt;br /&gt;
* 解压缩到开发机目录, 例如/opt/crosstool, 解压缩后的目录类似/opt/crosstool/swgcc511-6A-cross, 交叉编译gcc位于./usr/bin下. ie. sw_64sw2-unknown-linux-gnu-gcc;&lt;br /&gt;
* 由于sw_64sw2-unknown-linux-gnu-gcc的sysroot为/usr/sw/swgcc511-6A-cross, 所以为了方便编译, 可以创建一个symbolic link. ie. &amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;mkdir -p /usr/sw &amp;amp;&amp;amp; ln -s /opt/crosstool/swgcc511-6A-cross /usr/sw&amp;lt;/source&amp;gt;&lt;br /&gt;
* 为了编译结果指向正确的interpreter, 需要补充执行: &amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;rm -rf /usr/sw/swgcc511-6A-cross/usr/lib/gcc/sw_64sw2-unknown-linux-gnu/5.1.1/specs&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Zhuangyy</name></author>
	</entry>
</feed>