Re: [osg-users] Compling STATIC version of OSG, - using static plugins?

2008-05-06 Thread Mike Weiblen
Sorry, like I said I dont mess w/ static builds, so I have no advice
there.  Welcome to the wonderful world of Microsoft assemblies.

Curious why you're bothering w/ debug builds tho?  If you're using the
prebuilt 3rdParty binaries and you build debug, it will use the debug
JPEG library, which certainly could reference the debug MSVC runtime
dlls.  Have you tried building your own JPEG library statically, so it
doesn't reference the dynamic MSVC libs?

-- mew




On Mon, May 5, 2008 at 1:20 AM,  [EMAIL PROTECTED] wrote:
 Here is the .dll / library/ plugin problem I have not been able to solve.
  Trying both Visual Studio 2005   Visual Studio 2008, I compile osg as for
 dynamic compile, Debug settings.

  When I try to run the planet demo - I get a command line message:
  Could not find plugin to read objects from
 Images/land_shallow_topo_2048.jpg

  In debugging down to the LoadLibrary() method that attempts to load the
 jpeg plugin, it returns win api error code 14001.

  In cross reference the system logs, I get the following System error logs:


 Resolve Partial Assembly failed for Microsoft.VC80.DebugCRT. Reference error
 message: The referenced assembly is not installed on your system


 Generate Activation Context failed for
 C:\OpenSceneGraph\BUILD\bin\osgplugins-2.4.0\osgdb_jpegd.dll. Reference
 error message: The operation completed successfull
  -


  The VC80 stuff is installed on my machine with the VS2005.

  After 40 hours of attempts, I am at a total loss on how to get the plugins
 to load the libraries successfully in DEBUG mode.


  Any advice would be most appreciated.

  Thanks,
  Curt






  -Original Message-
  From: Mike Weiblen [EMAIL PROTECTED]
  To: OpenSceneGraph Users osg-users@lists.openscenegraph.org
  Sent: Sun, 4 May 2008 7:47 pm
  Subject: Re: [osg-users] Compling STATIC version of OSG, - using static
 plugins?



 On Fri, May 2, 2008 at 3:31 PM, [EMAIL PROTECTED] wrote:

  (The main problem is that I don't want to have to install
  Microsoft.VC80.DebugCRT redistributable C++ stuff with every install,
 which
  is required for the .dlls)

 Please be sure to read Microsoft's license for their redistributable
 libraries. You are not permitted to redistribute their debug runtime
 libraries (which is exactly why I do not include them in the 3rdParty
 binaries)

 That said, I'm not clear why you believe distributing those libs might
 be necessary.

  It looks like its trying to load the .dll version of the plugin.
  How can I use OSG with statically linked plugins instead of dlls?

 Do you know for a fact that OSG is looking for a dynamic version of
 the plugin, or is your static plugin looking for a dynamic version of
 the underlying JPEG library?

 Not being involved w/ static builds that much, my hunch is you'll have
 to build your 3rdParty binaries such that they all produce only static
 libraries.

 -- mew



 --
 Mike Weiblen -- Austin Texas USA -- http://mew.cx/
 ___
 osg-users mailing list
 osg-users@lists.openscenegraph.org
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org



 
 Plan your next roadtrip with MapQuest.com: America's #1 Mapping Site.
 ___
  osg-users mailing list
  osg-users@lists.openscenegraph.org
  http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org





-- 
Mike Weiblen -- Austin Texas USA -- http://mew.cx/
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Compling STATIC version of OSG, - using static plugins?

2008-05-05 Thread dtidev
Here is the .dll / library/ plugin problem I have not been able to solve.
Trying both Visual Studio 2005  ?Visual Studio 2008, I compile osg as for 
dynamic compile, Debug settings.

When I try to run the planet demo - I get a command line message:
Could not find plugin to read objects from Images/land_shallow_topo_2048.jpg

In debugging down to the LoadLibrary() method that attempts to load the jpeg 
plugin, it returns win api error code 14001.

In cross reference the system logs, I get the following System error logs:


Resolve Partial Assembly failed for Microsoft.VC80.DebugCRT. Reference error 
message: The referenced assembly is not installed on your system



Generate Activation Context failed for 
C:\OpenSceneGraph\BUILD\bin\osgplugins-2.4.0\osgdb_jpegd.dll. Reference error 
message: The operation completed successfull

-


The VC80 stuff is installed on my machine with the VS2005.

After 40 hours of attempts, I am at a total loss on how to get the plugins to 
load the libraries successfully in DEBUG mode.


Any advice would be most appreciated.

Thanks,
Curt




-Original Message-
From: Mike Weiblen [EMAIL PROTECTED]
To: OpenSceneGraph Users osg-users@lists.openscenegraph.org
Sent: Sun, 4 May 2008 7:47 pm
Subject: Re: [osg-users] Compling STATIC version of OSG, - using static plugins?



On Fri, May 2, 2008 at 3:31 PM,  [EMAIL PROTECTED] wrote:

  (The main problem is that I don't want to have to install
 Microsoft.VC80.DebugCRT redistributable C++ stuff with every install, which
 is required for the .dlls)

Please be sure to read Microsoft's license for their redistributable
libraries.   You are not permitted to redistribute their debug runtime
libraries (which is exactly why I do not include them in the 3rdParty
binaries)

That said, I'm not clear why you believe distributing those libs might
be necessary.

 It looks like its trying to load the .dll version of the plugin.
 How can I use OSG with statically linked plugins instead of dlls?

Do you know for a fact that OSG is looking for a dynamic version of
the plugin, or is your static plugin looking for a dynamic version of
the underlying JPEG library?

Not being involved w/ static builds that much, my hunch is you'll have
to build your 3rdParty binaries such that they all produce only static
libraries.

-- mew



-- 
Mike Weiblen -- Austin Texas USA -- http://mew.cx/
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

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


Re: [osg-users] Compling STATIC version of OSG, - using static plugins?

2008-05-04 Thread Mike Weiblen
On Fri, May 2, 2008 at 3:31 PM,  [EMAIL PROTECTED] wrote:

  (The main problem is that I don't want to have to install
 Microsoft.VC80.DebugCRT redistributable C++ stuff with every install, which
 is required for the .dlls)

Please be sure to read Microsoft's license for their redistributable
libraries.   You are not permitted to redistribute their debug runtime
libraries (which is exactly why I do not include them in the 3rdParty
binaries)

That said, I'm not clear why you believe distributing those libs might
be necessary.

 It looks like its trying to load the .dll version of the plugin.
 How can I use OSG with statically linked plugins instead of dlls?

Do you know for a fact that OSG is looking for a dynamic version of
the plugin, or is your static plugin looking for a dynamic version of
the underlying JPEG library?

Not being involved w/ static builds that much, my hunch is you'll have
to build your 3rdParty binaries such that they all produce only static
libraries.

-- mew



-- 
Mike Weiblen -- Austin Texas USA -- http://mew.cx/
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org