安装GDAL有错误,本人菜鸟,还请帮忙

其它类软件,非上述版软件
回复
hyc0628
帖子: 1
注册时间: 2016-07-22 10:05
系统: ubuntu14.04.1

安装GDAL有错误,本人菜鸟,还请帮忙

#1

帖子 hyc0628 » 2016-07-22 10:18

安装GDAL的时候有错误,我感觉是缺了什么数据库一类的。。。给个解决方案,本人刚接触ubuntu系统,谢谢!
In file included from gifdataset.cpp:36:0:
/usr/include/gif_lib.h:129:14: note: previous declaration 'GifFileType* EGifOpen(void*, OutputFunc, int*)'
 GifFileType *EGifOpen(void *userPtr, OutputFunc writeFunc, int *Error);
              ^
gifdataset.cpp: In destructor 'virtual GIFDataset::~GIFDataset()':
gifdataset.cpp:308:33: error: too few arguments to function 'int DGifCloseFile(GifFileType*, int*)'
         DGifCloseFile( hGifFile );
                                 ^
In file included from gifdataset.cpp:36:0:
/usr/include/gif_lib.h:183:9: note: declared here
     int DGifCloseFile(GifFileType * GifFile, int *ErrorCode);
         ^
gifdataset.cpp: In static member function 'static GDALDataset* GIFDataset::Open(GDALOpenInfo*)':
gifdataset.cpp:375:45: error: too few arguments to function 'GifFileType* DGifOpen(void*, InputFunc, int*)'
     hGifFile = DGifOpen( fp, VSIGIFReadFunc );
                                             ^
In file included from gifdataset.cpp:36:0:
/usr/include/gif_lib.h:182:14: note: declared here
 GifFileType *DGifOpen(void *userPtr, InputFunc readFunc, int *Error);    /* new
              ^
gifdataset.cpp:392:31: error: too few arguments to function 'int DGifCloseFile(GifFileType*, int*)'
         DGifCloseFile(hGifFile);
                               ^
In file included from gifdataset.cpp:36:0:
/usr/include/gif_lib.h:183:9: note: declared here
     int DGifCloseFile(GifFileType * GifFile, int *ErrorCode);
         ^
gifdataset.cpp: In function 'GDALDataset* GIFCreateCopy(const char*, GDALDataset*, int, char**, GDALProgressFunc, void*)':
gifdataset.cpp:547:44: error: 'MakeMapObject' was not declared in this scope
         psGifCT = MakeMapObject( 256, NULL );
                                            ^
gifdataset.cpp:563:51: error: 'MakeMapObject' was not declared in this scope
         psGifCT = MakeMapObject( nFullCount, NULL );
                                                   ^
gifdataset.cpp:587:30: error: 'FreeMapObject' was not declared in this scope
         FreeMapObject(psGifCT);
                              ^
gifdataset.cpp:588:23: error: 'PrintGifError' was not declared in this scope
         PrintGifError();
                       ^
gifdataset.cpp:594:26: error: 'FreeMapObject' was not declared in this scope
     FreeMapObject(psGifCT);
                          ^
gifdataset.cpp:612:23: error: 'PrintGifError' was not declared in this scope
         PrintGifError();
                       ^
gifdataset.cpp:666:31: error: too few arguments to function 'int EGifCloseFile(GifFileType*, int*)'
     if (EGifCloseFile(hGifFile) == GIF_ERROR)
                               ^
In file included from gifdataset.cpp:36:0:
/usr/include/gif_lib.h:132:5: note: declared here
 int EGifCloseFile(GifFileType *GifFile, int *ErrorCode);
     ^
../../GDALmake.opt:384: recipe for target '../o/gifdataset.lo' failed
make[2]: *** [../o/gifdataset.lo] Error 1
make[2]: Leaving directory '/home/hyc/GDAL/gdal-1.6.2/frmts/gif'
GNUmakefile:10: recipe for target 'gif-install-obj' failed
make[1]: *** [gif-install-obj] Error 2
make[1]: Leaving directory '/home/hyc/GDAL/gdal-1.6.2/frmts'
GNUmakefile:65: recipe for target 'frmts-target' failed
make: *** [frmts-target] Error 2
回复