On Mon, 12 Jul 2010 14:32:07 +0200, Aleric Inglewood wrote:

> Hi, I just created a new wiki page
> 
> https://wiki.secondlife.com/wiki/Development_Environment_for_Multiple_Viewers
> that I'd like to bring under the attention of all linux developers.

One remark is about the strange use of the -p0 option for the patches...
Unified diffs (patches) are most usually produced with a command such as:
diff -urN original_source_tree/ patched_source_tree/ >resulting_patch.diff
which produces patches to apply with 'patch -p1' from inside the source tree
directory to patch (and AFAIK this method applies for pretty much all Linux
packaging systems).

> Although things might look scary at first and not work out-of-the box at
> first, I garantee that using this system will increase your productivity
> a lot on the long run. It's worth to put time into.

I got my own productivity tool which, as a bonus, allows to build and link
the viewer against a mixed set of libraries (system libs for the most common
libs, and LL's provided ones for exotic or Linden-patched libs), something
the viewer build system normally doesn't allow/isn't designed for.
It involves typing a simple command, e.g.:
cmake-SL /opt/SecondLife/12350
(with all sources, libs, archive tarballs/zips and patches (-p1 ones) held
in /opt/SecondLife/12350, here for viewer v1.23.5).

I also use it to prepare the sources for later compilation under Windows,
(e.g.: cmake-SL /opt/SecondLife/12350 --prep).

This tool has been reused and adapted by some third parties viewer 
developpers and you can therefore find it in several flavours (including
some allowing to retreive the source tree from svn repositories). Feel
free to reuse part of it for your own script.

My original versions are available here:

- for v1.19 and earlier viewers:
https://wiki.secondlife.com/wiki/User:Henri_Beauchamp/Automated_Linux_Build_Script_(1.20_and_earlier)

- for v1.20 and later viewers (including Snowglobe):
https://wiki.secondlife.com/wiki/User:Henri_Beauchamp/Building_the_viewer_with_CMake/cmake-SL_script

Note that I didn't test cmake-SL with Snowglobe 2.x (that viewer is simply
too much of a repellent because of its *unusable*, dumbified UI), but it
should work too with it (even if more options could be added in cmake-SL
to take into account the new libraries in Snowglobe such as qtwebkit and
stuff).

Henri.
_______________________________________________
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