Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save eHammarstrom/d2d77dbcc7017c31264b876cfdf33160 to your computer and use it in GitHub Desktop.
Save eHammarstrom/d2d77dbcc7017c31264b876cfdf33160 to your computer and use it in GitHub Desktop.
build err
Build failed, waiting for other jobs to finish...
error: linking with `cc` failed: exit code: 1
|
= note: "cc" "-Wl,--as-needed" "-Wl,-z,noexecstack" "-m64" "-L" "/home/initiumdoeslinux/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "/home/initiumdoeslinux/git/opencv-rust/target/debug/deps/to_gray-0b025c97bdbd5265.0.o" "-o" "/home/initiumdoeslinux/git/opencv-rust/target/debug/deps/to_gray-0b025c97bdbd5265" "-Wl,--gc-sections" "-pie" "-nodefaultlibs" "-L" "/home/initiumdoeslinux/git/opencv-rust/target/debug/deps" "-L" "/usr/lib" "-L" "/lib64" "-L" "/home/initiumdoeslinux/git/opencv-rust/target/debug/build/opencv-aa26f5c4e83bbd8b/out" "-L" "/home/initiumdoeslinux/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-Wl,-Bstatic" "-Wl,-Bdynamic" "/home/initiumdoeslinux/git/opencv-rust/target/debug/deps/libopencv-f66beac4b5a79393.rlib" "/home/initiumdoeslinux/git/opencv-rust/target/debug/deps/liblibc-6451aa7d8103c93e.rlib" "/home/initiumdoeslinux/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-2ddb28df747fcb8c.rlib" "/home/initiumdoeslinux/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librand-99ff2e008613b591.rlib" "/home/initiumdoeslinux/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcollections-e2513aecb8fbb70c.rlib" "/home/initiumdoeslinux/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd_unicode-6d4348bcabf40a71.rlib" "/home/initiumdoeslinux/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libpanic_unwind-21709492a058d9ce.rlib" "/home/initiumdoeslinux/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libunwind-e19aa6725ab01bfd.rlib" "/home/initiumdoeslinux/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc-f3200ab7e7fe644c.rlib" "/home/initiumdoeslinux/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc_jemalloc-e83ac2302b5439a3.rlib" "/home/initiumdoeslinux/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liblibc-dba58b8da674d203.rlib" "/home/initiumdoeslinux/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-9f45c45fdcba4301.rlib" "/home/initiumdoeslinux/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-b4ef8c9d93bc879a.rlib" "-l" "opencv_calib3d" "-l" "opencv_contrib" "-l" "opencv_core" "-l" "opencv_features2d" "-l" "opencv_flann" "-l" "opencv_gpu" "-l" "opencv_highgui" "-l" "opencv_imgproc" "-l" "opencv_legacy" "-l" "opencv_ml" "-l" "opencv_nonfree" "-l" "opencv_objdetect" "-l" "opencv_ocl" "-l" "opencv_photo" "-l" "opencv_stitching" "-l" "opencv_superres" "-l" "opencv_ts" "-l" "opencv_video" "-l" "opencv_videostab" "-l" "tbb" "-l" "GL" "-l" "GLU" "-l" "rt" "-l" "pthread" "-l" "m" "-l" "dl" "-l" "ocvrs" "-l" "stdc++" "-l" "util" "-l" "dl" "-l" "rt" "-l" "pthread" "-l" "gcc_s" "-l" "pthread" "-l" "c" "-l" "m" "-l" "rt" "-l" "util"
= note: /home/initiumdoeslinux/git/opencv-rust/target/debug/build/opencv-aa26f5c4e83bbd8b/out/libocvrs.a(core.o): In function `cv::Mat::~Mat()':
/usr/include/opencv2/core/mat.hpp:278: undefined reference to `cv::fastFree(void*)'
/home/initiumdoeslinux/git/opencv-rust/target/debug/build/opencv-aa26f5c4e83bbd8b/out/libocvrs.a(core.o): In function `cv::Mat::release()':
/usr/include/opencv2/core/mat.hpp:367: undefined reference to `cv::Mat::deallocate()'
/home/initiumdoeslinux/git/opencv-rust/target/debug/build/opencv-aa26f5c4e83bbd8b/out/libocvrs.a(core.o):(.data.DW.ref._ZTIN2cv9ExceptionE[DW.ref._ZTIN2cv9ExceptionE]+0x0): undefined reference to `typeinfo for cv::Exception'
/home/initiumdoeslinux/git/opencv-rust/target/debug/build/opencv-aa26f5c4e83bbd8b/out/libocvrs.a(imgproc.o): In function `cv_imgproc_cv_cvtColor_InputArray_src_OutputArray_dst_int_code_int_dstCn':
/home/initiumdoeslinux/git/opencv-rust/target/debug/build/opencv-aa26f5c4e83bbd8b/out/imgproc.cpp:1092: undefined reference to `cv::_OutputArray::_OutputArray(cv::Mat&)'
/home/initiumdoeslinux/git/opencv-rust/target/debug/build/opencv-aa26f5c4e83bbd8b/out/imgproc.cpp:1092: undefined reference to `cv::_InputArray::_InputArray(cv::Mat const&)'
/home/initiumdoeslinux/git/opencv-rust/target/debug/build/opencv-aa26f5c4e83bbd8b/out/imgproc.cpp:1092: undefined reference to `cv::cvtColor(cv::_InputArray const&, cv::_OutputArray const&, int, int)'
/home/initiumdoeslinux/git/opencv-rust/target/debug/build/opencv-aa26f5c4e83bbd8b/out/libocvrs.a(highgui.o): In function `cv_highgui_cv_imshow_String_winname_InputArray_mat':
/home/initiumdoeslinux/git/opencv-rust/target/debug/build/opencv-aa26f5c4e83bbd8b/out/highgui.cpp:350: undefined reference to `cv::_InputArray::_InputArray(cv::Mat const&)'
/home/initiumdoeslinux/git/opencv-rust/target/debug/build/opencv-aa26f5c4e83bbd8b/out/highgui.cpp:350: undefined reference to `cv::imshow(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, cv::_InputArray const&)'
/home/initiumdoeslinux/git/opencv-rust/target/debug/build/opencv-aa26f5c4e83bbd8b/out/libocvrs.a(highgui.o): In function `cv_highgui_cv_namedWindow_String_winname_int_flags':
/home/initiumdoeslinux/git/opencv-rust/target/debug/build/opencv-aa26f5c4e83bbd8b/out/highgui.cpp:442: undefined reference to `cv::namedWindow(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int)'
/home/initiumdoeslinux/git/opencv-rust/target/debug/build/opencv-aa26f5c4e83bbd8b/out/libocvrs.a(highgui.o): In function `cv_highgui_cv_waitKey_int_delay':
/home/initiumdoeslinux/git/opencv-rust/target/debug/build/opencv-aa26f5c4e83bbd8b/out/highgui.cpp:629: undefined reference to `cv::waitKey(int)'
/home/initiumdoeslinux/git/opencv-rust/target/debug/build/opencv-aa26f5c4e83bbd8b/out/libocvrs.a(highgui.o): In function `cv_highgui_cv_VideoCapture_VideoCapture_int_device':
/home/initiumdoeslinux/git/opencv-rust/target/debug/build/opencv-aa26f5c4e83bbd8b/out/highgui.cpp:708: undefined reference to `cv::VideoCapture::VideoCapture(int)'
collect2: error: ld returned 1 exit status
error: aborting due to previous error
error: Could not compile `opencv`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment