Skip to content

Instantly share code, notes, and snippets.

@BradNeuberg
Created October 20, 2015 03:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BradNeuberg/b9360c089d4d445c86e1 to your computer and use it in GitHub Desktop.
Save BradNeuberg/b9360c089d4d445c86e1 to your computer and use it in GitHub Desktop.
Scanning dependencies of target segment
[ 50%] Building CXX object CMakeFiles/segment.dir/segment_py.cpp.o
In file included from /Users/bradneuberg/dev/selective_search_py_port/segment_py.cpp:5:
In file included from /Users/bradneuberg/dev/selective_search_py_port/segment/segment-image.h:25:
In file included from /Users/bradneuberg/dev/selective_search_py_port/segment/filter.h:28:
/Users/bradneuberg/dev/selective_search_py_port/segment/convolve.h:34:13: warning:
implicit conversion loses integer precision: 'size_type'
(aka 'unsigned long') to 'int' [-Wshorten-64-to-32]
int len = mask.size();
~~~ ^~~~~~~~~~~
/Users/bradneuberg/dev/selective_search_py_port/segment/convolve.h:54:13: warning:
implicit conversion loses integer precision: 'size_type'
(aka 'unsigned long') to 'int' [-Wshorten-64-to-32]
int len = mask.size();
~~~ ^~~~~~~~~~~
In file included from /Users/bradneuberg/dev/selective_search_py_port/segment_py.cpp:5:
In file included from /Users/bradneuberg/dev/selective_search_py_port/segment/segment-image.h:25:
/Users/bradneuberg/dev/selective_search_py_port/segment/filter.h:35:13: warning:
implicit conversion loses integer precision: 'size_type'
(aka 'unsigned long') to 'int' [-Wshorten-64-to-32]
int len = mask.size();
~~~ ^~~~~~~~~~~
/Users/bradneuberg/dev/selective_search_py_port/segment_py.cpp:18:23: warning:
implicit conversion loses integer precision: 'Py_intptr_t' (aka 'long') to
'const int' [-Wshorten-64-to-32]
const int depth = input_image.shape(2);
~~~~~ ^~~~~~~~~~~~~~~~~~~~
/Users/bradneuberg/dev/selective_search_py_port/segment_py.cpp:34:19: warning:
implicit conversion loses integer precision: 'Py_intptr_t' (aka 'long') to
'const int' [-Wshorten-64-to-32]
const int h = input_image.shape(0);
~ ^~~~~~~~~~~~~~~~~~~~
/Users/bradneuberg/dev/selective_search_py_port/segment_py.cpp:35:19: warning:
implicit conversion loses integer precision: 'Py_intptr_t' (aka 'long') to
'const int' [-Wshorten-64-to-32]
const int w = input_image.shape(1);
~ ^~~~~~~~~~~~~~~~~~~~
/Users/bradneuberg/dev/selective_search_py_port/segment_py.cpp:57:19: warning:
implicit conversion loses integer precision: 'Py_intptr_t' (aka 'long') to
'const int' [-Wshorten-64-to-32]
const int h = input_image.shape(0);
~ ^~~~~~~~~~~~~~~~~~~~
/Users/bradneuberg/dev/selective_search_py_port/segment_py.cpp:58:19: warning:
implicit conversion loses integer precision: 'Py_intptr_t' (aka 'long') to
'const int' [-Wshorten-64-to-32]
const int w = input_image.shape(1);
~ ^~~~~~~~~~~~~~~~~~~~
8 warnings generated.
[100%] Linking CXX shared library libsegment.dylib
ld: warning: ignoring file /usr/local/lib/libboost_system.dylib, file was built for x86_64 which is not the architecture being linked (i386): /usr/local/lib/libboost_system.dylib
ld: warning: ignoring file /usr/local/lib/libboost_python.dylib, file was built for x86_64 which is not the architecture being linked (i386): /usr/local/lib/libboost_python.dylib
ld: warning: ignoring file /usr/local/lib/libboost_numpy.dylib, file was built for x86_64 which is not the architecture being linked (i386): /usr/local/lib/libboost_numpy.dylib
Undefined symbols for architecture i386:
"boost::numpy::initialize(bool)", referenced from:
init_module_segment() in segment_py.cpp.o
"boost::numpy::empty(int, long const*, boost::numpy::dtype const&)", referenced from:
segment(boost::numpy::ndarray const&, float, float, int) in segment_py.cpp.o
segment_label(boost::numpy::ndarray const&, float, float, int) in segment_py.cpp.o
"boost::numpy::dtype boost::numpy::detail::get_int_dtype<32, false>()", referenced from:
segment_label(boost::numpy::ndarray const&, float, float, int) in segment_py.cpp.o
"boost::numpy::dtype boost::numpy::detail::get_int_dtype<8, true>()", referenced from:
check_image_format(boost::numpy::ndarray const&) in segment_py.cpp.o
"boost::python::throw_error_already_set()", referenced from:
boost::python::tuple boost::python::make_tuple<boost::numpy::ndarray, int>(boost::numpy::ndarray const&, int const&) in segment_py.cpp.o
boost::python::api::object_operators<boost::python::api::object>::operator _object* (boost::python::api::object::*)() const() const in segment_py.cpp.o
_object* boost::python::detail::manage_ptr<_object>(_object*, ...) in segment_py.cpp.o
"boost::python::api::operator!=(boost::python::api::object const&, boost::python::api::object const&)", referenced from:
boost::python::api::enable_binary<boost::numpy::dtype, boost::numpy::dtype, boost::python::api::object>::type boost::python::api::operator!=<boost::numpy::dtype, boost::numpy::dtype>(boost::numpy::dtype const&, boost::numpy::dtype const&) in segment_py.cpp.o
"boost::python::detail::init_module(char const*, void (*)())", referenced from:
_initsegment in segment_py.cpp.o
"boost::python::detail::gcc_demangle(char const*)", referenced from:
boost::python::detail::caller_arity<4u>::impl<boost::python::tuple (*)(boost::numpy::ndarray const&, float, float, int), boost::python::default_call_policies, boost::mpl::vector5<boost::python::tuple, boost::numpy::ndarray const&, float, float, int> >::signature() in segment_py.cpp.o
boost::python::detail::signature_arity<4u>::impl<boost::mpl::vector5<boost::python::tuple, boost::numpy::ndarray const&, float, float, int> >::elements() in segment_py.cpp.o
"boost::python::detail::scope_setattr_doc(char const*, boost::python::api::object const&, char const*)", referenced from:
void boost::python::def<boost::python::tuple (*)(boost::numpy::ndarray const&, float, float, int)>(char const*, boost::python::tuple (*)(boost::numpy::ndarray const&, float, float, int)) in segment_py.cpp.o
"boost::python::objects::function_object(boost::python::objects::py_function const&)", referenced from:
boost::python::api::object boost::python::detail::make_function_aux<boost::python::tuple (*)(boost::numpy::ndarray const&, float, float, int), boost::python::default_call_policies, boost::mpl::vector5<boost::python::tuple, boost::numpy::ndarray const&, float, float, int> >(boost::python::tuple (*)(boost::numpy::ndarray const&, float, float, int), boost::python::default_call_policies const&, boost::mpl::vector5<boost::python::tuple, boost::numpy::ndarray const&, float, float, int> const&) in segment_py.cpp.o
"boost::python::objects::py_function_impl_base::~py_function_impl_base()", referenced from:
boost::python::objects::caller_py_function_impl<boost::python::detail::caller<boost::python::tuple (*)(boost::numpy::ndarray const&, float, float, int), boost::python::default_call_policies, boost::mpl::vector5<boost::python::tuple, boost::numpy::ndarray const&, float, float, int> > >::~caller_py_function_impl() in segment_py.cpp.o
boost::python::objects::caller_py_function_impl<boost::python::detail::caller<boost::python::tuple (*)(boost::numpy::ndarray const&, float, float, int), boost::python::default_call_policies, boost::mpl::vector5<boost::python::tuple, boost::numpy::ndarray const&, float, float, int> > >::~caller_py_function_impl() in segment_py.cpp.o
"boost::python::converter::object_manager_traits<boost::numpy::ndarray>::get_pytype()", referenced from:
boost::python::detail::caller_arity<4u>::impl<boost::python::tuple (*)(boost::numpy::ndarray const&, float, float, int), boost::python::default_call_policies, boost::mpl::vector5<boost::python::tuple, boost::numpy::ndarray const&, float, float, int> >::operator()(_object*, _object*) in segment_py.cpp.o
"boost::python::converter::rvalue_from_python_stage1(_object*, boost::python::converter::registration const&)", referenced from:
boost::python::detail::caller_arity<4u>::impl<boost::python::tuple (*)(boost::numpy::ndarray const&, float, float, int), boost::python::default_call_policies, boost::mpl::vector5<boost::python::tuple, boost::numpy::ndarray const&, float, float, int> >::operator()(_object*, _object*) in segment_py.cpp.o
"boost::python::converter::registry::query(boost::python::type_info)", referenced from:
boost::python::converter::expected_pytype_for_arg<boost::python::tuple>::get_pytype() in segment_py.cpp.o
boost::python::converter::expected_pytype_for_arg<boost::numpy::ndarray const&>::get_pytype() in segment_py.cpp.o
boost::python::converter::expected_pytype_for_arg<float>::get_pytype() in segment_py.cpp.o
boost::python::converter::expected_pytype_for_arg<int>::get_pytype() in segment_py.cpp.o
"boost::python::converter::registry::lookup(boost::python::type_info)", referenced from:
___cxx_global_var_init11 in segment_py.cpp.o
___cxx_global_var_init12 in segment_py.cpp.o
"boost::numpy::ndarray::get_dtype() const", referenced from:
segment(boost::numpy::ndarray const&, float, float, int) in segment_py.cpp.o
check_image_format(boost::numpy::ndarray const&) in segment_py.cpp.o
"boost::numpy::ndarray::get_flags() const", referenced from:
check_image_format(boost::numpy::ndarray const&) in segment_py.cpp.o
"boost::python::objects::py_function_impl_base::max_arity() const", referenced from:
vtable for boost::python::objects::caller_py_function_impl<boost::python::detail::caller<boost::python::tuple (*)(boost::numpy::ndarray const&, float, float, int), boost::python::default_call_policies, boost::mpl::vector5<boost::python::tuple, boost::numpy::ndarray const&, float, float, int> > > in segment_py.cpp.o
"boost::python::converter::registration::expected_from_python_type() const", referenced from:
boost::python::converter::expected_pytype_for_arg<boost::python::tuple>::get_pytype() in segment_py.cpp.o
boost::python::converter::expected_pytype_for_arg<boost::numpy::ndarray const&>::get_pytype() in segment_py.cpp.o
boost::python::converter::expected_pytype_for_arg<float>::get_pytype() in segment_py.cpp.o
boost::python::converter::expected_pytype_for_arg<int>::get_pytype() in segment_py.cpp.o
"typeinfo for boost::python::objects::py_function_impl_base", referenced from:
typeinfo for boost::python::objects::caller_py_function_impl<boost::python::detail::caller<boost::python::tuple (*)(boost::numpy::ndarray const&, float, float, int), boost::python::default_call_policies, boost::mpl::vector5<boost::python::tuple, boost::numpy::ndarray const&, float, float, int> > > in segment_py.cpp.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [libsegment.dylib] Error 1
make[1]: *** [CMakeFiles/segment.dir/all] Error 2
make: *** [all] Error 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment