Hello Johannes,

On 08/24/10 10:09, Johannes Zarl wrote:
> I have some minor problems with the FindOpenSG.cmake script:
> When installing OpenSG2, the default library directory is PREFIX/lib64. 
> However,
> the FindOpenSG script searches only for PREFIX/lib.

This works fine here and I don't think it needs to be changed, cmake 
handles the lib/lib64 thing internally. Most modules that come with it 
don't have an explicit lib64 either.
Does it cause problems for you, can you give some more details?

> Another issue that did come up
> is that you can't call find_package(OpenSG) more than once, because the script
> imports the OpenSG-libraries and cmake can't have a library defined more than 
> once.
>
> I have included a patch below, which adds lib64 to the library search paths 
> and only
> imports the libraries once. Can someone have a look at it and maybe 
> incorporate it
> in the repository?

thanks for the patch, I've applied the change to only do the library 
setup once in r2480.

> My second problem is related to osg2-config:
> For some reason, the boost include directory is not added to osg2-config. For 
> this
> reason I get errors like this one all over the place:
> jkuvrc/packages/OpenSG/OpenSG-2.0.0-pre1-svn2422-boost_1_43_0/include/OpenSG/OSGBaseTypes.h:50:28:
>  error: boost/mpl/if.hpp: No such file or directory
>
> The IMO relevant section of osg2-config is:
> ## Dependecies for OSGBase
>
> "OSGBase" : {
>      "dep_osg_lib"  :  [ ],
>      "dep_lib"  :  [ "dl",  "pthread",  ],
>      "dep_lib_dir"  :  [ "/usr/lib64",  ],
>      "dep_inc_dir"  :  [ ],
> },
>
> I guess the boost-include-directory should show up here inside "dep_inc_dir"?
> How can I influence the value for this, so I can supply a patch?

yes, osg2-config is not in very good shape unfortunately. The problem is 
that some of the library dependencies are handled as imported library 
targets and others just as regular libs. This makes writing the 
information for osg2-config a bit tricky.
The osg2-config script is produced from three parts during a cmake run, 
part 1 and 3 are in the CMake directory and part 2 is written from the 
function OSG_STORE_PROJECT_DEPENDENCIES in CMake/BuildFunctions.cmake. 
If you want to look into this it is probably a good idea to put 
-DOSG_VERBOSE_BUILD_MESSAGES=ON on the cmake command line, this prints 
information about the configuration of OpenSG libs.

        Cheers,
                Carsten

------------------------------------------------------------------------------
Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
Be part of this innovative community and reach millions of netbook users 
worldwide. Take advantage of special opportunities to increase revenue and 
speed time-to-market. Join now, and jumpstart your future.
http://p.sf.net/sfu/intel-atom-d2d
_______________________________________________
Opensg-users mailing list
Opensg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to