[opensource-dev] Review Request: OPEN-38: autobuild support for StandAlone

Aleric Inglewood Aleric.Inglewood at gmail.com
Sat Feb 26 17:33:16 PST 2011



> On Feb. 26, 2011, 2:44 p.m., Boroondas Gupte wrote:
> > Can you give some instructions on how to do a standalone build with these changes? I tried the following:
> > 
> > patch -p1 < /home/das-g/slsrc/patches/autobuild-standalone.diff
> > autobuild install glh_linear
> > autobuild configure -c OpenSourceStandAloneRelWithDebInfo
> > 
> > but this fails with:
> > 
> > CMake Error at cmake/FindGLH.cmake:26 (message):
> >   Could not find GLH
> > 
> > 
> > Thanks

The usual way, you have to include the path where you installed your library to CMAKE_INCLUDE_PATH and CMAKE_LIBRARY_PATH.
For GLH just CMAKE_INCLUDE_PATH is enough since it only exists of headers.

hikaru:/usr/src/secondlife/viewers/snowstorm/viewer-autobuild>echo $CMAKE_INCLUDE_PATH
/usr/src/secondlife/llqtwebkit/install-imprudence/include:/usr/src/secondlife/viewers/snowstorm/viewer-autobuild/include:/sl/usr/include

hikaru:/usr/src/secondlife/viewers/snowstorm/viewer-autobuild>ls -l /usr/src/secondlife/viewers/snowstorm/viewer-autobuild/include
total 0
lrwxrwxrwx 1 aleric src 48 Feb 25 20:33 GL -> ../linden/build-linux-x86_64/packages/include/GL/
lrwxrwxrwx 1 aleric src 49 Feb 25 20:33 glh -> ../linden/build-linux-x86_64/packages/include/glh/
lrwxrwxrwx 1 aleric src 49 Feb 25 20:33 tut -> ../linden/build-linux-x86_64/packages/include/tut/

As you see, I created symbolic links in some random directory (that I then added to CMAKE_INCLUDE_PATH)
to whereever the respective packages are installed by an 'autobuild install'. I did that because
if you add */packages/include to CMAKE_INCLUDE_PATH it finds ALL packages that you installed,
which might not be what you want if you use the same source tree for standlone and non-standalone
testing.


- Aleric


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://codereview.secondlife.com/r/167/#review388
-----------------------------------------------------------


On Feb. 26, 2011, 6:56 a.m., Aleric Inglewood wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://codereview.secondlife.com/r/167/
> -----------------------------------------------------------
> 
> (Updated Feb. 26, 2011, 6:56 a.m.)
> 
> 
> Review request for Viewer.
> 
> 
> Summary
> -------
> 
> Oz: please merge into your repository.
> 
> 
> This addresses bug OPEN-38.
> 
> 
> Diffs
> -----
> 
>   indra/cmake/FindGLH.cmake PRE-CREATION 
>   indra/cmake/GLH.cmake PRE-CREATION 
>   indra/cmake/LLRender.cmake 5f0ab9443ece 
>   indra/cmake/LLSharedLibs.cmake 5f0ab9443ece 
>   indra/cmake/Linking.cmake 5f0ab9443ece 
>   indra/linux_crash_logger/CMakeLists.txt 5f0ab9443ece 
> 
> Diff: http://codereview.secondlife.com/r/167/diff
> 
> 
> Testing
> -------
> 
> configures, compiles, runs.
> 
> 
> Thanks,
> 
> Aleric
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.secondlife.com/pipermail/opensource-dev/attachments/20110227/0a44935b/attachment.htm 


More information about the opensource-dev mailing list