Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build on ubuntu #29

Closed
LHolst opened this issue Jul 5, 2018 · 21 comments
Closed

build on ubuntu #29

LHolst opened this issue Jul 5, 2018 · 21 comments

Comments

@LHolst
Copy link

LHolst commented Jul 5, 2018

can i build this on ubuntu xenial/bionic?

@fanvanzh
Copy link
Owner

fanvanzh commented Jul 9, 2018

surely.
just install rust online, and type "cargo run".
some library maybe lost, you can hava a try.

@fanvanzh fanvanzh closed this as completed Aug 6, 2018
@stoneflyop1
Copy link

使用 Ubuntu @@1604编译会报错,请问可能是什么原因呢?报错信息如下:

 Compiling 3dtile v0.1.0 (file:///home/jf/dev/3dtiles)
   Compiling log v0.3.9
warning: unused import: `std::fs`
 --> build.rs:2:5
  |
2 | use std::fs;
  |     ^^^^^^^
  |
  = note: #[warn(unused_imports)] on by default

   Compiling aho-corasick v0.6.8
   Compiling clap v2.32.0
   Compiling quote v0.6.8
error: failed to run custom build command for `3dtile v0.1.0 (file:///home/jf/dev/3dtiles)`
process didn't exit successfully: `/home/jf/dev/3dtiles/target/release/build/3dtile-b0ecc851f1500803/build-script-build` (exit code: 101)
--- stdout
TARGET = Some("x86_64-unknown-linux-gnu")
OPT_LEVEL = Some("3")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
CXX_x86_64-unknown-linux-gnu = None
CXX_x86_64_unknown_linux_gnu = None
HOST_CXX = None
CXX = None
HOST = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
CXXFLAGS_x86_64-unknown-linux-gnu = None
CXXFLAGS_x86_64_unknown_linux_gnu = None
HOST_CXXFLAGS = None
CXXFLAGS = None
DEBUG = Some("false")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
CXXFLAGS_x86_64-unknown-linux-gnu = None
CXXFLAGS_x86_64_unknown_linux_gnu = None
HOST_CXXFLAGS = None
CXXFLAGS = None
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
CXXFLAGS_x86_64-unknown-linux-gnu = None
CXXFLAGS_x86_64_unknown_linux_gnu = None
HOST_CXXFLAGS = None
CXXFLAGS = None
running: "c++" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I" "./src" "-I" "./src/osg" "-std=c++11" "-o" "/home/jf/dev/3dtiles/target/release/build/3dtile-c8bc5ef7cb64b5ee/out/./src/tileset.o" "-c" "./src/tileset.cpp"
cargo:warning=In file included from ./src/gdal/ogr_srs_api.h:35:0,
cargo:warning=                 from ./src/gdal/ogr_spatialref.h:35,
cargo:warning=                 from ./src/tileset.cpp:1:
cargo:warning=./src/gdal/ogr_core.h:883:34: error: expected initializer before ‘GDALVersionInfo’
cargo:warning= const char CPL_DLL * CPL_STDCALL GDALVersionInfo( const char * );
cargo:warning=                                  ^
cargo:warning=./src/gdal/ogr_core.h:899:25: error: expected initializer before ‘GDALCheckVersion’
cargo:warning= int CPL_DLL CPL_STDCALL GDALCheckVersion( int nVersionMajor, int nVersionMinor,
cargo:warning=                         ^
cargo:warning=In file included from ./src/gdal/ogr_spatialref.h:35:0,
cargo:warning=                 from ./src/tileset.cpp:1:
cargo:warning=./src/gdal/ogr_srs_api.h:320:7: error: expected initializer before ‘OSRNewSpatialReference’
cargo:warning=       OSRNewSpatialReference( const char * /* = NULL */);
cargo:warning=       ^
cargo:warning=./src/gdal/ogr_srs_api.h:321:42: error: expected initializer before ‘OSRCloneGeogCS’
cargo:warning= OGRSpatialReferenceH CPL_DLL CPL_STDCALL OSRCloneGeogCS( OGRSpatialReferenceH );
cargo:warning=                                          ^
cargo:warning=./src/gdal/ogr_srs_api.h:322:42: error: expected initializer before ‘OSRClone’
cargo:warning= OGRSpatialReferenceH CPL_DLL CPL_STDCALL OSRClone( OGRSpatialReferenceH );
cargo:warning=                                          ^
cargo:warning=./src/gdal/ogr_srs_api.h:323:26: error: expected initializer before ‘OSRDestroySpatialReference’
cargo:warning= void CPL_DLL CPL_STDCALL OSRDestroySpatialReference( OGRSpatialReferenceH );
cargo:warning=                          ^
cargo:warning=./src/gdal/ogr_srs_api.h:334:28: error: expected initializer before ‘OSRImportFromEPSG’
cargo:warning= OGRErr CPL_DLL CPL_STDCALL OSRImportFromEPSG( OGRSpatialReferenceH, int );
cargo:warning=                            ^
cargo:warning=./src/gdal/ogr_srs_api.h:335:28: error: expected initializer before ‘OSRImportFromEPSGA’
cargo:warning= OGRErr CPL_DLL CPL_STDCALL OSRImportFromEPSGA( OGRSpatialReferenceH, int );
cargo:warning=                            ^
cargo:warning=./src/gdal/ogr_srs_api.h:354:28: error: expected initializer before ‘OSRExportToWkt’
cargo:warning= OGRErr CPL_DLL CPL_STDCALL OSRExportToWkt( OGRSpatialReferenceH, char ** );
cargo:warning=                            ^
cargo:warning=./src/gdal/ogr_srs_api.h:355:28: error: expected initializer before ‘OSRExportToPrettyWkt’
cargo:warning= OGRErr CPL_DLL CPL_STDCALL OSRExportToPrettyWkt( OGRSpatialReferenceH, char **, int);
cargo:warning=                            ^
cargo:warning=./src/gdal/ogr_srs_api.h:356:28: error: expected initializer before ‘OSRExportToProj4’
cargo:warning= OGRErr CPL_DLL CPL_STDCALL OSRExportToProj4( OGRSpatialReferenceH, char **);
cargo:warning=                            ^
cargo:warning=./src/gdal/ogr_srs_api.h:370:28: error: expected initializer before ‘OSRSetAttrValue’
cargo:warning= OGRErr CPL_DLL CPL_STDCALL OSRSetAttrValue( OGRSpatialReferenceH hSRS,
cargo:warning=                            ^
cargo:warning=./src/gdal/ogr_srs_api.h:373:34: error: expected initializer before ‘OSRGetAttrValue’
cargo:warning= const char CPL_DLL * CPL_STDCALL OSRGetAttrValue( OGRSpatialReferenceH hSRS,
cargo:warning=                                  ^
cargo:warning=./src/gdal/ogr_srs_api.h:402:28: error: expected initializer before ‘OSRSetFromUserInput’
cargo:warning= OGRErr CPL_DLL CPL_STDCALL OSRSetFromUserInput( OGRSpatialReferenceH hSRS,
cargo:warning=                            ^
cargo:warning=./src/gdal/ogr_srs_api.h:755:1: error: expected initializer before ‘OCTNewCoordinateTransformation’
cargo:warning= OCTNewCoordinateTransformation( OGRSpatialReferenceH hSourceSRS,
cargo:warning= ^
cargo:warning=./src/gdal/ogr_srs_api.h:758:7: error: expected initializer before ‘OCTDestroyCoordinateTransformation’
cargo:warning=       OCTDestroyCoordinateTransformation( OGRCoordinateTransformationH );
cargo:warning=       ^
cargo:warning=./src/gdal/ogr_srs_api.h:761:1: error: expected initializer before ‘OCTTransform’
cargo:warning= OCTTransform( OGRCoordinateTransformationH hCT,
cargo:warning= ^
cargo:warning=./src/gdal/ogr_srs_api.h:765:1: error: expected initializer before ‘OCTTransformEx’
cargo:warning= OCTTransformEx( OGRCoordinateTransformationH hCT,
cargo:warning= ^
cargo:warning=In file included from ./src/gdal/ogrsf_frmts.h:34:0,
cargo:warning=                 from ./src/tileset.cpp:2:
cargo:warning=./src/gdal/cpl_progress.h:37:26: error: expected ‘)’ before ‘*’ token
cargo:warning= typedef int (CPL_STDCALL *GDALProgressFunc)(double dfComplete, const char *pszMessage, void *pProgressArg);
cargo:warning=                          ^
cargo:warning=./src/gdal/cpl_progress.h:39:25: error: expected initializer before ‘GDALDummyProgress’
cargo:warning= int CPL_DLL CPL_STDCALL GDALDummyProgress( double, const char *, void *);
cargo:warning=                         ^
cargo:warning=./src/gdal/cpl_progress.h:40:25: error: expected initializer before ‘GDALTermProgress’
cargo:warning= int CPL_DLL CPL_STDCALL GDALTermProgress( double, const char *, void *);
cargo:warning=                         ^
cargo:warning=./src/gdal/cpl_progress.h:41:25: error: expected initializer before ‘GDALScaledProgress’
cargo:warning= int CPL_DLL CPL_STDCALL GDALScaledProgress( double, const char *, void *);
cargo:warning=                         ^
cargo:warning=./src/gdal/cpl_progress.h:42:28: error: expected initializer before ‘GDALCreateScaledProgress’
cargo:warning= void CPL_DLL * CPL_STDCALL GDALCreateScaledProgress( double, double,
cargo:warning=                            ^
cargo:warning=./src/gdal/cpl_progress.h:44:26: error: expected initializer before ‘GDALDestroyScaledProgress’
cargo:warning= void CPL_DLL CPL_STDCALL GDALDestroyScaledProgress( void * );
cargo:warning=                          ^
cargo:warning=In file included from ./src/gdal/cpl_conv.h:37:0,
cargo:warning=                 from ./src/gdal/ogr_featurestyle.h:33,
cargo:warning=                 from ./src/gdal/ogr_feature.h:35,
cargo:warning=                 from ./src/gdal/ogrsf_frmts.h:35,
cargo:warning=                 from ./src/tileset.cpp:2:
cargo:warning=./src/gdal/cpl_error.h:121:26: error: expected initializer before ‘CPLErrorReset’
cargo:warning= void CPL_DLL CPL_STDCALL CPLErrorReset( void );
cargo:warning=                          ^
cargo:warning=./src/gdal/cpl_error.h:122:33: error: expected initializer before ‘CPLGetLastErrorNo’
cargo:warning= CPLErrorNum CPL_DLL CPL_STDCALL CPLGetLastErrorNo( void );
cargo:warning=                                 ^
cargo:warning=./src/gdal/cpl_error.h:123:28: error: expected initializer before ‘CPLGetLastErrorType’
cargo:warning= CPLErr CPL_DLL CPL_STDCALL CPLGetLastErrorType( void );
cargo:warning=                            ^
cargo:warning=./src/gdal/cpl_error.h:124:34: error: expected initializer before ‘CPLGetLastErrorMsg’
cargo:warning= const char CPL_DLL * CPL_STDCALL CPLGetLastErrorMsg( void );
cargo:warning=                                  ^
cargo:warning=./src/gdal/cpl_error.h:125:28: error: expected initializer before ‘CPLGetErrorHandlerUserData’
cargo:warning= void CPL_DLL * CPL_STDCALL CPLGetErrorHandlerUserData(void);
cargo:warning=                            ^
cargo:warning=./src/gdal/cpl_error.h:129:27: error: expected ‘)’ before ‘*’ token
cargo:warning= typedef void (CPL_STDCALL *CPLErrorHandler)(CPLErr, CPLErrorNum, const char*);
cargo:warning=                           ^
cargo:warning=./src/gdal/cpl_error.h:131:26: error: expected initializer before ‘CPLLoggingErrorHandler’
cargo:warning= void CPL_DLL CPL_STDCALL CPLLoggingErrorHandler( CPLErr, CPLErrorNum, const char * );
cargo:warning=                          ^
cargo:warning=./src/gdal/cpl_error.h:132:26: error: expected initializer before ‘CPLDefaultErrorHandler’
cargo:warning= void CPL_DLL CPL_STDCALL CPLDefaultErrorHandler( CPLErr, CPLErrorNum, const char * );
cargo:warning=                          ^
cargo:warning=./src/gdal/cpl_error.h:133:26: error: expected initializer before ‘CPLQuietErrorHandler’
cargo:warning= void CPL_DLL CPL_STDCALL CPLQuietErrorHandler( CPLErr, CPLErrorNum, const char * );
cargo:warning=                          ^
cargo:warning=./src/gdal/cpl_error.h:136:1: error: ‘CPLErrorHandler’ does not name a type
cargo:warning= CPLErrorHandler CPL_DLL CPL_STDCALL CPLSetErrorHandler(CPLErrorHandler);
cargo:warning= ^
cargo:warning=./src/gdal/cpl_error.h:137:1: error: ‘CPLErrorHandler’ does not name a type
cargo:warning= CPLErrorHandler CPL_DLL CPL_STDCALL CPLSetErrorHandlerEx(CPLErrorHandler, void*);
cargo:warning= ^
cargo:warning=./src/gdal/cpl_error.h:138:26: error: expected initializer before ‘CPLPushErrorHandler’
cargo:warning= void CPL_DLL CPL_STDCALL CPLPushErrorHandler( CPLErrorHandler );
cargo:warning=                          ^
cargo:warning=./src/gdal/cpl_error.h:139:26: error: expected initializer before ‘CPLPushErrorHandlerEx’
cargo:warning= void CPL_DLL CPL_STDCALL CPLPushErrorHandlerEx( CPLErrorHandler, void* );
cargo:warning=                          ^
cargo:warning=./src/gdal/cpl_error.h:140:26: error: expected initializer before ‘CPLSetCurrentErrorHandlerCatchDebug’
cargo:warning= void CPL_DLL CPL_STDCALL CPLSetCurrentErrorHandlerCatchDebug( int bCatchDebug );
cargo:warning=                          ^
cargo:warning=./src/gdal/cpl_error.h:141:26: error: expected initializer before ‘CPLPopErrorHandler’
cargo:warning= void CPL_DLL CPL_STDCALL CPLPopErrorHandler(void);
cargo:warning=                          ^
cargo:warning=./src/gdal/cpl_error.h:143:26: error: expected initializer before ‘CPLDebug’
cargo:warning= void CPL_DLL CPL_STDCALL CPLDebug( const char *, const char *, ... )  CPL_PRINT_FUNC_FORMAT (2, 3);
cargo:warning=                          ^
cargo:warning=./src/gdal/cpl_error.h:144:26: error: expected initializer before ‘_CPLAssert’
cargo:warning= void CPL_DLL CPL_STDCALL _CPLAssert( const char *, const char *, int ) CPL_NO_RETURN;
cargo:warning=                          ^
cargo:warning=In file included from ./src/gdal/ogr_featurestyle.h:33:0,
cargo:warning=                 from ./src/gdal/ogr_feature.h:35,
cargo:warning=                 from ./src/gdal/ogrsf_frmts.h:35,
cargo:warning=                 from ./src/tileset.cpp:2:
cargo:warning=./src/gdal/cpl_conv.h:54:1: error: expected initializer before ‘CPLGetConfigOption’
cargo:warning= CPLGetConfigOption( const char *, const char * ) CPL_WARN_UNUSED_RESULT;
cargo:warning= ^
cargo:warning=./src/gdal/cpl_conv.h:56:1: error: expected initializer before ‘CPLGetThreadLocalConfigOption’
cargo:warning= CPLGetThreadLocalConfigOption( const char *, const char * ) CPL_WARN_UNUSED_RESULT;
cargo:warning= ^
cargo:warning=./src/gdal/cpl_conv.h:57:26: error: expected initializer before ‘CPLSetConfigOption’
cargo:warning= void CPL_DLL CPL_STDCALL CPLSetConfigOption( const char *, const char * );
cargo:warning=                          ^
cargo:warning=./src/gdal/cpl_conv.h:58:26: error: expected initializer before ‘CPLSetThreadLocalConfigOption’
cargo:warning= void CPL_DLL CPL_STDCALL CPLSetThreadLocalConfigOption( const char *pszKey,
cargo:warning=                          ^
cargo:warning=./src/gdal/cpl_conv.h:60:26: error: expected initializer before ‘CPLFreeConfig’
cargo:warning= void CPL_DLL CPL_STDCALL CPLFreeConfig(void);
cargo:warning=                          ^
cargo:warning=In file included from ./src/gdal/ogr_featurestyle.h:34:0,
cargo:warning=                 from ./src/gdal/ogr_feature.h:35,
cargo:warning=                 from ./src/gdal/ogrsf_frmts.h:35,
cargo:warning=                 from ./src/tileset.cpp:2:
cargo:warning=./src/gdal/cpl_string.h:73:26: error: expected initializer before ‘CSLDestroy’
cargo:warning= void CPL_DLL CPL_STDCALL CSLDestroy(char **papszStrList);
cargo:warning=                          ^
cargo:warning=In file included from ./src/gdal/gdal.h:47:0,
cargo:warning=                 from ./src/gdal/gdal_priv.h:60,
cargo:warning=                 from ./src/gdal/ogrsf_frmts.h:37,
cargo:warning=                 from ./src/tileset.cpp:2:
cargo:warning=./src/gdal/ogr_api.h:521:77: error: ‘GDALProgressFunc’ has not been declared
cargo:warning= OGRErr CPL_DLL OGR_L_Intersection( OGRLayerH, OGRLayerH, OGRLayerH, char**, GDALProgressFunc, void * );
cargo:warning=                                                                             ^
cargo:warning=./src/gdal/ogr_api.h:522:70: error: ‘GDALProgressFunc’ has not been declared
cargo:warning= OGRErr CPL_DLL OGR_L_Union( OGRLayerH, OGRLayerH, OGRLayerH, char**, GDALProgressFunc, void * );
cargo:warning=                                                                      ^
cargo:warning=./src/gdal/ogr_api.h:523:78: error: ‘GDALProgressFunc’ has not been declared
cargo:warning= OGRErr CPL_DLL OGR_L_SymDifference( OGRLayerH, OGRLayerH, OGRLayerH, char**, GDALProgressFunc, void * );
cargo:warning=                                                                              ^
cargo:warning=./src/gdal/ogr_api.h:524:73: error: ‘GDALProgressFunc’ has not been declared
cargo:warning= OGRErr CPL_DLL OGR_L_Identity( OGRLayerH, OGRLayerH, OGRLayerH, char**, GDALProgressFunc, void * );
cargo:warning=                                                                         ^
cargo:warning=./src/gdal/ogr_api.h:525:71: error: ‘GDALProgressFunc’ has not been declared
cargo:warning= OGRErr CPL_DLL OGR_L_Update( OGRLayerH, OGRLayerH, OGRLayerH, char**, GDALProgressFunc, void * );
cargo:warning=                                                                       ^
cargo:warning=./src/gdal/ogr_api.h:526:69: error: ‘GDALProgressFunc’ has not been declared
cargo:warning= OGRErr CPL_DLL OGR_L_Clip( OGRLayerH, OGRLayerH, OGRLayerH, char**, GDALProgressFunc, void * );
cargo:warning=                                                                     ^
cargo:warning=./src/gdal/ogr_api.h:527:70: error: ‘GDALProgressFunc’ has not been declared
cargo:warning= OGRErr CPL_DLL OGR_L_Erase( OGRLayerH, OGRLayerH, OGRLayerH, char**, GDALProgressFunc, void * );
cargo:warning=                                                                      ^
cargo:warning=In file included from ./src/gdal/gdal_priv.h:60:0,
cargo:warning=                 from ./src/gdal/ogrsf_frmts.h:37,
cargo:warning=                 from ./src/tileset.cpp:2:
cargo:warning=./src/gdal/gdal.h:73:25: error: expected initializer before ‘GDALGetDataTypeSize’
cargo:warning= int CPL_DLL CPL_STDCALL GDALGetDataTypeSize( GDALDataType );  // Deprecated.
cargo:warning=                         ^
cargo:warning=./src/gdal/gdal.h:74:25: error: expected initializer before ‘GDALGetDataTypeSizeBits’
cargo:warning= int CPL_DLL CPL_STDCALL GDALGetDataTypeSizeBits( GDALDataType eDataType );
cargo:warning=                         ^
cargo:warning=./src/gdal/gdal.h:75:25: error: expected initializer before ‘GDALGetDataTypeSizeBytes’
cargo:warning= int CPL_DLL CPL_STDCALL GDALGetDataTypeSizeBytes( GDALDataType );
cargo:warning=                         ^
cargo:warning=./src/gdal/gdal.h:76:25: error: expected initializer before ‘GDALDataTypeIsComplex’
cargo:warning= int CPL_DLL CPL_STDCALL GDALDataTypeIsComplex( GDALDataType );
cargo:warning=                         ^
cargo:warning=./src/gdal/gdal.h:77:34: error: expected initializer before ‘GDALGetDataTypeName’
cargo:warning= const char CPL_DLL * CPL_STDCALL GDALGetDataTypeName( GDALDataType );
cargo:warning=                                  ^
cargo:warning=./src/gdal/gdal.h:78:34: error: expected initializer before ‘GDALGetDataTypeByName’
cargo:warning= GDALDataType CPL_DLL CPL_STDCALL GDALGetDataTypeByName( const char * );
cargo:warning=                                  ^
cargo:warning=./src/gdal/gdal.h:79:34: error: expected initializer before ‘GDALDataTypeUnion’
cargo:warning= GDALDataType CPL_DLL CPL_STDCALL GDALDataTypeUnion( GDALDataType, GDALDataType );
cargo:warning=                                  ^
cargo:warning=./src/gdal/gdal.h:94:34: error: expected initializer before ‘GDALGetAsyncStatusTypeName’
cargo:warning= const char CPL_DLL * CPL_STDCALL GDALGetAsyncStatusTypeName( GDALAsyncStatusType );
cargo:warning=                                  ^
cargo:warning=./src/gdal/gdal.h:95:41: error: expected initializer before ‘GDALGetAsyncStatusTypeByName’
cargo:warning= GDALAsyncStatusType CPL_DLL CPL_STDCALL GDALGetAsyncStatusTypeByName( const char * );
cargo:warning=                                         ^
cargo:warning=./src/gdal/gdal.h:141:5: error: ‘GDALProgressFunc’ does not name a type
cargo:warning=     GDALProgressFunc       pfnProgress;
cargo:warning=     ^
cargo:warning=./src/gdal/gdal.h:338:26: error: expected initializer before ‘GDALAllRegister’
cargo:warning= void CPL_DLL CPL_STDCALL GDALAllRegister( void );
cargo:warning=                          ^
cargo:warning=./src/gdal/gdal.h:340:34: error: expected initializer before ‘GDALCreate’
cargo:warning= GDALDatasetH CPL_DLL CPL_STDCALL GDALCreate( GDALDriverH hDriver,
cargo:warning=                                  ^
cargo:warning=./src/gdal/gdal.h:344:1: error: expected initializer before ‘GDALCreateCopy’
cargo:warning= GDALCreateCopy( GDALDriverH, const char *, GDALDatasetH,
cargo:warning= ^
cargo:warning=./src/gdal/gdal.h:347:33: error: expected initializer before ‘GDALIdentifyDriver’
cargo:warning= GDALDriverH CPL_DLL CPL_STDCALL GDALIdentifyDriver( const char * pszFilename,
cargo:warning=                                 ^
cargo:warning=./src/gdal/gdal.h:350:1: error: expected initializer before ‘GDALOpen’
cargo:warning= GDALOpen( const char *pszFilename, GDALAccess eAccess ) CPL_WARN_UNUSED_RESULT;
cargo:warning= ^
cargo:warning=./src/gdal/gdal.h:351:34: error: expected initializer before ‘GDALOpenShared’
cargo:warning= GDALDatasetH CPL_DLL CPL_STDCALL GDALOpenShared( const char *, GDALAccess ) CPL_WARN_UNUSED_RESULT;
cargo:warning=                                  ^
cargo:warning=./src/gdal/gdal.h:455:34: error: expected initializer before ‘GDALOpenEx’
cargo:warning= GDALDatasetH CPL_DLL CPL_STDCALL GDALOpenEx( const char* pszFilename,
cargo:warning=                                  ^
cargo:warning=./src/gdal/gdal.h:461:34: error: expected initializer before ‘GDALDumpOpenDatasets’
cargo:warning= int          CPL_DLL CPL_STDCALL GDALDumpOpenDatasets( FILE * );
cargo:warning=                                  ^
cargo:warning=./src/gdal/gdal.h:463:33: error: expected initializer before ‘GDALGetDriverByName’
cargo:warning= GDALDriverH CPL_DLL CPL_STDCALL GDALGetDriverByName( const char * );
cargo:warning=                                 ^
cargo:warning=./src/gdal/gdal.h:464:33: error: expected initializer before ‘GDALGetDriverCount’
cargo:warning= int CPL_DLL         CPL_STDCALL GDALGetDriverCount( void );
cargo:warning=                                 ^
cargo:warning=./src/gdal/gdal.h:465:33: error: expected initializer before ‘GDALGetDriver’
cargo:warning= GDALDriverH CPL_DLL CPL_STDCALL GDALGetDriver( int );
cargo:warning=                                 ^
cargo:warning=./src/gdal/gdal.h:466:33: error: expected initializer before ‘GDALDestroyDriver’
cargo:warning= void        CPL_DLL CPL_STDCALL GDALDestroyDriver( GDALDriverH );
cargo:warning=                                 ^
cargo:warning=./src/gdal/gdal.h:467:33: error: expected initializer before ‘GDALRegisterDriver’
cargo:warning= int         CPL_DLL CPL_STDCALL GDALRegisterDriver( GDALDriverH );
cargo:warning=                                 ^
cargo:warning=./src/gdal/gdal.h:468:33: error: expected initializer before ‘GDALDeregisterDriver’
cargo:warning= void        CPL_DLL CPL_STDCALL GDALDeregisterDriver( GDALDriverH );
cargo:warning=                                 ^
cargo:warning=./src/gdal/gdal.h:469:33: error: expected initializer before ‘GDALDestroyDriverManager’
cargo:warning= void        CPL_DLL CPL_STDCALL GDALDestroyDriverManager( void );
cargo:warning=                                 ^
cargo:warning=./src/gdal/gdal.h:471:33: error: expected initializer before ‘GDALDeleteDataset’
cargo:warning= CPLErr      CPL_DLL CPL_STDCALL GDALDeleteDataset( GDALDriverH, const char * );
cargo:warning=                                 ^
cargo:warning=./src/gdal/gdal.h:472:33: error: expected initializer before ‘GDALRenameDataset’
cargo:warning= CPLErr      CPL_DLL CPL_STDCALL GDALRenameDataset( GDALDriverH,
cargo:warning=                                 ^
cargo:warning=./src/gdal/gdal.h:475:33: error: expected initializer before ‘GDALCopyDatasetFiles’
cargo:warning= CPLErr      CPL_DLL CPL_STDCALL GDALCopyDatasetFiles( GDALDriverH,
cargo:warning=                                 ^
cargo:warning=./src/gdal/gdal.h:478:33: error: expected initializer before ‘GDALValidateCreationOptions’
cargo:warning= int         CPL_DLL CPL_STDCALL GDALValidateCreationOptions( GDALDriverH,
cargo:warning=                                 ^
cargo:warning=./src/gdal/gdal.h:482:34: error: expected initializer before ‘GDALGetDriverShortName’
cargo:warning= const char CPL_DLL * CPL_STDCALL GDALGetDriverShortName( GDALDriverH );
cargo:warning=                                  ^
cargo:warning=./src/gdal/gdal.h:483:34: error: expected initializer before ‘GDALGetDriverLongName’
cargo:warning= const char CPL_DLL * CPL_STDCALL GDALGetDriverLongName( GDALDriverH );
cargo:warning=                                  ^
cargo:warning=./src/gdal/gdal.h:484:34: error: expected initializer before ‘GDALGetDriverHelpTopic’
cargo:warning= const char CPL_DLL * CPL_STDCALL GDALGetDriverHelpTopic( GDALDriverH );
cargo:warning=                                  ^
cargo:warning=./src/gdal/gdal.h:485:34: error: expected initializer before ‘GDALGetDriverCreationOptionList’
cargo:warning= const char CPL_DLL * CPL_STDCALL GDALGetDriverCreationOptionList( GDALDriverH );
cargo:warning=                                  ^
cargo:warning=./src/gdal/gdal.h:515:26: error: expected initializer before ‘GDALInitGCPs’
cargo:warning= void CPL_DLL CPL_STDCALL GDALInitGCPs( int, GDAL_GCP * );
cargo:warning=                          ^
cargo:warning=./src/gdal/gdal.h:516:26: error: expected initializer before ‘GDALDeinitGCPs’
cargo:warning= void CPL_DLL CPL_STDCALL GDALDeinitGCPs( int, GDAL_GCP * );
cargo:warning=                          ^
cargo:warning=./src/gdal/gdal.h:517:32: error: expected initializer before ‘GDALDuplicateGCPs’
cargo:warning= GDAL_GCP CPL_DLL * CPL_STDCALL GDALDuplicateGCPs( int, const GDAL_GCP * );
cargo:warning=                                ^
cargo:warning=./src/gdal/gdal.h:520:1: error: expected initializer before ‘GDALGCPsToGeoTransform’
cargo:warning= GDALGCPsToGeoTransform( int nGCPCount, const GDAL_GCP *pasGCPs,
cargo:warning= ^
cargo:warning=./src/gdal/gdal.h:523:1: error: expected initializer before ‘GDALInvGeoTransform’
cargo:warning= GDALInvGeoTransform( double *padfGeoTransformIn,
cargo:warning= ^
cargo:warning=./src/gdal/gdal.h:525:26: error: expected initializer before ‘GDALApplyGeoTransform’
cargo:warning= void CPL_DLL CPL_STDCALL GDALApplyGeoTransform( double *, double, double,
cargo:warning=                          ^
cargo:warning=./src/gdal/gdal.h:535:30: error: expected initializer before ‘GDALGetMetadataDomainList’
cargo:warning= char CPL_DLL  ** CPL_STDCALL GDALGetMetadataDomainList( GDALMajorObjectH hObject );
cargo:warning=                              ^
cargo:warning=./src/gdal/gdal.h:536:30: error: expected initializer before ‘GDALGetMetadata’
cargo:warning= char CPL_DLL  ** CPL_STDCALL GDALGetMetadata( GDALMajorObjectH, const char * );
cargo:warning=                              ^
cargo:warning=./src/gdal/gdal.h:537:28: error: expected initializer before ‘GDALSetMetadata’
cargo:warning= CPLErr CPL_DLL CPL_STDCALL GDALSetMetadata( GDALMajorObjectH, char **,
cargo:warning=                            ^
cargo:warning=./src/gdal/gdal.h:540:1: error: expected initializer before ‘GDALGetMetadataItem’
cargo:warning= GDALGetMetadataItem( GDALMajorObjectH, const char *, const char * );
cargo:warning= ^
cargo:warning=./src/gdal/gdal.h:542:1: error: expected initializer before ‘GDALSetMetadataItem’
cargo:warning= GDALSetMetadataItem( GDALMajorObjectH, const char *, const char *,
cargo:warning= ^
cargo:warning=./src/gdal/gdal.h:544:34: error: expected initializer before ‘GDALGetDescription’
cargo:warning= const char CPL_DLL * CPL_STDCALL GDALGetDescription( GDALMajorObjectH );
cargo:warning=                                  ^
cargo:warning=./src/gdal/gdal.h:545:26: error: expected initializer before ‘GDALSetDescription’
cargo:warning= void CPL_DLL CPL_STDCALL GDALSetDescription( GDALMajorObjectH, const char * );
cargo:warning=                          ^
cargo:warning=./src/gdal/gdal.h:553:33: error: expected initializer before ‘GDALGetDatasetDriver’
cargo:warning= GDALDriverH CPL_DLL CPL_STDCALL GDALGetDatasetDriver( GDALDatasetH );
cargo:warning=                                 ^
cargo:warning=./src/gdal/gdal.h:554:29: error: expected initializer before ‘GDALGetFileList’
cargo:warning= char CPL_DLL ** CPL_STDCALL GDALGetFileList( GDALDatasetH );
cargo:warning=                             ^
cargo:warning=./src/gdal/gdal.h:555:28: error: expected initializer before ‘GDALClose’
cargo:warning= void CPL_DLL CPL_STDCALL   GDALClose( GDALDatasetH );
cargo:warning=                            ^
cargo:warning=./src/gdal/gdal.h:556:29: error: expected initializer before ‘GDALGetRasterXSize’
cargo:warning= int CPL_DLL CPL_STDCALL     GDALGetRasterXSize( GDALDatasetH );
cargo:warning=                             ^
cargo:warning=./src/gdal/gdal.h:557:29: error: expected initializer before ‘GDALGetRasterYSize’
cargo:warning= int CPL_DLL CPL_STDCALL     GDALGetRasterYSize( GDALDatasetH );
cargo:warning=                             ^
cargo:warning=./src/gdal/gdal.h:558:29: error: expected initializer before ‘GDALGetRasterCount’
cargo:warning= int CPL_DLL CPL_STDCALL     GDALGetRasterCount( GDALDatasetH );
cargo:warning=                             ^
cargo:warning=./src/gdal/gdal.h:559:37: error: expected initializer before ‘GDALGetRasterBand’
cargo:warning= GDALRasterBandH CPL_DLL CPL_STDCALL GDALGetRasterBand( GDALDatasetH, int );
cargo:warning=                                     ^
cargo:warning=./src/gdal/gdal.h:561:29: error: expected initializer before ‘GDALAddBand’
cargo:warning= CPLErr CPL_DLL  CPL_STDCALL GDALAddBand( GDALDatasetH hDS, GDALDataType eType,
cargo:warning=                             ^
cargo:warning=./src/gdal/gdal.h:565:1: error: expected initializer before ‘GDALBeginAsyncReader’
cargo:warning= GDALBeginAsyncReader(GDALDatasetH hDS, int nXOff, int nYOff,
cargo:warning= ^
cargo:warning=./src/gdal/gdal.h:573:1: error: expected initializer before ‘GDALEndAsyncReader’
cargo:warning= GDALEndAsyncReader(GDALDatasetH hDS, GDALAsyncReaderH hAsynchReaderH);
cargo:warning= ^
cargo:warning=./src/gdal/gdal.h:575:28: error: expected initializer before ‘GDALDatasetRasterIO’
cargo:warning= CPLErr CPL_DLL CPL_STDCALL GDALDatasetRasterIO(
cargo:warning=                            ^
cargo:warning=./src/gdal/gdal.h:582:28: error: expected initializer before ‘GDALDatasetRasterIOEx’
cargo:warning= CPLErr CPL_DLL CPL_STDCALL GDALDatasetRasterIOEx(
cargo:warning=                            ^
cargo:warning=./src/gdal/gdal.h:590:28: error: expected initializer before ‘GDALDatasetAdviseRead’
cargo:warning= CPLErr CPL_DLL CPL_STDCALL GDALDatasetAdviseRead( GDALDatasetH hDS,
cargo:warning=                            ^
cargo:warning=./src/gdal/gdal.h:595:34: error: expected initializer before ‘GDALGetProjectionRef’
cargo:warning= const char CPL_DLL * CPL_STDCALL GDALGetProjectionRef( GDALDatasetH );
cargo:warning=                                  ^
cargo:warning=./src/gdal/gdal.h:596:28: error: expected initializer before ‘GDALSetProjection’
cargo:warning= CPLErr CPL_DLL CPL_STDCALL GDALSetProjection( GDALDatasetH, const char * );
cargo:warning=                            ^
cargo:warning=./src/gdal/gdal.h:597:28: error: expected initializer before ‘GDALGetGeoTransform’
cargo:warning= CPLErr CPL_DLL CPL_STDCALL GDALGetGeoTransform( GDALDatasetH, double * );
cargo:warning=                            ^
cargo:warning=./src/gdal/gdal.h:598:28: error: expected initializer before ‘GDALSetGeoTransform’
cargo:warning= CPLErr CPL_DLL CPL_STDCALL GDALSetGeoTransform( GDALDatasetH, double * );
cargo:warning=                            ^
cargo:warning=./src/gdal/gdal.h:600:26: error: expected initializer before ‘GDALGetGCPCount’
cargo:warning= int CPL_DLL CPL_STDCALL  GDALGetGCPCount( GDALDatasetH );
cargo:warning=                          ^
cargo:warning=./src/gdal/gdal.h:601:34: error: expected initializer before ‘GDALGetGCPProjection’
cargo:warning= const char CPL_DLL * CPL_STDCALL GDALGetGCPProjection( GDALDatasetH );
cargo:warning=                                  ^
cargo:warning=./src/gdal/gdal.h:602:38: error: expected initializer before ‘GDALGetGCPs’
cargo:warning= const GDAL_GCP CPL_DLL * CPL_STDCALL GDALGetGCPs( GDALDatasetH );
cargo:warning=                                      ^
cargo:warning=./src/gdal/gdal.h:603:28: error: expected initializer before ‘GDALSetGCPs’
cargo:warning= CPLErr CPL_DLL CPL_STDCALL GDALSetGCPs( GDALDatasetH, int, const GDAL_GCP *,
cargo:warning=                            ^
cargo:warning=./src/gdal/gdal.h:606:28: error: expected initializer before ‘GDALGetInternalHandle’
cargo:warning= void CPL_DLL * CPL_STDCALL GDALGetInternalHandle( GDALDatasetH, const char * );
cargo:warning=                            ^
cargo:warning=./src/gdal/gdal.h:607:25: error: expected initializer before ‘GDALReferenceDataset’
cargo:warning= int CPL_DLL CPL_STDCALL GDALReferenceDataset( GDALDatasetH );
cargo:warning=                         ^
cargo:warning=./src/gdal/gdal.h:608:25: error: expected initializer before ‘GDALDereferenceDataset’
cargo:warning= int CPL_DLL CPL_STDCALL GDALDereferenceDataset( GDALDatasetH );
cargo:warning=                         ^
cargo:warning=./src/gdal/gdal.h:611:1: error: expected initializer before ‘GDALBuildOverviews’
cargo:warning= GDALBuildOverviews( GDALDatasetH, const char *, int, int *,
cargo:warning= ^
cargo:warning=./src/gdal/gdal.h:613:26: error: expected initializer before ‘GDALGetOpenDatasets’
cargo:warning= void CPL_DLL CPL_STDCALL GDALGetOpenDatasets( GDALDatasetH **hDS, int *pnCount );
cargo:warning=                          ^
cargo:warning=./src/gdal/gdal.h:614:25: error: expected initializer before ‘GDALGetAccess’
cargo:warning= int CPL_DLL CPL_STDCALL GDALGetAccess( GDALDatasetH hDS );
cargo:warning=                         ^
cargo:warning=./src/gdal/gdal.h:615:26: error: expected initializer before ‘GDALFlushCache’
cargo:warning= void CPL_DLL CPL_STDCALL GDALFlushCache( GDALDatasetH hDS );
cargo:warning=                          ^
cargo:warning=./src/gdal/gdal.h:618:15: error: expected initializer before ‘GDALCreateDatasetMaskBand’
cargo:warning=               GDALCreateDatasetMaskBand( GDALDatasetH hDS, int nFlags );
cargo:warning=               ^
cargo:warning=./src/gdal/gdal.h:620:28: error: expected initializer before ‘GDALDatasetCopyWholeRaster’
cargo:warning= CPLErr CPL_DLL CPL_STDCALL GDALDatasetCopyWholeRaster(
cargo:warning=                            ^
cargo:warning=./src/gdal/gdal.h:624:28: error: expected initializer before ‘GDALRasterBandCopyWholeRaster’
cargo:warning= CPLErr CPL_DLL CPL_STDCALL GDALRasterBandCopyWholeRaster(
cargo:warning=                            ^
cargo:warning=./src/gdal/gdal.h:632:26: error: ‘GDALProgressFunc’ has not been declared
cargo:warning=                          GDALProgressFunc pfnProgress, void *pProgressData );
cargo:warning=                          ^
cargo:warning=./src/gdal/gdal.h:693:34: error: expected initializer before ‘GDALGetRasterDataType’
cargo:warning= GDALDataType CPL_DLL CPL_STDCALL GDALGetRasterDataType( GDALRasterBandH );
cargo:warning=                                  ^
cargo:warning=./src/gdal/gdal.h:695:1: error: expected initializer before ‘GDALGetBlockSize’
cargo:warning= GDALGetBlockSize( GDALRasterBandH, int * pnXSize, int * pnYSize );
cargo:warning= ^
cargo:warning=./src/gdal/gdal.h:697:28: error: expected initializer before ‘GDALRasterAdviseRead’
cargo:warning= CPLErr CPL_DLL CPL_STDCALL GDALRasterAdviseRead( GDALRasterBandH hRB,
cargo:warning=                            ^
cargo:warning=./src/gdal/gdal.h:702:1: error: expected initializer before ‘GDALRasterIO’
cargo:warning= GDALRasterIO( GDALRasterBandH hRBand, GDALRWFlag eRWFlag,
cargo:warning= ^
cargo:warning=./src/gdal/gdal.h:707:1: error: expected initializer before ‘GDALRasterIOEx’
cargo:warning= GDALRasterIOEx( GDALRasterBandH hRBand, GDALRWFlag eRWFlag,
cargo:warning= ^
cargo:warning=./src/gdal/gdal.h:712:28: error: expected initializer before ‘GDALReadBlock’
cargo:warning= CPLErr CPL_DLL CPL_STDCALL GDALReadBlock( GDALRasterBandH, int, int, void * ) CPL_WARN_UNUSED_RESULT;
cargo:warning=                            ^
cargo:warning=./src/gdal/gdal.h:713:28: error: expected initializer before ‘GDALWriteBlock’
cargo:warning= CPLErr CPL_DLL CPL_STDCALL GDALWriteBlock( GDALRasterBandH, int, int, void * ) CPL_WARN_UNUSED_RESULT;
cargo:warning=                            ^
cargo:warning=./src/gdal/gdal.h:714:25: error: expected initializer before ‘GDALGetRasterBandXSize’
cargo:warning= int CPL_DLL CPL_STDCALL GDALGetRasterBandXSize( GDALRasterBandH );
cargo:warning=                         ^
cargo:warning=./src/gdal/gdal.h:715:25: error: expected initializer before ‘GDALGetRasterBandYSize’
cargo:warning= int CPL_DLL CPL_STDCALL GDALGetRasterBandYSize( GDALRasterBandH );
cargo:warning=                         ^
cargo:warning=./src/gdal/gdal.h:716:32: error: expected initializer before ‘GDALGetRasterAccess’
cargo:warning= GDALAccess CPL_DLL CPL_STDCALL GDALGetRasterAccess( GDALRasterBandH );
cargo:warning=                                ^
cargo:warning=./src/gdal/gdal.h:717:25: error: expected initializer before ‘GDALGetBandNumber’
cargo:warning= int CPL_DLL CPL_STDCALL GDALGetBandNumber( GDALRasterBandH );
cargo:warning=                         ^
cargo:warning=./src/gdal/gdal.h:718:34: error: expected initializer before ‘GDALGetBandDataset’
cargo:warning= GDALDatasetH CPL_DLL CPL_STDCALL GDALGetBandDataset( GDALRasterBandH );
cargo:warning=                                  ^
cargo:warning=./src/gdal/gdal.h:721:1: error: expected initializer before ‘GDALGetRasterColorInterpretation’
cargo:warning= GDALGetRasterColorInterpretation( GDALRasterBandH );
cargo:warning= ^
cargo:warning=./src/gdal/gdal.h:723:1: error: expected initializer before ‘GDALSetRasterColorInterpretation’
cargo:warning= GDALSetRasterColorInterpretation( GDALRasterBandH, GDALColorInterp );
cargo:warning= ^
cargo:warning=./src/gdal/gdal.h:724:37: error: expected initializer before ‘GDALGetRasterColorTable’
cargo:warning= GDALColorTableH CPL_DLL CPL_STDCALL GDALGetRasterColorTable( GDALRasterBandH );
cargo:warning=                                     ^
cargo:warning=./src/gdal/gdal.h:725:28: error: expected initializer before ‘GDALSetRasterColorTable’
cargo:warning= CPLErr CPL_DLL CPL_STDCALL GDALSetRasterColorTable( GDALRasterBandH, GDALColorTableH );
cargo:warning=                            ^
cargo:warning=./src/gdal/gdal.h:726:25: error: expected initializer before ‘GDALHasArbitraryOverviews’
cargo:warning= int CPL_DLL CPL_STDCALL GDALHasArbitraryOverviews( GDALRasterBandH );
cargo:warning=                         ^
cargo:warning=./src/gdal/gdal.h:727:25: error: expected initializer before ‘GDALGetOverviewCount’
cargo:warning= int CPL_DLL CPL_STDCALL GDALGetOverviewCount( GDALRasterBandH );
cargo:warning=                         ^
cargo:warning=./src/gdal/gdal.h:728:37: error: expected initializer before ‘GDALGetOverview’
cargo:warning= GDALRasterBandH CPL_DLL CPL_STDCALL GDALGetOverview( GDALRasterBandH, int );
cargo:warning=                                     ^
cargo:warning=./src/gdal/gdal.h:729:28: error: expected initializer before ‘GDALGetRasterNoDataValue’
cargo:warning= double CPL_DLL CPL_STDCALL GDALGetRasterNoDataValue( GDALRasterBandH, int * );
cargo:warning=                            ^
cargo:warning=./src/gdal/gdal.h:730:28: error: expected initializer before ‘GDALSetRasterNoDataValue’
cargo:warning= CPLErr CPL_DLL CPL_STDCALL GDALSetRasterNoDataValue( GDALRasterBandH, double );
cargo:warning=                            ^
cargo:warning=./src/gdal/gdal.h:731:28: error: expected initializer before ‘GDALDeleteRasterNoDataValue’
cargo:warning= CPLErr CPL_DLL CPL_STDCALL GDALDeleteRasterNoDataValue( GDALRasterBandH );
cargo:warning=                            ^
cargo:warning=./src/gdal/gdal.h:732:29: error: expected initializer before ‘GDALGetRasterCategoryNames’
cargo:warning= char CPL_DLL ** CPL_STDCALL GDALGetRasterCategoryNames( GDALRasterBandH );
cargo:warning=                             ^
cargo:warning=./src/gdal/gdal.h:733:28: error: expected initializer before ‘GDALSetRasterCategoryNames’
cargo:warning= CPLErr CPL_DLL CPL_STDCALL GDALSetRasterCategoryNames( GDALRasterBandH, char ** );
cargo:warning=                            ^
cargo:warning=./src/gdal/gdal.h:734:28: error: expected initializer before ‘GDALGetRasterMinimum’
cargo:warning= double CPL_DLL CPL_STDCALL GDALGetRasterMinimum( GDALRasterBandH, int *pbSuccess );
cargo:warning=                            ^
cargo:warning=./src/gdal/gdal.h:735:28: error: expected initializer before ‘GDALGetRasterMaximum’
cargo:warning= double CPL_DLL CPL_STDCALL GDALGetRasterMaximum( GDALRasterBandH, int *pbSuccess );
cargo:warning=                            ^
cargo:warning=./src/gdal/gdal.h:736:28: error: expected initializer before ‘GDALGetRasterStatistics’
cargo:warning= CPLErr CPL_DLL CPL_STDCALL GDALGetRasterStatistics(
cargo:warning=                            ^
cargo:warning=./src/gdal/gdal.h:739:28: error: expected initializer before ‘GDALComputeRasterStatistics’
cargo:warning= CPLErr CPL_DLL CPL_STDCALL GDALComputeRasterStatistics(
cargo:warning=                            ^
cargo:warning=./src/gdal/gdal.h:743:28: error: expected initializer before ‘GDALSetRasterStatistics’
cargo:warning= CPLErr CPL_DLL CPL_STDCALL GDALSetRasterStatistics(
cargo:warning=                            ^
cargo:warning=./src/gdal/gdal.h:747:34: error: expected initializer before ‘GDALGetRasterUnitType’
cargo:warning= const char CPL_DLL * CPL_STDCALL GDALGetRasterUnitType( GDALRasterBandH );
cargo:warning=                                  ^
cargo:warning=./src/gdal/gdal.h:748:28: error: expected initializer before ‘GDALSetRasterUnitType’
cargo:warning= CPLErr CPL_DLL CPL_STDCALL GDALSetRasterUnitType( GDALRasterBandH hBand, const char *pszNewValue );
cargo:warning=                            ^
cargo:warning=./src/gdal/gdal.h:749:28: error: expected initializer before ‘GDALGetRasterOffset’
cargo:warning= double CPL_DLL CPL_STDCALL GDALGetRasterOffset( GDALRasterBandH, int *pbSuccess );
cargo:warning=                            ^
cargo:warning=./src/gdal/gdal.h:750:28: error: expected initializer before ‘GDALSetRasterOffset’
cargo:warning= CPLErr CPL_DLL CPL_STDCALL GDALSetRasterOffset( GDALRasterBandH hBand, double dfNewOffset);
cargo:warning=                            ^
cargo:warning=./src/gdal/gdal.h:751:28: error: expected initializer before ‘GDALGetRasterScale’
cargo:warning= double CPL_DLL CPL_STDCALL GDALGetRasterScale( GDALRasterBandH, int *pbSuccess );
cargo:warning=                            ^
cargo:warning=./src/gdal/gdal.h:752:28: error: expected initializer before ‘GDALSetRasterScale’
cargo:warning= CPLErr CPL_DLL CPL_STDCALL GDALSetRasterScale( GDALRasterBandH hBand, double dfNewOffset );
cargo:warning=                            ^
cargo:warning=./src/gdal/gdal.h:754:1: error: expected initializer before ‘GDALComputeRasterMinMax’
cargo:warning= GDALComputeRasterMinMax( GDALRasterBandH hBand, int bApproxOK,
cargo:warning= ^
cargo:warning=./src/gdal/gdal.h:756:28: error: expected initializer before ‘GDALFlushRasterCache’
cargo:warning= CPLErr CPL_DLL CPL_STDCALL GDALFlushRasterCache( GDALRasterBandH hBand );
cargo:warning=                            ^
cargo:warning=./src/gdal/gdal.h:757:28: error: expected initializer before ‘GDALGetRasterHistogram’
cargo:warning= CPLErr CPL_DLL CPL_STDCALL GDALGetRasterHistogram( GDALRasterBandH hBand,
cargo:warning=                            ^
cargo:warning=./src/gdal/gdal.h:763:28: error: expected initializer before ‘GDALGetRasterHistogramEx’
cargo:warning= CPLErr CPL_DLL CPL_STDCALL GDALGetRasterHistogramEx( GDALRasterBandH hBand,
cargo:warning=                            ^
cargo:warning=./src/gdal/gdal.h:769:28: error: expected initializer before ‘GDALGetDefaultHistogram’
cargo:warning= CPLErr CPL_DLL CPL_STDCALL GDALGetDefaultHistogram( GDALRasterBandH hBand,
cargo:warning=                            ^
cargo:warning=./src/gdal/gdal.h:775:28: error: expected initializer before ‘GDALGetDefaultHistogramEx’
cargo:warning= CPLErr CPL_DLL CPL_STDCALL GDALGetDefaultHistogramEx( GDALRasterBandH hBand,
cargo:warning=                            ^
cargo:warning=./src/gdal/gdal.h:781:28: error: expected initializer before ‘GDALSetDefaultHistogram’
cargo:warning= CPLErr CPL_DLL CPL_STDCALL GDALSetDefaultHistogram( GDALRasterBandH hBand,
cargo:warning=                            ^
cargo:warning=In file included from ./src/gdal/gdal_priv.h:60:0,
cargo:warning=                 from ./src/gdal/ogrsf_frmts.h:37,
cargo:warning=                 from ./src/tileset.cpp:2:
cargo:warning=./src/gdal/gdal.h:784:28: error: expected initializer before ‘GDALSetDefaultHistogramEx’
cargo:warning= CPLErr CPL_DLL CPL_STDCALL GDALSetDefaultHistogramEx( GDALRasterBandH hBand,
cargo:warning=                            ^
cargo:warning=./src/gdal/gdal.h:788:1: error: expected initializer before ‘GDALGetRandomRasterSample’
cargo:warning= GDALGetRandomRasterSample( GDALRasterBandH, int, float * );
cargo:warning= ^
cargo:warning=./src/gdal/gdal.h:790:1: error: expected initializer before ‘GDALGetRasterSampleOverview’
cargo:warning= GDALGetRasterSampleOverview( GDALRasterBandH, int );
cargo:warning= ^
cargo:warning=./src/gdal/gdal.h:792:1: error: expected initializer before ‘GDALGetRasterSampleOverviewEx’
cargo:warning= GDALGetRasterSampleOverviewEx( GDALRasterBandH, GUIntBig );
cargo:warning= ^
cargo:warning=./src/gdal/gdal.h:793:28: error: expected initializer before ‘GDALFillRaster’
cargo:warning= CPLErr CPL_DLL CPL_STDCALL GDALFillRaster( GDALRasterBandH hBand,
cargo:warning=                            ^
cargo:warning=./src/gdal/gdal.h:796:1: error: expected initializer before ‘GDALComputeBandStats’
cargo:warning= GDALComputeBandStats( GDALRasterBandH hBand, int nSampleStep,
cargo:warning= ^
cargo:warning=./src/gdal/gdal.h:803:41: error: ‘GDALProgressFunc’ has not been declared
cargo:warning=                                         GDALProgressFunc pfnProgress,
cargo:warning=                                         ^
cargo:warning=./src/gdal/gdal.h:806:47: error: expected initializer before ‘GDALGetDefaultRAT’
cargo:warning= GDALRasterAttributeTableH CPL_DLL CPL_STDCALL GDALGetDefaultRAT(
cargo:warning=                                               ^
cargo:warning=./src/gdal/gdal.h:808:28: error: expected initializer before ‘GDALSetDefaultRAT’
cargo:warning= CPLErr CPL_DLL CPL_STDCALL GDALSetDefaultRAT( GDALRasterBandH,
cargo:warning=                            ^
cargo:warning=./src/gdal/gdal.h:810:28: error: expected initializer before ‘GDALAddDerivedBandPixelFunc’
cargo:warning= CPLErr CPL_DLL CPL_STDCALL GDALAddDerivedBandPixelFunc( const char *pszName,
cargo:warning=                            ^
cargo:warning=./src/gdal/gdal.h:813:37: error: expected initializer before ‘GDALGetMaskBand’
cargo:warning= GDALRasterBandH CPL_DLL CPL_STDCALL GDALGetMaskBand( GDALRasterBandH hBand );
cargo:warning=                                     ^
cargo:warning=./src/gdal/gdal.h:814:25: error: expected initializer before ‘GDALGetMaskFlags’
cargo:warning= int CPL_DLL CPL_STDCALL GDALGetMaskFlags( GDALRasterBandH hBand );
cargo:warning=                         ^
cargo:warning=./src/gdal/gdal.h:816:24: error: expected initializer before ‘GDALCreateMaskBand’
cargo:warning=                        GDALCreateMaskBand( GDALRasterBandH hBand, int nFlags );
cargo:warning=                        ^
cargo:warning=./src/gdal/gdal.h:828:1: error: expected initializer before ‘GDALARGetNextUpdatedRegion’
cargo:warning= GDALARGetNextUpdatedRegion(GDALAsyncReaderH hARIO, double dfTimeout,
cargo:warning= ^
cargo:warning=./src/gdal/gdal.h:831:25: error: expected initializer before ‘GDALARLockBuffer’
cargo:warning= int CPL_DLL CPL_STDCALL GDALARLockBuffer(GDALAsyncReaderH hARIO,
cargo:warning=                         ^
cargo:warning=./src/gdal/gdal.h:833:26: error: expected initializer before ‘GDALARUnlockBuffer’
cargo:warning= void CPL_DLL CPL_STDCALL GDALARUnlockBuffer(GDALAsyncReaderH hARIO);
cargo:warning=                          ^
cargo:warning=./src/gdal/gdal.h:838:25: error: expected initializer before ‘GDALGeneralCmdLineProcessor’
cargo:warning= int CPL_DLL CPL_STDCALL GDALGeneralCmdLineProcessor( int nArgc, char ***ppapszArgv,
cargo:warning=                         ^
cargo:warning=./src/gdal/gdal.h:840:26: error: expected initializer before ‘GDALSwapWords’
cargo:warning= void CPL_DLL CPL_STDCALL GDALSwapWords( void *pData, int nWordSize, int nWordCount,
cargo:warning=                          ^
cargo:warning=./src/gdal/gdal.h:842:26: error: expected initializer before ‘GDALSwapWordsEx’
cargo:warning= void CPL_DLL CPL_STDCALL GDALSwapWordsEx( void *pData, int nWordSize, size_t nWordCount,
cargo:warning=                          ^
cargo:warning=./src/gdal/gdal.h:846:5: error: expected initializer before ‘GDALCopyWords’
cargo:warning=     GDALCopyWords( const void * pSrcData, GDALDataType eSrcType, int nSrcPixelOffset,
cargo:warning=     ^
cargo:warning=./src/gdal/gdal.h:855:25: error: expected initializer before ‘GDALLoadWorldFile’
cargo:warning= int CPL_DLL CPL_STDCALL GDALLoadWorldFile( const char *, double * );
cargo:warning=                         ^
cargo:warning=./src/gdal/gdal.h:856:25: error: expected initializer before ‘GDALReadWorldFile’
cargo:warning= int CPL_DLL CPL_STDCALL GDALReadWorldFile( const char *, const char *,
cargo:warning=                         ^
cargo:warning=./src/gdal/gdal.h:858:25: error: expected initializer before ‘GDALWriteWorldFile’
cargo:warning= int CPL_DLL CPL_STDCALL GDALWriteWorldFile( const char *, const char *,
cargo:warning=                         ^
cargo:warning=./src/gdal/gdal.h:860:25: error: expected initializer before ‘GDALLoadTabFile’
cargo:warning= int CPL_DLL CPL_STDCALL GDALLoadTabFile( const char *, double *, char **,
cargo:warning=                         ^
cargo:warning=./src/gdal/gdal.h:862:25: error: expected initializer before ‘GDALReadTabFile’
cargo:warning= int CPL_DLL CPL_STDCALL GDALReadTabFile( const char *, double *, char **,
cargo:warning=                         ^
cargo:warning=./src/gdal/gdal.h:864:25: error: expected initializer before ‘GDALLoadOziMapFile’
cargo:warning= int CPL_DLL CPL_STDCALL GDALLoadOziMapFile( const char *, double *, char **,
cargo:warning=                         ^
cargo:warning=./src/gdal/gdal.h:866:25: error: expected initializer before ‘GDALReadOziMapFile’
cargo:warning= int CPL_DLL CPL_STDCALL GDALReadOziMapFile( const char *,  double *,
cargo:warning=                         ^
cargo:warning=./src/gdal/gdal.h:869:34: error: expected initializer before ‘GDALDecToDMS’
cargo:warning= const char CPL_DLL * CPL_STDCALL GDALDecToDMS( double, const char *, int );
cargo:warning=                                  ^
cargo:warning=./src/gdal/gdal.h:870:28: error: expected initializer before ‘GDALPackedDMSToDec’
cargo:warning= double CPL_DLL CPL_STDCALL GDALPackedDMSToDec( double );
cargo:warning=                            ^
cargo:warning=./src/gdal/gdal.h:871:28: error: expected initializer before ‘GDALDecToPackedDMS’
cargo:warning= double CPL_DLL CPL_STDCALL GDALDecToPackedDMS( double );
cargo:warning=                            ^
cargo:warning=./src/gdal/gdal.h:918:25: error: expected initializer before ‘GDALExtractRPCInfo’
cargo:warning= int CPL_DLL CPL_STDCALL GDALExtractRPCInfo( char **, GDALRPCInfo * );
cargo:warning=                         ^
cargo:warning=./src/gdal/gdal.h:940:37: error: expected initializer before ‘GDALCreateColorTable’
cargo:warning= GDALColorTableH CPL_DLL CPL_STDCALL GDALCreateColorTable( GDALPaletteInterp ) CPL_WARN_UNUSED_RESULT;
cargo:warning=                                     ^
cargo:warning=./src/gdal/gdal.h:941:26: error: expected initializer before ‘GDALDestroyColorTable’
cargo:warning= void CPL_DLL CPL_STDCALL GDALDestroyColorTable( GDALColorTableH );
cargo:warning=                          ^
cargo:warning=./src/gdal/gdal.h:942:37: error: expected initializer before ‘GDALCloneColorTable’
cargo:warning= GDALColorTableH CPL_DLL CPL_STDCALL GDALCloneColorTable( GDALColorTableH );
cargo:warning=                                     ^
cargo:warning=./src/gdal/gdal.h:943:39: error: expected initializer before ‘GDALGetPaletteInterpretation’
cargo:warning= GDALPaletteInterp CPL_DLL CPL_STDCALL GDALGetPaletteInterpretation( GDALColorTableH );
cargo:warning=                                       ^
cargo:warning=./src/gdal/gdal.h:944:25: error: expected initializer before ‘GDALGetColorEntryCount’
cargo:warning= int CPL_DLL CPL_STDCALL GDALGetColorEntryCount( GDALColorTableH );
cargo:warning=                         ^
cargo:warning=./src/gdal/gdal.h:945:44: error: expected initializer before ‘GDALGetColorEntry’
cargo:warning= const GDALColorEntry CPL_DLL * CPL_STDCALL GDALGetColorEntry( GDALColorTableH, int );
cargo:warning=                                            ^
cargo:warning=./src/gdal/gdal.h:946:25: error: expected initializer before ‘GDALGetColorEntryAsRGB’
cargo:warning= int CPL_DLL CPL_STDCALL GDALGetColorEntryAsRGB( GDALColorTableH, int, GDALColorEntry *);
cargo:warning=                         ^
cargo:warning=./src/gdal/gdal.h:947:26: error: expected initializer before ‘GDALSetColorEntry’
cargo:warning= void CPL_DLL CPL_STDCALL GDALSetColorEntry( GDALColorTableH, int, const GDALColorEntry * );
cargo:warning=                          ^
cargo:warning=./src/gdal/gdal.h:948:26: error: expected initializer before ‘GDALCreateColorRamp’
cargo:warning= void CPL_DLL CPL_STDCALL GDALCreateColorRamp( GDALColorTableH hTable,
cargo:warning=                          ^
cargo:warning=./src/gdal/gdal.h:987:44: error: expected initializer before ‘GDALCreateRasterAttributeTable’
cargo:warning=                                            GDALCreateRasterAttributeTable(void) CPL_WARN_UNUSED_RESULT;
cargo:warning=                                            ^
cargo:warning=./src/gdal/gdal.h:988:26: error: expected initializer before ‘GDALDestroyRasterAttributeTable’
cargo:warning= void CPL_DLL CPL_STDCALL GDALDestroyRasterAttributeTable(
cargo:warning=                          ^
cargo:warning=./src/gdal/gdal.h:991:25: error: expected initializer before ‘GDALRATGetColumnCount’
cargo:warning= int CPL_DLL CPL_STDCALL GDALRATGetColumnCount( GDALRasterAttributeTableH );
cargo:warning=                         ^
cargo:warning=./src/gdal/gdal.h:993:34: error: expected initializer before ‘GDALRATGetNameOfCol’
cargo:warning= const char CPL_DLL * CPL_STDCALL GDALRATGetNameOfCol(
cargo:warning=                                  ^
cargo:warning=./src/gdal/gdal.h:995:39: error: expected initializer before ‘GDALRATGetUsageOfCol’
cargo:warning= GDALRATFieldUsage CPL_DLL CPL_STDCALL GDALRATGetUsageOfCol(
cargo:warning=                                       ^
cargo:warning=./src/gdal/gdal.h:997:38: error: expected initializer before ‘GDALRATGetTypeOfCol’
cargo:warning= GDALRATFieldType CPL_DLL CPL_STDCALL GDALRATGetTypeOfCol(
cargo:warning=                                      ^
cargo:warning=./src/gdal/gdal.h:1000:25: error: expected initializer before ‘GDALRATGetColOfUsage’
cargo:warning= int CPL_DLL CPL_STDCALL GDALRATGetColOfUsage( GDALRasterAttributeTableH,
cargo:warning=                         ^
cargo:warning=./src/gdal/gdal.h:1002:25: error: expected initializer before ‘GDALRATGetRowCount’
cargo:warning= int CPL_DLL CPL_STDCALL GDALRATGetRowCount( GDALRasterAttributeTableH );
cargo:warning=                         ^
cargo:warning=./src/gdal/gdal.h:1004:34: error: expected initializer before ‘GDALRATGetValueAsString’
cargo:warning= const char CPL_DLL * CPL_STDCALL GDALRATGetValueAsString(
cargo:warning=                                  ^
cargo:warning=./src/gdal/gdal.h:1006:25: error: expected initializer before ‘GDALRATGetValueAsInt’
cargo:warning= int CPL_DLL CPL_STDCALL GDALRATGetValueAsInt(
cargo:warning=                         ^
cargo:warning=./src/gdal/gdal.h:1008:28: error: expected initializer before ‘GDALRATGetValueAsDouble’
cargo:warning= double CPL_DLL CPL_STDCALL GDALRATGetValueAsDouble(
cargo:warning=                            ^
cargo:warning=./src/gdal/gdal.h:1011:26: error: expected initializer before ‘GDALRATSetValueAsString’
cargo:warning= void CPL_DLL CPL_STDCALL GDALRATSetValueAsString( GDALRasterAttributeTableH, int, int,
cargo:warning=                          ^
cargo:warning=./src/gdal/gdal.h:1013:26: error: expected initializer before ‘GDALRATSetValueAsInt’
cargo:warning= void CPL_DLL CPL_STDCALL GDALRATSetValueAsInt( GDALRasterAttributeTableH, int, int,
cargo:warning=                          ^
cargo:warning=./src/gdal/gdal.h:1015:26: error: expected initializer before ‘GDALRATSetValueAsDouble’
cargo:warning= void CPL_DLL CPL_STDCALL GDALRATSetValueAsDouble( GDALRasterAttributeTableH, int, int,
cargo:warning=                          ^
cargo:warning=./src/gdal/gdal.h:1018:25: error: expected initializer before ‘GDALRATChangesAreWrittenToFile’
cargo:warning= int CPL_DLL CPL_STDCALL GDALRATChangesAreWrittenToFile( GDALRasterAttributeTableH hRAT );
cargo:warning=                         ^
cargo:warning=./src/gdal/gdal.h:1020:28: error: expected initializer before ‘GDALRATValuesIOAsDouble’
cargo:warning= CPLErr CPL_DLL CPL_STDCALL GDALRATValuesIOAsDouble( GDALRasterAttributeTableH hRAT, GDALRWFlag eRWFlag,
cargo:warning=                            ^
cargo:warning=./src/gdal/gdal.h:1022:28: error: expected initializer before ‘GDALRATValuesIOAsInteger’
cargo:warning= CPLErr CPL_DLL CPL_STDCALL GDALRATValuesIOAsInteger( GDALRasterAttributeTableH hRAT, GDALRWFlag eRWFlag,
cargo:warning=                            ^
cargo:warning=./src/gdal/gdal.h:1024:28: error: expected initializer before ‘GDALRATValuesIOAsString’
cargo:warning= CPLErr CPL_DLL CPL_STDCALL GDALRATValuesIOAsString( GDALRasterAttributeTableH hRAT, GDALRWFlag eRWFlag,
cargo:warning=                            ^
cargo:warning=./src/gdal/gdal.h:1027:26: error: expected initializer before ‘GDALRATSetRowCount’
cargo:warning= void CPL_DLL CPL_STDCALL GDALRATSetRowCount( GDALRasterAttributeTableH,
cargo:warning=                          ^
cargo:warning=./src/gdal/gdal.h:1029:28: error: expected initializer before ‘GDALRATCreateColumn’
cargo:warning= CPLErr CPL_DLL CPL_STDCALL GDALRATCreateColumn( GDALRasterAttributeTableH,
cargo:warning=                            ^
cargo:warning=./src/gdal/gdal.h:1033:28: error: expected initializer before ‘GDALRATSetLinearBinning’
cargo:warning= CPLErr CPL_DLL CPL_STDCALL GDALRATSetLinearBinning( GDALRasterAttributeTableH,
cargo:warning=                            ^
cargo:warning=./src/gdal/gdal.h:1035:25: error: expected initializer before ‘GDALRATGetLinearBinning’
cargo:warning= int CPL_DLL CPL_STDCALL GDALRATGetLinearBinning( GDALRasterAttributeTableH,
cargo:warning=                         ^
cargo:warning=./src/gdal/gdal.h:1037:28: error: expected initializer before ‘GDALRATInitializeFromColorTable’
cargo:warning= CPLErr CPL_DLL CPL_STDCALL GDALRATInitializeFromColorTable(
cargo:warning=                            ^
cargo:warning=./src/gdal/gdal.h:1039:37: error: expected initializer before ‘GDALRATTranslateToColorTable’
cargo:warning= GDALColorTableH CPL_DLL CPL_STDCALL GDALRATTranslateToColorTable(
cargo:warning=                                     ^
cargo:warning=./src/gdal/gdal.h:1041:26: error: expected initializer before ‘GDALRATDumpReadable’
cargo:warning= void CPL_DLL CPL_STDCALL GDALRATDumpReadable( GDALRasterAttributeTableH,
cargo:warning=                          ^
cargo:warning=./src/gdal/gdal.h:1044:5: error: expected initializer before ‘GDALRATClone’
cargo:warning=     GDALRATClone( GDALRasterAttributeTableH );
cargo:warning=     ^
cargo:warning=./src/gdal/gdal.h:1047:5: error: expected initializer before ‘GDALRATSerializeJSON’
cargo:warning=     GDALRATSerializeJSON( GDALRasterAttributeTableH ) CPL_WARN_UNUSED_RESULT;
cargo:warning=     ^
cargo:warning=./src/gdal/gdal.h:1049:25: error: expected initializer before ‘GDALRATGetRowOfValue’
cargo:warning= int CPL_DLL CPL_STDCALL GDALRATGetRowOfValue( GDALRasterAttributeTableH, double );
cargo:warning=                         ^
cargo:warning=./src/gdal/gdal.h:1056:26: error: expected initializer before ‘GDALSetCacheMax’
cargo:warning= void CPL_DLL CPL_STDCALL GDALSetCacheMax( int nBytes );
cargo:warning=                          ^
cargo:warning=./src/gdal/gdal.h:1057:25: error: expected initializer before ‘GDALGetCacheMax’
cargo:warning= int CPL_DLL CPL_STDCALL GDALGetCacheMax(void);
cargo:warning=                         ^
cargo:warning=./src/gdal/gdal.h:1058:25: error: expected initializer before ‘GDALGetCacheUsed’
cargo:warning= int CPL_DLL CPL_STDCALL GDALGetCacheUsed(void);
cargo:warning=                         ^
cargo:warning=./src/gdal/gdal.h:1059:26: error: expected initializer before ‘GDALSetCacheMax64’
cargo:warning= void CPL_DLL CPL_STDCALL GDALSetCacheMax64( GIntBig nBytes );
cargo:warning=                          ^
cargo:warning=./src/gdal/gdal.h:1060:29: error: expected initializer before ‘GDALGetCacheMax64’
cargo:warning= GIntBig CPL_DLL CPL_STDCALL GDALGetCacheMax64(void);
cargo:warning=                             ^
cargo:warning=./src/gdal/gdal.h:1061:29: error: expected initializer before ‘GDALGetCacheUsed64’
cargo:warning= GIntBig CPL_DLL CPL_STDCALL GDALGetCacheUsed64(void);
cargo:warning=                             ^
cargo:warning=./src/gdal/gdal.h:1063:25: error: expected initializer before ‘GDALFlushCacheBlock’
cargo:warning= int CPL_DLL CPL_STDCALL GDALFlushCacheBlock(void);
cargo:warning=                         ^
cargo:warning=In file included from ./src/gdal/ogrsf_frmts.h:37:0,
cargo:warning=                 from ./src/tileset.cpp:2:
cargo:warning=./src/gdal/gdal_priv.h:205:32: error: ‘GDALProgressFunc’ has not been declared
cargo:warning=                                GDALProgressFunc pfnProgress,
cargo:warning=                                ^
cargo:warning=./src/gdal/gdal_priv.h:212:42: error: ‘GDALProgressFunc’ has not been declared
cargo:warning=                                          GDALProgressFunc pfnProgress,
cargo:warning=                                          ^
cargo:warning=In file included from ./src/gdal/cpl_port.h:66:0,
cargo:warning=                 from ./src/gdal/ogr_core.h:34,
cargo:warning=                 from ./src/gdal/ogr_srs_api.h:35,
cargo:warning=                 from ./src/gdal/ogr_spatialref.h:35,
cargo:warning=                 from ./src/tileset.cpp:1:
cargo:warning=./src/gdal/cpl_config.h:7:23: error: ‘__stdcall’ is neither function nor member function; cannot be declared friend
cargo:warning= #  define CPL_STDCALL __stdcall
cargo:warning=                       ^
cargo:warning=./src/gdal/gdal_priv.h:298:25: note: in expansion of macro ‘CPL_STDCALL’
cargo:warning=     friend GDALDatasetH CPL_STDCALL GDALOpenEx( const char* pszFilename,
cargo:warning=                         ^
cargo:warning=./src/gdal/cpl_config.h:7:23: error: expected ‘;’ at end of member declaration
cargo:warning= #  define CPL_STDCALL __stdcall
cargo:warning=                       ^
cargo:warning=./src/gdal/gdal_priv.h:298:25: note: in expansion of macro ‘CPL_STDCALL’
cargo:warning=     friend GDALDatasetH CPL_STDCALL GDALOpenEx( const char* pszFilename,
cargo:warning=                         ^
cargo:warning=In file included from ./src/gdal/ogrsf_frmts.h:37:0,
cargo:warning=                 from ./src/tileset.cpp:2:
cargo:warning=./src/gdal/gdal_priv.h:302:71: error: ISO C++ forbids declaration of ‘GDALOpenEx’ with no type [-fpermissive]
cargo:warning=                                  const char* const* papszSiblingFiles );
cargo:warning=                                                                       ^
cargo:warning=In file included from ./src/gdal/cpl_port.h:66:0,
cargo:warning=                 from ./src/gdal/ogr_core.h:34,
cargo:warning=                 from ./src/gdal/ogr_srs_api.h:35,
cargo:warning=                 from ./src/gdal/ogr_spatialref.h:35,
cargo:warning=                 from ./src/tileset.cpp:1:
cargo:warning=./src/gdal/cpl_config.h:7:23: error: variable or field ‘__stdcall’ declared void
cargo:warning= #  define CPL_STDCALL __stdcall
cargo:warning=                       ^
cargo:warning=./src/gdal/gdal_priv.h:303:17: note: in expansion of macro ‘CPL_STDCALL’
cargo:warning=     friend void CPL_STDCALL GDALClose( GDALDatasetH hDS );
cargo:warning=                 ^
cargo:warning=./src/gdal/cpl_config.h:7:23: error: expected ‘;’ at end of member declaration
cargo:warning= #  define CPL_STDCALL __stdcall
cargo:warning=                       ^
cargo:warning=./src/gdal/gdal_priv.h:303:17: note: in expansion of macro ‘CPL_STDCALL’
cargo:warning=     friend void CPL_STDCALL GDALClose( GDALDatasetH hDS );
cargo:warning=                 ^
cargo:warning=In file included from ./src/gdal/ogrsf_frmts.h:37:0,
cargo:warning=                 from ./src/tileset.cpp:2:
cargo:warning=./src/gdal/gdal_priv.h:303:57: error: ISO C++ forbids declaration of ‘GDALClose’ with no type [-fpermissive]
cargo:warning=     friend void CPL_STDCALL GDALClose( GDALDatasetH hDS );
cargo:warning=                                                         ^
cargo:warning=./src/gdal/gdal_priv.h:341:49: error: ‘GDALProgressFunc’ has not been declared
cargo:warning=                                     int, int *, GDALProgressFunc, void * );
cargo:warning=                                                 ^
cargo:warning=./src/gdal/gdal_priv.h:488:40: error: ‘GDALProgressFunc’ has not been declared
cargo:warning=                            int, int *, GDALProgressFunc, void * );
cargo:warning=                                        ^
cargo:warning=./src/gdal/gdal_priv.h: In member function ‘int GDALRasterBlock::GetBlockSize() const’:
cargo:warning=./src/gdal/gdal_priv.h:628:64: error: ‘GDALGetDataTypeSizeBytes’ was not declared in this scope
cargo:warning=         return nXSize * nYSize * GDALGetDataTypeSizeBytes(eType); }
cargo:warning=                                                                ^
cargo:warning=./src/gdal/gdal_priv.h: At global scope:
cargo:warning=./src/gdal/gdal_priv.h:882:39: error: ‘GDALProgressFunc’ has not been declared
cargo:warning=                                       GDALProgressFunc, void *pProgressData );
cargo:warning=                                       ^
cargo:warning=./src/gdal/gdal_priv.h:892:36: error: ‘GDALProgressFunc’ has not been declared
cargo:warning=                                    GDALProgressFunc, void * );
cargo:warning=                                    ^
cargo:warning=./src/gdal/gdal_priv.h:901:27: error: ‘GDALProgressFunc’ has not been declared
cargo:warning=                           GDALProgressFunc, void *pProgressData );
cargo:warning=                           ^
cargo:warning=./src/gdal/gdal_priv.h:906:41: error: ‘GDALProgressFunc’ has not been declared
cargo:warning=                                         GDALProgressFunc, void *pProgressData);
cargo:warning=                                         ^
cargo:warning=./src/gdal/gdal_priv.h:1061:38: error: ‘GDALProgressFunc’ has not been declared
cargo:warning=                                      GDALProgressFunc pfnProgress,
cargo:warning=                                      ^
cargo:warning=./src/gdal/gdal_priv.h:1080:44: error: ‘GDALProgressFunc’ has not been declared
cargo:warning=                                            GDALProgressFunc pfnProgress,
cargo:warning=                                            ^
cargo:warning=./src/gdal/gdal_priv.h:1114:45: error: ‘GDALProgressFunc’ has not been declared
cargo:warning=                                             GDALProgressFunc pfnProgress,
cargo:warning=                                             ^
cargo:warning=./src/gdal/gdal_priv.h:1236:34: error: ‘GDALProgressFunc’ has not been declared
cargo:warning=                                  GDALProgressFunc pfnProgress, void * pProgressData );
cargo:warning=                                  ^
cargo:warning=./src/gdal/gdal_priv.h:1293:23: error: ‘GDALProgressFunc’ has not been declared
cargo:warning=                       GDALProgressFunc pfnProgress,
cargo:warning=                       ^
cargo:warning=./src/gdal/gdal_priv.h:1301:22: error: ‘GDALProgressFunc’ has not been declared
cargo:warning=                      GDALProgressFunc pfnProgress, void * pProgressData );
cargo:warning=                      ^
cargo:warning=./src/gdal/gdal_priv.h:1308:28: error: ‘GDALProgressFunc’ has not been declared
cargo:warning=                            GDALProgressFunc pfnProgress, void * pProgressData);
cargo:warning=                            ^
cargo:warning=In file included from ./src/tileset.cpp:2:0:
cargo:warning=./src/gdal/ogrsf_frmts.h:156:39: error: ‘GDALProgressFunc’ has not been declared
cargo:warning=                                       GDALProgressFunc pfnProgress = NULL,
cargo:warning=                                       ^
cargo:warning=./src/gdal/ogrsf_frmts.h:161:32: error: ‘GDALProgressFunc’ has not been declared
cargo:warning=                                GDALProgressFunc pfnProgress = NULL,
cargo:warning=                                ^
cargo:warning=./src/gdal/ogrsf_frmts.h:166:40: error: ‘GDALProgressFunc’ has not been declared
cargo:warning=                                        GDALProgressFunc pfnProgress,
cargo:warning=                                        ^
cargo:warning=./src/gdal/ogrsf_frmts.h:171:35: error: ‘GDALProgressFunc’ has not been declared
cargo:warning=                                   GDALProgressFunc pfnProgress = NULL,
cargo:warning=                                   ^
cargo:warning=./src/gdal/ogrsf_frmts.h:176:33: error: ‘GDALProgressFunc’ has not been declared
cargo:warning=                                 GDALProgressFunc pfnProgress = NULL,
cargo:warning=                                 ^
cargo:warning=./src/gdal/ogrsf_frmts.h:181:31: error: ‘GDALProgressFunc’ has not been declared
cargo:warning=                               GDALProgressFunc pfnProgress = NULL,
cargo:warning=                               ^
cargo:warning=./src/gdal/ogrsf_frmts.h:186:32: error: ‘GDALProgressFunc’ has not been declared
cargo:warning=                                GDALProgressFunc pfnProgress = NULL,
cargo:warning=                                ^
cargo:warning=./src/gdal/ogrsf_frmts.h:156:70: warning: converting to non-pointer type ‘int’ from NULL [-Wconversion-null]
cargo:warning=                                       GDALProgressFunc pfnProgress = NULL,
cargo:warning=                                                                      ^
cargo:warning=./src/gdal/ogrsf_frmts.h:161:63: warning: converting to non-pointer type ‘int’ from NULL [-Wconversion-null]
cargo:warning=                                GDALProgressFunc pfnProgress = NULL,
cargo:warning=                                                               ^
cargo:warning=./src/gdal/ogrsf_frmts.h:171:66: warning: converting to non-pointer type ‘int’ from NULL [-Wconversion-null]
cargo:warning=                                   GDALProgressFunc pfnProgress = NULL,
cargo:warning=                                                                  ^
cargo:warning=./src/gdal/ogrsf_frmts.h:176:64: warning: converting to non-pointer type ‘int’ from NULL [-Wconversion-null]
cargo:warning=                                 GDALProgressFunc pfnProgress = NULL,
cargo:warning=                                                                ^
cargo:warning=./src/gdal/ogrsf_frmts.h:181:62: warning: converting to non-pointer type ‘int’ from NULL [-Wconversion-null]
cargo:warning=                               GDALProgressFunc pfnProgress = NULL,
cargo:warning=                                                              ^
cargo:warning=./src/gdal/ogrsf_frmts.h:186:63: warning: converting to non-pointer type ‘int’ from NULL [-Wconversion-null]
cargo:warning=                                GDALProgressFunc pfnProgress = NULL,
cargo:warning=                                                               ^
cargo:warning=./src/tileset.cpp: In function ‘bool epsg_convert(int, double*, char*)’:
cargo:warning=./src/tileset.cpp:16:41: error: ‘CPLSetConfigOption’ was not declared in this scope
cargo:warning=     CPLSetConfigOption("GDAL_DATA", path);
cargo:warning=                                         ^
exit code: 1

--- stderr
thread 'main' panicked at '

Internal error occurred: Command "c++" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I" "./src" "-I" "./src/osg" "-std=c++11" "-o" "/home/jf/dev/3dtiles/target/release/build/3dtile-c8bc5ef7cb64b5ee/out/./src/tileset.o" "-c" "./src/tileset.cpp" with args "c++" did not execute successfully (status code exit code: 1).

', /home/jf/.cargo/registry/src/github.com-1ecc6299db9ec823/cc-1.0.23/src/lib.rs:2253:5
note: Run with `RUST_BACKTRACE=1` for a backtrace.

warning: build failed, waiting for other jobs to finish...
error: build failed

@LHolst
Copy link
Author

LHolst commented Sep 17, 2018

@stoneflyop1 i was getting compile errors all over the place too.

@fanvanzh
Copy link
Owner

please prepare "GDAL" and "OSG" (include header and libs ) for ubuntu by yourself.

@stoneflyop1
Copy link

@fanvanzh , Could you please provide the version of GDAL and OSG used in this repo?
谢了!

@fanvanzh
Copy link
Owner

gdal : 2.1.2;
osg: 1.3.4

@stoneflyop1
Copy link

stoneflyop1 commented Sep 20, 2018

@fanvanzh @LHolst
I'm using gdal2.1.2 and osg 3.6.2(header files and lib files), gcc version is 5.4.0.
It seems there are only errors in "shp23dtile".
Where is the symbol "__VA_ARGS__" defined?

running: "c++" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I" "./src" "-I" "./src/osg" "-std=c++11" "-o" "/home/jf/dev/3dtiles/target/release/build/3dtile-c8bc5ef7cb64b5ee/out/./src/shp23dtile.o" "-c" "./src/shp23dtile.cpp"
cargo:warning=In file included from ./src/shp23dtile.cpp:5:0:
cargo:warning=./src/shp23dtile.cpp: In function ‘bool shp23dtile(const char*, int, const char*, const char*)’:
cargo:warning=./src/extern.h:9:36: error: expected primary-expression before ‘)’ token
cargo:warning=         sprintf(buf,fmt,__VA_ARGS__);\
cargo:warning=                                    ^
cargo:warning=./src/shp23dtile.cpp:415:9: note: in expansion of macro ‘LOG_E’
cargo:warning=         LOG_E("only support polyon now");
cargo:warning=         ^
cargo:warning=./src/extern.h:9:36: error: expected primary-expression before ‘)’ token
cargo:warning=         sprintf(buf,fmt,__VA_ARGS__);\
cargo:warning=                                    ^
cargo:warning=./src/shp23dtile.cpp:422:9: note: in expansion of macro ‘LOG_E’
cargo:warning=         LOG_E("no extent found in shapefile");
cargo:warning=         ^
exit code: 1

@stoneflyop1
Copy link

I add two hash "##" before __VA_ARGS__, and gdal use libgdal.so as library, the build is ok now.
Thanks @fanvanzh

@fanvanzh
Copy link
Owner

thank you, this is a platform diff.

@Immortal-Wang
Copy link

can you share your solution about build 3dtiles on ubuntu? the osg libraries & the gdal's.
@stoneflyop1

@stoneflyop1
Copy link

@Immortal-Wang you can find linux lib and header files in this fork.
folder lib_glibc2.27 contains linux lib files, linux header files are in src folder(gdal_linux and osg_linux)

@Immortal-Wang
Copy link

thank you very much! if i clone this programe i can build it on ubuntu? @stoneflyop1

@stoneflyop1
Copy link

thank you very much! if i clone this programe i can build it on ubuntu? @stoneflyop1

you should replace the lib files and header files. lib_glibc2.27 -> lib, src/gdal_linux -> src/gdal, osg_linux -> osg. I built successfully on ubuntu 16.04.

@Immortal-Wang
Copy link

thank u! i'll try it. @stoneflyop1

@stoneflyop1
Copy link

you need to set LD_LIBRARY_PATH if gcc cannot find the libs. @Immortal-Wang

LD_LIBRARY_PATH=~/dev/3dtiles/lib
export LD_LIBRARY_PATH

@Immortal-Wang
Copy link

you need to set LD_LIBRARY_PATH if gcc cannot find the libs. @Immortal-Wang

LD_LIBRARY_PATH=~/dev/3dtiles/lib
export LD_LIBRARY_PATH

ha! you are a kind man!

@gooin
Copy link

gooin commented Jun 5, 2020

I add two hash "##" before __VA_ARGS__, and gdal use libgdal.so as library, the build is ok now.
Thanks @fanvanzh

Hi @Immortal-Wang ,can you share built version here?

@chenzaichun
Copy link

chenzaichun commented Jul 15, 2020

I built one on ubuntu 20.04 base https://github.com/arcplus/3dtiles I changed the binary to fast3dtile and now working on github action for build.

I'll merge the main repo and create PR when I done. Download Link: https://github.com/chenzaichun/3dtiles/releases/download/test-build-on-ubuntu/fast3dtile.tar.gz

@chenzaichun
Copy link

I merged main repo and added github action for building ubuntu binary, there might be some depens issue on other distro. Maybe we clould be an AppImage for fast POC.

BTW, I'll update build intruction on ubuntu.

@fanvanzh
Copy link
Owner

@mty0716
Copy link

mty0716 commented Aug 14, 2021

osg版本一定是固定的吗,还是最新版本不可以?
现在的osg是3.6.5 ,转换shp时报错为
undefined reference to `osg::BufferData::resizeGLObjectBuffers(unsigned int)'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants