[Proland-info] Proland compilation on ArchLinux with gcc 4.8.2

Christophe Lafolet christophe.lafolet at laposte.net
Dim 23 Mar 17:56:52 CET 2014


Hello Eric,

I have successfully compiled ork and proland on ArchLinux 64 bits but I 
have needed to do some modifications in code with gcc 4.8.2
If that can help someone :


/home/christophe/Documents/opengl/proland/trunk/core/sources/proland/terrain/TileSampler.cpp||In 
destructor ‘virtual proland::TileSampler::~TileSampler()’:|
/home/christophe/Documents/opengl/proland/trunk/core/sources/proland/terrain/TileSampler.cpp|93|attention 
: deleting object of abstract class type 
‘proland::TileSampler::TileFilter’ which has non-virtual destructor will 
cause undefined behaviour [-Wdelete-non-virtual-dtor]|

In TileSampler.h, a virtual destructor seems to be required : virtual 
~TileFilter() = 0;
In TileSampler.cpp, destructor added


/home/christophe/Documents/opengl/proland/trunk/graph/sources/proland/graph/producer/Tesselator.cpp||In 
function ‘void combineCallback(GLdouble*, GLvoid**, GLfloat*, GLvoid**, 
ork::Mesh<ork::vec2<float>, unsigned int>*)’:|
/home/christophe/Documents/opengl/proland/trunk/graph/sources/proland/graph/producer/Tesselator.cpp|103|attention 
: transtypage vers un pointeur depuis un entier de taille différente 
[-Wint-to-pointer-cast]|

int v replaced by long int v

/home/christophe/Documents/opengl/proland/trunk/graph/sources/proland/graph/producer/Tesselator.cpp||In 
member function ‘void proland::Tesselator::newVertex(float, float)’:|
/home/christophe/Documents/opengl/proland/trunk/graph/sources/proland/graph/producer/Tesselator.cpp|144|attention 
: transtypage vers un pointeur depuis un entier de taille différente 
[-Wint-to-pointer-cast]|

int v replaced by long int v



/home/christophe/Documents/opengl/proland/trunk/terrain/sources/proland/preprocess/terrain/Preprocess.cpp||In 
function ‘void proland::createDir(const string&)’:|
/home/christophe/Documents/opengl/proland/trunk/terrain/sources/proland/preprocess/terrain/Preprocess.cpp|505|erreur: 
too few arguments to function ‘int mkdir(const char*, __mode_t)’|
/usr/include/sys/stat.h|321|note: declared here|

int status = mkdir(dir.c_str()); replaced by int status = 
mkdir(dir.c_str(), mode);



/home/christophe/Documents/opengl/proland/trunk/terrain/sources/proland/preprocess/terrain/Preprocess.cpp|506|erreur: 
‘errno’ was not declared in this scope|
/home/christophe/Documents/opengl/proland/trunk/terrain/sources/proland/preprocess/terrain/Preprocess.cpp|506|erreur: 
‘EEXIST’ was not declared in this scope|

#include <sys/errno.h> added



/home/christophe/Documents/opengl/proland/trunk/terrain/sources/proland/preprocess/terrain/Util.cpp||In 
function ‘bool proland::fexists(const string&)’:|
/home/christophe/Documents/opengl/proland/trunk/terrain/sources/proland/preprocess/terrain/Util.cpp|50|erreur: 
‘close’ was not declared in this scope|

#include <unistd.h> added



/home/christophe/Documents/opengl/proland/trunk/forest/sources/proland/plants/DrawPlantsShadowTask.cpp||In 
member function ‘void 
proland::DrawPlantsShadowTask::drawPlantsShadow(ork::ptr<ork::SceneNode>)’:|
/home/christophe/Documents/opengl/proland/trunk/forest/sources/proland/plants/DrawPlantsShadowTask.cpp|193|attention 
: comparaison entre des expressions entières signée et non signée 
[-Wsign-compare]|




/home/christophe/Documents/opengl/proland/trunk/core/sources/proland/terrain/Deformation.cpp||In 
member function ‘virtual void 
proland::Deformation::setUniforms(ork::ptr<ork::SceneNode>, 
ork::ptr<proland::TerrainNode>, ork::ptr<ork::Program>) const’:|
/home/christophe/Documents/opengl/proland/trunk/core/sources/proland/terrain/Deformation.cpp|96|attention 
: variable ‘deformedCamera’ set but not used [-Wunused-but-set-variable]|

/home/christophe/Documents/opengl/proland/trunk/graph/sources/proland/graph/BasicGraph.cpp||In 
member function ‘virtual void 
proland::BasicGraph::loadIndexed(proland::FileReader*, bool)’:|
/home/christophe/Documents/opengl/proland/trunk/graph/sources/proland/graph/BasicGraph.cpp|218|attention 
: variable ‘subgraphCount’ set but not used [-Wunused-but-set-variable]|

