Hello, once solved all the pre-requirements, I've compiled RSGISLib on Windows (with Visual Studio 2010 + SP1).
The output showed four fatal errors corresponding to four projects (out of 16 that includes the RSGISLib). The type of problem is the same in all of them:
rsgislib\src\Release\rsgis_img.dll : fatal error LNK1169: one or more multiply defined symbols found
rsgislib\src\Release\rsgis_vec.dll : fatal error LNK1169: one or more multiply defined symbols found
rsgislib\src\Release\rsgis_modeling.dll : fatal error LNK1169: one or more multiply defined symbols found
rsgislib\src\Release\rsgis_radar.dll : fatal error LNK1169: one or more multiply defined symbols found
These errors come after different errors building .obj in each project. For example, in rsgis_img.dll I get this:
------ Build started: Project: rsgis_img, Configuration: Release Win32 ------
rsgis_utils.lib(RSGISGEOSFactoryGenerator.obj) : error LNK2005: "public: static class rsgis::utils::RSGISGEOSFactoryGenerator * __cdecl rsgis::utils::RSGISGEOSFactoryGenerator::getInstance(void)" (?getInstance@RSGISGEOSFactoryGenerator@utils@rsgis@@SAPAV123@XZ) already defined in rsgis_geom.lib(rsgis_geom.dll)
rsgis_utils.lib(RSGISGEOSFactoryGenerator.obj) : error LNK2005: "public: class geos::geom::GeometryFactory * __thiscall rsgis::utils::RSGISGEOSFactoryGenerator::getFactory(void)" (?getFactory@RSGISGEOSFactoryGenerator@utils@rsgis@@QAEPAVGeometryFactory@geom@geos@@XZ) already defined in rsgis_geom.lib(rsgis_geom.dll)
Creating library G:/_App/rsgislib/src/Release/rsgis_img.lib and object G:/_App/rsgislib/src/Release/rsgis_img.exp
LINK : warning LNK4098: defaultlib 'LIBCMT' conflicts with use of other libs; use /NODEFAULTLIB:library
G:\_App\rsgislib\src\Release\rsgis_img.dll : fatal error LNK1169: one or more multiply defined symbols found
Besides this, there are some warnings (form many .cpp) like:
math\RSGISIntergration.cpp(135): warning C4554: '|' : check operator precedence for possible error; use parentheses to clarify precedence
math\RSGISMatrices.cpp(259): warning C4554: '&' : check operator precedence for possible error; use parentheses to clarify precedence
Thank you!
Jose Bengoa
Pre-requirements accomplished:
Boost
HDF5
KEALib
GDAL/OGR
GEOS
Proj.4
CGAL
GNU Scientic Library (GSL)
FFTW
MuParser