Re: [osg-users] Help compiling example program
Hi, I see. I guess I just assumed the libraries and headers were installed with 'apt-get install openscenegraaph' because I wasn't sure what else openscenegraph might comprise... Anyway, I have another problem now. Trying to compile the example program (using g++) gives me lots of undefined reference errors, however I see that my headers have been installed to /usr/include/ and my libraries to /usr/lib. ? Thank you! Cheers, James -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=46060#46060 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Help compiling example program
James Morgan writes: Hi, I see. I guess I just assumed the libraries and headers were installed with 'apt-get install openscenegraaph' because I wasn't sure what else openscenegraph might comprise... In the description for openscenegraph, it says: This package contains utilities and examples (binaries). libopenscenegraph-dev says: This package contains the development headers.. Anyway, I have another problem now. Trying to compile the example program (using g++) gives me lots of undefined reference errors, however I see that my headers have been installed to /usr/include/ and my libraries to /usr/lib. ? This is more a C++ question than an OSG one. At link time, you have also to specify which libraries you need (-losg -losgViewer ...) -- Alberto ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Help compiling example program
Hi James, Yes sorry that is a link for building OSG itself. Although for Windows it tells you to add the paths to your environment... I think it does for Linux as well. Think Robert may have hit the nail on the head with libopenscenergaph-dev, that would make sense why you cannot find any headers or includes... Cheers Martin. -Original Message- From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of James Morgan Sent: 02 March 2012 20:46 To: osg-users@lists.openscenegraph.org Subject: Re: [osg-users] Help compiling example program Hi, Sorry guys, I know you're probably explaining things perfectly clearly and it's just me. But this is all jargon to me. Martin Naylor: That link is a guide to building what under Unices? OSG, or applications that use it? I installed using apt; this means I can skip the part about dependencies right? This link doesn't say what each of these steps is doing and why one would need it. I'm sure it's obvious you most of you, but my mind wasn't wired for this kind of stuff. Also, this guide is about make, not g++. I ran Code: # dpkg -L openscenegraph and my output was a bunch of stuff in the /usr/bin/ directory, a bunch of stuff in the /usr/share/man/man1 directory, and some stuff in the /usr/share/openscenegraph/ directory. Doing Code: ls /usr/lib | grep osg or Code: ls /usr/lib64 | grep osg or Code: ls /usr/include/ | grep osg yields nothing. Again, I installed OSG from using apt-get. Please help. I don't know exactly what I'm asking for because I don't know exacctly what I need at this point. Thanks for your patience. Thank you! Cheers, James -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=46002#46002 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Help compiling example program
Hi James, Code: ls /usr/include/ | grep osg yields nothing. Again, I installed OSG from using apt-get. Please help. I don't know exactly what I'm asking for because I don't know exacctly what I need at this point. Thanks for your patience. Did you install libopenscenergaph-dev? You need the -dev to get the headers. Robert. ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[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 osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Help compiling example program
-Original Message- From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of James Morgan Sent: 02 March 2012 11:56 To: osg-users@lists.openscenegraph.org 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 osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
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: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of James Morgan Sent: 02 March 2012 11:56 To: osg-users@lists.openscenegraph.org 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 osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Help compiling example program
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 - Von: Martin Naylor martinnay...@virginmedia.com An: osg-users@lists.openscenegraph.org 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: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of James Morgan Sent: 02 March 2012 11:56 To: osg-users@lists.openscenegraph.org 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 osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org ___ osg-users mailing list osg-users@lists.openscenegraph.org 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 osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Help compiling example program
Hi James, Sorry just noticed you are using g++ as your compiler. http://www.openscenegraph.org/projects/osg/wiki/Support/UserGuides/Make Is that what you need? Cheers Martin -Original Message- From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of James Morgan Sent: 02 March 2012 11:56 To: osg-users@lists.openscenegraph.org 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 osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Help compiling example program
Hi, Sorry guys, I know you're probably explaining things perfectly clearly and it's just me. But this is all jargon to me. Martin Naylor: That link is a guide to building what under Unices? OSG, or applications that use it? I installed using apt; this means I can skip the part about dependencies right? This link doesn't say what each of these steps is doing and why one would need it. I'm sure it's obvious you most of you, but my mind wasn't wired for this kind of stuff. Also, this guide is about make, not g++. I ran Code: # dpkg -L openscenegraph and my output was a bunch of stuff in the /usr/bin/ directory, a bunch of stuff in the /usr/share/man/man1 directory, and some stuff in the /usr/share/openscenegraph/ directory. Doing Code: ls /usr/lib | grep osg or Code: ls /usr/lib64 | grep osg or Code: ls /usr/include/ | grep osg yields nothing. Again, I installed OSG from using apt-get. Please help. I don't know exactly what I'm asking for because I don't know exacctly what I need at this point. Thanks for your patience. Thank you! Cheers, James -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=46002#46002 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org