Cygwin success stories?
Hello everyone,
I've been trying to get Wt to build under cygwin 1.7.9 without success.
I have been following this guide:
http://redmine.webtoolkit.eu/projects/1/wiki/Installing_Wt_on_Cygwin_using_gcc
I am using cmake 2.8.7 (compiled from source), and boost 1.47.0. The build fails with this output:
/cygdrive/c/cygwin-boost/include/boost-1_47/boost/date_time/int_adapter.hpp:76:40: instantiated from ‘static boost::date_time::int_adapter<int_type_> boost::date_time::int_adapter<int_type_>::from_special(boost::date_time::special_values) [with int_type_ = long long int, boost::date_time::int_adapter<int_type_> = boost::date_time::int_adapter<long long int>]’ /cygdrive/c/cygwin-boost/include/boost-1_47/boost/date_time/time_duration.hpp:67:74: instantiated from ‘boost::date_time::time_duration<T, rep_type>::time_duration(boost::date_time::special_values) [with T = boost::posix_time::time_duration, rep_type = boost::date_time::time_resolution_traits<boost::date_time::time_resolution_traits_adapted64_impl, (boost::date_time::time_resolutions)5u, 1000000, 6u>]’ /cygdrive/c/cygwin-boost/include/boost-1_47/boost/date_time/posix_time/posix_time_config.hpp:80:66: instantiated from here /cygdrive/c/cygwin-boost/include/boost-1_47/boost/date_time/int_adapter.hpp:64:53: error: ‘max’ is not a member of ‘std::numeric_limits<long long int>’ /cygdrive/c/cygwin-boost/include/boost-1_47/boost/date_time/int_adapter.hpp: In static member function ‘static boost::date_time::int_adapter<int_type_> boost::date_time::int_adapter<int_type_>::min() [with int_type_ = long long int, boost::date_time::int_adapter<int_type_> = boost::date_time::int_adapter<long long int>]’: /cygdrive/c/cygwin-boost/include/boost-1_47/boost/date_time/int_adapter.hpp:77:40: instantiated from ‘static boost::date_time::int_adapter<int_type_> boost::date_time::int_adapter<int_type_>::from_special(boost::date_time::special_values) [with int_type_ = long long int, boost::date_time::int_adapter<int_type_> = boost::date_time::int_adapter<long long int>]’ /cygdrive/c/cygwin-boost/include/boost-1_47/boost/date_time/time_duration.hpp:67:74: instantiated from ‘boost::date_time::time_duration<T, rep_type>::time_duration(boost::date_time::special_values) [with T = boost::posix_time::time_duration, rep_type = boost::date_time::time_resolution_traits<boost::date_time::time_resolution_traits_adapted64_impl, (boost::date_time::time_resolutions)5u, 1000000, 6u>]’ /cygdrive/c/cygwin-boost/include/boost-1_47/boost/date_time/posix_time/posix_time_config.hpp:80:66: instantiated from here /cygdrive/c/cygwin-boost/include/boost-1_47/boost/date_time/int_adapter.hpp:68:53: error: ‘min’ is not a member of ‘std::numeric_limits<long long int>’ src/CMakeFiles/wt.dir/build.make:2650: recipe for target `src/CMakeFiles/wt.dir/Wt/WRandom.o' failed make[2]: *** [src/CMakeFiles/wt.dir/Wt/WRandom.o] Error 1 make[2]: *** Waiting for unfinished jobs.... CMakeFiles/Makefile2:117: recipe for target `src/CMakeFiles/wt.dir/all' failed make[1]: *** [src/CMakeFiles/wt.dir/all] Error 2 Makefile:110: recipe for target `all' failed make: *** [all] Error 2
I suspect that the boost that I built is missing something that Wt requires. I have also tried the same process with boost 1.48.0 built from source, as well as boost 1.48.0 available in cygwin, neither worked.
Has anyone built a recent version of Wt successfully under cygwin? I'd appreciate any advice.
Thanks!
Replies
RE: Cygwin success stories? - Added by Wim Dumon 4 months ago
Hello,
I've given up following up on cygwin when cmake started to crash on wt's cmakefile. If that has now been resolved, I'll probably look at cygwin support again.
You mentioned you compiled cmake 2.8.7 from source - is that because this core-dumping error has been fixed now? I just verified that the stock cmake from cygwin still crashes on Wt's CMakeLists.txt.
BR,
Wim.
RE: Cygwin success stories? - Added by Jim S 4 months ago
Yes, I ran into this bug http://redmine.emweb.be/issues/982 with the version of cmake included with cygwin. It went away once I built 2.8.7 myself.