Re: [osg-users] PNG Library Crashing - 32 vs 64 bit mismatch possible

2015-04-13 Thread Sebastian Messerschmidt

Hi Dave,

C:/osg/OpenSceneGraph-3.2.2-rc2/3rdParty/x86/lib/libpng16.lib (found version 
1.6.7)
- you are linking the 32bit libraries ..




Hi,

I've been struggling to get the PNG plugin working. I've built it, but the 
cookbook_02_7 is crashing down inside libpng16.dll.


I have a couple of questions.
1] I would have thought that I am doing a 64-bit build, since I have a 64-bit 
OS. However when I run cmake/configure I see it report 32-bit architecture 
detected.



32 bit architecture detected
3rdParty-Package ENV variable found:C:\osg\OpenSceneGraph-3.2.2-rc2\3rdParty/x86
Could NOT find LibXml2 (missing:  LIBXML2_LIBRARIES LIBXML2_INCLUDE_DIR)
Could NOT find PkgConfig (missing:  PKG_CONFIG_EXECUTABLE)
Could NOT find CURL (missing:  CURL_LIBRARY CURL_INCLUDE_DIR)
Could NOT find SDL (missing:  SDL_LIBRARY SDL_INCLUDE_DIR)
Could NOT find PkgConfig (missing:  PKG_CONFIG_EXECUTABLE)
Could NOT find PkgConfig (missing:  PKG_CONFIG_EXECUTABLE)
Could NOT find PkgConfig (missing:  PKG_CONFIG_EXECUTABLE)
Found unsuitable Qt version  from NOTFOUND
Could NOT find Qt3 (missing:  QT_QT_LIBRARY QT_INCLUDE_DIR QT_MOC_EXECUTABLE)
Could NOT find GLUT (missing:  GLUT_glut_LIBRARY GLUT_INCLUDE_DIR)
Could NOT find wxWidgets (missing:  wxWidgets_FOUND)
Found PNG: 
optimized;C:/osg/OpenSceneGraph-3.2.2-rc2/3rdParty/x86/lib/libpng16d.lib;debug;C:/osg/OpenSceneGraph-3.2.2-rc2/3rdParty/x86/lib/libpng16.lib
 (found version 1.6.7)
Could NOT find TIFF (missing:  TIFF_LIBRARY TIFF_INCLUDE_DIR)
Configuring done
Generating done



So I have been pointing my cookbooks (osgrecipes) to the x86 versions found in 
the 3rdParty folder: example 
C:/osg/OpenSceneGraph-3.2.2-rc2/3rdParty/x86/lib/libpng16.lib is the value I 
have set PNG_LIBRARY to.

The current callstack I see when I crash is as follows:


005dd4a8()  Unknown
[Frames below may be incorrect and/or missing]  
libpng16.dll!004dba8c() Unknown


osgdb_pngd.dll!ReaderWriterPNG::readPNGStream(std::basic_istreamchar,std::char_traitschar
   fin) Line 202  C++

osgdb_pngd.dll!ReaderWriterPNG::readImage(const 
std::basic_stringchar,std::char_traitschar,std::allocatorchar   file, 
const osgDB::Options * options) Line 381 C++

osg100-osgDBd.dll!osgDB::Registry::ReadImageFunctor::doRead(osgDB::ReaderWriter 
 rw) Line 915  C++
osg100-osgDBd.dll!osgDB::Registry::read(const osgDB::Registry::ReadFunctor 
 readFunctor) Line 1175 C++
osg100-osgDBd.dll!osgDB::Registry::readImplementation(const 
osgDB::Registry::ReadFunctor  readFunctor, osgDB::Options::CacheHintOptions 
cacheHint) Line 1278   C++
osg100-osgDBd.dll!osgDB::Registry::readImageImplementation(const 
std::basic_stringchar,std::char_traitschar,std::allocatorchar   
fileName, const osgDB::Options * options) Line 1360   C++
osg100-osgDBd.dll!osgDB::Registry::readImage(const 
std::basic_stringchar,std::char_traitschar,std::allocatorchar   
fileName, const osgDB::Options * options) Line 221  C++
osg100-osgDBd.dll!osgDB::readImageFile(const 
std::basic_stringchar,std::char_traitschar,std::allocatorchar   
filename, const osgDB::Options * options) Line 43 C++
cookbook_02_07d.exe!osgDB::readImageFile(const 
std::basic_stringchar,std::char_traitschar,std::allocatorchar   
filename) Line 82   C++
cookbook_02_07d.exe!main(int argc, char * * argv) Line 16   C++
[External Code] 





Any suggestions would be appreciated.
Cheers,
Dave

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=63354#63354





