<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://springrts-wiki.p2004a.com/mediawiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Spitfire</id>
	<title>Spring - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://springrts-wiki.p2004a.com/mediawiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Spitfire"/>
	<link rel="alternate" type="text/html" href="https://springrts-wiki.p2004a.com/wiki/Special:Contributions/Spitfire"/>
	<updated>2026-11-08T18:13:13Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.11</generator>
	<entry>
		<id>https://springrts-wiki.p2004a.com/mediawiki/index.php?title=Building_Spring_on_MacOSX&amp;diff=3491</id>
		<title>Building Spring on MacOSX</title>
		<link rel="alternate" type="text/html" href="https://springrts-wiki.p2004a.com/mediawiki/index.php?title=Building_Spring_on_MacOSX&amp;diff=3491"/>
		<updated>2014-04-03T20:21:15Z</updated>

		<summary type="html">&lt;p&gt;Spitfire: /* Build And Install */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Engine_Development|Development]] &amp;lt; [[Building_spring|Building Spring]] &amp;lt; {{FULLPAGENAME}}&lt;br /&gt;
&lt;br /&gt;
If you want only to play a spring game, follow the [[Spring_on_MacOSX]] Tutorial.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Build from source on MacOSX=&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Guide is for x86/Intel based OSX installs&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
I am hoping that with our efforts on the forum that we can have an .app bundle released everytime spring is updated and that will save most people needing to go through the headache of compiling from source code. But if you must try, then here&#039;s the steps to help!&lt;br /&gt;
&lt;br /&gt;
I cannot stress enough that this will most likely only work on Intel based systems at this stage. With my understanding of how unitsync works, it seems like online play will not be possible between PPC and x86 architecture.&lt;br /&gt;
&lt;br /&gt;
=Get Dependencies=&lt;br /&gt;
&lt;br /&gt;
Install the [http://developer.apple.com/TOOLS/Xcode/ Xcode developers package] (this requires a free membership to apple&#039;s ADC website) and  [http://www.macports.org/install.php mac ports].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Using Macports==&lt;br /&gt;
&lt;br /&gt;
As hint: set &amp;quot;buildmakejobs&amp;quot; to cpu-core count + 1 in /opt/local/etc/macports/macports.conf. For example:&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;&lt;br /&gt;
buildmakejobs 5&lt;br /&gt;
&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Once you have downloaded and configured Macports use these commands to download / &lt;br /&gt;
compile and install gcc:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo port install gcc48&lt;br /&gt;
&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
now select the installed gcc as default:&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo port select --set gcc mp-gcc48&lt;br /&gt;
hash -r&lt;br /&gt;
&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
if you don&#039;t know the installed gcc, type:&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;&lt;br /&gt;
port select --list gcc&lt;br /&gt;
&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and now the required dependencies:&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo port install cmake libsdl boost libpng jpeg \&lt;br /&gt;
                  tiff libogg libvorbis python27 libdevil git-core binutils \&lt;br /&gt;
                  openal p7zip glew freetype +gcc48&lt;br /&gt;
&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
binutils are required because of &amp;quot;addr2line&amp;quot;, this allows finding bugs.&lt;br /&gt;
&lt;br /&gt;
If all was successful, you are very close to being able to compile Spring naively!&lt;br /&gt;
&lt;br /&gt;
=Obtaining the Source=&lt;br /&gt;
{{Obtaining_The_Source_Code}}&lt;br /&gt;
&lt;br /&gt;
= Build And Install =&lt;br /&gt;
Configure and build:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;&lt;br /&gt;
cmake .&lt;br /&gt;
make spring&lt;br /&gt;
&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
macports-specific instructions:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;&lt;br /&gt;
cmake . -DCMAKE_CXX_COMPILER=${prefix}/bin/g++-mp-4.8 -DCMAKE_C_COMPILER=${prefix}/bin/gcc-mp-4.8 \&lt;br /&gt;
-DFREETYPE_INCLUDE_DIR_freetype2=${prefix}/include/freetype2 -DFREETYPE_INCLUDE_DIR_ft2build=${prefix}/include/freetype2 \&lt;br /&gt;
-DFREETYPE_LIBRARY=${prefix}/lib/libfreetype.dylib&lt;br /&gt;
make spring&lt;br /&gt;
&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
(optional)&lt;br /&gt;
you can have multiple versions of spring installed - for example, by installing them in a prefix, by adding &lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;DCMAKE_INSTALL_PREFIX:PATH=_path_where_you_want_to_install_it&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
after&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;&lt;br /&gt;
cmake .&lt;br /&gt;
&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
for example&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;cmake .DCMAKE_INSTALL_PREFIX:PATH=/opt/spring/96.0 \&lt;br /&gt;
-DCMAKE_CXX_COMPILER=${prefix}/bin/g++-mp-4.8 -DCMAKE_C_COMPILER=${prefix}/bin/gcc-mp-4.8 \&lt;br /&gt;
-DFREETYPE_INCLUDE_DIR_freetype2=${prefix}/include/freetype2 -DFREETYPE_INCLUDE_DIR_ft2build=${prefix}/include/freetype2 \&lt;br /&gt;
-DFREETYPE_LIBRARY=${prefix}/lib/libfreetype.dylib&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Install:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;&lt;br /&gt;
make install-spring&lt;br /&gt;
&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Compiling]]&lt;/div&gt;</summary>
		<author><name>Spitfire</name></author>
	</entry>
	<entry>
		<id>https://springrts-wiki.p2004a.com/mediawiki/index.php?title=Building_Spring_on_MacOSX&amp;diff=3490</id>
		<title>Building Spring on MacOSX</title>
		<link rel="alternate" type="text/html" href="https://springrts-wiki.p2004a.com/mediawiki/index.php?title=Building_Spring_on_MacOSX&amp;diff=3490"/>
		<updated>2014-04-03T20:09:54Z</updated>

		<summary type="html">&lt;p&gt;Spitfire: /* Using Macports */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Engine_Development|Development]] &amp;lt; [[Building_spring|Building Spring]] &amp;lt; {{FULLPAGENAME}}&lt;br /&gt;
