From: nico r. <nic...@gm...> - 2006-06-08 18:34:09
|
Try changing line 159 of GsTL/cdf/non_param_cdf.h from: p_values_.erase(); to p_values_.clear(); I'm surprised my compiler didn't complain... Nicolas On 6/8/06, Thomas Mejer Hansen <tm...@gf...> wrote: > > Hi Nicolas. > I use Ubuntu Linux (Dapper), gcc version 4.0.3, and I beleive I have all > the required libraries installed. > > When I try to install sgems I get the the follwing error (and the make > process stops) after some time of compiling : > > " > make[2]: Entering directory `/home/local/SGeMS-1.4.1/GsTLAppli/geostat' > g++ -c -pipe -Wall -W -g -D_REENTRANT -fPIC -DQT_THREAD_SUPPORT > -DQT_SHARED -DQT_TABLET_SUPPORT -I/usr/share/qt3/mkspecs/default -I. -I. > -Ifiltersim_std -Isnesim_std -I../../../GsTL -I../../../SGeMS-1.4.1 > -I../../../GsTL -I../../../SGeMS-1.4.1 -I/usr/include/qt3 > -o ../../lib/linux/obj/geostat/cokriging.o cokriging.cpp > In file included from ../../../GsTL/boost/config.hpp:35, > > from ../../../GsTL/boost/random/mersenne_twister.hpp:27, > > from ../../../GsTL/GsTL/math/random_number_generators.h:33, > > from ../../../SGeMS-1.4.1/GsTLAppli/math/random_numbers.h:35, > > from ../../../SGeMS-1.4.1/GsTLAppli/grid/grid_model/rgrid.h:41, > > from ../../../SGeMS-1.4.1/GsTLAppli/grid/grid_model/cartesian_grid.h:34, > from cokriging.cpp:39: > ../../../GsTL/boost/config/compiler/gcc.hpp:66:7: warning: #warning > "Unknown compiler version - please run the configure tests and report > the results" > ../../../SGeMS-1.4.1/GsTLAppli/grid/grid_model/grid_property.h:269: > warning: unused parameter 'flag_id' > ../../../SGeMS-1.4.1/GsTLAppli/grid/grid_model/grid_property.h:271: > warning: unused parameter 'flag_id' > ../../../SGeMS-1.4.1/GsTLAppli/grid/grid_model/neighborhood.h:183: > warning: unused parameter 's' > ../../../SGeMS-1.4.1/GsTLAppli/grid/grid_model/neighborhood.h:303: > warning: unused parameter 'on' > ../../../SGeMS-1.4.1/GsTLAppli/utils/progress_notifier.h:79: warning: > unused parameter 'str' > ../../../SGeMS-1.4.1/GsTLAppli/utils/progress_notifier.h:134: warning: > unused parameter 'str' > ../../../GsTL/GsTL/matrix_library/gstl_tnt_lib.h:28: warning: unused > parameter 'A' > ../../../GsTL/GsTL/matrix_library/gstl_tnt_lib.h:28: warning: unused > parameter 'B' > ../../../GsTL/GsTL/cdf/cdf_basics.h: In instantiation of 'Cdf<double>': > ../../../GsTL/GsTL/cdf/gaussian_cdf.h:44: instantiated from here > ../../../GsTL/GsTL/cdf/cdf_basics.h:15: warning: 'class Cdf<double>' has > virtual functions but non-virtual destructor > ../../../GsTL/GsTL/cdf/interpolators.h:106: warning: 'class > Tail_interpolator_impl' has virtual functions but non-virtual destructor > ../../../GsTL/GsTL/cdf/interpolators.h:155: warning: 'class > Hyperbolic_UTI' has virtual functions but non-virtual destructor > ../../../GsTL/GsTL/cdf/interpolators.h:181: warning: 'class Power_UTI' > has virtual functions but non-virtual destructor > ../../../GsTL/GsTL/cdf/interpolators.h:219: warning: 'class Power_LTI' > has virtual functions but non-virtual destructor > ../../../GsTL/GsTL/cdf/interpolators.h:258: warning: 'class > Exponential_LTI' has virtual functions but non-virtual destructor > ../../../GsTL/GsTL/cdf/cdf_basics.h: In instantiation of 'Cdf<float>': > ../../../GsTL/GsTL/cdf/cdf_basics.h:24: instantiated from > 'Non_parametric_cdf<float>' > ../../../GsTL/GsTL/cdf/non_param_cdf.h:52: instantiated from here > ../../../GsTL/GsTL/cdf/cdf_basics.h:15: warning: 'class Cdf<float>' has > virtual functions but non-virtual destructor > ../../../GsTL/GsTL/cdf/non_param_cdf.h: In member function 'void > Non_param_cdf<LowerTailInterp, MiddleInterp, > UpperTailInterp>::z_set(forward_iterator, forward_iterator)': > ../../../GsTL/GsTL/cdf/non_param_cdf.h:156: error: no matching function > for call to 'std::vector<double, std::allocator<double> >::erase()' > /usr/lib/gcc/i486-linux-gnu/4.0.3/../../../../include/c > ++/4.0.3/bits/vector.tcc:110: note: candidates are: typename > std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, > _Alloc>::erase(__gnu_cxx::__normal_iterator<typename _Alloc::pointer, > std::vector<_Tp, _Alloc> >) [with _Tp = double, _Alloc = > std::allocator<double>] > /usr/lib/gcc/i486-linux-gnu/4.0.3/../../../../include/c > ++/4.0.3/bits/vector.tcc:122: note: typename > std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, > _Alloc>::erase(__gnu_cxx::__normal_iterator<typename _Alloc::pointer, > std::vector<_Tp, _Alloc> >, __gnu_cxx::__normal_iterator<typename > _Alloc::pointer, std::vector<_Tp, _Alloc> >) [with _Tp = double, _Alloc > = std::allocator<double>] > ../../../SGeMS-1.4.1/GsTLAppli/utils/directory.h: At global scope: > ../../../SGeMS-1.4.1/GsTLAppli/utils/directory.h:45: warning: unused > parameter 'type_name' > ../../../SGeMS-1.4.1/GsTLAppli/utils/directory.h:45: warning: unused > parameter 'name' > ../../../SGeMS-1.4.1/GsTLAppli/utils/directory.h:45: warning: unused > parameter 'final_name' > ../../../SGeMS-1.4.1/GsTLAppli/utils/directory.h:47: warning: unused > parameter 'name' > ../../../SGeMS-1.4.1/GsTLAppli/grid/grid_model/rgrid.h:103: warning: > unused parameter 'P' > ../../../SGeMS-1.4.1/GsTLAppli/grid/grid_model/point_set.h:96: warning: > unused parameter 'region_name' > ../../../SGeMS-1.4.1/GsTLAppli/grid/grid_model/point_set.h:99: warning: > unused parameter 'region_name' > ../../../SGeMS-1.4.1/GsTLAppli/grid/grid_model/point_set.h:108: warning: > unused parameter 'region_name' > ../../../SGeMS-1.4.1/GsTLAppli/grid/grid_model/point_set.h:153: warning: > unused parameter 'P' > ../../../GsTL/GsTL/kriging/covariance_set.h: In instantiation of > 'Covariance_set_impl<Covariance<GsTLTripletTmpl<float> > >': > ../../../GsTL/GsTL/kriging/covariance_set.h:49: instantiated from > 'Covariance_set<Covariance_>::~Covariance_set() [with Covariance_ = > Covariance<GsTLTripletTmpl<float> >]' > cokriging.cpp:69: instantiated from here > ../../../GsTL/GsTL/kriging/covariance_set.h:10: warning: 'class > Covariance_set_impl<Covariance<GsTLTripletTmpl<float> > >' has virtual > functions but non-virtual destructor > make[2]: *** [../../lib/linux/obj/geostat/cokriging.o] Error 1 > make[2]: Leaving directory `/home/local/SGeMS-1.4.1/GsTLAppli/geostat' > make[1]: *** [sub-geostat] Error 2 > make[1]: Leaving directory `/home/local/SGeMS-1.4.1/GsTLAppli' > make: *** [sub-GsTLAppli] Error 2 > " > > I hope you can help me locate what I am missing > Thank you - Thomas > > > On tir, 2006-06-06 at 21:56 -0700, nico remy wrote: > > If you are interested in running sgems on linux, you can download the > > new version of sgems (v1.4.1). Note that the only difference between > > v1.4 and v1.4.1 is that the source code can be compiled with gcc4, so > > if you're a windows user, you're probably not interested in that new > > version. > > To compile sgems-1.4.1 with gcc4, you will also need to upgrade GsTL > > to v1.2.1. > > The current build process does not check that you have all the > > necessary components (Qt, Coin3d, etc). But if you have the required > > libraries correctly installed, building sgems shouldn't be difficult: > > follow the instructions in the readme file, it's just 5 or 6 steps. > > I'll be happy to assist you if you can't figure it out > > > > Nicolas > > > > > Inverse Modeling and Geostatistics Project | http://imgp.gfy.ku.dk/ > > office : +45 35320509 > > cell : +45 41427380 > > |