Cool VL Viewer forum

View unanswered posts | View active topics It is currently 2024-04-23 13:24:01



Reply to topic  [ 6 posts ] 
questions for MacOSX 
Author Message

Joined: 2009-10-14 11:12:22
Posts: 8
Reply with quote
Hello,

I m on MacOSX and i compiled my first SL Viewer 1.23.4 as well.
How can i insert the patches and do i need to insert all of them?
Where i can found the cool viewer sources?

Angel


2009-10-14 14:19:29
Profile

Joined: 2009-03-17 18:42:51
Posts: 5550
Reply with quote
angel wrote:
Hello,

I m on MacOSX and i compiled my first SL Viewer 1.23.4 as well.
How can i insert the patches
Hyang Zhao would probably be the best person to ask to. I don't have a MAC, so I don't know for sure, but MacOS X should have more or less the same tools as any other UNIX-like system. You'll need the 'bzcat' and 'patch' utilities, then unpack the official sources of the SL viewer, and apply all the patches in alphabetical order from within the source directory (with: bzcat patch_file_name | patch -p1 -s)

The commands used to compile the viewer under Linux are regrouped inside the cmake-SL script, so you can get an idea of what commands to use by looking at it.

Quote:
... and do i need to insert all of them?
If you know exactly what you are doing, no, you don't need to apply all of them, but then you'll probably have to create your own AdjustRejects patch (this patch is applied last and is used to patch the lines that failed to be modified because the context around the lines in question was modified by another patch, resulting in a reject).

Quote:
Where i can found the cool viewer sources?
Just follow the links on the website for the corresponding release. If you already compiled v1.23.4.0, then you already got the official viewer sources, and all you need are the patches available here


2009-10-14 19:28:29
Profile WWW

Joined: 2009-10-14 11:12:22
Posts: 8
Reply with quote
i did expand the patches to an seperate folder "patches"
I have a Folder "lindens" with the sorce from LL
and a Folder "lindens-patched" with the copy of the content of "linden" Folder.

if i use "patch -p 1 -s patchname.patch" into a terminal nothing seems to work !?

are the options of "patch- command" right?

please need help!

angel


2009-10-14 23:13:57
Profile

Joined: 2009-03-17 18:42:51
Posts: 5550
Reply with quote
angel wrote:
i did expand the patches to an seperate folder "patches"
I have a Folder "lindens" with the sorce from LL
and a Folder "lindens-patched" with the copy of the content of "linden" Folder.

if i use "patch -p1 -s patchname.patch" into a terminal nothing seems to work !?

are the options of "patch- command" right?

please need help!

angel
You need to send the patch file to the input stream of the patch command, either via a pipe (in the bzcat example I gave) or via a stream redirector. When a patch is uncompressed, you can use:

Code:
patch -p1 -s <patchname.patch
(note the "<" to redirect the input stream of patch and feed it with the patch file).

You could also use:
Code:
cat patchname.patch | patch -p1 -s

For full details about commands, please see their manual pages:
Code:
man patch
man sh (or 'man bash' for the Bourne Again shell).

To apply all the patches of a folder, you could use the shell's 'for' command, issuing this from within your linden-patched folder:
Code:
for file in /patch_folder/*.patch do;patch -p1 -s <$file;done
This will apply all the patches in alphabetical order (the order is important to avoid rejects: the patch files for the Cool SL Viewer were purposely named to be applied in alphabetical order).


2009-10-15 06:02:32
Profile WWW

Joined: 2009-10-14 11:12:22
Posts: 8
Reply with quote
Hello, i applyed all patches in alphabetical order for 1.23.4 from you !

at last patch "slviewer-9-v12340-AdjustRejects_v2.patch" i got at end following error "1 out of 1 hunk FAILED -- saving rejects to file /linden-patched/indra/newview/llviewermenu.cpp.rej"

what was going wrong?

Angel


2009-10-15 14:17:01
Profile

Joined: 2009-10-14 11:12:22
Posts: 8
Reply with quote
i got it an everything seems oki!!! :)


2009-10-15 20:06:19
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 6 posts ] 

Who is online

Users browsing this forum: Bing [Bot] and 23 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software.