[osg-users] invalid use of incomplete type ‘std::ifstream in readNodeFile

Robert Osfield robert.osfield at gmail.com
Wed Sep 14 08:23:40 PDT 2016


Hi Kyungsoo,

Typical each of the CMake find scripts will have support for pointing
to a root directory of a project that it can find, for the OSG the env
var that the Cmake find scripts use is OSG_DIR.  In my .bashrc I just
set the env var OSG_DIR to my local OpenSceneGraph directory.

For future reference under Ubunutu 16.04 you'll find the CMake find
scripts located in:

     /usr/share/cmake-3.5/Modules

In this directory you'll find the official CMake scripts for finding
the various osg libraries, such as Findosg.cmake, FindosgUtil.cmake
etc.

If you install the OSG then you won't need to set the OSG_DIR env var
as CMake will check all the standard install locations for you, or at
least it should, for some reason it hasn't found all the OSG
components.  I'm not at your machine nor witnessed what steps you took
so can't speculate on why this might be.

Robert.





On 14 September 2016 at 16:06, kyungsoo hong <chesed71 at gmail.com> wrote:
> Hi,
>
> Thanks you
> I will tried several time to install for that,
> By the way, "CMake to my OpenSceneGraph
> directory using the OSG_DIR directory"
> how to do that,
>
> can you elaborate more ?
> 1. what is OpenSceneGraph? installed directory or source directory?
> 2. where do i declare OSG_DIR? in path?
>
>
> ...
>
> Thank you!
>
> Cheers,
> kyungsoo
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=68606#68606
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org



More information about the osg-users mailing list