IPB Style© Fisana

Jump to content


Build environment and deployment on the Mac


  • Please log in to reply
189 replies to this topic

#81 wraitii

wraitii

  • WFG Programming Team

  • Primus Pilus
    (1,011 posts)

Posted 24 February 2012 - 09:28 PM

I'm really not sure that the third feature is compulsory.
Wraitii
Wildfire Games Programmer, AI developer, auxiliary map designer, dealing with anything water.
Contact me: wraitii@wildfiregames.com

Also the world's only three-dimensional poodle.

#82 fcxSanya

fcxSanya

  • WFG Programming Team

  • Centurio
    (646 posts)

Posted 24 February 2012 - 09:52 PM

View Postwraitii, on 24 February 2012 - 09:28 PM, said:

I'm really not sure that the third feature is compulsory.
Apple promise that it is not:
http://www.apple.com...n/security.html :

Quote

You control what you install.
<...>Gatekeeper brings you even more security options<...> Or you can install all apps from anywhere, just as you can today. You can even temporarily override your setting by Control-clicking, and install any app at any time.<...>

Alexander Olkhovskiy [ aka fcxSanya ]
Wildfire Games Programmer
E-mail: fcxsanya at wildfiregames dot com

#83 historic_bruno

historic_bruno

  • WFG Programming Team

  • Primus Pilus
    (1,928 posts)

Posted 25 February 2012 - 05:00 AM

Was doing a bit more digging and discovered this list of where App Store apps are allowed to write files. Note even ~/Documents is not listed, if we "manage" pictures we should use ~/Pictures, but we really don't so even that could be debated. Clearly saved games would have to go somewhere in ~/Library. It's very restrictive and I think it would be a good idea to follow those guidelines as general rules even if we don't plan to be on the App Store (for those curious, there are potential licensing conflicts between GPL and Apple's App Store policies).

------

Some people may have noticed you can't build 0 A.D. anymore even if you install Xcode and MacPorts. The reason is that GCC is no longer included with Xcode and the command line build tools have been removed by default from Xcode 4.3. If you installed an earlier version, as I did, it should work even if you upgraded. This annoyed a lot of people and caused some havoc among developers.

Just recently Apple has released a standalone package called "Command Line Tools for Xcode", which includes LLVM-GCC (it pretends to be GCC) and all the libraries needed. It's a free ~160MB download from the Apple Developer Downloads site. You need a free Apple ID to access it. Or if you have Xcode 4.3+, you can download the same package through Xcode Preferences.

I've tested, and it's possible to build the game and all its dependencies with only that package, in place of Xcode. However, because no SDKs are provided for backward compatibility, it's not possible to build a practical bundle without Xcode. Anyway I'm modifying the build scripts to handle either situation.
Ben Brian [ aka historic_bruno ]

Wildfire Games Programmer
Contact me: ben@wildfiregames.com

#84 Sonarpulse

Sonarpulse

  • Community Members
    PipPip

  • Sesquiplicarius
    (161 posts)

Posted 25 February 2012 - 09:14 PM

Oh Apple. Is there any other *nix that's more of a pain in the @#$%?

Somebody made something similar for 10.6 (I read that "Command Line Tools for Xcode" is only for 10.7): http://kennethreitz....d-homebrew.html & the package itself https://github.com/k...-gcc-installer/
Posted ImagePosted ImagePosted Image

#85 historic_bruno

historic_bruno

  • WFG Programming Team

  • Primus Pilus
    (1,928 posts)

Posted 25 February 2012 - 11:01 PM

View PostSonarpulse, on 25 February 2012 - 09:14 PM, said:

Somebody made something similar for 10.6 (I read that "Command Line Tools for Xcode" is only for 10.7): http://kennethreitz....d-homebrew.html & the package itself https://github.com/k...-gcc-installer/
Quite right and apparently that was the inspiration for Apple releasing their own package, but as 10.6 is older than 1-2 years, they obviously feel no need to support it :P Of course if someone is on 10.6, they can install an older Xcode and get the command line tools installed.
Ben Brian [ aka historic_bruno ]