/home/christophe/Documents/opengl/proland/trunk/graph/sources/proland/graph/Curve.cpp||In 
member function ‘virtual void proland::Curve::addVertex(const 
proland::Vertex&)’:|
/home/christophe/Documents/opengl/proland/trunk/graph/sources/proland/graph/Curve.cpp|845|attention 
: variable ‘cp’ set but not used [-Wunused-but-set-variable]|

/home/christophe/Documents/opengl/proland/trunk/graph/sources/proland/ortho/RoadOrthoLayer.cpp||In 
member function ‘void proland::RoadOrthoLayer::drawRoadEnd(const vec3d&, 
ork::ptr<ork::FrameBuffer>, const vec2d&, const vec2d&, double, float, 
float, ork::vec2d*, ork::vec2d*, ork::vec2d*, ork::vec2d*)’:|
/home/christophe/Documents/opengl/proland/trunk/graph/sources/proland/ortho/RoadOrthoLayer.cpp|271|attention 
: unused variable ‘dx’ [-Wunused-variable]|
/home/christophe/Documents/opengl/proland/trunk/graph/sources/proland/ortho/RoadOrthoLayer.cpp|271|attention 
: unused variable ‘dy’ [-Wunused-variable]|

/home/christophe/Documents/opengl/proland/trunk/forest/sources/proland/plants/DrawPlantsShadowTask.cpp|203|attention 
: variable ‘m’ set but not used [-Wunused-but-set-variable]|
/home/christophe/Documents/opengl/proland/trunk/forest/sources/proland/plants/DrawPlantsShadowTask.cpp|230|attention 
: variable ‘zSlice’ set but not used [-Wunused-but-set-variable]|

/home/christophe/Documents/opengl/proland/trunk/forest/sources/proland/plants/Plants.cpp||In 
member function ‘void proland::PlantsResource::findNeighborRanges(const 
vec2f&)’:|
/home/christophe/Documents/opengl/proland/trunk/forest/sources/proland/plants/Plants.cpp|490|attention 
: variable ‘gridSize’ set but not used [-Wunused-but-set-variable]|

/home/christophe/Documents/opengl/proland/trunk/forest/sources/proland/preprocess/trees/PreprocessTreeTables.cpp||In 
member function ‘void proland::PreprocessTreeTables::saveTables()’:|
/home/christophe/Documents/opengl/proland/trunk/forest/sources/proland/preprocess/trees/PreprocessTreeTables.cpp|494|attention 
: variable ‘thetal’ set but not used [-Wunused-but-set-variable]|
/home/christophe/Documents/opengl/proland/trunk/forest/sources/proland/preprocess/trees/PreprocessTreeTables.cpp|495|attention 
: variable ‘lambda’ set but not used [-Wunused-but-set-variable]|

/home/christophe/Documents/opengl/proland/trunk/river/sources/proland/rivers/graph/HydroGraph.cpp||In 
member function ‘virtual void 
proland::HydroGraph::load(proland::FileReader*, bool)’:|
/home/christophe/Documents/opengl/proland/trunk/river/sources/proland/rivers/graph/HydroGraph.cpp|210|attention 
: variable ‘nullCid’ set but not used [-Wunused-but-set-variable]|
/home/christophe/Documents/opengl/proland/trunk/river/sources/proland/rivers/graph/HydroGraph.cpp||In 
member function ‘virtual void 
proland::HydroGraph::loadIndexed(proland::FileReader*, bool)’:|
/home/christophe/Documents/opengl/proland/trunk/river/sources/proland/rivers/graph/HydroGraph.cpp|356|attention 
: variable ‘subgraphCount’ set but not used [-Wunused-but-set-variable]|
/home/christophe/Documents/opengl/proland/trunk/river/sources/proland/rivers/graph/HydroGraph.cpp|398|attention 
: variable ‘nullCid’ set but not used [-Wunused-but-set-variable]|

/home/christophe/Documents/opengl/proland/trunk/river/sources/proland/rivers/graph/LazyHydroGraph.cpp||In 
member function ‘virtual proland::CurvePtr 
proland::LazyHydroGraph::loadCurve(long int, proland::CurveId)’:|
/home/christophe/Documents/opengl/proland/trunk/river/sources/proland/rivers/graph/LazyHydroGraph.cpp|141|attention 
: variable ‘nullCid’ set but not used [-Wunused-but-set-variable]|

/home/christophe/Documents/opengl/proland/trunk/edit/sources/proland/ui/twbar/TweakGraphLayer.cpp||In 
member function ‘virtual void proland::TweakGraphLayer::updateBar(TwBar*)’:|
/home/christophe/Documents/opengl/proland/trunk/edit/sources/proland/ui/twbar/TweakGraphLayer.cpp|537|attention 
: variable ‘v’ set but not used [-Wunused-but-set-variable]|


Bes Regards



More information about the Proland-info mailing list