something injects those `-arch`, they are all excluding, so try to get rid of them. (`-march` is correct and spring defined)g++ ... -arch x86_64 -arch i386 -march=i686 ...
[Tutorial] Building Spring on Mac OS X
Moderator: Moderators
Re: [Tutorial] Building Spring on Mac OS X
possibly caused by
Re: [Tutorial] Building Spring on Mac OS X
@jk: arch flags are automatically inserted by the MacPorts system, hence removing them is not for the weak-hearted...
Still, from your "port installed" I noticed most of your ports are installed as "universal" (i.e. for 32b and 64b systems), implying the dual arch flags. For some ports the "universal" option is not supported, throwing errors quite similar to yours (simple example: SpringLobby, because of wxWidgets...).
Since your system+OS are 64b (and if you don't need the universal builds), I suggest you remove the universal variant form all your ports usingand start installing again.
Still, from your "port installed" I noticed most of your ports are installed as "universal" (i.e. for 32b and 64b systems), implying the dual arch flags. For some ports the "universal" option is not supported, throwing errors quite similar to yours (simple example: SpringLobby, because of wxWidgets...).
Since your system+OS are 64b (and if you don't need the universal builds), I suggest you remove the universal variant form all your ports using
Code: Select all
port upgrade --enforce-variants installed -universal
-
- Posts: 3
- Joined: 18 Oct 2011, 08:47
Re: [Tutorial] Building Spring on Mac OS X
Is this tutorial still valid? Macports doesn't seem to host spring engine anymore.
Re: [Tutorial] Building Spring on Mac OS X
Short answer: yes, the tutorial is still active, but the current version doesn't sync well with PCs/Linuxes (i.e. you may end up in your own game on some modsdevilstongue wrote:Is this tutorial still valid? Macports doesn't seem to host spring engine anymore.

Long answer: Literally speaking, Macports has *never* hosted the spring engine (despite the many requests and submission of ready-to-publish work in the past years). Spring is hosted on another repository (mine), which you add to your MacPorts config during the tutorial (re-read section Basics>configure MacPorts).
Important notice to all: as of the next engine release, this tutorial (and the related MacPorts project) will be discontinued, as Spring will be available as a standalone Mac OS X .app bundle (so will SpringLobby).
-
- Posts: 3
- Joined: 18 Oct 2011, 08:47
Re: [Tutorial] Building Spring on Mac OS X
Was unable to install spring
springlobby gave me
Code: Select all
sudo port install springrts binutils
---> Computing dependencies for openssl
---> Fetching archive for openssl
---> Attempting to fetch openssl-1.0.0e_1+universal.darwin_10.i386-x86_64.tbz2 from http://packages.macports.org/openssl
---> Fetching openssl
---> Verifying checksum(s) for openssl
---> Extracting openssl
---> Applying patches to openssl
---> Configuring openssl
---> Building openssl
---> Staging openssl into destroot
---> Installing openssl @1.0.0e_1+universal
---> Cleaning openssl
---> Computing dependencies for openssl
---> Deactivating openssl @1.0.0e_0+universal
---> Cleaning openssl
---> Activating openssl @1.0.0e_1+universal
---> Cleaning openssl
---> Computing dependencies for libedit
---> Fetching archive for libedit
---> Attempting to fetch libedit-20110802-3.0_0+universal.darwin_10.i386-x86_64.tbz2 from http://packages.macports.org/libedit
---> Attempting to fetch libedit-20110802-3.0_0+universal.darwin_10.i386-x86_64.tbz2.rmd160 from http://packages.macports.org/libedit
---> Installing libedit @20110802-3.0_0+universal
---> Activating libedit @20110802-3.0_0+universal
---> Cleaning libedit
---> Computing dependencies for sqlite3
---> Fetching archive for sqlite3
---> Attempting to fetch sqlite3-3.7.8_1+universal.darwin_10.i386-x86_64.tbz2 from http://packages.macports.org/sqlite3
---> Fetching sqlite3
---> Attempting to fetch sqlite-autoconf-3070800.tar.gz from http://distfiles.macports.org/sqlite3
---> Verifying checksum(s) for sqlite3
---> Extracting sqlite3
---> Applying patches to sqlite3
---> Configuring sqlite3
---> Building sqlite3
---> Staging sqlite3 into destroot
---> Installing sqlite3 @3.7.8_1+universal
---> Cleaning sqlite3
---> Computing dependencies for sqlite3
---> Deactivating sqlite3 @3.7.7.1_0+universal
---> Cleaning sqlite3
---> Activating sqlite3 @3.7.8_1+universal
---> Cleaning sqlite3
---> Computing dependencies for springrts
---> Dependencies to be installed: boost icu cmake libidn glew libdevil libmng libsdl-framework libsdl libvorbis libogg p7zip
---> Fetching archive for icu
---> Attempting to fetch icu-4.8.1_0+universal.darwin_10.i386-x86_64.tbz2 from http://packages.macports.org/icu
---> Fetching icu
---> Attempting to fetch icu4c-4_8_1-src.tgz from http://distfiles.macports.org/icu
---> Verifying checksum(s) for icu
---> Extracting icu
---> Applying patches to icu
---> Configuring icu
---> Building icu
---> Staging icu into destroot
---> Installing icu @4.8.1_0+universal
---> Activating icu @4.8.1_0+universal
---> Cleaning icu
---> Fetching archive for boost
---> Attempting to fetch boost-1.47.0_2+universal.darwin_10.i386-x86_64.tbz2 from http://packages.macports.org/boost
---> Fetching boost
---> Attempting to fetch boost_1_47_0.tar.bz2 from http://voxel.dl.sourceforge.net/boost
---> Verifying checksum(s) for boost
---> Extracting boost
---> Applying patches to boost
---> Configuring boost
---> Building boost
---> Staging boost into destroot
---> Installing boost @1.47.0_2+universal
---> Activating boost @1.47.0_2+universal
---> Cleaning boost
---> Fetching archive for libidn
---> Attempting to fetch libidn-1.22_0+universal.darwin_10.i386-x86_64.tbz2 from http://packages.macports.org/libidn
---> Attempting to fetch libidn-1.22_0+universal.darwin_10.i386-x86_64.tbz2.rmd160 from http://packages.macports.org/libidn
---> Installing libidn @1.22_0+universal
---> Activating libidn @1.22_0+universal
---> Cleaning libidn
---> Fetching archive for cmake
---> Attempting to fetch cmake-2.8.6_0+universal.darwin_10.i386-x86_64.tbz2 from http://packages.macports.org/cmake
---> Fetching cmake
---> Attempting to fetch cmake-2.8.6.tar.gz from http://distfiles.macports.org/cmake
---> Verifying checksum(s) for cmake
---> Extracting cmake
---> Applying patches to cmake
---> Configuring cmake
---> Building cmake
---> Staging cmake into destroot
---> Installing cmake @2.8.6_0+universal
---> Activating cmake @2.8.6_0+universal
---> Cleaning cmake
---> Fetching archive for glew
---> Attempting to fetch glew-1.7.0_0+universal.darwin_10.i386-x86_64.tbz2 from http://packages.macports.org/glew
---> Attempting to fetch glew-1.7.0_0+universal.darwin_10.i386-x86_64.tbz2.rmd160 from http://packages.macports.org/glew
---> Installing glew @1.7.0_0+universal
---> Activating glew @1.7.0_0+universal
---> Cleaning glew
---> Fetching archive for libmng
---> Attempting to fetch libmng-1.0.10_2+universal.darwin_10.i386-x86_64.tbz2 from http://packages.macports.org/libmng
---> Attempting to fetch libmng-1.0.10_2+universal.darwin_10.i386-x86_64.tbz2.rmd160 from http://packages.macports.org/libmng
---> Installing libmng @1.0.10_2+universal
---> Activating libmng @1.0.10_2+universal
---> Cleaning libmng
---> Fetching archive for libdevil
---> Attempting to fetch libdevil-1.7.8_3+universal.darwin_10.i386-x86_64.tbz2 from http://packages.macports.org/libdevil
---> Fetching libdevil
---> Attempting to fetch DevIL-1.7.8.tar.gz from http://cdnetworks-us-1.dl.sourceforge.net/openil
---> Attempting to fetch DevIL-1.7.8.tar.gz from http://voxel.dl.sourceforge.net/openil
---> Verifying checksum(s) for libdevil
---> Extracting libdevil
---> Applying patches to libdevil
---> Configuring libdevil
---> Building libdevil
---> Staging libdevil into destroot
---> Installing libdevil @1.7.8_3+universal
---> Activating libdevil @1.7.8_3+universal
---> Cleaning libdevil
---> Fetching archive for libsdl
---> Attempting to fetch libsdl-1.2.14_9+universal+x11.darwin_10.i386-x86_64.tbz2 from http://packages.macports.org/libsdl
---> Attempting to fetch libsdl-1.2.14_9+universal+x11.darwin_10.i386-x86_64.tbz2.rmd160 from http://packages.macports.org/libsdl
---> Installing libsdl @1.2.14_9+universal+x11
---> Activating libsdl @1.2.14_9+universal+x11
---> Cleaning libsdl
---> Fetching archive for libsdl-framework
---> Attempting to fetch libsdl-framework-20110119_0.darwin_10.noarch.tbz2 from http://packages.macports.org/libsdl-framework
---> Attempting to fetch libsdl-framework-20110119_0.darwin_10.noarch.tbz2.rmd160 from http://packages.macports.org/libsdl-framework
---> Installing libsdl-framework @20110119_0
---> Activating libsdl-framework @20110119_0
---> Cleaning libsdl-framework
---> Fetching archive for libogg
---> Attempting to fetch libogg-1.3.0_0+universal.darwin_10.i386-x86_64.tbz2 from http://packages.macports.org/libogg
---> Attempting to fetch libogg-1.3.0_0+universal.darwin_10.i386-x86_64.tbz2.rmd160 from http://packages.macports.org/libogg
---> Installing libogg @1.3.0_0+universal
---> Activating libogg @1.3.0_0+universal
---> Cleaning libogg
---> Fetching archive for libvorbis
---> Attempting to fetch libvorbis-1.3.2_0+universal.darwin_10.i386-x86_64.tbz2 from http://packages.macports.org/libvorbis
---> Attempting to fetch libvorbis-1.3.2_0+universal.darwin_10.i386-x86_64.tbz2.rmd160 from http://packages.macports.org/libvorbis
---> Installing libvorbis @1.3.2_0+universal
---> Activating libvorbis @1.3.2_0+universal
---> Cleaning libvorbis
---> Fetching archive for p7zip
---> Attempting to fetch p7zip-9.20.1_1+universal.darwin_10.i386-x86_64.tbz2 from http://packages.macports.org/p7zip
---> Fetching p7zip
---> Attempting to fetch p7zip_9.20.1_src_all.tar.bz2 from http://cdnetworks-us-1.dl.sourceforge.net/project/p7zip/p7zip/9.20.1
---> Attempting to fetch p7zip_9.20.1_src_all.tar.bz2 from http://distfiles.macports.org/p7zip
---> Verifying checksum(s) for p7zip
---> Extracting p7zip
---> Applying patches to p7zip
---> Configuring p7zip
---> Building p7zip
---> Staging p7zip into destroot
---> Installing p7zip @9.20.1_1+universal
---> Activating p7zip @9.20.1_1+universal
---> Cleaning p7zip
---> Fetching archive for springrts
---> Attempting to fetch springrts-0.82.7.1_0+universal.darwin_10.i386-x86_64.tbz2 from http://packages.macports.org/springrts
---> Fetching springrts
---> Attempting to fetch spring_0.82.7.1_src.tar.gz from http://distfiles.macports.org/springrts
---> Attempting to fetch spring_0.82.7.1_src.tar.gz from http://downloads.sourceforge.net/project/springrts/springrts/spring-0.82.7.1/
---> Verifying checksum(s) for springrts
---> Extracting springrts
---> Applying patches to springrts
---> Configuring springrts
---> Building springrts
Error: Target org.macports.build returned: shell command failed (see log for details)
Error: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>
Code: Select all
sudo port install springlobby
---> Computing dependencies for springlobby
Error: Cannot install springlobby for the arch(s) 'i386 x86_64' because
Error: its dependency wxWidgets-devel does not build for the required arch(s) by default
Error: and does not have a universal variant.
Error: Unable to execute port: architecture mismatch
To report a bug, see <http://guide.macports.org/#project.tickets>
Re: [Tutorial] Building Spring on Mac OS X
Sounds good. Does that include a lobby?daftalx wrote:Important notice to all: as of the next engine release, this tutorial (and the related MacPorts project) will be discontinued, as Spring will be available as a standalone Mac OS X .app bundle (so will SpringLobby).
How is the .app bundle produced? If I wanted to build it (or work on it) myself would I still need to go the MacPorts route?
How close (in rough terms) do you think the official release is?
Re: [Tutorial] Building Spring on Mac OS X
Code: Select all
sudo port install springlobby
---> Computing dependencies for springlobby
Error: Cannot install springlobby for the arch(s) 'i386 x86_64' because
Error: its dependency wxWidgets-devel does not build for the required arch(s) by default
Error: and does not have a universal variant.
Error: Unable to execute port: architecture mismatch
To report a bug, see <http://guide.macports.org/#project.tickets>
Code: Select all
port upgrade --enforce-variants installed -universal
Re: [Tutorial] Building Spring on Mac OS X
SL and Spring will both be available as separate(ly downloadable) bundles, allowing several versions to co-exist on either side (SL code is also ready to support multiple spring setting files depending on the spring executable).Belmakor wrote:Sounds good. Does that include a lobby?
Yes&No. There is now an automated script that runs on the official buildbot which compiles (not via MacPorts) + bundles dependent libs (installed via MacPorts) + uploads the .app on the official server (cf. springrts.com:7778/waterfall). The reason for keeping MacPorts for dependencies is that this is sooo effortlessBelmakor wrote:How is the .app bundle produced? If I wanted to build it (or work on it) myself would I still need to go the MacPorts route?

I wouldn't dare put a timing on that, but if you follow the dev thread, the last few tests and bug fixes are being made, so we've never been closerBelmakor wrote:How close (in rough terms) do you think the official release is?


Re: [Tutorial] Building Spring on Mac OS X
Ooohhh, I just downloaded the latest test bundle on my MacBook Air 11", downloaded a mod and map, launched and all was good :) This is on Lion 10.7.2 by the way.
Controls are a bit awkward on the trackpad... gotta figure out a few things. For one thing, it was hit-and-miss if it would detect a single tap when trying to select a unit to build from the build menu, but not when placing. Actually clicking would always work, though (but I hate clicking, it's a lot more awkward).
Good work on the port :)
Controls are a bit awkward on the trackpad... gotta figure out a few things. For one thing, it was hit-and-miss if it would detect a single tap when trying to select a unit to build from the build menu, but not when placing. Actually clicking would always work, though (but I hate clicking, it's a lot more awkward).
Good work on the port :)
Re: [Tutorial] Building Spring on Mac OS X
Excellent news! I hadn't had a chance to upgrade one of my boxes yet to try out on Lion. Less work = More DGun B)Belmakor wrote:Ooohhh, I just downloaded the latest test bundle on my MacBook Air 11", downloaded a mod and map, launched and all was good :) This is on Lion 10.7.2 by the way.
-
- Posts: 3
- Joined: 18 Oct 2011, 08:47
Re: [Tutorial] Building Spring on Mac OS X
It says it has a 64 bit kernel and extensions, so I'm guessing the whole os is 64 bit. I have no idea what you mean by "scrub the universal flag" though. I don't normally use macports.daftalx wrote:The error is quite self-explanatory (wxWidgets 2.9.x cannot be built for both ppc and intel, yet). If your Mac is 64b, scrub the universal flag from all your ports and start againCode: Select all
sudo port install springlobby ---> Computing dependencies for springlobby Error: Cannot install springlobby for the arch(s) 'i386 x86_64' because Error: its dependency wxWidgets-devel does not build for the required arch(s) by default Error: and does not have a universal variant. Error: Unable to execute port: architecture mismatch To report a bug, see <http://guide.macports.org/#project.tickets>
Code: Select all
port upgrade --enforce-variants installed -universal
Re: [Tutorial] Building Spring on Mac OS X
I doubt an Intel mac with a cpu that only did 32bit was ever released.
OS X is capable of beign a mishmash, but its mostly 64bit, and since it's objective C a lot of it is late binding at runtime. OS X developers were once seen boasting they could have 32bit libraries using 64bit libraries and vice versa as an advantage over rival OS'
OS X is capable of beign a mishmash, but its mostly 64bit, and since it's objective C a lot of it is late binding at runtime. OS X developers were once seen boasting they could have 32bit libraries using 64bit libraries and vice versa as an advantage over rival OS'
Re: [Tutorial] Building Spring on Mac OS X
Actually there was an entire generation of core solo and core duo macs that were 32 bit in 2006.
http://support.apple.com/kb/ht3696
http://support.apple.com/kb/ht3696
Re: [Tutorial] Building Spring on Mac OS X
Yah :) I'm looking forward to getting into playing again so is the wife!daftalx wrote:Excellent news! I hadn't had a chance to upgrade one of my boxes yet to try out on Lion. Less work = More DGun B)
Is there an .app test bundle download for SpringLobby (or another lobby) that I can use with the test version of Spring? I would like to test play between computers on my network ÔÇô most are running Lion but one (a Mac Mini) is still running Snow Leopard because some of the software we use relies on Rosetta which isn't available on Lion any longer).
Was also way cool to see it running on my 11" MacBook Air, which only has an integrated chipset. Granted, I didn't test with lots of units, but it looked pretty reasonable as far as I did test it.
Re: [Tutorial] Building Spring on Mac OS X
the test download page references the testing version app bundle too, yes.
http://springrts.com/wiki/Download_Testing
http://springrts.com/wiki/Download_Testing
Re: [Tutorial] Building Spring on Mac OS X
The Spring client is there, yes. But no lobby for MacOS that I could see.hoijui wrote:the test download page references the testing version app bundle too, yes.
http://springrts.com/wiki/Download_Testing
Re: [Tutorial] Building Spring on Mac OS X
In the middle of *many* things right now, but I'll try to post here (separate thread) a temporary (but working) version until the official lobby comes out.
Re: [Tutorial] Building Spring on Mac OS X
Fresh iMac installtion with Lion:
Here is my error log. I am not able to install:
sudo port install -d libdevil
http://goo.gl/lUtA9
Please give me a hit how to proceed.
Here is my error log. I am not able to install:
sudo port install -d libdevil
http://goo.gl/lUtA9
Please give me a hit how to proceed.
Re: [Tutorial] Building Spring on Mac OS X
(sigh) libdevil playing tricks again...
Trouble is, the libdevil port maintainers have been offline for quite a while, and last time a patch was needed (for 0.82.7.1 to run) I ended up writing and submitting it myself, which I don't have time for anymore.
Then again, you might want to consider the (simpler) .app bundles (see this thread). They have been seen working on Lion.
(besides, this tutorial only gives you a version that doesn't sync with PCs anyways...)
Code: Select all
:info:build error: invalid argument '-std=gnu99' not allowed with 'C++/ObjC++'
Then again, you might want to consider the (simpler) .app bundles (see this thread). They have been seen working on Lion.
(besides, this tutorial only gives you a version that doesn't sync with PCs anyways...)
Re: [Tutorial] Building Spring on Mac OS X
Thank you for your message!
In other words it is not possible to complile spring on lion right now? How did you try to contact the libdevil maintainers? Via macports?
In other words it is not possible to complile spring on lion right now? How did you try to contact the libdevil maintainers? Via macports?