Wildfire Games Programmer
Contact me: ben@wildfiregames.com

#86 Sonarpulse

Sonarpulse

  • Community Members
    PipPip

  • Sesquiplicarius
    (161 posts)

Posted 27 February 2012 - 01:10 AM

will your script work with 10.6? Also, I always had the impression that the difference between 10.5 and 10.6 was less, if because nothing more than because "leopard" and "snow leopard". Is that at all true?
Posted ImagePosted ImagePosted Image

#87 historic_bruno

historic_bruno

  • WFG Programming Team

  • Primus Pilus
    (1,928 posts)

Posted 27 February 2012 - 05:59 AM

Yeah, it should work fine on 10.6. I think we could support 10.5 with some hassle, but it's not something I'm pursuing, maybe once all the dust settles someone in the community will work on that :)
Ben Brian [ aka historic_bruno ]

Wildfire Games Programmer
Contact me: ben@wildfiregames.com

#88 wraitii

wraitii

  • WFG Programming Team

  • Primus Pilus
    (1,011 posts)

Posted 27 February 2012 - 07:01 AM

There are only slight compatibility issues between Leopard and Snow Leopard, which was a 20$ minor "major update" of the system, mainly to streamline everything. It was massively adopted, so supporting 10.5 has no reason to be a priority.
Wraitii
Wildfire Games Programmer, AI developer, auxiliary map designer, dealing with anything water.
Contact me: wraitii@wildfiregames.com

Also the world's only three-dimensional poodle.

#89 Sonarpulse

Sonarpulse

  • Community Members
    PipPip

  • Sesquiplicarius
    (161 posts)

Posted 27 February 2012 - 08:06 AM

Good to know, thanks both of you.
Posted ImagePosted ImagePosted Image

#90 Echelon9

Echelon9

  • Donator

  • Discens
    (54 posts)

Posted 01 March 2012 - 12:49 PM

historic_bruno, any updates on the Mac build scripts? I'd love to give it a try out, and it would help my development on 0ad to have a consistent way to roll binaries.

#91 historic_bruno

historic_bruno

  • WFG Programming Team

  • Primus Pilus
    (1,928 posts)

Posted 02 March 2012 - 12:09 AM

Well yes, they've been updated. It's not easy to share though, since it involves moving and renaming things (maybe easier if I used Git?) Anyway that stuff will have to wait until after Alpha 9, I'll probably be helping review existing patches in the meantime. I would like to upload an official OS X bundle for Alpha 9 on LatestReleaseMac.
Ben Brian [ aka historic_bruno ]

Wildfire Games Programmer
Contact me: ben@wildfiregames.com

#92 Sonarpulse

Sonarpulse

  • Community Members
    PipPip

  • Sesquiplicarius
    (161 posts)

Posted 02 March 2012 - 01:22 AM

Yes! getting an official, stable binary out will be a HUGE step forward. And of course, using this method will also help reach the ultimate goal of "easy" mac compilation.
Posted ImagePosted ImagePosted Image

#93 historic_bruno

historic_bruno

  • WFG Programming Team

  • Primus Pilus
    (1,928 posts)

Posted 09 March 2012 - 02:18 AM

I "upgraded" to Xcode 4.3, it's nice because unlike earlier versions (I was using 4.1) there's no need to install it, you just run the app bundle directly. Apparently updates are deltas now instead of requiring massive 2GB+ downloads. Want to uninstall? Drag the app to the trash. This means that all the Xcode required files are bundled, including SDKs. Unfortunately this causes problems if scripts are looking for SDKs in the old /Developer/SDKs location. Prime example: Boost build scripts. They try to be clever and provide a simple "macosx-version" option that automatically searches directories in /Developer/SDKs for a match. So it works great with Xcode 4.2 and earlier, but suddenly breaks on Xcode 4.3 with an unintuitive error:

