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

