When building on the OS X 10.12.6 Sierra, I get this error:
ld: library not found for -lopencv_imgcodecs
I have the opencv
library installed via homebrew although my version seemed to be out of date. Upgrading the latest one resolved it.
cjsMBP15:ad_lock cj$ brew install opencv
Error: opencv 2.4.13.2 is already installed
To upgrade to 3.4.0_1, run `brew upgrade opencv`
cjsMBP15:ad_lock cj$ brew upgrade opencv
That lets me compile it fine.
Another issue worth noting, although I don't think it is due to rustml
, is that I get this error when doing cargo build
on the rust project, although please note that there is a greater context. I'm running Rustler for creating Rust NIF for an Elixir project. Compiling the Elixir project from the proper entry point compiles the project with rustml
completely fine although if I go deeper into the project and focus on the rust aspect, it fails with cargo build
on OS X. It does not on ubuntu. It fails with this:
warning: unused import: `NifDecoder`
--> src/lib.rs:6:55
|
6 | use rustler::{NifEnv, NifTerm, NifResult, NifEncoder, NifDecoder};
| ^^^^^^^^^^
error: linking with `cc` failed: exit code: 1
|
= note: "cc" "-m64" "-L" "/Users/cj/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib" "/Users/cj/elixir_projects/ad_lock/native/adlock_dbscan/target/debug/deps/adlock_dbscan.adlock_dbscan0.rcgu.o" "/Users/cj/elixir_projects/ad_lock/native/adlock_dbscan/target/debug/deps/adlock_dbscan.adlock_dbscan1.rcgu.o" "/Users/cj/elixir_projects/ad_lock/native/adlock_dbscan/target/debug/deps/adlock_dbscan.adlock_dbscan10.rcgu.o" "/Users/cj/elixir_projects/ad_lock/native/adlock_dbscan/target/debug/deps/adlock_dbscan.adlock_dbscan11.rcgu.o" "/Users/cj/elixir_projects/ad_lock/native/adlock_dbscan/target/debug/deps/adlock_dbscan.adlock_dbscan12.rcgu.o" "/Users/cj/elixir_projects/ad_lock/native/adlock_dbscan/target/debug/deps/adlock_dbscan.adlock_dbscan13.rcgu.o" "/Users/cj/elixir_projects/ad_lock/native/adlock_dbscan/target/debug/deps/adlock_dbscan.adlock_dbscan14.rcgu.o" "/Users/cj/elixir_projects/ad_lock/native/adlock_dbscan/target/debug/deps/adlock_dbscan.adlock_dbscan15.rcgu.o" "/Users/cj/elixir_projects/ad_lock/native/adlock_dbscan/target/debug/deps/adlock_dbscan.adlock_dbscan2.rcgu.o" "/Users/cj/elixir_projects/ad_lock/native/adlock_dbscan/target/debug/deps/adlock_dbscan.adlock_dbscan3.rcgu.o" "/Users/cj/elixir_projects/ad_lock/native/adlock_dbscan/target/debug/deps/adlock_dbscan.adlock_dbscan4.rcgu.o" "/Users/cj/elixir_projects/ad_lock/native/adlock_dbscan/target/debug/deps/adlock_dbscan.adlock_dbscan5.rcgu.o" "/Users/cj/elixir_projects/ad_lock/native/adlock_dbscan/target/debug/deps/adlock_dbscan.adlock_dbscan6.rcgu.o" "/Users/cj/elixir_projects/ad_lock/native/adlock_dbscan/target/debug/deps/adlock_dbscan.adlock_dbscan7.rcgu.o" "/Users/cj/elixir_projects/ad_lock/native/adlock_dbscan/target/debug/deps/adlock_dbscan.adlock_dbscan8.rcgu.o" "/Users/cj/elixir_projects/ad_lock/native/adlock_dbscan/target/debug/deps/adlock_dbscan.adlock_dbscan9.rcgu.o" "-o" "/Users/cj/elixir_projects/ad_lock/native/adlock_dbscan/target/debug/deps/libadlock_dbscan.dylib" "/Users/cj/elixir_projects/ad_lock/native/adlock_dbscan/target/debug/deps/adlock_dbscan.crate.metadata.rcgu.o" "/Users/cj/elixir_projects/ad_lock/native/adlock_dbscan/target/debug/deps/adlock_dbscan.crate.allocator.rcgu.o" "-Wl,-dead_strip" "-nodefaultlibs" "-L" "/Users/cj/elixir_projects/ad_lock/native/adlock_dbscan/target/debug/deps" "-L" "/Users/cj/elixir_projects/ad_lock/native/adlock_dbscan/target/debug/build/miniz-sys-196a62939b6a9c24/out" "-L" "/Users/cj/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib" "-Wl,-force_load,/var/folders/cb/_4gwm8d117n47dwx_k2jqkg80000gn/T/rustc.XG9dP9vkMHbe/liblazy_static-1720e11e14396b32.rlib" "-Wl,-force_load,/var/folders/cb/_4gwm8d117n47dwx_k2jqkg80000gn/T/rustc.XG9dP9vkMHbe/librustler-77d824b088ad7f3e.rlib" "-Wl,-force_load,/var/folders/cb/_4gwm8d117n47dwx_k2jqkg80000gn/T/rustc.XG9dP9vkMHbe/liberlang_nif_sys-b5bcab593d96546f.rlib" "-Wl,-force_load,/var/folders/cb/_4gwm8d117n47dwx_k2jqkg80000gn/T/rustc.XG9dP9vkMHbe/liblazy_static-8f64b49681de34b8.rlib" "-Wl,-force_load,/var/folders/cb/_4gwm8d117n47dwx_k2jqkg80000gn/T/rustc.XG9dP9vkMHbe/librustml-d3fb05b9f6c0a6b6.rlib" "-Wl,-force_load,/var/folders/cb/_4gwm8d117n47dwx_k2jqkg80000gn/T/rustc.XG9dP9vkMHbe/libflate2-53dd3fb172d47e79.rlib" "-Wl,-force_load,/var/folders/cb/_4gwm8d117n47dwx_k2jqkg80000gn/T/rustc.XG9dP9vkMHbe/libminiz_sys-726c0ddccb279106.rlib" "-Wl,-force_load,/var/folders/cb/_4gwm8d117n47dwx_k2jqkg80000gn/T/rustc.XG9dP9vkMHbe/librand-12829add1a561703.rlib" "-Wl,-force_load,/var/folders/cb/_4gwm8d117n47dwx_k2jqkg80000gn/T/rustc.XG9dP9vkMHbe/libnum-5bec645e9c4f2452.rlib" "-Wl,-force_load,/var/folders/cb/_4gwm8d117n47dwx_k2jqkg80000gn/T/rustc.XG9dP9vkMHbe/libnum_rational-2b6b9151f8d229dd.rlib" "-Wl,-force_load,/var/folders/cb/_4gwm8d117n47dwx_k2jqkg80000gn/T/rustc.XG9dP9vkMHbe/libnum_complex-b97edf84bb4c9fac.rlib" "-Wl,-force_load,/var/folders/cb/_4gwm8d117n47dwx_k2jqkg80000gn/T/rustc.XG9dP9vkMHbe/libnum_iter-b0b2a0581f6d54cb.rlib" "-Wl,-force_load,/var/folders/cb/_4gwm8d117n47dwx_k2jqkg80000gn/T/rustc.XG9dP9vkMHbe/libnum_bigint-6d0862b2388914a9.rlib" "-Wl,-force_load,/var/folders/cb/_4gwm8d117n47dwx_k2jqkg80000gn/T/rustc.XG9dP9vkMHbe/libnum_integer-580516a07ac96c8c.rlib" "-Wl,-force_load,/var/folders/cb/_4gwm8d117n47dwx_k2jqkg80000gn/T/rustc.XG9dP9vkMHbe/libnum_traits-3f5aa0a35b961e4e.rlib" "-Wl,-force_load,/var/folders/cb/_4gwm8d117n47dwx_k2jqkg80000gn/T/rustc.XG9dP9vkMHbe/librustc_serialize-7ef7591fd50fb69b.rlib" "-Wl,-force_load,/var/folders/cb/_4gwm8d117n47dwx_k2jqkg80000gn/T/rustc.XG9dP9vkMHbe/librand-cbf17136057413a2.rlib" "-Wl,-force_load,/var/folders/cb/_4gwm8d117n47dwx_k2jqkg80000gn/T/rustc.XG9dP9vkMHbe/libtime-d3c1da55cef1cdc2.rlib" "-Wl,-force_load,/var/folders/cb/_4gwm8d117n47dwx_k2jqkg80000gn/T/rustc.XG9dP9vkMHbe/libregex-fdbf3936a77ec910.rlib" "-Wl,-force_load,/var/folders/cb/_4gwm8d117n47dwx_k2jqkg80000gn/T/rustc.XG9dP9vkMHbe/libregex_syntax-6eda90e19dafa4b8.rlib" "-Wl,-force_load,/var/folders/cb/_4gwm8d117n47dwx_k2jqkg80000gn/T/rustc.XG9dP9vkMHbe/libaho_corasick-9a29037e2ae6f7f0.rlib" "-Wl,-force_load,/var/folders/cb/_4gwm8d117n47dwx_k2jqkg80000gn/T/rustc.XG9dP9vkMHbe/libmemchr-233dff7fd091586e.rlib" "-Wl,-force_load,/var/folders/cb/_4gwm8d117n47dwx_k2jqkg80000gn/T/rustc.XG9dP9vkMHbe/libthread_local-4467b4cd3e8f7c4e.rlib" "-Wl,-force_load,/var/folders/cb/_4gwm8d117n47dwx_k2jqkg80000gn/T/rustc.XG9dP9vkMHbe/libthread_id-4aaad2d09034ce32.rlib" "-Wl,-force_load,/var/folders/cb/_4gwm8d117n47dwx_k2jqkg80000gn/T/rustc.XG9dP9vkMHbe/liblibc-abc1fb867af5eb38.rlib" "-Wl,-force_load,/var/folders/cb/_4gwm8d117n47dwx_k2jqkg80000gn/T/rustc.XG9dP9vkMHbe/libutf8_ranges-a93d10e33b224a97.rlib" "-Wl,-force_load,/var/folders/cb/_4gwm8d117n47dwx_k2jqkg80000gn/T/rustc.XG9dP9vkMHbe/libstd-826c8d3b356e180c.rlib" "-Wl,-force_load,/var/folders/cb/_4gwm8d117n47dwx_k2jqkg80000gn/T/rustc.XG9dP9vkMHbe/libpanic_unwind-a13e273e3b2707ec.rlib" "-Wl,-force_load,/var/folders/cb/_4gwm8d117n47dwx_k2jqkg80000gn/T/rustc.XG9dP9vkMHbe/libunwind-fb866798267ea81a.rlib" "-Wl,-force_load,/var/folders/cb/_4gwm8d117n47dwx_k2jqkg80000gn/T/rustc.XG9dP9vkMHbe/liballoc_system-2c621ea26f0e39bb.rlib" "-Wl,-force_load,/var/folders/cb/_4gwm8d117n47dwx_k2jqkg80000gn/T/rustc.XG9dP9vkMHbe/liblibc-6f561611194f6c6a.rlib" "-Wl,-force_load,/var/folders/cb/_4gwm8d117n47dwx_k2jqkg80000gn/T/rustc.XG9dP9vkMHbe/liballoc-d7ea7d0f1d556c7c.rlib" "-Wl,-force_load,/var/folders/cb/_4gwm8d117n47dwx_k2jqkg80000gn/T/rustc.XG9dP9vkMHbe/libstd_unicode-5217969f5650afe0.rlib" "-Wl,-force_load,/var/folders/cb/_4gwm8d117n47dwx_k2jqkg80000gn/T/rustc.XG9dP9vkMHbe/libcore-4a937f4a2d664111.rlib" "/var/folders/cb/_4gwm8d117n47dwx_k2jqkg80000gn/T/rustc.XG9dP9vkMHbe/libcompiler_builtins-f6c69d64299ff1c7.rlib" "-l" "blas" "-l" "opencv_highgui" "-l" "opencv_imgcodecs" "-l" "opencv_core" "-l" "opencv_imgproc" "-l" "System" "-l" "resolv" "-l" "pthread" "-l" "c" "-l" "m" "-dynamiclib" "-Wl,-dylib"
= note: Undefined symbols for architecture x86_64:
"_cvGrabFrame", referenced from:
_$LT$rustml..opencv..VideoColorFrameIterator$LT$$u27$q$GT$$u20$as$u20$core..iter..iterator..Iterator$GT$::next::hbe334209a25df91e in librustml-d3fb05b9f6c0a6b6.rlib(rustml-d3fb05b9f6c0a6b6.rustml12.rcgu.o)
_$LT$rustml..opencv..VideoGrayFrameIterator$LT$$u27$q$GT$$u20$as$u20$core..iter..iterator..Iterator$GT$::next::h6c267b2fa9c4160a in librustml-d3fb05b9f6c0a6b6.rlib(rustml-d3fb05b9f6c0a6b6.rustml12.rcgu.o)
"_cvReleaseCapture", referenced from:
_$LT$rustml..opencv..Video$u20$as$u20$core..ops..drop..Drop$GT$::drop::ha8cdd9550884ade1 in librustml-d3fb05b9f6c0a6b6.rlib(rustml-d3fb05b9f6c0a6b6.rustml12.rcgu.o)
"_enif_snprintf", referenced from:
rustler::wrapper::term::fmt::h7fd4ecc93d46c39b in librustler-77d824b088ad7f3e.rlib(rustler-77d824b088ad7f3e.rustler8.rcgu.o)
"_enif_thread_type", referenced from:
rustler::wrapper::nif_interface::enif_thread_type::h81c3f6f013739bbb in librustler-77d824b088ad7f3e.rlib(rustler-77d824b088ad7f3e.rustler5.rcgu.o)
"_enif_consume_timeslice", referenced from:
rustler::wrapper::nif_interface::enif_consume_timeslice::ha184d07f5b312307 in librustler-77d824b088ad7f3e.rlib(rustler-77d824b088ad7f3e.rustler5.rcgu.o)
"_cvRetrieveFrame", referenced from:
_$LT$rustml..opencv..VideoColorFrameIterator$LT$$u27$q$GT$$u20$as$u20$core..iter..iterator..Iterator$GT$::next::hbe334209a25df91e in librustml-d3fb05b9f6c0a6b6.rlib(rustml-d3fb05b9f6c0a6b6.rustml12.rcgu.o)
_$LT$rustml..opencv..VideoGrayFrameIterator$LT$$u27$q$GT$$u20$as$u20$core..iter..iterator..Iterator$GT$::next::h6c267b2fa9c4160a in librustml-d3fb05b9f6c0a6b6.rlib(rustml-d3fb05b9f6c0a6b6.rustml12.rcgu.o)
"_enif_keep_resource", referenced from:
rustler::wrapper::nif_interface::enif_keep_resource::hd75284b0aef49009 in librustler-77d824b088ad7f3e.rlib(rustler-77d824b088ad7f3e.rustler5.rcgu.o)
"_enif_release_resource", referenced from:
rustler::wrapper::nif_interface::enif_release_resource::hb642f7e19700f670 in librustler-77d824b088ad7f3e.rlib(rustler-77d824b088ad7f3e.rustler5.rcgu.o)
"_enif_make_resource", referenced from:
rustler::wrapper::nif_interface::enif_make_resource::hbad7d65bde6a5dad in librustler-77d824b088ad7f3e.rlib(rustler-77d824b088ad7f3e.rustler5.rcgu.o)
"_enif_make_list_cell", referenced from:
rustler::wrapper::nif_interface::enif_make_list_cell::hf39f3dca8bb085fd in librustler-77d824b088ad7f3e.rlib(rustler-77d824b088ad7f3e.rustler5.rcgu.o)
"_enif_make_tuple_from_array", referenced from:
rustler::wrapper::nif_interface::enif_make_tuple_from_array::hb51e4a0339fe4b12 in librustler-77d824b088ad7f3e.rlib(rustler-77d824b088ad7f3e.rustler5.rcgu.o)
"_enif_get_list_cell", referenced from:
rustler::wrapper::nif_interface::enif_get_list_cell::hb62677dba88cb2fe in librustler-77d824b088ad7f3e.rlib(rustler-77d824b088ad7f3e.rustler5.rcgu.o)
"_enif_make_map_update", referenced from:
rustler::wrapper::nif_interface::enif_make_map_update::h10b2c2af6114c505 in librustler-77d824b088ad7f3e.rlib(rustler-77d824b088ad7f3e.rustler5.rcgu.o)
"_enif_make_map_put", referenced from:
rustler::wrapper::nif_interface::enif_make_map_put::h966c77161f77e280 in librustler-77d824b088ad7f3e.rlib(rustler-77d824b088ad7f3e.rustler5.rcgu.o)
"_enif_make_new_map", referenced from:
rustler::wrapper::nif_interface::enif_make_new_map::h8cac0336c768d69d in librustler-77d824b088ad7f3e.rlib(rustler-77d824b088ad7f3e.rustler5.rcgu.o)
"_enif_send", referenced from:
rustler::wrapper::nif_interface::enif_send::h83f9fb5f9e4723c3 in librustler-77d824b088ad7f3e.rlib(rustler-77d824b088ad7f3e.rustler5.rcgu.o)
"_enif_make_map_remove", referenced from:
rustler::wrapper::nif_interface::enif_make_map_remove::h1b2537d715f67042 in librustler-77d824b088ad7f3e.rlib(rustler-77d824b088ad7f3e.rustler5.rcgu.o)
"_enif_get_map_value", referenced from:
rustler::wrapper::nif_interface::enif_get_map_value::hfc374949e4db6a8d in librustler-77d824b088ad7f3e.rlib(rustler-77d824b088ad7f3e.rustler5.rcgu.o)
"_enif_make_long", referenced from:
erlang_nif_sys::erlang_nif_sys_api::enif_make_int64::hdc6de184646fdb7f in librustler-77d824b088ad7f3e.rlib(rustler-77d824b088ad7f3e.rustler3.rcgu.o)
"_enif_inspect_binary", referenced from:
rustler::wrapper::nif_interface::enif_inspect_binary::h1409304cd7f89a26 in librustler-77d824b088ad7f3e.rlib(rustler-77d824b088ad7f3e.rustler5.rcgu.o)
"_enif_make_binary", referenced from:
rustler::wrapper::nif_interface::enif_make_binary::hc5e34d2cca364b81 in librustler-77d824b088ad7f3e.rlib(rustler-77d824b088ad7f3e.rustler5.rcgu.o)
"_enif_realloc_binary", referenced from:
rustler::wrapper::nif_interface::enif_realloc_binary::h7cf154c07bfc2ef3 in librustler-77d824b088ad7f3e.rlib(rustler-77d824b088ad7f3e.rustler5.rcgu.o)
"_enif_get_ulong", referenced from:
erlang_nif_sys::erlang_nif_sys_api::enif_get_uint64::hc33ff033b39110e6 in librustler-77d824b088ad7f3e.rlib(rustler-77d824b088ad7f3e.rustler3.rcgu.o)
"_enif_get_atom_length", referenced from:
rustler::wrapper::nif_interface::enif_get_atom_length_latin1::he2ce76a9c52f79f4 in librustler-77d824b088ad7f3e.rlib(rustler-77d824b088ad7f3e.rustler5.rcgu.o)
"_enif_alloc_resource", referenced from:
rustler::wrapper::nif_interface::enif_alloc_resource::h81c206dc5055f0e3 in librustler-77d824b088ad7f3e.rlib(rustler-77d824b088ad7f3e.rustler5.rcgu.o)
"_enif_make_reverse_list", referenced from:
rustler::wrapper::nif_interface::enif_make_reverse_list::h59e8ab96f78c288f in librustler-77d824b088ad7f3e.rlib(rustler-77d824b088ad7f3e.rustler5.rcgu.o)
"_enif_make_uint", referenced from:
rustler::types::primitive::_$LT$impl$u20$rustler..types..NifEncoder$u20$for$u20$u32$GT$::encode::he7df2086bd0c3988 in librustler-77d824b088ad7f3e.rlib(rustler-77d824b088ad7f3e.rustler2.rcgu.o)
rustler::types::primitive::_$LT$impl$u20$rustler..types..NifEncoder$u20$for$u20$u8$GT$::encode::hf25b2d43a1bd031d in librustler-77d824b088ad7f3e.rlib(rustler-77d824b088ad7f3e.rustler2.rcgu.o)
rustler::types::primitive::_$LT$impl$u20$rustler..types..NifEncoder$u20$for$u20$u16$GT$::encode::h418452dafac0091b in librustler-77d824b088ad7f3e.rlib(rustler-77d824b088ad7f3e.rustler2.rcgu.o)
"_enif_release_binary", referenced from:
rustler::wrapper::nif_interface::enif_release_binary::h84fd590c15b9d9a1 in librustler-77d824b088ad7f3e.rlib(rustler-77d824b088ad7f3e.rustler5.rcgu.o)
"_enif_is_empty_list", referenced from:
rustler::wrapper::nif_interface::enif_is_empty_list::h30e8e2d2af30a513 in librustler-77d824b088ad7f3e.rlib(rustler-77d824b088ad7f3e.rustler5.rcgu.o)
"_enif_get_atom", referenced from:
rustler::wrapper::nif_interface::enif_get_atom_latin1::hbfd53c76ddeb4b80 in librustler-77d824b088ad7f3e.rlib(rustler-77d824b088ad7f3e.rustler5.rcgu.o)
"_enif_map_iterator_next", referenced from:
rustler::wrapper::map::map_iterator_next::habb986007bdd8a3c in librustler-77d824b088ad7f3e.rlib(rustler-77d824b088ad7f3e.rustler13.rcgu.o)
"_enif_make_atom_len", referenced from:
rustler::wrapper::nif_interface::enif_make_atom_len::h8d356247fbbaa043 in librustler-77d824b088ad7f3e.rlib(rustler-77d824b088ad7f3e.rustler5.rcgu.o)
"_enif_is_tuple", referenced from:
rustler::wrapper::nif_interface::enif_is_tuple::h40dede98110f861b in librustler-77d824b088ad7f3e.rlib(rustler-77d824b088ad7f3e.rustler5.rcgu.o)
"_enif_is_map", referenced from:
rustler::wrapper::nif_interface::enif_is_map::h2b42e6319a91c58c in librustler-77d824b088ad7f3e.rlib(rustler-77d824b088ad7f3e.rustler5.rcgu.o)
"_enif_is_list", referenced from:
rustler::wrapper::nif_interface::enif_is_list::hcf2d2e25d1dc3534 in librustler-77d824b088ad7f3e.rlib(rustler-77d824b088ad7f3e.rustler5.rcgu.o)
"_enif_is_exception", referenced from:
rustler::wrapper::nif_interface::enif_is_exception::h0451a6142eea57f8 in librustler-77d824b088ad7f3e.rlib(rustler-77d824b088ad7f3e.rustler5.rcgu.o)
"_enif_is_port", referenced from:
rustler::wrapper::nif_interface::enif_is_port::h040e215ea3c48662 in librustler-77d824b088ad7f3e.rlib(rustler-77d824b088ad7f3e.rustler5.rcgu.o)
"_enif_get_resource", referenced from:
rustler::wrapper::nif_interface::enif_get_resource::h4c620589cccf5265 in librustler-77d824b088ad7f3e.rlib(rustler-77d824b088ad7f3e.rustler5.rcgu.o)
"_enif_is_binary", referenced from:
rustler::wrapper::nif_interface::enif_is_binary::h000f236ef1c81d2a in librustler-77d824b088ad7f3e.rlib(rustler-77d824b088ad7f3e.rustler5.rcgu.o)
"_enif_is_identical", referenced from:
rustler::wrapper::nif_interface::enif_is_identical::hbeaba4dcca1d3065 in librustler-77d824b088ad7f3e.rlib(rustler-77d824b088ad7f3e.rustler5.rcgu.o)
"_enif_compare", referenced from:
rustler::wrapper::nif_interface::enif_compare::h920e80a6c25d12f4 in librustler-77d824b088ad7f3e.rlib(rustler-77d824b088ad7f3e.rustler5.rcgu.o)
"_enif_term_to_binary", referenced from:
rustler::wrapper::nif_interface::enif_term_to_binary::h51ac7af8d54fc48c in librustler-77d824b088ad7f3e.rlib(rustler-77d824b088ad7f3e.rustler5.rcgu.o)
"_enif_make_sub_binary", referenced from:
rustler::wrapper::nif_interface::enif_make_sub_binary::ha78f86ce055735cf in librustler-77d824b088ad7f3e.rlib(rustler-77d824b088ad7f3e.rustler5.rcgu.o)
"_enif_get_uint", referenced from:
rustler::types::primitive::_$LT$impl$u20$rustler..types..NifDecoder$LT$$u27$a$GT$$u20$for$u20$u32$GT$::decode::h31e112579cf862f9 in librustler-77d824b088ad7f3e.rlib(rustler-77d824b088ad7f3e.rustler2.rcgu.o)
rustler::types::primitive::_$LT$impl$u20$rustler..types..NifDecoder$LT$$u27$a$GT$$u20$for$u20$u8$GT$::decode::h950e08ba1a1f5df7 in librustler-77d824b088ad7f3e.rlib(rustler-77d824b088ad7f3e.rustler2.rcgu.o)
rustler::types::primitive::_$LT$impl$u20$rustler..types..NifDecoder$LT$$u27$a$GT$$u20$for$u20$u16$GT$::decode::h4848113029f6ba9b in librustler-77d824b088ad7f3e.rlib(rustler-77d824b088ad7f3e.rustler2.rcgu.o)
"_enif_is_atom", referenced from:
rustler::wrapper::nif_interface::enif_is_atom::hfebdb9345455298e in librustler-77d824b088ad7f3e.rlib(rustler-77d824b088ad7f3e.rustler5.rcgu.o)
"_enif_make_copy", referenced from:
rustler::wrapper::nif_interface::enif_make_copy::h4e9a65ae251acedb in librustler-77d824b088ad7f3e.rlib(rustler-77d824b088ad7f3e.rustler5.rcgu.o)
"_enif_is_fun", referenced from:
rustler::wrapper::nif_interface::enif_is_fun::h195aaa8306cefe53 in librustler-77d824b088ad7f3e.rlib(rustler-77d824b088ad7f3e.rustler5.rcgu.o)
"_enif_get_local_pid", referenced from:
rustler::wrapper::pid::get_local_pid::h30a8ed4bf4b5a0b6 in librustler-77d824b088ad7f3e.rlib(rustler-77d824b088ad7f3e.rustler3.rcgu.o)
"_enif_make_ulong", referenced from:
erlang_nif_sys::erlang_nif_sys_api::enif_make_uint64::h7490de93accbdcfc in librustler-77d824b088ad7f3e.rlib(rustler-77d824b088ad7f3e.rustler3.rcgu.o)
"_enif_map_iterator_destroy", referenced from:
rustler::wrapper::map::map_iterator_destroy::h321210459fb98cb0 in librustler-77d824b088ad7f3e.rlib(rustler-77d824b088ad7f3e.rustler13.rcgu.o)
"_enif_get_list_length", referenced from:
rustler::wrapper::nif_interface::enif_get_list_length::hdb5e72f6a246c749 in librustler-77d824b088ad7f3e.rlib(rustler-77d824b088ad7f3e.rustler5.rcgu.o)
"_enif_get_double", referenced from:
rustler::types::primitive::_$LT$impl$u20$rustler..types..NifDecoder$LT$$u27$a$GT$$u20$for$u20$f64$GT$::decode::h1864f1dc0275d4f2 in librustler-77d824b088ad7f3e.rlib(rustler-77d824b088ad7f3e.rustler2.rcgu.o)
rustler::types::primitive::_$LT$impl$u20$rustler..types..NifDecoder$LT$$u27$a$GT$$u20$for$u20$f32$GT$::decode::h635578a6e4106484 in librustler-77d824b088ad7f3e.rlib(rustler-77d824b088ad7f3e.rustler2.rcgu.o)
"_enif_raise_exception", referenced from:
rustler::wrapper::nif_interface::enif_raise_exception::h7d7a2bcdc9c08bfd in librustler-77d824b088ad7f3e.rlib(rustler-77d824b088ad7f3e.rustler5.rcgu.o)
"_enif_open_resource_type", referenced from:
rustler::wrapper::nif_interface::enif_open_resource_type::h96eb75a82f3e1dd1 in librustler-77d824b088ad7f3e.rlib(rustler-77d824b088ad7f3e.rustler5.rcgu.o)
"_enif_binary_to_term", referenced from:
rustler::wrapper::nif_interface::enif_binary_to_term::h37c9f81bd97b9877 in librustler-77d824b088ad7f3e.rlib(rustler-77d824b088ad7f3e.rustler5.rcgu.o)
"_enif_make_double", referenced from:
rustler::types::primitive::_$LT$impl$u20$rustler..types..NifEncoder$u20$for$u20$f64$GT$::encode::hcb84bd99cf7a8c00 in librustler-77d824b088ad7f3e.rlib(rustler-77d824b088ad7f3e.rustler2.rcgu.o)
rustler::types::primitive::_$LT$impl$u20$rustler..types..NifEncoder$u20$for$u20$f32$GT$::encode::hae0cbf59ae2f0589 in librustler-77d824b088ad7f3e.rlib(rustler-77d824b088ad7f3e.rustler2.rcgu.o)
"_enif_make_list_from_array", referenced from:
rustler::wrapper::nif_interface::enif_make_list_from_array::hab0320060961184c in librustler-77d824b088ad7f3e.rlib(rustler-77d824b088ad7f3e.rustler5.rcgu.o)
"_enif_make_int", referenced from:
rustler::types::primitive::_$LT$impl$u20$rustler..types..NifEncoder$u20$for$u20$i32$GT$::encode::haccf67a9094933a8 in librustler-77d824b088ad7f3e.rlib(rustler-77d824b088ad7f3e.rustler2.rcgu.o)
rustler::types::primitive::_$LT$impl$u20$rustler..types..NifEncoder$u20$for$u20$i8$GT$::encode::h8caf5df556f25908 in librustler-77d824b088ad7f3e.rlib(rustler-77d824b088ad7f3e.rustler2.rcgu.o)
rustler::types::primitive::_$LT$impl$u20$rustler..types..NifEncoder$u20$for$u20$i16$GT$::encode::h7727d573f6d9c0b1 in librustler-77d824b088ad7f3e.rlib(rustler-77d824b088ad7f3e.rustler2.rcgu.o)
"_enif_self", referenced from:
rustler::types::pid::_$LT$impl$u20$rustler..NifEnv$LT$$u27$a$GT$$GT$::pid::h4405f4c368f824f3 in librustler-77d824b088ad7f3e.rlib(rustler-77d824b088ad7f3e.rustler15.rcgu.o)
"_enif_alloc_env", referenced from:
rustler::wrapper::nif_interface::enif_alloc_env::h13a6bc24c42fc550 in librustler-77d824b088ad7f3e.rlib(rustler-77d824b088ad7f3e.rustler5.rcgu.o)
"_enif_is_ref", referenced from:
rustler::wrapper::nif_interface::enif_is_ref::hdd3983e7ece7d008 in librustler-77d824b088ad7f3e.rlib(rustler-77d824b088ad7f3e.rustler5.rcgu.o)
"_enif_free_env", referenced from:
_$LT$rustler..env..OwnedEnv$u20$as$u20$core..ops..drop..Drop$GT$::drop::he8456723d0df144d in librustler-77d824b088ad7f3e.rlib(rustler-77d824b088ad7f3e.rustler13.rcgu.o)
"_enif_clear_env", referenced from:
rustler::env::OwnedEnv::clear::h49f454d73e905724 in librustler-77d824b088ad7f3e.rlib(rustler-77d824b088ad7f3e.rustler13.rcgu.o)
"_cvCreateFileCapture", referenced from:
rustml::opencv::Video::from_file::h9ba774d8c8fbba27 in librustml-d3fb05b9f6c0a6b6.rlib(rustml-d3fb05b9f6c0a6b6.rustml12.rcgu.o)
"_enif_get_long", referenced from:
erlang_nif_sys::erlang_nif_sys_api::enif_get_int64::h74ca482c58a7bbf5 in librustler-77d824b088ad7f3e.rlib(rustler-77d824b088ad7f3e.rustler3.rcgu.o)
"_enif_get_tuple", referenced from:
rustler::wrapper::nif_interface::enif_get_tuple::h8cc3201b96938de0 in librustler-77d824b088ad7f3e.rlib(rustler-77d824b088ad7f3e.rustler5.rcgu.o)
"_enif_is_pid", referenced from:
rustler::wrapper::nif_interface::enif_is_pid::h46c2c40c5a2824a9 in librustler-77d824b088ad7f3e.rlib(rustler-77d824b088ad7f3e.rustler5.rcgu.o)
"_enif_get_int", referenced from:
rustler::types::primitive::_$LT$impl$u20$rustler..types..NifDecoder$LT$$u27$a$GT$$u20$for$u20$i32$GT$::decode::hb1cd069314a5959a in librustler-77d824b088ad7f3e.rlib(rustler-77d824b088ad7f3e.rustler2.rcgu.o)
rustler::types::primitive::_$LT$impl$u20$rustler..types..NifDecoder$LT$$u27$a$GT$$u20$for$u20$i8$GT$::decode::h7f34e41b48704260 in librustler-77d824b088ad7f3e.rlib(rustler-77d824b088ad7f3e.rustler2.rcgu.o)
rustler::types::primitive::_$LT$impl$u20$rustler..types..NifDecoder$LT$$u27$a$GT$$u20$for$u20$i16$GT$::decode::h51c53622b3ae634b in librustler-77d824b088ad7f3e.rlib(rustler-77d824b088ad7f3e.rustler2.rcgu.o)
"_enif_map_iterator_get_pair", referenced from:
rustler::wrapper::map::map_iterator_get_pair::hd5ad0f63f363006f in librustler-77d824b088ad7f3e.rlib(rustler-77d824b088ad7f3e.rustler13.rcgu.o)
"_enif_make_badarg", referenced from:
rustler::wrapper::nif_interface::enif_make_badarg::h03217621dffb2d35 in librustler-77d824b088ad7f3e.rlib(rustler-77d824b088ad7f3e.rustler5.rcgu.o)
"_enif_alloc_binary", referenced from:
rustler::wrapper::nif_interface::enif_alloc_binary::h81e4bdf6087fae11 in librustler-77d824b088ad7f3e.rlib(rustler-77d824b088ad7f3e.rustler5.rcgu.o)
"_enif_get_map_size", referenced from:
rustler::wrapper::nif_interface::enif_get_map_size::h27dea043cf390897 in librustler-77d824b088ad7f3e.rlib(rustler-77d824b088ad7f3e.rustler5.rcgu.o)
"_enif_map_iterator_create", referenced from:
rustler::wrapper::map::map_iterator_create::hd94efd12d362994d in librustler-77d824b088ad7f3e.rlib(rustler-77d824b088ad7f3e.rustler13.rcgu.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
error: aborting due to previous error
error: Could not compile `adlock_dbscan`.
I think this may be more of a Rustler issue. I may try posting over there.
@daniel-e if this doesn't look like something that could be a rustml
issue, please close.