Hi Neil,

I just had a bash at merging your zip plugin additions but got lots of
compile errors due to the code being windows centric.

I have lots of work on right now so don't have the scope to try and fix up
submissions, could you rewrite the code so that it doesn't use windows
headers and types.

Thanks,
Robert.

-- Errors I get are:

n file included from
/home/robert/OpenSceneGraph/src/osgPlugins/zip/ReaderWriterZIP.cpp:19:

/home/robert/OpenSceneGraph/src/osgPlugins/zip/unzip.h:41:21: error:
windows.h: No such file or
directory

/home/robert/OpenSceneGraph/src/osgPlugins/zip/unzip.h:45:19: error:
tchar.h: No such file or
directory

In file included from
/home/robert/OpenSceneGraph/src/osgPlugins/zip/ReaderWriterZIP.cpp:19:

/home/robert/OpenSceneGraph/src/osgPlugins/zip/unzip.h:69: error: expected
constructor, destructor, or type conversion before ‘(’
token
/home/robert/OpenSceneGraph/src/osgPlugins/zip/unzip.h:73: error: ‘DWORD’
does not name a
type

/home/robert/OpenSceneGraph/src/osgPlugins/zip/unzip.h:78: error: ‘TCHAR’
does not name a
type

/home/robert/OpenSceneGraph/src/osgPlugins/zip/unzip.h:79: error: ‘DWORD’
does not name a
type

/home/robert/OpenSceneGraph/src/osgPlugins/zip/unzip.h:80: error: ‘FILETIME’
does not name a
type

/home/robert/OpenSceneGraph/src/osgPlugins/zip/unzip.h:85: error: ‘HZIP’
does not name a
type

/home/robert/OpenSceneGraph/src/osgPlugins/zip/unzip.h:86: error: ‘HZIP’
does not name a
type

/home/robert/OpenSceneGraph/src/osgPlugins/zip/unzip.h:87: error: ‘HZIP’
does not name a
type

/home/robert/OpenSceneGraph/src/osgPlugins/zip/unzip.h:104: error: ‘ZRESULT’
does not name a
type

/home/robert/OpenSceneGraph/src/osgPlugins/zip/unzip.h:119: error: ‘ZRESULT’
does not name a
type

/home/robert/OpenSceneGraph/src/osgPlugins/zip/unzip.h:125: error: ‘ZRESULT’
does not name a
type

/home/robert/OpenSceneGraph/src/osgPlugins/zip/unzip.h:126: error: ‘ZRESULT’
does not name a
type

/home/robert/OpenSceneGraph/src/osgPlugins/zip/unzip.h:127: error: ‘ZRESULT’
does not name a
type

/home/robert/OpenSceneGraph/src/osgPlugins/zip/unzip.h:143: error: ‘ZRESULT’
does not name a
type

/home/robert/OpenSceneGraph/src/osgPlugins/zip/unzip.h:148: error: ‘ZRESULT’
does not name a
type

/home/robert/OpenSceneGraph/src/osgPlugins/zip/unzip.h:151: error: ‘ZRESULT’
was not declared in this
scope

/home/robert/OpenSceneGraph/src/osgPlugins/zip/unzip.h:151: error: ‘TCHAR’
was not declared in this
scope

/home/robert/OpenSceneGraph/src/osgPlugins/zip/unzip.h:151: error: ‘buf’ was
not declared in this
scope

/home/robert/OpenSceneGraph/src/osgPlugins/zip/unzip.h:151: error: expected
primary-expression before
‘unsigned’

/home/robert/OpenSceneGraph/src/osgPlugins/zip/unzip.h:151: warning:
initializer expression list treated as compound
expression
/home/robert/OpenSceneGraph/src/osgPlugins/zip/unzip.h:256: error: ‘ZRESULT’
does not name a
type

/home/robert/OpenSceneGraph/src/osgPlugins/zip/unzip.h:257: error: ‘ZRESULT’
was not declared in this
scope

/home/robert/OpenSceneGraph/src/osgPlugins/zip/unzip.h:257: error: ‘TCHAR’
was not declared in this
scope

/home/robert/OpenSceneGraph/src/osgPlugins/zip/unzip.h:257: error: ‘buf’ was
not declared in this
scope

/home/robert/OpenSceneGraph/src/osgPlugins/zip/unzip.h:257: error: expected
primary-expression before ‘unsigned’
/home/robert/OpenSceneGraph/src/osgPlugins/zip/unzip.h:257: warning:
initializer expression list treated as compound expression
/home/robert/OpenSceneGraph/src/osgPlugins/zip/unzip.h:258: error: ‘HZIP’
was not declared in this scope
/home/robert/OpenSceneGraph/src/osgPlugins/zip/ReaderWriterZIP.cpp: In
member function ‘virtual osgDB::ReaderWriter::ReadResult
ReaderWriterZIP::readNode(std::istream&, const
osgDB::ReaderWriter::Options*) const’:
/home/robert/OpenSceneGraph/src/osgPlugins/zip/ReaderWriterZIP.cpp:218:
error: ‘HZIP’ was not declared in this scope
/home/robert/OpenSceneGraph/src/osgPlugins/zip/ReaderWriterZIP.cpp:218:
error: expected `;' before ‘hz’
/home/robert/OpenSceneGraph/src/osgPlugins/zip/ReaderWriterZIP.cpp:219:
error: ‘hz’ was not declared in this scope
/home/robert/OpenSceneGraph/src/osgPlugins/zip/ReaderWriterZIP.cpp:219:
error: ‘OpenZip’ was not declared in this scope
/home/robert/OpenSceneGraph/src/osgPlugins/zip/ReaderWriterZIP.cpp:219:
error: ‘_T’ was not declared in this scope
/home/robert/OpenSceneGraph/src/osgPlugins/zip/ReaderWriterZIP.cpp:219:
error: ‘SetUnzipBaseDir’ was not declared in this scope
/home/robert/OpenSceneGraph/src/osgPlugins/zip/ReaderWriterZIP.cpp:221:
error: ‘GetZipItem’ was not declared in this scope
/home/robert/OpenSceneGraph/src/osgPlugins/zip/ReaderWriterZIP.cpp:232:
error: ‘struct ZIPENTRY’ has no member named ‘name’
/home/robert/OpenSceneGraph/src/osgPlugins/zip/ReaderWriterZIP.cpp:237:
error: ‘UnzipItem’ was not declared in this scope
make[2]: *** [src/osgPlugins/zip/CMakeFiles/osgdb_zip.dir/ReaderWriterZIP.o]
Error 1
_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org

Reply via email to