tudelft3d / prepair

Automatic repair of single polygons (according to the OGC Simple Features / ISO19107 rules) using a constrained triangulation.
GNU General Public License v3.0
115 stars 24 forks source link

Linux compilation issues #11

Closed kenohori closed 10 years ago

kenohori commented 10 years ago

To check:

hledoux@geovalidation:~/projects/prepair$ make

[ 33%] Building CXX object CMakeFiles/prepair.dir/prepair.cpp.o

/home/hledoux/projects/prepair/prepair.cpp: In function 'int main(int, const char**)':

/home/hledoux/projects/prepair/prepair.cpp:30:39: error: 'class boost::program_options::typed_valuestd::basic_string<char, char>' has no member named 'value_name'

/home/hledoux/projects/prepair/prepair.cpp:31:43: error: 'class boost::program_options::typed_valuestd::basic_string<char, char>' has no member named 'value_name'

/home/hledoux/projects/prepair/prepair.cpp:32:39: error: 'class boost::program_options::typed_valuestd::basic_string<char, char>' has no member named 'value_name'

/home/hledoux/projects/prepair/prepair.cpp:40:36: error: 'class boost::program_options::typed_value<double, char>' has no member named 'value_name'

/home/hledoux/projects/prepair/prepair.cpp:41:40: error: 'class boost::program_options::typed_valuestd::basic_string<char, char>' has no member named 'value_name'

/home/hledoux/projects/prepair/prepair.cpp:104:63: error: no matching function for call to 'std::basic_ifstream::open(const std::basic_string&, const openmode&)'

/home/hledoux/projects/prepair/prepair.cpp:104:63: note: candidate is:

/usr/include/c++/4.6/fstream:531:7: note: void std::basic_ifstream<_CharT, _Traits>::open(const char*, std::ios_base::openmode) [with _CharT = char, _Traits = std::char_traits, std::ios_base::openmode = std::_Ios_Openmode]

/usr/include/c++/4.6/fstream:531:7: note: no known conversion for argument 1 from 'const std::basic_string' to 'const char*'

make[2]: *\ [CMakeFiles/prepair.dir/prepair.cpp.o] Error 1

make[1]: *\ [CMakeFiles/prepair.dir/all] Error 2

make: *\ [all] Error 2

kenohori commented 10 years ago

It should be fixed now. Please check it in the server too!

hugoledoux commented 10 years ago

same error... perhaps you can test it yourself on geovalidation.bk.tudelft.nl

Is the version of Boost too old?

kenohori commented 10 years ago

How do I login? SSH with my NetID? It doesn't seem to work...

kenohori commented 10 years ago

You're right. Boost is too old. That version has a different API for program_options. I've added a line in the CMake file to request Boost 1.50 or higher.

Can/should I upgrade boost in the server?

hugoledoux commented 10 years ago

I used apt-get, ubuntu LTS is rather old but was latest when I installed a few months ago. Simpler to not use that boost options perhaps? Others would have same issue I reckon.

On Friday, August 29, 2014, Ken Arroyo Ohori notifications@github.com wrote:

You're right. Boost it's too old. That version has a different API for program_options. I've added a line in the CMake file to request Boost 1.50 or higher.

Can/should I upgrade boost in the server?

— Reply to this email directly or view it on GitHub https://github.com/tudelft-gist/prepair/issues/11#issuecomment-53864331.

kenohori commented 10 years ago

I think it's very reasonable to request boost 1.50. It's was released way back in June 2012.

hugoledoux commented 10 years ago

So you figure out how to update boost on the server?

kenohori commented 10 years ago

I haven't tried it yet, but it should be easy. Should I do it?

hugoledoux commented 10 years ago

Sure

kenohori commented 10 years ago

Done