Removed GDAL reference

This commit is contained in:
Robert Osfield
2004-10-26 18:20:52 +00:00
parent 6f22082c0b
commit e79feb1004
3 changed files with 4 additions and 3 deletions

View File

@@ -4,7 +4,7 @@ include $(TOPDIR)/Make/makedefs
CXXFILES =\
osgarchive.cpp\
LIBS += -losgProducer -lProducer -losgDB -losgUtil -losg $(GDAL_LIBS) $(GL_LIBS) $(X_LIBS) $(OTHER_LIBS)
LIBS += -losgProducer -lProducer -losgDB -losgUtil -losg $(GL_LIBS) $(X_LIBS) $(OTHER_LIBS)
INSTFILES = \
$(CXXFILES)\

View File

@@ -4,7 +4,7 @@ include $(TOPDIR)/Make/makedefs
CXXFILES =\
osgarchive.cpp\
LIBS += -losgProducer -lProducer -losgDB -losgText -losgUtil -losg $(GL_LIBS) $(X_LIBS) $(OTHER_LIBS)
LIBS += -losgProducer -lProducer -losgDB -losgText -losgUtil -losg $(X_LIBS) $(OTHER_LIBS)
EXEC = osgarchive

View File

@@ -128,7 +128,8 @@ int main( int argc, char **argv )
itr!=files.end();
++itr)
{
osg::ref_ptr<osg::Object> obj = osgDB::readObjectFile(*itr);
osgDB::ReaderWriter::ReadResult result = archive.readObject(*itr);
osg::ref_ptr<osg::Object> obj = result.getObject();
if (obj.valid())
{
if (obj.valid()) osgDB::writeObjectFile(*obj, *itr);