Hi everyone,

I tried to get my first own OSG application to work (well, it's not my own, but 
a hello world example). But something seems wrong...

I followed the guide here about setting up your first app:

I wanted to create the project in an own space, not in the OpenSceneGraph 
directory, and not include it in the OSG main solution. That's OK, right?

I created the CMakeList as instructed in link above and pointed out all the 
necessary OSG includes and libs (in my OSGInstall folder). 

I can build it fine in VS10, but when I try to run it, I get the following:

> 'OSGTest.exe': Loaded 'C:\johasl\Dev\OSGTest\build\Release\OSGTest.exe', 
> Binary was not built with debug information.
> 'OSGTest.exe': Loaded 'C:\Windows\System32\ntdll.dll', Cannot find or open 
> the PDB file
> 'OSGTest.exe': Loaded 'C:\Windows\System32\kernel32.dll', Cannot find or open 
> the PDB file
> 'OSGTest.exe': Loaded 'C:\Windows\System32\KernelBase.dll', Cannot find or 
> open the PDB file
> 'OSGTest.exe': Loaded 'C:\Windows\System32\sysfer.dll', Cannot find or open 
> the PDB file
> 'OSGTest.exe': Loaded 
> 'C:\johasl\OpenSceneGraph-3.0.1\build\bin\osg80-osg.dll', Binary was not 
> built with debug information.
> 'OSGTest.exe': Loaded 
> 'C:\johasl\OpenSceneGraph-3.0.1\build\bin\ot12-OpenThreads.dll', Binary was 
> not built with debug information.
> 'OSGTest.exe': Loaded 'C:\Windows\System32\msvcr100.dll', Cannot find or open 
> the PDB file
> 'OSGTest.exe': Loaded 'C:\Windows\System32\msvcp100.dll', Cannot find or open 
> the PDB file
> 'OSGTest.exe': Loaded 'C:\Windows\System32\opengl32.dll', Cannot find or open 
> the PDB file
> 'OSGTest.exe': Loaded 'C:\Windows\System32\msvcrt.dll', Cannot find or open 
> the PDB file
> 'OSGTest.exe': Loaded 'C:\Windows\System32\advapi32.dll', Cannot find or open 
> the PDB file
> 'OSGTest.exe': Loaded 'C:\Windows\System32\sechost.dll', Cannot find or open 
> the PDB file
> 'OSGTest.exe': Loaded 'C:\Windows\System32\rpcrt4.dll', Cannot find or open 
> the PDB file
> 'OSGTest.exe': Loaded 'C:\Windows\System32\gdi32.dll', Cannot find or open 
> the PDB file
> 'OSGTest.exe': Loaded 'C:\Windows\System32\user32.dll', Cannot find or open 
> the PDB file
> 'OSGTest.exe': Loaded 'C:\Windows\System32\lpk.dll', Cannot find or open the 
> PDB file
> 'OSGTest.exe': Loaded 'C:\Windows\System32\usp10.dll', Cannot find or open 
> the PDB file
> 'OSGTest.exe': Loaded 'C:\Windows\System32\glu32.dll', Cannot find or open 
> the PDB file
> 'OSGTest.exe': Loaded 'C:\Windows\System32\ddraw.dll', Cannot find or open 
> the PDB file
> 'OSGTest.exe': Loaded 'C:\Windows\System32\dciman32.dll', Cannot find or open 
> the PDB file
> 'OSGTest.exe': Loaded 'C:\Windows\System32\setupapi.dll', Cannot find or open 
> the PDB file
> 'OSGTest.exe': Loaded 'C:\Windows\System32\cfgmgr32.dll', Cannot find or open 
> the PDB file
> 'OSGTest.exe': Loaded 'C:\Windows\System32\oleaut32.dll', Cannot find or open 
> the PDB file
> 'OSGTest.exe': Loaded 'C:\Windows\System32\ole32.dll', Cannot find or open 
> the PDB file
> 'OSGTest.exe': Loaded 'C:\Windows\System32\devobj.dll', Cannot find or open 
> the PDB file
> 'OSGTest.exe': Loaded 'C:\Windows\System32\dwmapi.dll', Cannot find or open 
> the PDB file
> 'OSGTest.exe': Loaded 
> 'C:\johasl\OpenSceneGraph-3.0.1\build\bin\osg80-osgDB.dll', Binary was not 
> built with debug information.
> 'OSGTest.exe': Loaded 
> 'C:\johasl\OpenSceneGraph-3.0.1\build\bin\osg80-osgUtil.dll', Binary was not 
> built with debug information.
> 'OSGTest.exe': Loaded 'C:\johasl\3rdParty\x64\bin\zlib1.dll', Binary was not 
> built with debug information.
> 'OSGTest.exe': Loaded 
> 'C:\johasl\OpenSceneGraph-3.0.1\build\bin\osg80-osgViewer.dll', Binary was 
> not built with debug information.
> 'OSGTest.exe': Loaded 
> 'C:\johasl\OpenSceneGraph-3.0.1\build\bin\osg80-osgGA.dll', Binary was not 
> built with debug information.
> 'OSGTest.exe': Loaded 
> 'C:\johasl\OpenSceneGraph-3.0.1\build\bin\osg80-osgText.dll', Binary was not 
> built with debug information.
> 'OSGTest.exe': Loaded 'C:\Windows\System32\imm32.dll', Cannot find or open 
> the PDB file
> The program '[6740] OSGTest.exe: Native' has exited with code 0 (0x0).


Here's the whole code of my Hello World example :P

> #include <osg/Node>
> #include <osgDB/ReadFile> 
> #include <osgViewer/Viewer>
> #include <osgGA/TrackballManipulator>
> 
> int main() 
> {
>       osg::Node* sweTer = NULL;
> 
>       sweTer = osgDB::readNodeFile("cow.osg");   // OSG-DATA folder is set on 
> env. var.
> 
>       osg::Group* root = new osg::Group();
>       root->addChild(sweTer); 
> 
>       // Declare a 'viewer'
>       osgViewer::Viewer viewer;
> 
>       // above to this viewer:
>       viewer.setSceneData( root );
> 
>       // attach a trackball manipulator to all user control of the view
>       viewer.setCameraManipulator(new osgGA::TrackballManipulator);
> 
>       // create the windows and start the required threads.
>       viewer.realize();
> 
>       while( !viewer.done() )
>       {
>          viewer.frame();
>       }
> 
>       return 0;
> }


Do you know what might be wrong? 

Thank you!

Cheers,
Johan

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=55157#55157





_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to