- Timestamp:
- 04/01/15 20:46:13 (10 years ago)
- Location:
- trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/CMakeLists.txt
r3029 r3035 10 10 include_directories( ${SRCDIR} 11 11 ${Boost_INCLUDE_DIR} 12 ${ASAPROOT}/external-alma 13 ${ASAPROOT}/external/libpyrap/pyrap-0.3.2 )12 ${ASAPROOT}/external-alma ) 13 # ${ASAPROOT}/external/libpyrap/pyrap-0.3.2 ) 14 14 15 15 # link path … … 17 17 18 18 # use libpyrap 19 add_definitions( -DHAVE_LIBPYRAP )19 #add_definitions( -DHAVE_LIBPYRAP ) 20 20 21 21 # source files for libpyrap … … 131 131 132 132 target_link_libraries( ${ASAPLIB} 133 #${Boost_LIBRARIES}133 ${Boost_LIBRARIES} 134 134 ${X11_LIBRARIES} 135 135 ${PGPLOT_LIBRARIES} 136 ${PYRAPLIB}136 #${PYRAPLIB} 137 137 ${ATNFLIB} 138 138 #${CASACORE_LIBRARIES} -
trunk/src/python_asap.cpp
r3034 r3035 97 97 casacore::python::register_convert_std_vector<double>(); 98 98 casacore::python::register_convert_std_vector<std::string>(); 99 //////////////see error below//////////////////////////////100 99 casacore::python::register_convert_std_vector<bool>(); 101 ///////////////////////////////////////////////////////////102 100 casacore::python::register_convert_casa_valueholder(); 103 101 casacore::python::register_convert_casa_record(); 104 102 105 103 } 106 //[ 79%] Building CXX object src/CMakeFiles/_asap.dir/python_asap.cpp.o107 //cd ...trunk/asap/build/src && /usr/bin/clang++ -DAIPS_AUTO_STL -DAIPS_DEBUG -DAIPS_STDLIB -DCASACORE_NEEDS_RETHROW -DCASA_USECASAPATH -DENABLE_PLOTTER2 -DHAVE_LIBPYTHON -DNOPKSMS -DUSE_CASAPY -DWITHOUT_ACS -D_GNU_SOURCE -D_asap_EXPORTS -pipe -Wall -Wextra -Wno-non-template-friend -Wcast-align -Wno-comment -ggdb3 -O0 -fno-omit-frame-pointer -fPIC -I...trunk/darwin/include/casacore -I...trunk/darwin/include/casacore/.. -I/opt/casa/01/include -I/opt/casa/01/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -I/opt/casa/01/Library/Frameworks/Python.framework/Versions/2.7/include -I/opt/casa/01/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/core/include -I...trunk/asap/src -I...trunk/asap/external-alma -I...trunk/asap/external/libpython/python-0.3.2 -o CMakeFiles/_asap.dir/python_asap.cpp.o -c ...trunk/asap/src/python_asap.cpp108 //warning: unknown warning option '-Wno-non-template-friend'; did you mean '-Wno-unsupported-friend'? [-Wunknown-warning-option]109 //In file included from ...trunk/asap/src/python_asap.cpp:32:110 //In file included from /opt/casa/01/include/boost/python.hpp:29:111 //In file included from /opt/casa/01/include/boost/python/exec.hpp:9:112 ///opt/casa/01/include/boost/python/str.hpp:185:57: warning: unused parameter 'end' [-Wunused-parameter]113 // long count(T1 const& sub,T2 const& start, T3 const& end) const114 // ^115 //In file included from ...trunk/asap/src/python_asap.cpp:32:116 //In file included from /opt/casa/01/include/boost/python.hpp:49:117 ///opt/casa/01/include/boost/python/opaque_pointer_converter.hpp:172:1: warning: missing field 'tp_version_tag' initializer [-Wmissing-field-initializers]118 //};119 //^120 //In file included from ...trunk/asap/src/python_asap.cpp:32:121 //In file included from /opt/casa/01/include/boost/python.hpp:52:122 //In file included from /opt/casa/01/include/boost/python/overloads.hpp:11:123 ///opt/casa/01/include/boost/python/detail/defaults_def.hpp:92:30: warning: unused parameter 'kw' [-Wunused-parameter]124 // , keyword_range const& kw // ignored125 // ^126 //In file included from ...trunk/asap/src/python_asap.cpp:46:127 //...trunk/asap/external/libpython/python-0.3.2/python/Converters/PycBasicData.h:95:9: warning: cast from128 // 'boost::python::converter::rvalue_from_python_stage1_data *' to 'boost::python::converter::rvalue_from_python_storage<String> *' increases required alignment129 // from 8 to 16 [-Wcast-align]130 // (boost::python::converter::rvalue_from_python_storage<String>*)131 // ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~132 //...trunk/asap/external/libpython/python-0.3.2/python/Converters/PycBasicData.h:424:9: warning: cast from133 // 'boost::python::converter::rvalue_from_python_stage1_data *' to 'rvalue_from_python_storage<std::__1::vector<asap::ScantableWrapper,134 // std::__1::allocator<asap::ScantableWrapper> > > *' increases required alignment from 8 to 16 [-Wcast-align]135 // (rvalue_from_python_storage<ContainerType>*)136 // ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~137 //...trunk/asap/external/libpython/python-0.3.2/python/Converters/PycBasicData.h:367:10: note: in instantiation of member function138 // 'casacore::python::from_python_sequence<std::__1::vector<asap::ScantableWrapper, std::__1::allocator<asap::ScantableWrapper> >,139 // casacore::python::stl_variable_capacity_policy>::construct' requested here140 // &construct,141 // ^142 //...trunk/asap/external/libpython/python-0.3.2/python/Converters/PycBasicData.h:543:2: note: in instantiation of member function143 // 'casacore::python::from_python_sequence<std::__1::vector<asap::ScantableWrapper, std::__1::allocator<asap::ScantableWrapper> >,144 // casacore::python::stl_variable_capacity_policy>::from_python_sequence' requested here145 // from_python_sequence < std::vector < T >,146 // ^147 //...trunk/asap/external/libpython/python-0.3.2/python/Converters/PycBasicData.h:550:30: note: in instantiation of member function148 // 'casacore::python::convert_std_vector<asap::ScantableWrapper>::reg' requested here149 // { convert_std_vector<T>::reg(); }150 // ^151 //...trunk/asap/src/python_asap.cpp:122:16: note: in instantiation of function template specialization152 // 'casacore::python::register_convert_std_vector<asap::ScantableWrapper>' requested here153 // casacore::python::register_convert_std_vector<asap::ScantableWrapper>();154 // ^155 //In file included from ...trunk/asap/src/python_asap.cpp:46:156 //...trunk/asap/external/libpython/python-0.3.2/python/Converters/PycBasicData.h:424:9: warning: cast from157 // 'boost::python::converter::rvalue_from_python_stage1_data *' to 'rvalue_from_python_storage<std::__1::vector<int, std::__1::allocator<int> > > *' increases158 // required alignment from 8 to 16 [-Wcast-align]159 // (rvalue_from_python_storage<ContainerType>*)160 // ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~161 //...trunk/asap/external/libpython/python-0.3.2/python/Converters/PycBasicData.h:367:10: note: in instantiation of member function162 // 'casacore::python::from_python_sequence<std::__1::vector<int, std::__1::allocator<int> >, casacore::python::stl_variable_capacity_policy>::construct' requested here163 // &construct,164 // ^165 //...trunk/asap/external/libpython/python-0.3.2/python/Converters/PycBasicData.h:543:2: note: in instantiation of member function166 // 'casacore::python::from_python_sequence<std::__1::vector<int, std::__1::allocator<int> >, casacore::python::stl_variable_capacity_policy>::from_python_sequence'167 // requested here168 // from_python_sequence < std::vector < T >,169 // ^170 //...trunk/asap/external/libpython/python-0.3.2/python/Converters/PycBasicData.h:550:30: note: in instantiation of member function171 // 'casacore::python::convert_std_vector<int>::reg' requested here172 // { convert_std_vector<T>::reg(); }173 // ^174 //...trunk/asap/src/python_asap.cpp:123:16: note: in instantiation of function template specialization175 // 'casacore::python::register_convert_std_vector<int>' requested here176 // casacore::python::register_convert_std_vector<int>();177 // ^178 //In file included from ...trunk/asap/src/python_asap.cpp:46:179 //...trunk/asap/external/libpython/python-0.3.2/python/Converters/PycBasicData.h:424:9: warning: cast from180 // 'boost::python::converter::rvalue_from_python_stage1_data *' to 'rvalue_from_python_storage<std::__1::vector<unsigned int, std::__1::allocator<unsigned int> >181 // > *' increases required alignment from 8 to 16 [-Wcast-align]182 // (rvalue_from_python_storage<ContainerType>*)183 // ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~184 //...trunk/asap/external/libpython/python-0.3.2/python/Converters/PycBasicData.h:367:10: note: in instantiation of member function185 // 'casacore::python::from_python_sequence<std::__1::vector<unsigned int, std::__1::allocator<unsigned int> >, casacore::python::stl_variable_capacity_policy>::construct'186 // requested here187 // &construct,188 // ^189 //...trunk/asap/external/libpython/python-0.3.2/python/Converters/PycBasicData.h:543:2: note: in instantiation of member function190 // 'casacore::python::from_python_sequence<std::__1::vector<unsigned int, std::__1::allocator<unsigned int> >,191 // casacore::python::stl_variable_capacity_policy>::from_python_sequence' requested here192 // from_python_sequence < std::vector < T >,193 // ^194 //...trunk/asap/external/libpython/python-0.3.2/python/Converters/PycBasicData.h:550:30: note: in instantiation of member function195 // 'casacore::python::convert_std_vector<unsigned int>::reg' requested here196 // { convert_std_vector<T>::reg(); }197 // ^198 //...trunk/asap/src/python_asap.cpp:124:16: note: in instantiation of function template specialization199 // 'casacore::python::register_convert_std_vector<unsigned int>' requested here200 // casacore::python::register_convert_std_vector<uint>();201 // ^202 //In file included from ...trunk/asap/src/python_asap.cpp:46:203 //...trunk/asap/external/libpython/python-0.3.2/python/Converters/PycBasicData.h:424:9: warning: cast from204 // 'boost::python::converter::rvalue_from_python_stage1_data *' to 'rvalue_from_python_storage<std::__1::vector<float, std::__1::allocator<float> > > *'205 // increases required alignment from 8 to 16 [-Wcast-align]206 // (rvalue_from_python_storage<ContainerType>*)207 // ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~208 //...trunk/asap/external/libpython/python-0.3.2/python/Converters/PycBasicData.h:367:10: note: in instantiation of member function209 // 'casacore::python::from_python_sequence<std::__1::vector<float, std::__1::allocator<float> >, casacore::python::stl_variable_capacity_policy>::construct' requested here210 // &construct,211 // ^212 //...trunk/asap/external/libpython/python-0.3.2/python/Converters/PycBasicData.h:543:2: note: in instantiation of member function213 // 'casacore::python::from_python_sequence<std::__1::vector<float, std::__1::allocator<float> >, casacore::python::stl_variable_capacity_policy>::from_python_sequence'214 // requested here215 // from_python_sequence < std::vector < T >,216 // ^217 //...trunk/asap/external/libpython/python-0.3.2/python/Converters/PycBasicData.h:550:30: note: in instantiation of member function218 // 'casacore::python::convert_std_vector<float>::reg' requested here219 // { convert_std_vector<T>::reg(); }220 // ^221 //...trunk/asap/src/python_asap.cpp:125:16: note: in instantiation of function template specialization222 // 'casacore::python::register_convert_std_vector<float>' requested here223 // casacore::python::register_convert_std_vector<float>();224 // ^225 //In file included from ...trunk/asap/src/python_asap.cpp:46:226 //...trunk/asap/external/libpython/python-0.3.2/python/Converters/PycBasicData.h:424:9: warning: cast from227 // 'boost::python::converter::rvalue_from_python_stage1_data *' to 'rvalue_from_python_storage<std::__1::vector<double, std::__1::allocator<double> > > *'228 // increases required alignment from 8 to 16 [-Wcast-align]229 // (rvalue_from_python_storage<ContainerType>*)230 // ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~231 //...trunk/asap/external/libpython/python-0.3.2/python/Converters/PycBasicData.h:367:10: note: in instantiation of member function232 // 'casacore::python::from_python_sequence<std::__1::vector<double, std::__1::allocator<double> >, casacore::python::stl_variable_capacity_policy>::construct' requested233 // here234 // &construct,235 // ^236 //...trunk/asap/external/libpython/python-0.3.2/python/Converters/PycBasicData.h:543:2: note: in instantiation of member function237 // 'casacore::python::from_python_sequence<std::__1::vector<double, std::__1::allocator<double> >, casacore::python::stl_variable_capacity_policy>::from_python_sequence'238 // requested here239 // from_python_sequence < std::vector < T >,240 // ^241 //...trunk/asap/external/libpython/python-0.3.2/python/Converters/PycBasicData.h:550:30: note: in instantiation of member function242 // 'casacore::python::convert_std_vector<double>::reg' requested here243 // { convert_std_vector<T>::reg(); }244 // ^245 //...trunk/asap/src/python_asap.cpp:126:16: note: in instantiation of function template specialization246 // 'casacore::python::register_convert_std_vector<double>' requested here247 // casacore::python::register_convert_std_vector<double>();248 // ^249 //In file included from ...trunk/asap/src/python_asap.cpp:46:250 //...trunk/asap/external/libpython/python-0.3.2/python/Converters/PycBasicData.h:424:9: warning: cast from251 // 'boost::python::converter::rvalue_from_python_stage1_data *' to 'rvalue_from_python_storage<std::__1::vector<std::__1::basic_string<char>,252 // std::__1::allocator<std::__1::basic_string<char> > > > *' increases required alignment from 8 to 16 [-Wcast-align]253 // (rvalue_from_python_storage<ContainerType>*)254 // ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~255 //...trunk/asap/external/libpython/python-0.3.2/python/Converters/PycBasicData.h:367:10: note: in instantiation of member function256 // 'casacore::python::from_python_sequence<std::__1::vector<std::__1::basic_string<char>, std::__1::allocator<std::__1::basic_string<char> > >,257 // casacore::python::stl_variable_capacity_policy>::construct' requested here258 // &construct,259 // ^260 //...trunk/asap/external/libpython/python-0.3.2/python/Converters/PycBasicData.h:543:2: note: in instantiation of member function261 // 'casacore::python::from_python_sequence<std::__1::vector<std::__1::basic_string<char>, std::__1::allocator<std::__1::basic_string<char> > >,262 // casacore::python::stl_variable_capacity_policy>::from_python_sequence' requested here263 // from_python_sequence < std::vector < T >,264 // ^265 //...trunk/asap/external/libpython/python-0.3.2/python/Converters/PycBasicData.h:550:30: note: in instantiation of member function266 // 'casacore::python::convert_std_vector<std::__1::basic_string<char> >::reg' requested here267 // { convert_std_vector<T>::reg(); }268 // ^269 //...trunk/asap/src/python_asap.cpp:127:16: note: in instantiation of function template specialization270 // 'casacore::python::register_convert_std_vector<std::__1::basic_string<char> >' requested here271 // casacore::python::register_convert_std_vector<std::string>();272 // ^273 //In file included from ...trunk/asap/src/python_asap.cpp:32:274 //In file included from /opt/casa/01/include/boost/python.hpp:11:275 //In file included from /opt/casa/01/include/boost/python/args.hpp:25:276 //In file included from /opt/casa/01/include/boost/python/object_core.hpp:14:277 //In file included from /opt/casa/01/include/boost/python/call.hpp:15:278 ///opt/casa/01/include/boost/python/converter/arg_to_python.hpp:209:9: error: no matching constructor for initialization of279 // 'boost::python::converter::detail::arg_to_python_base'280 // : arg_to_python_base(&x, registered<T>::converters)281 // ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~282 ///opt/casa/01/include/boost/python/converter/arg_to_python.hpp:256:7: note: in instantiation of member function283 // 'boost::python::converter::detail::value_arg_to_python<std::__1::__bit_const_reference<std::__1::vector<bool, std::__1::allocator<bool> > >284 // >::value_arg_to_python' requested here285 // : base(x)286 // ^287 ///opt/casa/01/include/boost/python/object_core.hpp:393:33: note: in instantiation of member function288 // 'boost::python::converter::arg_to_python<std::__1::__bit_const_reference<std::__1::vector<bool, std::__1::allocator<bool> > > >::arg_to_python' requested here289 // return python::incref(converter::arg_to_python<T>(x).get());290 // ^291 ///opt/casa/01/include/boost/python/object_core.hpp:312:10: note: in instantiation of function template specialization292 // 'boost::python::api::object_initializer_impl<false, false>::get<std::__1::__bit_const_reference<std::__1::vector<bool, std::__1::allocator<bool> > > >'293 // requested here294 // >::get(295 // ^296 ///opt/casa/01/include/boost/python/object_core.hpp:334:23: note: in instantiation of function template specialization297 // 'boost::python::api::object_base_initializer<std::__1::__bit_const_reference<std::__1::vector<bool, std::__1::allocator<bool> > > >' requested here298 // : object_base(object_base_initializer(x))299 // ^300 ///opt/casa/01/include/boost/python/list.hpp:72:22: note: in instantiation of function template specialization301 // 'boost::python::api::object::object<std::__1::__bit_const_reference<std::__1::vector<bool, std::__1::allocator<bool> > > >' requested here302 // base::append(object(x));303 // ^304 //...trunk/asap/external/libpython/python-0.3.2/python/Converters/PycBasicData.h:219:9: note: (skipping 3 contexts in backtrace; use305 // -ftemplate-backtrace-limit=0 to see all)306 // result.append(*i);307 // ^308 ///opt/casa/01/include/boost/python/to_python_converter.hpp:88:22: note: in instantiation of member function309 // 'boost::python::converter::as_to_python_function<std::__1::vector<bool, std::__1::allocator<bool> >, casacore::python::to_list<std::__1::vector<bool,310 // std::__1::allocator<bool> > > >::convert' requested here311 // &normalized::convert312 // ^313 //...trunk/asap/external/libpython/python-0.3.2/python/Converters/PycBasicData.h:317:7: note: in instantiation of member function314 // 'boost::python::to_python_converter<std::__1::vector<bool, std::__1::allocator<bool> >, casacore::python::to_list<std::__1::vector<bool, std::__1::allocator<bool>315 // > >, false>::to_python_converter' requested here316 // boost::python::to_python_converter < std::vector < T >,317 // ^318 //...trunk/asap/external/libpython/python-0.3.2/python/Converters/PycBasicData.h:542:2: note: in instantiation of member function319 // 'casacore::python::std_vector_to_list<bool>::std_vector_to_list' requested here320 // std_vector_to_list < T > ();321 // ^322 //...trunk/asap/external/libpython/python-0.3.2/python/Converters/PycBasicData.h:550:30: note: in instantiation of member function323 // 'casacore::python::convert_std_vector<bool>::reg' requested here324 // { convert_std_vector<T>::reg(); }325 // ^326 //...trunk/asap/src/python_asap.cpp:128:16: note: in instantiation of function template specialization327 // 'casacore::python::register_convert_std_vector<bool>' requested here328 // casacore::python::register_convert_std_vector<bool>();329 // ^330 ///opt/casa/01/include/boost/python/converter/arg_to_python_base.hpp:20:7: note: candidate constructor not viable: no known conversion from331 // '__bit_iterator<std::__1::vector<bool, std::__1::allocator<bool> >, true>' to 'const volatile void *' for 1st argument332 // arg_to_python_base(void const volatile* source, registration const&);333 // ^334 ///opt/casa/01/include/boost/python/converter/arg_to_python_base.hpp:15:28: note: candidate constructor (the implicit copy constructor) not viable: requires 1335 // argument, but 2 were provided336 // struct BOOST_PYTHON_DECL arg_to_python_base337 // ^338 //In file included from ...trunk/asap/src/python_asap.cpp:46:339 //...trunk/asap/external/libpython/python-0.3.2/python/Converters/PycBasicData.h:424:9: warning: cast from340 // 'boost::python::converter::rvalue_from_python_stage1_data *' to 'rvalue_from_python_storage<std::__1::vector<bool, std::__1::allocator<bool> > > *' increases341 // required alignment from 8 to 16 [-Wcast-align]342 // (rvalue_from_python_storage<ContainerType>*)343 // ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~344 //...trunk/asap/external/libpython/python-0.3.2/python/Converters/PycBasicData.h:367:10: note: in instantiation of member function345 // 'casacore::python::from_python_sequence<std::__1::vector<bool, std::__1::allocator<bool> >, casacore::python::stl_variable_capacity_policy>::construct' requested here346 // &construct,347 // ^348 //...trunk/asap/external/libpython/python-0.3.2/python/Converters/PycBasicData.h:543:2: note: in instantiation of member function349 // 'casacore::python::from_python_sequence<std::__1::vector<bool, std::__1::allocator<bool> >, casacore::python::stl_variable_capacity_policy>::from_python_sequence'350 // requested here351 // from_python_sequence < std::vector < T >,352 // ^353 //...trunk/asap/external/libpython/python-0.3.2/python/Converters/PycBasicData.h:550:30: note: in instantiation of member function354 // 'casacore::python::convert_std_vector<bool>::reg' requested here355 // { convert_std_vector<T>::reg(); }356 // ^357 //...trunk/asap/src/python_asap.cpp:128:16: note: in instantiation of function template specialization358 // 'casacore::python::register_convert_std_vector<bool>' requested here359 // casacore::python::register_convert_std_vector<bool>();360 // ^361 //12 warnings and 1 error generated.362 //make[2]: *** [src/CMakeFiles/_asap.dir/python_asap.cpp.o] Error 1363 //make[1]: *** [src/CMakeFiles/_asap.dir/all] Error 2364 //make: *** [all] Error 2365 //366 //
Note:
See TracChangeset
for help on using the changeset viewer.