> 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
> 
>

_______________________________________________
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