From: nico r. <nic...@gm...> - 2006-06-16 21:20:41
|
Thanks for pointing out the bad link on the web site. About the error, you must change: p_values_.erase() to p_values_.clear() on line 159 of file GsTL/cdf/non_param_cdf.h It is changed on CVS, but I forgot to replace the release. Nicolas On 6/14/06, Thomas Mejer Hansen <tm...@gf...> wrote: > > On ons, 2006-06-14 at 17:13 -0700, nico remy wrote: > > Hi Thomas, > > > > I think I answered that exact email 5 days ago. Here was the answer: > I did not receive any email (we have had some mail server problems over > the weekend, so maybe that's the reason). > > In any case, the problem was that I downloaded GsTL from the pangea > website (and that version is GsTL-1.1). The link to GsTL from the top > of http://sgems.sourceforge.net/ is to pangea, while the link describing > the required libraries is for sourceforge. > > Having downloaded GsTL-1.2.1 the compiling now stops with : > " > 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-1.2.1 > -I../../../SGeMS-1.4.1 -I../../../GsTL-1.2.1 -I../../../SGeMS-1.4.1 > -I/usr/include/qt3 -o ../../lib/linux/obj/geostat/cokriging.o > cokriging.cpp > In file included from ../../../GsTL-1.2.1/boost/config.hpp:35, > > from ../../../GsTL-1.2.1/boost/random/mersenne_twister.hpp:27, > > from ../../../GsTL-1.2.1/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-1.2.1/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-1.2.1/GsTL/matrix_library/gstl_tnt_lib.h:28: warning: > unused parameter 'A' > ../../../GsTL-1.2.1/GsTL/matrix_library/gstl_tnt_lib.h:28: warning: > unused parameter 'B' > ../../../GsTL-1.2.1/GsTL/cdf/cdf_basics.h: In instantiation of > 'Cdf<float>': > ../../../GsTL-1.2.1/GsTL/cdf/gaussian_cdf.h:44: instantiated from here > ../../../GsTL-1.2.1/GsTL/cdf/cdf_basics.h:15: warning: 'class > Cdf<float>' has virtual functions but non-virtual destructor > ../../../GsTL-1.2.1/GsTL/cdf/non_param_cdf.h: In member function 'void > Non_param_cdf<LowerTailInterp, MiddleInterp, > UpperTailInterp>::z_set(forward_iterator, forward_iterator)': > ../../../GsTL-1.2.1/GsTL/cdf/non_param_cdf.h:159: 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-1.2.1/GsTL/kriging/covariance_set.h: In instantiation of > 'Covariance_set_impl<Covariance<GsTLTripletTmpl<float> > >': > ../../../GsTL-1.2.1/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-1.2.1/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 downloaded the tgz file from the web and First2_moments_cdf.h is > > there (in GsTL-1.2.1/GsTL/cdf/). So I don't understand why the > > compiler doesn't find it. Same thing for > > first_moments_cdf_Kestimator.h. > > Make sure you entered the path to GsTL-1.2.1 correctly in > > the .qmake.cache file: if for example you entered > > GSTLHOME=/tmp/GsTL-1.2.1 > > try > > ls /tmp/GsTL-1.2.1/GsTL/cdf/First2_moments_cdf.h > > GSTLHOME should be such that > > ls $GSTLHOME/GsTL/cdf/First2 > > _moments_cdf.h > > works > > Let me know if that helps > > > > Nicolas > > > > -- > Inverse Modeling and Geostatistics Project | http://imgp.gfy.ku.dk/ > office : +45 35320509 > cell : +45 41427380 > > |