Re: [opensource-dev] OSX 10.8 / Xcode 4.5 compile support (wasReview Request: patch potential memory leak in llgl.h)

2012-09-20 Thread gistya gmail
On Sep 19, 2012, at 2:39 PM, Arrehn Oberlander  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


Re: [opensource-dev] OSX 10.8 / Xcode 4.5 compile support (wasReview Request: patch potential memory leak in llgl.h)

2012-09-20 Thread gistya gmail
On Sep 20, 2012, at 12:33 AM, Geenz Spad  wrote:
> The patch still uses Carbon functionality that could be removed in an SDK 
> update, just functionality that hasn't been removed as of yet (creating 
> HIViews that use Cocoa views, for example).  So while it works now, there's 
> no guarantee that it'll work under the next OS X version, which is likely due 
> out next year now that Apple's committed to annual OS X updates.

Wouldn't it be awesome to redo the whole GUI in Aqua? Imagine… one monitor with 
all your floating palettes like your chat window, search window, mini-map, 
inventory, some people's profiles, etc. Another monitor with the OpenGL view 
and none of those things floating on top of it, obscuring the view of what 
you're burning render cycles on! Full support for "Full Screen Mode" on Mac, 
with a real Mac menu bar, to boot! Sigh. Maybe someday? We can dream right?

> I'd be interested to hear about the legacy OpenGL hacks that you're trying to 
> remove however!  That part I find fairly interesting.

I will try to post specifics this weekend or next, after I've had a chance to 
do some more testing. 

-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


[opensource-dev] Monospace ASCII-art font

2012-10-27 Thread gistya gmail
I'd like to help work on a monospace font option with IBM PC ASCII box drawing 
characters for use in notecards and settext. 

Notecards would get a simple checkbox at the bottom to toggle between monospace 
and regular. Settext would get a new function, llSetTextMonospace. Maybe there 
could even be llSetTextMonospaceTableFromList or -fromCSV, with a box style and 
divider style flags. 

This would allow for much easier display of tables of information. It could 
even allow for things like an in-world forum HUD :-D

Thoughts? Should I post this as a JIRA instead? Thanks
 
___
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