|
|
16:59:14: Running steps for project GeodeticConsole... 16:59:14: Configuration unchanged, skipping qmake step. 16:59:14: Starting: "/usr/bin/make" -w make: Entering directory `/home/***/projects/Qt/GeodeticConsole-build-Desktop_Qt_5_0_1_GCC_64bit-Debug' g++ -c -m64 -pipe -std=c++11 -Wall -Wextra -pedantic -g -Wall -W -D_REENTRANT -fPIE -DQT_QML_DEBUG -DQT_DECLARATIVE_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/lib/qt5/5.0.1/gcc_64/mkspecs/linux-g++-64 -I../GeodeticConsole -I/usr/lib/qt5/5.0.1/gcc_64/include -I/usr/lib/qt5/5.0.1/gcc_64/include/QtGui -I/usr/lib/qt5/5.0.1/gcc_64/include/QtCore -I. -I. -o main.o ../GeodeticConsole/main.cpp In file included from /usr/include/boost/units/dimensionless_quantity.hpp:20:0, from /usr/include/boost/units/cmath.hpp:23, from ../GeodeticConsole/main.cpp:7: /usr/include/boost/units/quantity.hpp: In instantiation of 'class boost::units::quantity<boost::units::angle::degree_base_unit>': ../GeodeticConsole/main.cpp:36:52: required from here /usr/include/boost/units/quantity.hpp:92:9: error: no matching function for call to 'assertion_failed(mpl_::failed************ boost::mpl::not_<boost::units::detail::is_base_unit<boost::units::angle::degree_base_unit, void> >::************)' /usr/include/boost/units/quantity.hpp:92:9: note: candidate is: In file included from /usr/include/boost/mpl/aux_/na_assert.hpp:23:0, from /usr/include/boost/mpl/arg.hpp:25, from /usr/include/boost/mpl/placeholders.hpp:24, from /usr/include/boost/mpl/apply.hpp:24, from /usr/include/boost/mpl/aux_/iter_apply.hpp:17, from /usr/include/boost/mpl/aux_/find_if_pred.hpp:14, from /usr/include/boost/mpl/find_if.hpp:17, from /usr/include/boost/mpl/find.hpp:17, from /usr/include/boost/mpl/aux_/contains_impl.hpp:20, from /usr/include/boost/mpl/contains.hpp:20, from /usr/include/boost/math/policies/policy.hpp:10, from /usr/include/boost/math/special_functions/math_fwd.hpp:28, from /usr/include/boost/math/special_functions/fpclassify.hpp:19, from /usr/include/boost/units/cmath.hpp:17, from ../GeodeticConsole/main.cpp:7: /usr/include/boost/mpl/assert.hpp:79:5: note: template<bool C> int mpl_::assertion_failed(typename mpl_::assert<C>::type) /usr/include/boost/mpl/assert.hpp:79:5: note: template argument deduction/substitution failed: In file included from /usr/include/boost/units/dimensionless_quantity.hpp:20:0, from /usr/include/boost/units/cmath.hpp:23, from ../GeodeticConsole/main.cpp:7: /usr/include/boost/units/quantity.hpp:92:9: note: cannot convert 'mpl_::assert_not_arg<boost::units::detail::is_base_unit<boost::units::angle::degree_base_unit, void> >(0u, 1)' (type 'mpl_::failed************ boost::mpl::not_<boost::units::detail::is_base_unit<boost::units::angle::degree_base_unit, void> >::************') to type 'mpl_::assert<false>::type {aka mpl_::assert<false>}' ../GeodeticConsole/main.cpp: In function 'int main()': ../GeodeticConsole/main.cpp:36:98: error: expected primary-expression before ';' token ../GeodeticConsole/main.cpp:36:52: warning: unused variable 'FlindersSDeg' [-Wunused-variable] make: *** [main.o] Error 1 make: Leaving directory `/home/***/projects/Qt/GeodeticConsole-build-Desktop_Qt_5_0_1_GCC_64bit-Debug' 16:59:15: The process "/usr/bin/make" exited with code 2. Error while building/deploying project GeodeticConsole (kit: Desktop Qt 5.0.1 GCC 64bit) When executing step 'Make' |
|
|
../GeodeticConsole/main.cpp: In function 'int main()': ../GeodeticConsole/main.cpp:49:13: error: 'degree' is not a member of 'boost::units' ../GeodeticConsole/main.cpp:49:13: note: suggested alternatives: In file included from /usr/include/boost/geometry/geometry.hpp:19:0, from /usr/include/boost/geometry.hpp:17, from ../GeodeticConsole/main.cpp:4: /usr/include/boost/geometry/core/cs.hpp:35:8: note: 'boost::geometry::degree' /usr/include/boost/geometry/core/cs.hpp:35:8: note: 'boost::geometry::degree' In file included from /usr/include/boost/geometry/util/math.hpp:20:0, from /usr/include/boost/geometry/core/radian_access.hpp:28, from /usr/include/boost/geometry/geometry.hpp:28, from /usr/include/boost/geometry.hpp:17, from ../GeodeticConsole/main.cpp:4: /usr/include/boost/math/constants/constants.hpp:254:3: note: 'boost::math::constants::degree' /usr/include/boost/math/constants/constants.hpp:254:3: note: 'boost::math::float_constants::degree' /usr/include/boost/math/constants/constants.hpp:254:3: note: 'boost::math::double_constants::degree' /usr/include/boost/math/constants/constants.hpp:254:3: note: 'boost::math::long_double_constants::degree' |
|
|
|
|
boost::units::degree::plane_angle
.
|
|
http://www.boost.org/doc/libs/1_47_0/libs/geometry/doc/doxy/doxygen_input/sourcecode/doxygen_1.cpp |
|
|
Bump - are you out there Cubbi? No panic, you probably need a chance to get away from a computer!! |
|
|
quantity<si::plane_angle>
to convert with because that is in radians. Maybe it's because the degrees value isn't scalar.http://stackoverflow.com/questions/16465922/use-boost-to-convert-degrees-minutes-seconds-radians-boost-1-48-0 |
|
|