Hi Harald,

Try make help on osgProducer and Producer, these will give you the
listing of how to install to specific places.  There are also env vars
that osgProducer and Producer pick up on OpenThreads, Producer and OSG
(I've just added this one so svn update) :


OPENTHREADS_INC_DIR
OPENTHREADS_LIB_DIR

PRODUCER_INC_DIR
PRODUCER_LIB_DIR

OSG_INC_DIR
OSG_LIB_DIR

Robert.


On 3/20/07, Harald A. <[EMAIL PROTECTED]> wrote:
thank you for the hint cmake -D..., built works now for OpenThread and
OpenSceneGraph

Producer doesn't build with cmake at the moment, showing a message about
OpenThreads_DIR witch should point to OpenThreadsConfig.cmake's directory,
but this file does not exist (at the moment, maybee I have ti change
something for OpenThreads built)
OpenSceneGraph finds OpenThreads

osgProducer use just the GNUmakefile, so my next challenge is to find out
how I can tell the GNUmakefile to look for include in ~/... and link
against libs in ~/...

help is realy welcomme, because it would be great to have an automated
build which requires no user interaktion beside looking for build errors

lg
harri


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



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

Reply via email to