Hello Rene,

Rene Weller wrote:
>>> is there someone using OpenSG and OpenCL with VS (More detailed: Windows 
>>> 7, VS 2008, OpenSG 1.8, some newer cvs version)?
>>> My problem: OpenCL seems to be compiled with option \MT (or \MTd), 
>>> whereas I compiled OpenSG via scons and it uses \MD (and \MDd).
>> ugh, so they link the runtime statically? Would it help if OpenSG was 
>> also compiled with /MT (or /MTd) ?
> 
> Well, it would perhaps help for the moment to test a few things, but I 
> would prefer a more global solution in the future, because I`m working 
> on an OS collision detection library that should work with OpenSG 
> without that the users have to recompile their OpenSG versions (what 
> isn`t a fun, even when using the standard options).

ok, but how would such a "more global solution" look like? If it's not 
possible to mix libraries that are compiled with /MT with those that use 
/MD in one application, it seems to me one library has to change. Are 
there any alternatives?

>>> So, 
>>> using them together produces a bunch of LNK2005 errors during linking.
>>> Maybe someone here knows a workaround for the windows dll-hell?
>> if you want OpenSG to link against the runtime statically, I think you 
>> need to change the SConstruct file. Around line 1011 there is 
>> win32_msvc_base.get_env_list(self) and a few lines into that function it 
>> sets up the common command line options.
> 
> I tried this (there are also some options to set around the lines 1328, 
> and the libraries had to be changed to 'libcmt' and 'libcpmt') but I 
> couldn`t link to jpg, png,... libraries anymore. Compiling without the 
> additional libraries terminated with
> 
> scons: *** Source `Tutorials\01hello.exe.manifest' not found, needed by 
> target `
> Build\win32-msvc90\installed\Tutorials\01hello.exe.manifest'.  Stop.

hm, that looks like the installation of that tutorial program failed 
because it was not built in the first place (most likely because it 
needs OSGWindowGLUT.dll which may not have built itself if you have 
trouble linking against glut).

> but the basic OpenSG-libraries had been built. So I tried to use this 
> libraries, but there was some headers missing in the include-dir (e.g. 
> the statistics, the fileloader,....).

perhaps the install did not get to them yet, try using scons -k to keep 
going after failed targets.

        Cheers,
                Carsten

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