___
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


[osg-users] PNG Library Crashing - 32 vs 64 bit mismatch possible

2015-04-12 Thread Dave Sargrad
Hi,

I've been struggling to get the PNG plugin working. I've built it, but the 
cookbook_02_7 is crashing down inside libpng16.dll.


I have a couple of questions.
1] I would have thought that I am doing a 64-bit build, since I have a 64-bit 
OS. However when I run cmake/configure I see it report 32-bit architecture 
detected.


 
 32 bit architecture detected
 3rdParty-Package ENV variable 
 found:C:\osg\OpenSceneGraph-3.2.2-rc2\3rdParty/x86
 Could NOT find LibXml2 (missing:  LIBXML2_LIBRARIES LIBXML2_INCLUDE_DIR) 
 Could NOT find PkgConfig (missing:  PKG_CONFIG_EXECUTABLE) 
 Could NOT find CURL (missing:  CURL_LIBRARY CURL_INCLUDE_DIR) 
 Could NOT find SDL (missing:  SDL_LIBRARY SDL_INCLUDE_DIR) 
 Could NOT find PkgConfig (missing:  PKG_CONFIG_EXECUTABLE) 
 Could NOT find PkgConfig (missing:  PKG_CONFIG_EXECUTABLE) 
 Could NOT find PkgConfig (missing:  PKG_CONFIG_EXECUTABLE) 
 Found unsuitable Qt version  from NOTFOUND
 Could NOT find Qt3 (missing:  QT_QT_LIBRARY QT_INCLUDE_DIR QT_MOC_EXECUTABLE) 
 Could NOT find GLUT (missing:  GLUT_glut_LIBRARY GLUT_INCLUDE_DIR) 
 Could NOT find wxWidgets (missing:  wxWidgets_FOUND) 
 Found PNG: 
 optimized;C:/osg/OpenSceneGraph-3.2.2-rc2/3rdParty/x86/lib/libpng16d.lib;debug;C:/osg/OpenSceneGraph-3.2.2-rc2/3rdParty/x86/lib/libpng16.lib
  (found version 1.6.7) 
 Could NOT find TIFF (missing:  TIFF_LIBRARY TIFF_INCLUDE_DIR) 
 Configuring done
 Generating done
 


So I have been pointing my cookbooks (osgrecipes) to the x86 versions found in 
the 3rdParty folder: example 
C:/osg/OpenSceneGraph-3.2.2-rc2/3rdParty/x86/lib/libpng16.lib is the value I 
have set PNG_LIBRARY to.

The current callstack I see when I crash is as follows:

 
   005dd4a8()  Unknown
   [Frames below may be incorrect and/or missing]  
   libpng16.dll!004dba8c() Unknown
  
  osgdb_pngd.dll!ReaderWriterPNG::readPNGStream(std::basic_istreamchar,std::char_traitschar
 fin) Line 202  C++
   osgdb_pngd.dll!ReaderWriterPNG::readImage(const 
 std::basic_stringchar,std::char_traitschar,std::allocatorchar   file, 
 const osgDB::Options * options) Line 381   C++
   
 osg100-osgDBd.dll!osgDB::Registry::ReadImageFunctor::doRead(osgDB::ReaderWriter
   rw) Line 915  C++
   osg100-osgDBd.dll!osgDB::Registry::read(const 
 osgDB::Registry::ReadFunctor  readFunctor) Line 1175 C++
   osg100-osgDBd.dll!osgDB::Registry::readImplementation(const 
 osgDB::Registry::ReadFunctor  readFunctor, osgDB::Options::CacheHintOptions 
 cacheHint) Line 1278   C++
   osg100-osgDBd.dll!osgDB::Registry::readImageImplementation(const 
 std::basic_stringchar,std::char_traitschar,std::allocatorchar   
 fileName, const osgDB::Options * options) Line 1360 C++
   osg100-osgDBd.dll!osgDB::Registry::readImage(const 
 std::basic_stringchar,std::char_traitschar,std::allocatorchar   
 fileName, const osgDB::Options * options) Line 221C++
   osg100-osgDBd.dll!osgDB::readImageFile(const 
 std::basic_stringchar,std::char_traitschar,std::allocatorchar   
 filename, const osgDB::Options * options) Line 43   C++
   cookbook_02_07d.exe!osgDB::readImageFile(const 
 std::basic_stringchar,std::char_traitschar,std::allocatorchar   
 filename) Line 82 C++
   cookbook_02_07d.exe!main(int argc, char * * argv) Line 16   C++
   [External Code] 
 
 



Any suggestions would be appreciated.
Cheers,
Dave

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=63354#63354





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