&lt;br /&gt;
If you want only to play a spring game, follow the [[Spring_on_MacOSX]] Tutorial.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Build from source on MacOSX=&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Guide is for x86/Intel based OSX installs&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
I am hoping that with our efforts on the forum that we can have an .app bundle released everytime spring is updated and that will save most people needing to go through the headache of compiling from source code. But if you must try, then here&#039;s the steps to help!&lt;br /&gt;
&lt;br /&gt;
I cannot stress enough that this will most likely only work on Intel based systems at this stage. With my understanding of how unitsync works, it seems like online play will not be possible between PPC and x86 architecture.&lt;br /&gt;
&lt;br /&gt;
=Get Dependencies=&lt;br /&gt;
&lt;br /&gt;
Install the [http://developer.apple.com/TOOLS/Xcode/ Xcode developers package] (this requires a free membership to apple&#039;s ADC website) and  [http://www.macports.org/install.php mac ports].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Using Macports==&lt;br /&gt;
&lt;br /&gt;
As hint: set &amp;quot;buildmakejobs&amp;quot; to cpu-core count + 1 in /opt/local/etc/macports/macports.conf. For example:&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;&lt;br /&gt;
buildmakejobs 5&lt;br /&gt;
&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Once you have downloaded and configured Macports use these commands to download / &lt;br /&gt;
compile and install gcc:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo port install gcc48&lt;br /&gt;
&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
now select the installed gcc as default:&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo port select --set gcc mp-gcc48&lt;br /&gt;
hash -r&lt;br /&gt;
&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
if you don&#039;t know the installed gcc, type:&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;&lt;br /&gt;
port select --list gcc&lt;br /&gt;
&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and now the required dependencies:&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo port install cmake libsdl boost libpng jpeg \&lt;br /&gt;
                  tiff libogg libvorbis python27 libdevil git-core binutils \&lt;br /&gt;
                  openal p7zip glew freetype +gcc48&lt;br /&gt;
&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
binutils are required because of &amp;quot;addr2line&amp;quot;, this allows finding bugs.&lt;br /&gt;
&lt;br /&gt;
If all was successful, you are very close to being able to compile Spring naively!&lt;br /&gt;
&lt;br /&gt;
=Obtaining the Source=&lt;br /&gt;
{{Obtaining_The_Source_Code}}&lt;br /&gt;
&lt;br /&gt;
= Build And Install =&lt;br /&gt;
Configure and build:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;&lt;br /&gt;
cmake .&lt;br /&gt;
make spring&lt;br /&gt;
&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Install:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;&lt;br /&gt;
make install-spring&lt;br /&gt;
&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Compiling]]&lt;/div&gt;</summary>
		<author><name>Spitfire</name></author>
	</entry>
</feed>