Re: [osg-users] Eclipse and OSG
Hi all, # = console command line E# = action in Eclipse I take for project example OSG. 1) - Prepare the build system Eclipse don't know how work CMake so we need to prime the pump # svn checkout http://www.openscenegraph.org/svn/osg/OpenSceneGraph/trunkOpenSceneGraph # cd OpenSceneGraph # mkdir release cd release # cmake .. you are now ready to only use eclipse. So launch Eclipse. 1) - Eclipse use E# Menu - File -Switch workspace : choose the directory where OpenSceneGraph directory is. E# Menu - File - New - Project - General - Project : give the same name to the project that the directory where is the code. So OpenSceneGraph In the Project Explorer window, you have OpenSceneGraph [OpenSceneGraph/trunk] but this not yet a C++ Project E# Right click on this line - New - Convert to a C/C++ Make Project : Now this is a C/C++ project. Eclipse scan the project directory, index the code, found binaries, ... E# Menu - Project - Properties - C/C++ Build : change the build location and select OpenSceneGraph/release for me this look like this : ${workspace_loc:/OpenSceneGraph/release} E# Control + B : launch the build E# Menu - Project - Properties - Run/Debug Setting. Press the New button and select C/C++ Local Application. Set the Name (for example the name of the program) Set the C/C++ Application In the Environment Tab, define the OSG_LIBRARY_PATH if not already done in the Eclipse processus Environment Click the OK button E# Run - Open Run Dialog ... Choose your application and click the Run button. All work fine and you win. Hope help someone. Cheers David Callu ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Eclipse and OSG
Hi David, Thanks very much. The only problem am now having is that when I run, I get the error message: Error launching OpenSceneGraph. Reason: Java.lang.NullPointerException. Have you got the same error before or could you please guide me on how to go about it. Thanks alot. Felix On 9/5/07, David Callu [EMAIL PROTECTED] wrote: Hi all, # = console command line E# = action in Eclipse I take for project example OSG. 1) - Prepare the build system Eclipse don't know how work CMake so we need to prime the pump # svn checkout http://www.openscenegraph.org/svn/osg/OpenSceneGraph/trunkOpenSceneGraph # cd OpenSceneGraph # mkdir release cd release # cmake .. you are now ready to only use eclipse. So launch Eclipse. 1) - Eclipse use E# Menu - File -Switch workspace : choose the directory where OpenSceneGraph directory is. E# Menu - File - New - Project - General - Project : give the same name to the project that the directory where is the code. So OpenSceneGraph In the Project Explorer window, you have OpenSceneGraph [OpenSceneGraph/trunk] but this not yet a C++ Project E# Right click on this line - New - Convert to a C/C++ Make Project : Now this is a C/C++ project. Eclipse scan the project directory, index the code, found binaries, ... E# Menu - Project - Properties - C/C++ Build : change the build location and select OpenSceneGraph/release for me this look like this : ${workspace_loc:/OpenSceneGraph/release} E# Control + B : launch the build E# Menu - Project - Properties - Run/Debug Setting. Press the New button and select C/C++ Local Application. Set the Name (for example the name of the program) Set the C/C++ Application In the Environment Tab, define the OSG_LIBRARY_PATH if not already done in the Eclipse processus Environment Click the OK button E# Run - Open Run Dialog ... Choose your application and click the Run button. All work fine and you win. Hope help someone. Cheers David Callu ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Eclipse and OSG
Hi felix, This mean you try to run a Java application. Are you sure that : - your project is know by eclipse like a C/C++ project ? - your do E# Menu - Run - Open Run Dialog - Select C/C++ Application and click the New button ? David 2007/9/5, Felix Bwire [EMAIL PROTECTED]: Hi David, Thanks very much. The only problem am now having is that when I run, I get the error message: Error launching OpenSceneGraph. Reason: Java.lang.NullPointerException. Have you got the same error before or could you please guide me on how to go about it. Thanks alot. Felix On 9/5/07, David Callu [EMAIL PROTECTED] wrote: Hi all, # = console command line E# = action in Eclipse I take for project example OSG. 1) - Prepare the build system Eclipse don't know how work CMake so we need to prime the pump # svn checkout http://www.openscenegraph.org/svn/osg/OpenSceneGraph/trunkOpenSceneGraph # cd OpenSceneGraph # mkdir release cd release # cmake .. you are now ready to only use eclipse. So launch Eclipse. 1) - Eclipse use E# Menu - File -Switch workspace : choose the directory where OpenSceneGraph directory is. E# Menu - File - New - Project - General - Project : give the same name to the project that the directory where is the code. So OpenSceneGraph In the Project Explorer window, you have OpenSceneGraph [OpenSceneGraph/trunk] but this not yet a C++ Project E# Right click on this line - New - Convert to a C/C++ Make Project : Now this is a C/C++ project. Eclipse scan the project directory, index the code, found binaries, ... E# Menu - Project - Properties - C/C++ Build : change the build location and select OpenSceneGraph/release for me this look like this : ${workspace_loc:/OpenSceneGraph/release} E# Control + B : launch the build E# Menu - Project - Properties - Run/Debug Setting. Press the New button and select C/C++ Local Application. Set the Name (for example the name of the program) Set the C/C++ Application In the Environment Tab, define the OSG_LIBRARY_PATH if not already done in the Eclipse processus Environment Click the OK button E# Run - Open Run Dialog ... Choose your application and click the Run button. All work fine and you win. Hope help someone. Cheers David Callu ___ 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] Eclipse and OSG
Hi David, that is exactly what I am doing. the problem is that it is not giving any binaries. Otherwise, am still trying to figure out what exactly it is. I even tried eclipse for only c++. Am really grateful for the guidance you're giving me. Let me try again and I will inform you on progress. Thanx, Felix On 9/5/07, David Callu [EMAIL PROTECTED] wrote: Hi felix, This mean you try to run a Java application. Are you sure that : - your project is know by eclipse like a C/C++ project ? - your do E# Menu - Run - Open Run Dialog - Select C/C++ Application and click the New button ? David 2007/9/5, Felix Bwire [EMAIL PROTECTED]: Hi David, Thanks very much. The only problem am now having is that when I run, I get the error message: Error launching OpenSceneGraph. Reason: Java.lang.NullPointerException. Have you got the same error before or could you please guide me on how to go about it. Thanks alot. Felix On 9/5/07, David Callu [EMAIL PROTECTED] wrote: Hi all, # = console command line E# = action in Eclipse I take for project example OSG. 1) - Prepare the build system Eclipse don't know how work CMake so we need to prime the pump # svn checkout http://www.openscenegraph.org/svn/osg/OpenSceneGraph/trunkOpenSceneGraph # cd OpenSceneGraph # mkdir release cd release # cmake .. you are now ready to only use eclipse. So launch Eclipse. 1) - Eclipse use E# Menu - File -Switch workspace : choose the directory where OpenSceneGraph directory is. E# Menu - File - New - Project - General - Project : give the same name to the project that the directory where is the code. So OpenSceneGraph In the Project Explorer window, you have OpenSceneGraph [OpenSceneGraph/trunk] but this not yet a C++ Project E# Right click on this line - New - Convert to a C/C++ Make Project : Now this is a C/C++ project. Eclipse scan the project directory, index the code, found binaries, ... E# Menu - Project - Properties - C/C++ Build : change the build location and select OpenSceneGraph/release for me this look like this : ${workspace_loc:/OpenSceneGraph/release} E# Control + B : launch the build E# Menu - Project - Properties - Run/Debug Setting. Press the New button and select C/C++ Local Application. Set the Name (for example the name of the program) Set the C/C++ Application In the Environment Tab, define the OSG_LIBRARY_PATH if not already done in the Eclipse processus Environment Click the OK button E# Run - Open Run Dialog ... Choose your application and click the Run button. All work fine and you win. Hope help someone. Cheers David Callu ___ 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] Eclipse and OSG
Hi Felix, now I am able to run the osg applications such as osgviewer, osgconv, osgarchive and osgversion. Great. My question is, if I am to create a program, do I do so under the same OpenSceneGraph directory or it has to be a different one. And Understand that Eclipse is just a front-end for your development tool-chain (emacs, gcc, gdb). If your application could be launch in a console without eclipse, your environment is well defined. I mean to say your 3rdparty library directory or everything need by your program is accessible. Else you need to adjust your environment. It's the same thing for eclipse, but you can define specific Environment variable for each application E# Menu - Run - Open Run Dialog ... - choose your application - Envirnment Tab -New To have completion in case you use different workspace. E# Menu - Project - Properties - C/C++ General - Path and Symbols - Includes Tab add header directory of the library you need. thereafter, what do I do. I am not sure to understand the question. Coding your project perhaps :-) HTH Cheers David ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] Eclipse and OSG
Hi osg-users, Hi Felix This is not a real OSG topic but more an eclipse topic. Felix have problem to launch osg application with eclipse so i will try to do a small tutorial to HOWTO use OSG with eclipse. Felix i need to finish the osg compilation to finish the tutorial and test it. wait a couple of hours and stop to mail in all thread :-), I speed up. Cheers David Callu ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org