Re: [osg-users] OSG 2.4 problem reading tiffs.
Hi Erland, I'm no windows user/developer so can't really pinpoint any problem, the best I can do is try out a release build to see if that fixes things, perhaps the debug build of libtiff isn't available. Robert. On Thu, May 1, 2008 at 10:50 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Hello, > > I am using WinXP and MSVC 8 and had a working OSG 2.2 build > running. > > I downloaded the 2.4 zip and the new 3rd part zip, run > cmake, > build the default viewer applications. > > Running osgviewerd with full debug I see the following > output. > > > FindFileInPath(e:\Models\Earth\globe.obj): returning > e:\Models\Earth\globe.obj > Reading OBJ file > itr='e:\Models\Earth' > FindFileInPath() : trying E:\Models\Earth\globe.mtl ... > FindFileInPath() : USING E:\Models\Earth\globe.mtl > --globe.mtl-- > --globe.mtl-- > --E:\Models\Earth\globe.mtl-- > Reading MTL file > itr='E:\OSG\BUILD\bin' > FindFileInPath() : Trying > E:\OSG\BUILD\bin\osgplugins-2.4.0\osgdb_tiffd.dll ... > FileFileInPath() : USING > E:\OSG\BUILD\bin\osgplugins-2.4.0\osgdb_tiffd.dll > DynamicLibrary::failed loading > "osgPlugins-2.4.0/osgdb_tiffd.dll" > Warning: Could not find plugin to read objects from file > "e:\Models\Earth/land_ocean_ice_8192.tif" > > > Given that it was failing to load the dll I loaded up > 'depends' and > found that the plugin was missing some dll's from the 3rd > party directory, > so I copied all the dll's from the 3rd party tools into both > my build\bin > and my buld\bin\osgplugins directory. > > Still no luck reading tiff files. > > Anyone have any ideas on what I should check next? > > > > > > > ___ > 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] OSG 2.4 problem reading tiffs.
On Thu, May 1, 2008 at 5:50 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Hello, > > I am using WinXP and MSVC 8 and had a working OSG 2.2 build > running. > > I downloaded the 2.4 zip and the new 3rd part zip, run > cmake, > build the default viewer applications. > > Running osgviewerd with full debug I see the following > output. > > > FindFileInPath(e:\Models\Earth\globe.obj): returning > e:\Models\Earth\globe.obj > Reading OBJ file > itr='e:\Models\Earth' > FindFileInPath() : trying E:\Models\Earth\globe.mtl ... > FindFileInPath() : USING E:\Models\Earth\globe.mtl > --globe.mtl-- > --globe.mtl-- > --E:\Models\Earth\globe.mtl-- > Reading MTL file > itr='E:\OSG\BUILD\bin' > FindFileInPath() : Trying > E:\OSG\BUILD\bin\osgplugins-2.4.0\osgdb_tiffd.dll ... > FileFileInPath() : USING > E:\OSG\BUILD\bin\osgplugins-2.4.0\osgdb_tiffd.dll > DynamicLibrary::failed loading > "osgPlugins-2.4.0/osgdb_tiffd.dll" > Warning: Could not find plugin to read objects from file > "e:\Models\Earth/land_ocean_ice_8192.tif" > > > Given that it was failing to load the dll I loaded up > 'depends' and > found that the plugin was missing some dll's from the 3rd > party directory, > so I copied all the dll's from the 3rd party tools into both > my build\bin > and my buld\bin\osgplugins directory. > > Still no luck reading tiff files. > > Anyone have any ideas on what I should check next? Does the OSG's DLL plugin code call GetLastError() when LoadLibrary() fails? If so this might be able to provide some more meaningful information about what is wrong similar to how dlerror() works on Unix? It probably is a missing DLL dependency. I would double check the dependency list with something like dependency walker and make sure all of the dependent DLLs are available. Not sure what the problem is. I assume you're running this on the machine that has VS8 installed on it (ruling out the issue with Microsoft's side-by-side debug assemblies not being installed)? -- Philip Lowman ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] OSG 2.4 problem reading tiffs.
- Original Message Follows - From: "Philip Lowman" <[EMAIL PROTECTED]> To: [EMAIL PROTECTED], "OpenSceneGraph Users" Subject: Re: [osg-users] OSG 2.4 problem reading tiffs. Date: Wed, 7 May 2008 01:02:12 -0400 > On Thu, May 1, 2008 at 5:50 PM, [EMAIL PROTECTED] > <[EMAIL PROTECTED]> wrote: > > > Hello, > > > > I am using WinXP and MSVC 8 and had a working OSG 2.2 > > build running. > > > > I downloaded the 2.4 zip and the new 3rd part zip, run > > cmake, > > build the default viewer applications. > > > > Running osgviewerd with full debug I see the following > > output. > > > > > -- > > -- FindFileInPath(e:\Models\Earth\globe.obj): > > returning e:\Models\Earth\globe.obj > > Reading OBJ file > > itr='e:\Models\Earth' > > FindFileInPath() : trying E:\Models\Earth\globe.mtl ... > > FindFileInPath() : USING E:\Models\Earth\globe.mtl > > --globe.mtl-- > > --globe.mtl-- > > --E:\Models\Earth\globe.mtl-- > > Reading MTL file > > itr='E:\OSG\BUILD\bin' > > FindFileInPath() : Trying > > E:\OSG\BUILD\bin\osgplugins-2.4.0\osgdb_tiffd.dll ... > > FileFileInPath() : USING > > E:\OSG\BUILD\bin\osgplugins-2.4.0\osgdb_tiffd.dll > > DynamicLibrary::failed loading > > "osgPlugins-2.4.0/osgdb_tiffd.dll" > > Warning: Could not find plugin to read objects from file > > "e:\Models\Earth/land_ocean_ice_8192.tif" > > > -- > -- > > > Given that it was failing to load the dll I loaded up > > 'depends' and > > found that the plugin was missing some dll's from the > > 3rd party directory, > > so I copied all the dll's from the 3rd party tools into > > both my build\bin > > and my buld\bin\osgplugins directory. > > > > Still no luck reading tiff files. > > > > Anyone have any ideas on what I should check next? > > > Does the OSG's DLL plugin code call GetLastError() when > LoadLibrary() fails? If so this might be able to provide > some more meaningful information about what is wrong > similar to how dlerror() works on Unix? > > It probably is a missing DLL dependency. I would double > check the dependency list with something like dependency > walker and make sure all of the dependent DLLs are > available. > > Not sure what the problem is. I assume you're running > this on the machine that has VS8 installed on it (ruling > out the issue with Microsoft's side-by-side debug > assemblies not being installed)? > > -- > Philip Lowman I have VS8 installed on the machine in question. I have run depends and moved a copy of all the DLL's into both the BUILD\bin and BUILD\Bin\osgplugins-2.4.0 directory. I have tried both debug and release mode. I am working on getting a copy of the 3rd party tools compiling to see if thats the problem. Thank you all for your pointers, -- Eric Heft ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] OSG 2.4 problem reading tiffs.
To all, It turns out that I was able to compile and link 2.4 and 2.5 , but when I went to run none of the plug ins that depended on the 3rd party libraries were able to load. Looking at the libs using depends made it look like they would load, and finally I tried using LoadLibraryEx() and found a posting that suggested that the problem was mixing libraries built with MSVC 8.0 and those patched with MSVC service pack 1. After installing the service pack and rebuilding the project things work normally. Moral of the story, if your on WinXP using MSVC install the 450 meg service pack when you move to 2.4/2.5 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org