Hello Simon,

Simon Su wrote:
> (Hi Carsten,  How are you? It has been a long time.... I hope everything 
> is well with you... :))

doing alright here, thanks :)

> Question... 1. Is cmake the only compiling options for OpenSG from r1622 
> onwards (ie 1874)? Will something like this

the scons build was removed sometime between r1622 and r1874 (don't know 
the exact revision right now), and cmake is the only maintained option.

> python Tools/scons-local/scons.py 
> BoostBaseDir=/usr/local/tools/boost/boost-1.36.0/centos5.x86_64.gcc-4.1.2.release
>  
> collada_incdir=/usr/local/tools/collada-dom/collada-dom-2.1.0/centos5.x86_64.gcc-4.1.2.release/include/colladadom
>  
> collada_libdir=/usr/local/tools/collada-dom/collada-dom-2.1.0/centos5.x86_64.gcc-4.1.2.release/lib
>  
> var_arch=x64 var_type=optimized 
> prefix=/usr/local/tools/opensg/opensg-2.0.0-r1590/centos5.x86_64.gcc-4.1.2.boost-1.36.0.release
>  
> install -j6
> still works?

an equivalent would be something like:

// in the top level opensg directory:
mkdir build; cd build
cmake -DBOOST_ROOT=/usr/local/[..]/centos5.x86_64.gcc-4.1.2.release 
-DCOLLADA_ROOT_DIR=/usr/local/[..]/centos5.x86_64.gcc-4.1.2.release
-DCMAKE_BUILD_TYPE=Release 
-DCMAKE_INSTALL_PREFIX=/usr/local/tools/opensg/opensg-2.0.0-r1590/centos5.x86_64.gcc-4.1.2.boost-1.36.0.release
  ..

make install -j6

> 2. I used cmake to compile svn co r1874 and I got the following error 
> message.
> 
> - sniped--
> [ 90%] Built target testSHLSharedParameters_compat
> [ 90%] Built target testSHLSharedParameters_shaderprog
> [ 90%] Built target testSHL_compat
> [ 90%] Built target testImageLoader
> [ 90%] Built target testPerfMonitorForeground
> [ 90%] Built target testStatisticsRender
> Linking CXX executable ../bin/testStereoDecorator
> /usr/local/tools/collada-dom/collada-dom-2.2.0/vis.Linux-2.6.18-128.1.1.el5.x86_64.gcc-4.1.2.release/lib/libcollada14dom.so:
>  
> undefined reference to 
> `boost::filesystem::create_directory(boost::filesystem::path const&)'
[SNIP - more undef references]
>
> CMakeCache.txt file is attached. I tried it with boost 1.38 and its 
> reporting the same thing. I even created a soft link to 
> libboost_filesystem.so  but its not helping.  But, if I used the system 
> installed boost (1.33), it compiles ok.

make sure the collada dom libraries are compiled with the same version 
of boost than what you use for OpenSG otherwise applications (like the 
test programs) end up using two different versions of boost, which does 
not work. You may have to poke a bit around in the collada dom build as 
by default it just picks the system boost.

        Cheers,
                Carsten

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensign option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to