Hello James,
what do you use? Linux or Windows? Did you build osg or did you use the
binaries?
I use Linux and osg from the repository. I don't need any extra setup, because
/usr/lib64/ is in the search path. By the way, I use the gcc-c++.
If I build osg, I export environment variables:
export OSG301_LIB=pathToOSG/lib64
export OSG301_INC=pathToOSG/include
And I use these in cmake:
NCLUDE_DIRECTORIES($ENV{OSG301_INC})
LINK_DIRECTORIES($ENV{OSG301_LIB})
Cheers,
Martin
-------- Original-Nachricht --------
> Datum: Fri, 2 Mar 2012 12:42:52 -0000
> Von: "Martin Naylor" <[email protected]>
> An: [email protected]
> Betreff: Re: [osg-users] Help compiling example program
> Hi James,
> Looks like it's an easy one to answer, so I will give it a go:
> It looks like the path to OSG is not set correctly or it doesn’t know
> where to find your include/lib files.
> The paths to OSG will need to added to your development environment, not
> sure what you are using.
>
>
> Regards
>
> Martin
>
>
>
> -----Original Message-----
> From: [email protected]
> [mailto:[email protected]] On Behalf Of James Morgan
> Sent: 02 March 2012 11:56
> To: [email protected]
> Subject: [osg-users] Help compiling example program
>
> Hi,
>
>
> Code:
> # g++ BasicGeometry.cpp
>
>
>
>
> Code:
> BasicGeometry.cpp:1:20: error: osg/Node: No such file or directory
> BasicGeometry.cpp:2:21: error: osg/Group: No such file or directory
> BasicGeometry.cpp:3:21: error: osg/Geode: No such file or directory
> BasicGeometry.cpp:4:24: error: osg/Geometry: No such file or directory
> BasicGeometry.cpp:5:25: error: osg/Texture2D: No such file or directory
> BasicGeometry.cpp:6:27: error: osgDB/ReadFile: No such file or directory
> BasicGeometry.cpp:7:28: error: osgViewer/Viewer: No such file or directory
> BasicGeometry.cpp:8:41: error: osg/PositionAttitudeTransform: No such file
> or directory
> BasicGeometry.cpp:9:38: error: osgGA/TrackballManipulator: No such file or
> directory
> BasicGeometry.cpp: In function ‘int main()’:
> BasicGeometry.cpp:12: error: ‘osgViewer’ has not been declared
> BasicGeometry.cpp:12: error: expected ‘;’ before ‘viewer’
> BasicGeometry.cpp:13: error: ‘osg’ has not been declared
>
> . . .
>
>
>
> I figure I need to set up some environment variable, but I can find
> nothing on the documentation page about how to do this. Help please, thanks.
>
> Cheers,
> James
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=45982#45982
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
--
NEU: FreePhone 3-fach-Flat mit kostenlosem Smartphone!
Jetzt informieren: http://mobile.1und1.de/?ac=OM.PW.PW003K20328T7073a
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org