Hi,

Schaefer Johannes wrote:
> Hi gerrit.
> 
>> Without much knowledge of what is actually happening, e.g. what you
>> compile/link with which settings, I would guess that you compile your
>> simeng2.lib with static runtime settings and than try to link
>> the dynamic OpenSG libs while linking you application, which is
>> not going to work. You have to build everything that uses OpenSG
>> with dynamic runtime settings, even if it is a static lib.
> 
> Do you mean the /MD flag for the compiler? Both projects were build with 
> Multithreaded-DLL option.

partially, see below.

> Here my commando line for the lib: compiler:
> /O2 /Oi /GL /I "D:\Dokumente und Einstellungen\jschaefer\Eigene 
> Dateien\Programmierung\supportlibs\include" /I "D:\Dokumente und 
> Einstellungen\jschaefer\Eigene 
> Dateien\Programmierung\OpenSG\Build\win32-msvc90\installed\include" /I 
> "D:\Dokumente und Einstellungen\jschaefer\Eigene 
> Dateien\Programmierung\pthreads\Pre-built.2\include" /I "D:\Dokumente und 
> Einstellungen\jschaefer\Eigene Dateien\Visual Studio 
> 2008\Projects\simeng2\src" /I "D:\Dokumente und 
> Einstellungen\jschaefer\Eigene Dateien\Programmierung\boost_1_39_0" /I 
> "D:\Dokumente und Einstellungen\jschaefer\Eigene Dateien\Visual Studio 
> 2008\Projects\vrag\src" /D "WIN32" /D "NDEBUG" /D "_LIB" /D 
> "_USE_MATH_DEFINES" /D "OSG_DEBUG" /D "OSG_WITH_GLUT" /D "_UNICODE" /D 
> "UNICODE" /FD /EHsc /MD /Fo"Release\\" /Fd"Release\vc90.pdb" /W3 /nologo /c 
> /Zi /TP /errorReport:prompt
> 
> And lib maker:
> /OUT:"D:\Dokumente und Einstellungen\jschaefer\Eigene Dateien\Visual Studio 
> 2008\Projects\simeng2\Release\simeng2.lib" /NOLOGO /LTCG
> 
> The produced lib is about 160mb big. It seems that everything is integrated 
> in this lib (all osg libs...).
> 
> The commando line for my application: compiler:
> /I "D:\Dokumente und Einstellungen\jschaefer\Eigene Dateien\Visual Studio 
> 2008\Projects\simeng2\src" /I "D:\Dokumente und 
> Einstellungen\jschaefer\Eigene Dateien\Visual Studio 2008\Projects\vrag\src" 
> /I "D:\Dokumente und Einstellungen\jschaefer\Eigene 
> Dateien\Programmierung\boost_1_39_0" /I "D:\Dokumente und 
> Einstellungen\jschaefer\Eigene 
> Dateien\Programmierung\pthreads\Pre-built.2\include" /I "D:\Dokumente und 
> Einstellungen\jschaefer\Eigene 
> Dateien\Programmierung\OpenSG\Build\win32-msvc90\installed\include" /I 
> ".\GeneratedFiles" /I "C:\Qt\2009.03\qt\include" /I 
> ".\GeneratedFiles\Release" /I "C:\Qt\2009.03\qt\include\QtCore" /I 
> "C:\Qt\2009.03\qt\include\QtGui" /I "C:\Qt\2009.03\qt\include\QtOpenGL" /I 
> ".\\" /D "UNICODE" /D "WIN32" /D "QT_THREAD_SUPPORT" /D "QT_NO_DEBUG" /D 
> "NDEBUG" /D "QT_CORE_LIB" /D "QT_GUI_LIB" /D "QT_OPENGL_LIB" /D "OSG_WITH_QT" 
> /FD /EHsc /MD /Zc:wchar_t- /Fo"Release\\" /Fd"Release\vc90.pdb" /nologo /c 
> /TP /errorReport:prompt
> 
> And linker:
> /OUT:"D:\Dokumente und Einstellungen\jschaefer\Eigene Dateien\Visual Studio 
> 2008\Projects\Demonstrator4\Release\Demonstrator4.exe" /NOLOGO 
> /LIBPATH:"D:\Dokumente und Einstellungen\jschaefer\Eigene 
> Dateien\Programmierung\boost_1_39_0\stage\lib" 
> /LIBPATH:"C:\Qt\2009.03\qt\lib" /LIBPATH:"D:\Dokumente und 
> Einstellungen\jschaefer\Eigene 
> Dateien\Programmierung\pthreads\Pre-built.2\lib" /LIBPATH:"D:\Dokumente und 
> Einstellungen\jschaefer\Eigene Dateien\Visual Studio 
> 2008\Projects\simeng2\Release" /LIBPATH:"D:\Dokumente und 
> Einstellungen\jschaefer\Eigene 
> Dateien\Programmierung\OpenSG\Build\win32-msvc90\installed\lib" /MANIFEST 
> /MANIFESTFILE:"Release\Demonstrator4.exe.intermediate.manifest" 
> /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /SUBSYSTEM:WINDOWS 
> /DYNAMICBASE /NXCOMPAT /ERRORREPORT:PROMPT qtmain.lib QtCore4.lib QtGui4.lib 
> QtOpenGL4.lib opengl32.lib glu32.lib OSGBase.lib OSGSystem.lib 
> OSGWindowQT4.lib pthreadVSE2.lib simeng2.lib  kernel32.lib user32.lib 
> gdi32.lib winspool
.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib 
odbc32.lib odbccp32.lib
> 

IIRC you have to set /DOSG_BUILD_DLL in order to get the import/export
settings inside OpenSG correctly.

kind regards,
  gerrit

------------------------------------------------------------------------------
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