[osg-users] [osgOcean] When build new project, can not open osgOceanD.lib
Hi, I'm a chinese student. I have complied the osgOcean successfully. I can run the oceanExample, and do everything in its "applicantion.cpp". But now, I meet a problem: If I make a new project, when run the code, it alway declare an error: LINK : fatal error LNK1181: 无法打开输入文件“..\..\lib\Debug\osgOceanD.lib”, (Cannot open the input file:osgOceanD.lib) My osgOceanD.lib is located in F:\OSG\osgOcean\build\lib\Debug, and I also add this path to "TOOLS—>Option —>Directories-> Library Files". In the Windows PATH, I add "F:\OSG\osgOcean\build\bin\Debug". So, I need to know how to solve this problem. Thank you! Cheers, Han Following is the test code: #include #include #include #include #include int main() { osg::ref_ptr viewer =new osgViewer::Viewer; viewer->setUpViewInWindow(150,150,1024,768,0);//setUpViewInWindow(150,150,1024,768,0); osg::ref_ptr oceanSurface= new osgOcean::FFTOceanSurface(64,256,17,osg::Vec2(1.1f,1.1f),12.0f,1000.0f,0.8f,1e-8,true,2.5,10.f,256); osg::ref_ptr oceanScene=new osgOcean::OceanScene(oceanSurface.get()); viewer->addEventHandler(oceanSurface->getEventHandler()); viewer->addEventHandler(oceanSurface->getEventHandler()); osgGA::TrackballManipulator *tb = new osgGA::TrackballManipulator; tb->setHomePosition(osg::Vec3f(0.0,0.0f,20.0),osg::Vec3f(0.0f,20.0f,20.0f),osg::Vec3f(0,0,1)); viewer->setCameraManipulator(tb); viewer->setSceneData(oceanSurface); viewer->run(); return 0; } This code is ok when copy to "applicantion.cpp", but can't be use in new any projects. -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=46579#46579 Attachments: http://forum.openscenegraph.org//files/ll_334.png ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] [osgOcean] Dose anybody has other learing resources about osgOcean?
Hi, Kim, Thank your for your help. I will try to read the code myself. If I meet some problems that make me confused, I'll send massage to you for help. Regards, Han kcbale wrote: > Hi Han, > > I'm the author of the code, if you can be more specific about what you want > to know maybe I can help you. > > > There isn't any documentation, only the example program to guide your way I'm > afraid. > > > Regards, > > > Kim. > > > On 6 April 2012 08:02, Han Wang < ()> wrote: > > > Hi, > > I find it difficult to learn the osgOcean by reading the source code only. > > In addition, the document of this code is not very specific. > > > > So, I need some other guidebook or some similar documents, which can help > > me to understand the osgOcean quickly(No special detailed). > > > > Thank you! > > > > Cheers, > > Han Wang > > > > -- > > Read this topic online here: > > http://forum.openscenegraph.org/viewtopic.php?p=46894#46894 > > (http://forum.openscenegraph.org/viewtopic.php?p=46894#46894) > > > > > > > > > > > > ___ > > osg-users mailing list > > () > > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > (http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org) > > > > > -- > Post generated by Mail2Forum -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=47061#47061 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] [osgOcean] Dose anybody has other learing resources about osgOcean?
Hi, I find it difficult to learn the osgOcean by reading the source code only. In addition, the document of this code is not very specific. So, I need some other guidebook or some similar documents, which can help me to understand the osgOcean quickly(No special detailed). Thank you! Cheers, Han Wang -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=46894#46894 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org