Hi guys,

i am trying to use OpenSG under Windows XP with Microsoft Visual Studio 2008 
(SP1) (VC9). I can compile and build my applications, but every executable 
crashes at startup.
Here a few information about my long way to osg under windows. At first I have 
tried to use the precompiled version from the opensg homepage. This version is 
incompatible to VC9. Next I download the most recent version of osg 1.8 from 
cvs. I compile it with the following commando line options:
scons -j 4 compiler=msvc90 qt4="D:\Qt\2009.03\qt" type=both exr=no
I removed exr because the linker produce errors 
(http://www.mail-archive.com/[email protected]/msg11430.html ).
Anymore I have removed the Tools and Tutorials directory, because it was also 
buggy.
Scons generate 6 dlls (OSGBase.dll, OSGSystem.dll, OSGWindowGLUT.dll, 
OSGWindowQT4.dll, OSGWindowWIN32.dll and only one dll with debug information 
OSGBaseD.dll). It seems the compilation has ended correctly.

Ok, now I have dlls and libs for my one projects.

I tried a simple commando line program to test opensg.
#include <iostream>
#include <OpenSG/OSGConfig.h>
#include <OpenSG/OSGNode.h>
#include <OpenSG/OSGSimpleGeometry.h>
OSG_USING_NAMESPACE;
using namespace std;
int main()
{
        cout << "OSGTEST" << endl;
        NodePtr scene = makeTorus(.5, 2, 16, 16); // crashes here
        return 0;
}

I have configured all include paths, additional libs... the program compiles 
fine, but it crashes at line 10 with a unhandled exception.
I don't know why. The examples an tutorial projects have a similar behavior. 

Is anybody using OSG with VC9 and can produce valid binaries? Is there any 
actual tutorial for using osg under windows? Or some working project files for 
comparing? I guess this are problems with a correct linking of the files. But I 
have working for 2 days and find no solution.

Yours, Johannes.

--
Johannes Schäfer, B.Sc.
Studentischer Mitarbeiter
Geschäftsfeld Virtuelle Produktentstehung
Fraunhofer-Institut für Produktionsanlagen und Konstruktionstechnik IPK
Pascalstraße 8-9
10587 Berlin
Tel.: +49 (0)30 / 3 90 06-266
Fax: +49 (0)30 / 3 91 10 37
mailto:[email protected]
http://www.ipk.fraunhofer.de

Das Fraunhofer IPK ist DQS-zertifiziert nach ISO 9001:2008.

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to