On Sep 19, 2012, at 2:39 PM, Arrehn Oberlander <arr...@gmail.com> wrote:
> I couldn't help but notice this blurb at the end. Did you need to make
> any adjustments to base viewer-dev dependent packages / cmake /. other
> in order to build with XCode 4.5.x?

I found this diff to patch llWindow to compile with a 10.7 or 10.8 target:
http://paste.kathar.in/raw/107/
That fixes all the deprecated stuff in llWindow :D

Meanwhile in the indra/cmake/Variables.cmake of course, change the 
CMAKE_OSX_DEPLOYMENT_TARGET to 10.8 and the SDK root has to be 
/Applications/Xcode/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk

As for media_plugin_quicktime, I don't have a patch to make it compile with 
10.8 target. Instead you download the 10.6 SDK here:
http://www.jamesgeorge.org/uploads/MacOSX10.6.sdk.zip
Then install that into:
/Applications/Xcode/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk
Then in Xcode, set the deployment target and the SDK for media_plugin_quicktime 
to be 10.6 (rest of project remains 10.8). You must also use LLVM compiler for 
media_plugin_quicktime, although the rest of the project remains GCC for the 
compiler. 

I also got warnings about a broken linker flag in several media_plugin_XXX 
targets, which simply involved editing the flags: I had to put quotation marks 
around the text of the bad flag, and fix a carriage return that had snuck in 
there, by combining two lines into one removing the return. 

There was also a build error because saying media_plugin_base.exp could not be 
found; that's just because the path was wrong, which I was able to edit also in 
Xcode to the correct path. This was also in the media_plugin_XXX targets.

Other minor quibbles like the LLVM won't use -mlong branch, so just remove that 
flag for media_plugin_quicktime if it gripes. And if Xcode warns you about 
using GCC, click the warning and uncheck all boxes then hit "done." If it warns 
you again, bad news, delete the whole build folder and build again with 
autobuild (nuke the site from orbit). 

I *think* that was everything I had to do, to finally get it to compile. I have 
been messing around with removing a lot of the legacy Darwin OpenGL hacks to 
see what might have been fixed in 10.8's drivers. So far I've doubled the 
viewer FPS on my Mac, but it's still buggy, so I'm not posting any code 
revisions just yet.

I also tried compiling in 64-bit, but hahhahaha no.

-G


_______________________________________________
Policies and (un)subscribe information available here:
http://wiki.secondlife.com/wiki/OpenSource-Dev
Please read the policies before posting to keep unmoderated posting privileges

Reply via email to