error: "10.6" is not a known value of feature <macosx-version>
error: legal values:
See any mention of /Developer/SDKs or anything else remotely useful? :) I was shocked that a package like Boost misbehaved this way. Hope they've fixed it for 1.49, but either way my script has to set CFLAGS and LDFLAGS manually for Boost.

I also had to update my build scripts, SDKs are now located in... wait for it... /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs.

After that it works fine. Xcode detected that I had installed the "Command Line Tools for Xcode" package and didn't ask me to download them again. I did have to fix one Premake-related build error (11259) that only occurred with the new command line tools.
Ben Brian [ aka historic_bruno ]

Wildfire Games Programmer
Contact me: ben@wildfiregames.com

#94 Sonarpulse

Sonarpulse

  • Community Members
    PipPip

  • Sesquiplicarius
    (161 posts)

Posted 09 March 2012 - 06:46 AM

was "Command Line Tools for Xcode" modified for Xcode 4.3? i.e. should the scripts still work with the latest version of the CLI package?
Posted ImagePosted ImagePosted Image

#95 historic_bruno

historic_bruno

  • WFG Programming Team

  • Primus Pilus
    (1,928 posts)

Posted 09 March 2012 - 11:01 PM

You can download the "Command Line Tools for Xcode" either in Xcode preferences, or separately as mentioned above, but it's the exact same package. As far as I know the scripts will continue working since the errors and most of the deprecation warnings have been fixed.
Ben Brian [ aka historic_bruno ]

Wildfire Games Programmer
Contact me: ben@wildfiregames.com

#96 Sonarpulse

Sonarpulse

  • Community Members
    PipPip

  • Sesquiplicarius
    (161 posts)

Posted 13 March 2012 - 06:51 AM

Awesome!
Posted ImagePosted ImagePosted Image

#97 historic_bruno

historic_bruno

  • WFG Programming Team

  • Primus Pilus
    (1,928 posts)

Posted 15 March 2012 - 07:53 PM

OS X package for Alpha 9 is now available at http://trac.wildfire...atestReleaseMac (y)
Ben Brian [ aka historic_bruno ]

Wildfire Games Programmer
Contact me: ben@wildfiregames.com

#98 memmaker650

memmaker650

  • Donator

  • Discens
    (62 posts)

Posted 15 March 2012 - 08:01 PM

View Posthistoric_bruno, on 15 March 2012 - 07:53 PM, said:

OS X package for Alpha 9 is now available at http://trac.wildfire...atestReleaseMac (y)

Thank you for your great work. Downloading.

I will test the game under mac and will tell here all the thing or bug i detect in the game.

Thanks another time.

#99 Geek377

Geek377

  • Web Development Team

  • Primus Pilus
    (1,718 posts)

Posted 15 March 2012 - 11:33 PM

View Posthistoric_bruno, on 15 March 2012 - 07:53 PM, said:

OS X package for Alpha 9 is now available at http://trac.wildfire...atestReleaseMac (y)

Thanks so much man, you just saved me a ton of time :D
It works great in Snow Leopard (10.6.8)
The Geek [ aka Geek377]
Wildfire Games Webmaster
Contact me: Posted Image Posted Image

#100 memmaker650

memmaker650

  • Donator

  • Discens
    (62 posts)

Posted 16 March 2012 - 12:51 PM

View Posthistoric_bruno, on 15 March 2012 - 07:53 PM, said:

OS X package for Alpha 9 is now available at http://trac.wildfire...atestReleaseMac (y)

Game works fine on my MBP 4,1 from 2008 with Snow Leopard 10.6.8 and 4Gb of RAM. 80% of CPU used during game execution.

Game runs fluently, no sound (normal i know developers are changing the sound system to put it right with OpenAL), no apuses and the games menu runs smoothly and right.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users