Harald A. wrote:
hallo to all
building osg and installing it to default --prefix location is no problem
but
now I moved all my osg 1.2 stuff to ~/local so that I can run my existing
code
than I checked out all new sources from svn
and wanted to install them to ~/local/osgsvn/
maybe I am a little bit naiv, I am complete new to cmake
but after reading little bit documentatoin I hoped that this will work
#!/bin/bash
export CMAKE_INCLUDE_PATH=/home/harri/local/osgsvn/include
export CMAKE_LIBRARY_PATH=/home/harri/local/osgsvn/lib
export CMAKE_INSTALL_PREFIX=/home/harri/local/osgsvn/
BASEDIR=$(pwd) ;
Where do you call cmake?
in oredr to change cmake install prefix, either you use the edit_cache
suggested or you can also specify settings on the command line of the
cmake call itself
cmake -DCMAKE_INSTALL_PREFIX=<your prefix install path> <source path>
the -D<variable>=<value> is general way of setting variables
if current folder is differnt than <source path> you have an out of
source build, otherwise you have an in-source build
for DIR in OpenThreads Producer OpenSceneGraph osgProducer
do
cd $BASEDIR"/"$DIR
make -f Makefile install
done
As far as I know, cmake support is not available yet for Producer and
osgProducer
but
CMAKE_INSTALL_PREFIX is ignored, I think the rest also, didn't try after
make install of OpenThreads faild because OpenThreads wanted to install to
/usr/local
I tried a lot of other stuff (for hours now) controlling/passing --prefix
CXXFLAGS and LDFLAGS to the build process without changing the same stuff
in every part of osg (OpenThreads Producer OpenSceneGraph osgProducer) but
I had no luck
Also my trials with the GNUmakefile faild, because CXXFLAGS and LDFLAGS
are ignored and calling make -e istn't the best choice/idea
(so i think that this post istn't svn versoin realated only, but these
problems are new to me because last installation was to defalut locations)
Is there no way to control the build/install process without doing a lot
of reduntant changes in the cmake - make/* files for each directory?
lg
harri
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/