-
-
Notifications
You must be signed in to change notification settings - Fork 160
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cross compile error from linux to windows #333
Comments
Looks like OpenCL configuration mismatch, the module is enabled in the OpenCV headers, but the actual shared library is missing |
opencv is build with this PKGBUILD |
Any chance you have 2 OpenCV installations and it picks up the headers from one, but shared libraries from another? If you do a |
I had export PKG_CONFIG_PATH for mingw opencv
|
I'm also having problems cross compiling for windows on linux. Operating system:
OpenCV version
|
Looks like something not right with mingw install/setup, e.g. similar errors are reported here: https://stackoverflow.com/questions/14191566/c-mutex-in-namespace-std-does-not-name-a-type |
arch linux
yay -S mingw-w64-opencv
4.5.5
rustc --version
)rustc 1.60.0-nightly (5e57faa78 2022-01-19)
export PKG_CONFIG_PATH=/usr/x86_64-w64-mingw32/lib/pkgconfig
RUST_BACKTRACE=full cargo build --release --target x86_64-pc-windows-gnu --example window -vv
Fresh glob v0.3.0
Fresh regex-syntax v0.6.25
Fresh maplit v1.0.2
Fresh dunce v1.0.2
Fresh percent-encoding v2.1.0
Fresh autocfg v1.1.0
Fresh vcpkg v0.2.15
Fresh shlex v1.1.0
Fresh pkg-config v0.3.24
Fresh once_cell v1.10.0
Fresh matches v0.1.9
Fresh memchr v2.4.1
Fresh semver v1.0.6
Fresh libc v0.2.121
Fresh aho-corasick v0.7.18
Fresh clang-sys v1.3.1
Fresh jobserver v0.1.24
Fresh num-traits v0.2.14
Fresh clang v1.0.3
Fresh regex v1.5.5
Fresh cc v1.0.73
Fresh opencv-binding-generator v0.41.0 (/home/zool/workspace/opencv-rust/binding-generator)
warning: use of deprecated associated function
std::array::IntoIter::<T, N>::new
: useIntoIterator::into_iter
instead--> binding-generator/src/func.rs:120:20
|
120 | args: IntoIter::new(args).map(|a| a.into()).collect(),
| ^^^
|
= note:
#[warn(deprecated)]
on by defaultwarning:
opencv-binding-generator
(lib) generated 1 warningwarning: /home/zool/workspace/opencv-rust/target/x86_64-pc-windows-gnu/release/build/opencv-abd80542d8440f1d/out/line_descriptor.cpp: In function ‘void cv_line_descriptor_KeyLine_KeyLine(Resultcv::line_descriptor::KeyLine)’:
warning: /home/zool/workspace/opencv-rust/target/x86_64-pc-windows-gnu/release/build/opencv-abd80542d8440f1d/out/line_descriptor.cpp:327:54: warning: ‘ret.cv::line_descriptor::KeyLine::ePointInOctaveX’ is used uninitialized [-Wuninitialized]
warning: 327 | cv::line_descriptor::KeyLine ret;
warning: | ^~~
warning: /home/zool/workspace/opencv-rust/target/x86_64-pc-windows-gnu/release/build/opencv-abd80542d8440f1d/out/line_descriptor.cpp:327:54: warning: ‘ret.cv::line_descriptor::KeyLine::ePointInOctaveY’ is used uninitialized [-Wuninitialized]
warning: /home/zool/workspace/opencv-rust/target/x86_64-pc-windows-gnu/release/build/opencv-abd80542d8440f1d/out/line_descriptor.cpp:327:54: warning: ‘ret.cv::line_descriptor::KeyLine::response’ is used uninitialized [-Wuninitialized]
warning: /home/zool/workspace/opencv-rust/target/x86_64-pc-windows-gnu/release/build/opencv-abd80542d8440f1d/out/line_descriptor.cpp:327:54: warning: ‘ret.cv::line_descriptor::KeyLine::size’ is used uninitialized [-Wuninitialized]
warning: /home/zool/workspace/opencv-rust/target/x86_64-pc-windows-gnu/release/build/opencv-abd80542d8440f1d/out/line_descriptor.cpp:327:54: warning: ‘ret.cv::line_descriptor::KeyLine::startPointX’ is used uninitialized [-Wuninitialized]
warning: /home/zool/workspace/opencv-rust/target/x86_64-pc-windows-gnu/release/build/opencv-abd80542d8440f1d/out/line_descriptor.cpp:327:54: warning: ‘ret.cv::line_descriptor::KeyLine::startPointY’ is used uninitialized [-Wuninitialized]
warning: /home/zool/workspace/opencv-rust/target/x86_64-pc-windows-gnu/release/build/opencv-abd80542d8440f1d/out/line_descriptor.cpp:327:54: warning: ‘ret.cv::line_descriptor::KeyLine::endPointX’ is used uninitialized [-Wuninitialized]
warning: /home/zool/workspace/opencv-rust/target/x86_64-pc-windows-gnu/release/build/opencv-abd80542d8440f1d/out/line_descriptor.cpp:327:54: warning: ‘ret.cv::line_descriptor::KeyLine::endPointY’ is used uninitialized [-Wuninitialized]
warning: /home/zool/workspace/opencv-rust/target/x86_64-pc-windows-gnu/release/build/opencv-abd80542d8440f1d/out/line_descriptor.cpp:327:54: warning: ‘ret.cv::line_descriptor::KeyLine::sPointInOctaveX’ is used uninitialized [-Wuninitialized]
warning: /home/zool/workspace/opencv-rust/target/x86_64-pc-windows-gnu/release/build/opencv-abd80542d8440f1d/out/line_descriptor.cpp:327:54: warning: ‘ret.cv::line_descriptor::KeyLine::sPointInOctaveY’ is used uninitialized [-Wuninitialized]
warning: /home/zool/workspace/opencv-rust/target/x86_64-pc-windows-gnu/release/build/opencv-abd80542d8440f1d/out/line_descriptor.cpp:327:54: warning: ‘ret.cv::line_descriptor::KeyLine::class_id’ is used uninitialized [-Wuninitialized]
warning: /home/zool/workspace/opencv-rust/target/x86_64-pc-windows-gnu/release/build/opencv-abd80542d8440f1d/out/line_descriptor.cpp:327:54: warning: ‘ret.cv::line_descriptor::KeyLine::octave’ is used uninitialized [-Wuninitialized]
warning: In file included from /home/zool/workspace/opencv-rust/target/x86_64-pc-windows-gnu/release/build/opencv-abd80542d8440f1d/out/line_descriptor.cpp:1:
warning: /home/zool/workspace/opencv-rust/src_cpp/ocvrs_common.hpp:51:9: warning: ‘ret.cv::line_descriptor::KeyLine::angle’ is used uninitialized [-Wuninitialized]
warning: 51 | ocvrs_return->result = const_cast<R>(&result);
warning: | ^~~~~~~~~~~~
warning: /home/zool/workspace/opencv-rust/target/x86_64-pc-windows-gnu/release/build/opencv-abd80542d8440f1d/out/line_descriptor.cpp:327:54: note: ‘ret.cv::line_descriptor::KeyLine::angle’ was declared here
warning: 327 | cv::line_descriptor::KeyLine ret;
warning: | ^~~
warning: In file included from /home/zool/workspace/opencv-rust/target/x86_64-pc-windows-gnu/release/build/opencv-abd80542d8440f1d/out/line_descriptor.cpp:1:
warning: /home/zool/workspace/opencv-rust/src_cpp/ocvrs_common.hpp:51:9: warning: ‘ret.cv::line_descriptor::KeyLine::lineLength’ is used uninitialized [-Wuninitialized]
warning: 51 | ocvrs_return->result = const_cast<R>(&result);
warning: | ^~~~~~~~~~~~
warning: /home/zool/workspace/opencv-rust/target/x86_64-pc-windows-gnu/release/build/opencv-abd80542d8440f1d/out/line_descriptor.cpp:327:54: note: ‘ret.cv::line_descriptor::KeyLine::lineLength’ was declared here
warning: 327 | cv::line_descriptor::KeyLine ret;
warning: | ^~~
warning: In file included from /home/zool/workspace/opencv-rust/target/x86_64-pc-windows-gnu/release/build/opencv-abd80542d8440f1d/out/line_descriptor.cpp:1:
warning: /home/zool/workspace/opencv-rust/src_cpp/ocvrs_common.hpp:51:9: warning: ‘ret.cv::line_descriptor::KeyLine::numOfPixels’ is used uninitialized [-Wuninitialized]
warning: 51 | ocvrs_return->result = const_cast<R>(&result);
warning: | ^~~~~~~~~~~~
warning: /home/zool/workspace/opencv-rust/target/x86_64-pc-windows-gnu/release/build/opencv-abd80542d8440f1d/out/line_descriptor.cpp:327:54: note: ‘ret.cv::line_descriptor::KeyLine::numOfPixels’ was declared here
warning: 327 | cv::line_descriptor::KeyLine ret;
warning: | ^~~
warning: At global scope:
warning: cc1plus: note: unrecognized command-line option ‘-Wno-return-type-c-linkage’ may have been intended to silence earlier diagnostics
warning: /home/zool/workspace/opencv-rust/target/x86_64-pc-windows-gnu/release/build/opencv-abd80542d8440f1d/out/rgbd.cpp: In function ‘void cv_kinfu_Intr_Reprojector_Reprojector(Resultcv::kinfu::Intr::Reprojector)’:
warning: /home/zool/workspace/opencv-rust/target/x86_64-pc-windows-gnu/release/build/opencv-abd80542d8440f1d/out/rgbd.cpp:594:54: warning: ‘ret.cv::kinfu::Intr::Reprojector::fxinv’ is used uninitialized [-Wuninitialized]
warning: 594 | cv::kinfu::Intr::Reprojector ret;
warning: | ^~~
warning: /home/zool/workspace/opencv-rust/target/x86_64-pc-windows-gnu/release/build/opencv-abd80542d8440f1d/out/rgbd.cpp:594:54: warning: ‘ret.cv::kinfu::Intr::Reprojector::fyinv’ is used uninitialized [-Wuninitialized]
warning: /home/zool/workspace/opencv-rust/target/x86_64-pc-windows-gnu/release/build/opencv-abd80542d8440f1d/out/rgbd.cpp:594:54: warning: ‘ret.cv::kinfu::Intr::Reprojector::cx’ is used uninitialized [-Wuninitialized]
warning: /home/zool/workspace/opencv-rust/target/x86_64-pc-windows-gnu/release/build/opencv-abd80542d8440f1d/out/rgbd.cpp:594:54: warning: ‘ret.cv::kinfu::Intr::Reprojector::cy’ is used uninitialized [-Wuninitialized]
warning: At global scope:
warning: cc1plus: note: unrecognized command-line option ‘-Wno-return-type-c-linkage’ may have been intended to silence earlier diagnostics
Compiling opencv v0.63.0 (/home/zool/workspace/opencv-rust)
Running
CARGO=/home/zool/.rustup/toolchains/nightly-2022-01-20-x86_64-unknown-linux-gnu/bin/cargo CARGO_CRATE_NAME=window CARGO_MANIFEST_DIR=/home/zool/workspace/opencv-rust CARGO_PKG_AUTHORS='Pro <[email protected]>:Mathieu Poumeyrol <[email protected]>' CARGO_PKG_DESCRIPTION='Rust bindings for OpenCV' CARGO_PKG_HOMEPAGE='' CARGO_PKG_LICENSE=MIT CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=opencv CARGO_PKG_REPOSITORY='https://github.com/twistedfall/opencv-rust' CARGO_PKG_VERSION=0.63.0 CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_VERSION_MINOR=63 CARGO_PKG_VERSION_PATCH=0 CARGO_PKG_VERSION_PRE='' CARGO_PRIMARY_PACKAGE=1 LD_LIBRARY_PATH='/home/zool/workspace/opencv-rust/target/release/deps:/home/zool/.rustup/toolchains/nightly-2022-01-20-x86_64-unknown-linux-gnu/lib:/home/zool/.rustup/toolchains/nightly-2022-01-20-x86_64-unknown-linux-gnu/lib' OUT_DIR=/home/zool/workspace/opencv-rust/target/x86_64-pc-windows-gnu/release/build/opencv-abd80542d8440f1d/out rustc --crate-name window --edition=2018 examples/window.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type bin --emit=dep-info,link -C opt-level=3 -C embed-bitcode=no --cfg 'feature="alphamat"' --cfg 'feature="aruco"' --cfg 'feature="barcode"' --cfg 'feature="bgsegm"' --cfg 'feature="bioinspired"' --cfg 'feature="calib3d"' --cfg 'feature="ccalib"' --cfg 'feature="cudaarithm"' --cfg 'feature="cudabgsegm"' --cfg 'feature="cudacodec"' --cfg 'feature="cudafeatures2d"' --cfg 'feature="cudafilters"' --cfg 'feature="cudaimgproc"' --cfg 'feature="cudaobjdetect"' --cfg 'feature="cudaoptflow"' --cfg 'feature="cudastereo"' --cfg 'feature="cudawarping"' --cfg 'feature="cvv"' --cfg 'feature="default"' --cfg 'feature="dnn"' --cfg 'feature="dnn_superres"' --cfg 'feature="dpm"' --cfg 'feature="face"' --cfg 'feature="features2d"' --cfg 'feature="flann"' --cfg 'feature="freetype"' --cfg 'feature="fuzzy"' --cfg 'feature="gapi"' --cfg 'feature="hdf"' --cfg 'feature="hfs"' --cfg 'feature="highgui"' --cfg 'feature="img_hash"' --cfg 'feature="imgcodecs"' --cfg 'feature="imgproc"' --cfg 'feature="intensity_transform"' --cfg 'feature="line_descriptor"' --cfg 'feature="mcc"' --cfg 'feature="ml"' --cfg 'feature="objdetect"' --cfg 'feature="optflow"' --cfg 'feature="ovis"' --cfg 'feature="phase_unwrapping"' --cfg 'feature="photo"' --cfg 'feature="plot"' --cfg 'feature="quality"' --cfg 'feature="rapid"' --cfg 'feature="rgbd"' --cfg 'feature="saliency"' --cfg 'feature="sfm"' --cfg 'feature="shape"' --cfg 'feature="stereo"' --cfg 'feature="stitching"' --cfg 'feature="structured_light"' --cfg 'feature="superres"' --cfg 'feature="surface_matching"' --cfg 'feature="text"' --cfg 'feature="tracking"' --cfg 'feature="video"' --cfg 'feature="videoio"' --cfg 'feature="videostab"' --cfg 'feature="viz"' --cfg 'feature="wechat_qrcode"' --cfg 'feature="xfeatures2d"' --cfg 'feature="ximgproc"' --cfg 'feature="xobjdetect"' --cfg 'feature="xphoto"' -C metadata=87cf90e7ebf4c265 -C extra-filename=-87cf90e7ebf4c265 --out-dir /home/zool/workspace/opencv-rust/target/x86_64-pc-windows-gnu/release/examples --target x86_64-pc-windows-gnu -C linker=/usr/bin/x86_64-w64-mingw32-gcc -L dependency=/home/zool/workspace/opencv-rust/target/x86_64-pc-windows-gnu/release/deps -L dependency=/home/zool/workspace/opencv-rust/target/release/deps --extern libc=/home/zool/workspace/opencv-rust/target/x86_64-pc-windows-gnu/release/deps/liblibc-3365d484306e4c8b.rlib --extern matches=/home/zool/workspace/opencv-rust/target/x86_64-pc-windows-gnu/release/deps/libmatches-98bf6ce352ac926f.rlib --extern num_traits=/home/zool/workspace/opencv-rust/target/x86_64-pc-windows-gnu/release/deps/libnum_traits-a84c32e09441c92d.rlib --extern once_cell=/home/zool/workspace/opencv-rust/target/x86_64-pc-windows-gnu/release/deps/libonce_cell-4d186dca640ed576.rlib --extern opencv=/home/zool/workspace/opencv-rust/target/x86_64-pc-windows-gnu/release/deps/libopencv-7e172a75d8a970bb.rlib -L native=/home/zool/workspace/opencv-rust/target/x86_64-pc-windows-gnu/release/build/opencv-abd80542d8440f1d/out -L /usr/x86_64-w64-mingw32/lib --cfg ocvrs_opencv_branch_4 --cfg ocvrs_has_module_sys --cfg ocvrs_has_module_types --cfg ocvrs_has_module_alphamat --cfg ocvrs_has_module_aruco --cfg ocvrs_has_module_barcode --cfg ocvrs_has_module_bgsegm --cfg ocvrs_has_module_bioinspired --cfg ocvrs_has_module_calib3d --cfg ocvrs_has_module_ccalib --cfg ocvrs_has_module_core --cfg ocvrs_has_module_dnn --cfg ocvrs_has_module_dnn_superres --cfg ocvrs_has_module_dpm --cfg ocvrs_has_module_face --cfg ocvrs_has_module_features2d --cfg ocvrs_has_module_flann --cfg ocvrs_has_module_fuzzy --cfg ocvrs_has_module_hfs --cfg ocvrs_has_module_highgui --cfg ocvrs_has_module_img_hash --cfg ocvrs_has_module_imgcodecs --cfg ocvrs_has_module_imgproc --cfg ocvrs_has_module_intensity_transform --cfg ocvrs_has_module_line_descriptor --cfg ocvrs_has_module_mcc --cfg ocvrs_has_module_ml --cfg ocvrs_has_module_objdetect --cfg ocvrs_has_module_optflow --cfg ocvrs_has_module_phase_unwrapping --cfg ocvrs_has_module_photo --cfg ocvrs_has_module_plot --cfg ocvrs_has_module_quality --cfg ocvrs_has_module_rapid --cfg ocvrs_has_module_rgbd --cfg ocvrs_has_module_saliency --cfg ocvrs_has_module_shape --cfg ocvrs_has_module_stereo --cfg ocvrs_has_module_stitching --cfg ocvrs_has_module_structured_light --cfg ocvrs_has_module_superres --cfg ocvrs_has_module_surface_matching --cfg ocvrs_has_module_text --cfg ocvrs_has_module_tracking --cfg ocvrs_has_module_video --cfg ocvrs_has_module_videoio --cfg ocvrs_has_module_videostab --cfg ocvrs_has_module_wechat_qrcode --cfg ocvrs_has_module_xfeatures2d --cfg ocvrs_has_module_ximgproc --cfg ocvrs_has_module_xobjdetect --cfg ocvrs_has_module_xphoto
error: linking with
/usr/bin/x86_64-w64-mingw32-gcc
failed: exit status: 1|
= note: "/usr/bin/x86_64-w64-mingw32-gcc" "-fno-use-linker-plugin" "-Wl,--dynamicbase" "-Wl,--disable-auto-image-base" "-m64" "-Wl,--high-entropy-va" "/home/zool/.rustup/toolchains/nightly-2022-01-20-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-pc-windows-gnu/lib/rsbegin.o" "/home/zool/workspace/opencv-rust/target/x86_64-pc-windows-gnu/release/examples/window-87cf90e7ebf4c265.window.39b75eee-cgu.0.rcgu.o" "/home/zool/workspace/opencv-rust/target/x86_64-pc-windows-gnu/release/examples/window-87cf90e7ebf4c265.window.39b75eee-cgu.1.rcgu.o" "/home/zool/workspace/opencv-rust/target/x86_64-pc-windows-gnu/release/examples/window-87cf90e7ebf4c265.window.39b75eee-cgu.10.rcgu.o" "/home/zool/workspace/opencv-rust/target/x86_64-pc-windows-gnu/release/examples/window-87cf90e7ebf4c265.window.39b75eee-cgu.11.rcgu.o" "/home/zool/workspace/opencv-rust/target/x86_64-pc-windows-gnu/release/examples/window-87cf90e7ebf4c265.window.39b75eee-cgu.12.rcgu.o" "/home/zool/workspace/opencv-rust/target/x86_64-pc-windows-gnu/release/examples/window-87cf90e7ebf4c265.window.39b75eee-cgu.13.rcgu.o" "/home/zool/workspace/opencv-rust/target/x86_64-pc-windows-gnu/release/examples/window-87cf90e7ebf4c265.window.39b75eee-cgu.14.rcgu.o" "/home/zool/workspace/opencv-rust/target/x86_64-pc-windows-gnu/release/examples/window-87cf90e7ebf4c265.window.39b75eee-cgu.15.rcgu.o" "/home/zool/workspace/opencv-rust/target/x86_64-pc-windows-gnu/release/examples/window-87cf90e7ebf4c265.window.39b75eee-cgu.2.rcgu.o" "/home/zool/workspace/opencv-rust/target/x86_64-pc-windows-gnu/release/examples/window-87cf90e7ebf4c265.window.39b75eee-cgu.3.rcgu.o" "/home/zool/workspace/opencv-rust/target/x86_64-pc-windows-gnu/release/examples/window-87cf90e7ebf4c265.window.39b75eee-cgu.4.rcgu.o" "/home/zool/workspace/opencv-rust/target/x86_64-pc-windows-gnu/release/examples/window-87cf90e7ebf4c265.window.39b75eee-cgu.5.rcgu.o" "/home/zool/workspace/opencv-rust/target/x86_64-pc-windows-gnu/release/examples/window-87cf90e7ebf4c265.window.39b75eee-cgu.6.rcgu.o" "/home/zool/workspace/opencv-rust/target/x86_64-pc-windows-gnu/release/examples/window-87cf90e7ebf4c265.window.39b75eee-cgu.7.rcgu.o" "/home/zool/workspace/opencv-rust/target/x86_64-pc-windows-gnu/release/examples/window-87cf90e7ebf4c265.window.39b75eee-cgu.8.rcgu.o" "/home/zool/workspace/opencv-rust/target/x86_64-pc-windows-gnu/release/examples/window-87cf90e7ebf4c265.window.39b75eee-cgu.9.rcgu.o" "/home/zool/workspace/opencv-rust/target/x86_64-pc-windows-gnu/release/examples/window-87cf90e7ebf4c265.3lk7oytl74lyvbqb.rcgu.o" "-L" "/home/zool/workspace/opencv-rust/target/x86_64-pc-windows-gnu/release/deps" "-L" "/home/zool/workspace/opencv-rust/target/release/deps" "-L" "/home/zool/workspace/opencv-rust/target/x86_64-pc-windows-gnu/release/build/opencv-abd80542d8440f1d/out" "-L" "/usr/x86_64-w64-mingw32/lib" "-L" "/home/zool/.rustup/toolchains/nightly-2022-01-20-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-pc-windows-gnu/lib" "-Wl,-Bstatic" "/home/zool/workspace/opencv-rust/target/x86_64-pc-windows-gnu/release/deps/libopencv-7e172a75d8a970bb.rlib" "/home/zool/workspace/opencv-rust/target/x86_64-pc-windows-gnu/release/deps/liblibc-3365d484306e4c8b.rlib" "/home/zool/workspace/opencv-rust/target/x86_64-pc-windows-gnu/release/deps/libnum_traits-a84c32e09441c92d.rlib" "-Wl,--start-group" "/home/zool/.rustup/toolchains/nightly-2022-01-20-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-pc-windows-gnu/lib/libstd-c4544c8c1230a962.rlib" "/home/zool/.rustup/toolchains/nightly-2022-01-20-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-pc-windows-gnu/lib/libpanic_unwind-9905c70c1014ae26.rlib" "/home/zool/.rustup/toolchains/nightly-2022-01-20-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-pc-windows-gnu/lib/libobject-11edc6b55ad1f70c.rlib" "/home/zool/.rustup/toolchains/nightly-2022-01-20-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-pc-windows-gnu/lib/libmemchr-e2604f62b5d58613.rlib" "/home/zool/.rustup/toolchains/nightly-2022-01-20-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-pc-windows-gnu/lib/libaddr2line-ef7b11e68bbd7776.rlib" "/home/zool/.rustup/toolchains/nightly-2022-01-20-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-pc-windows-gnu/lib/libgimli-9dccea35d605e69d.rlib" "/home/zool/.rustup/toolchains/nightly-2022-01-20-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-pc-windows-gnu/lib/libstd_detect-5e299c086c163fb0.rlib" "/home/zool/.rustup/toolchains/nightly-2022-01-20-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-pc-windows-gnu/lib/librustc_demangle-61d67a1d18403dce.rlib" "/home/zool/.rustup/toolchains/nightly-2022-01-20-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-pc-windows-gnu/lib/libhashbrown-2dc9cabd13417769.rlib" "/home/zool/.rustup/toolchains/nightly-2022-01-20-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-pc-windows-gnu/lib/librustc_std_workspace_alloc-32458332fd573818.rlib" "/home/zool/.rustup/toolchains/nightly-2022-01-20-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-pc-windows-gnu/lib/libunwind-2cbf5499ba545f11.rlib" "/home/zool/.rustup/toolchains/nightly-2022-01-20-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-pc-windows-gnu/lib/libcfg_if-8b2c82f6e529b5ab.rlib" "/home/zool/.rustup/toolchains/nightly-2022-01-20-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-pc-windows-gnu/lib/liblibc-f9febd74880ec71f.rlib" "/home/zool/.rustup/toolchains/nightly-2022-01-20-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-pc-windows-gnu/lib/liballoc-ef5339e70ab79e2e.rlib" "/home/zool/.rustup/toolchains/nightly-2022-01-20-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-pc-windows-gnu/lib/librustc_std_workspace_core-3b0c82ac7103617b.rlib" "/home/zool/.rustup/toolchains/nightly-2022-01-20-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-pc-windows-gnu/lib/libcore-0b703fcc2f69b48b.rlib" "-Wl,--end-group" "/home/zool/.rustup/toolchains/nightly-2022-01-20-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-pc-windows-gnu/lib/libcompiler_builtins-bfb6a30cfbdc19dd.rlib" "-Wl,-Bdynamic" "-lstdc++" "-lopencv_gapi455" "-lopencv_stitching455" "-lopencv_alphamat455" "-lopencv_aruco455" "-lopencv_barcode455" "-lopencv_bgsegm455" "-lopencv_bioinspired455" "-lopencv_ccalib455" "-lopencv_dnn_objdetect455" "-lopencv_dnn_superres455" "-lopencv_dpm455" "-lopencv_face455" "-lopencv_fuzzy455" "-lopencv_hfs455" "-lopencv_img_hash455" "-lopencv_intensity_transform455" "-lopencv_line_descriptor455" "-lopencv_mcc455" "-lopencv_quality455" "-lopencv_rapid455" "-lopencv_reg455" "-lopencv_rgbd455" "-lopencv_saliency455" "-lopencv_stereo455" "-lopencv_structured_light455" "-lopencv_phase_unwrapping455" "-lopencv_superres455" "-lopencv_optflow455" "-lopencv_surface_matching455" "-lopencv_tracking455" "-lopencv_highgui455" "-lopencv_datasets455" "-lopencv_text455" "-lopencv_plot455" "-lopencv_videostab455" "-lopencv_videoio455" "-lopencv_wechat_qrcode455" "-lopencv_xfeatures2d455" "-lopencv_shape455" "-lopencv_ml455" "-lopencv_ximgproc455" "-lopencv_video455" "-lopencv_xobjdetect455" "-lopencv_objdetect455" "-lopencv_calib3d455" "-lopencv_imgcodecs455" "-lopencv_features2d455" "-lopencv_dnn455" "-lopencv_flann455" "-lopencv_xphoto455" "-lopencv_photo455" "-lopencv_imgproc455" "-lopencv_core455" "-lkernel32" "-lws2_32" "-lbcrypt" "-ladvapi32" "-luserenv" "-lkernel32" "-lgcc_eh" "-l:libpthread.a" "-lmsvcrt" "-lmingwex" "-lmingw32" "-lgcc" "-lmsvcrt" "-luser32" "-lkernel32" "-Wl,--nxcompat" "-L" "/home/zool/.rustup/toolchains/nightly-2022-01-20-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-pc-windows-gnu/lib" "-o" "/home/zool/workspace/opencv-rust/target/x86_64-pc-windows-gnu/release/examples/window-87cf90e7ebf4c265.exe" "-Wl,--gc-sections" "-no-pie" "-Wl,-O1" "-nodefaultlibs" "/home/zool/.rustup/toolchains/nightly-2022-01-20-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-pc-windows-gnu/lib/rsend.o"
= note: /usr/lib/gcc/x86_64-w64-mingw32/11.2.0/../../../../x86_64-w64-mingw32/bin/ld: /home/zool/workspace/opencv-rust/target/x86_64-pc-windows-gnu/release/deps/libopencv-7e172a75d8a970bb.rlib(core.o):core.cpp:(.text$cv_ocl_Kernel_run__int_size_tX_size_tX_bool_const_QueueR+0x24): undefined reference to
cv::ocl::Kernel::run_(int, unsigned long long*, unsigned long long*, bool, cv::ocl::Queue const&)' /usr/lib/gcc/x86_64-w64-mingw32/11.2.0/../../../../x86_64-w64-mingw32/bin/ld: /home/zool/workspace/opencv-rust/target/x86_64-pc-windows-gnu/release/deps/libopencv-7e172a75d8a970bb.rlib(core.o):core.cpp:(.text$cv_ocl_PlatformInfo_versionMajor_const+0xc): undefined reference to
cv::ocl::PlatformInfo::versionMajor() const'/usr/lib/gcc/x86_64-w64-mingw32/11.2.0/../../../../x86_64-w64-mingw32/bin/ld: /home/zool/workspace/opencv-rust/target/x86_64-pc-windows-gnu/release/deps/libopencv-7e172a75d8a970bb.rlib(core.o):core.cpp:(.text$cv_ocl_PlatformInfo_versionMinor_const+0xc): undefined reference to `cv::ocl::PlatformInfo::versionMinor() const'
collect2: error: ld returned 1 exit status
The following warnings were emitted during compilation:
warning: /home/zool/workspace/opencv-rust/target/x86_64-pc-windows-gnu/release/build/opencv-abd80542d8440f1d/out/line_descriptor.cpp: In function ‘void cv_line_descriptor_KeyLine_KeyLine(Resultcv::line_descriptor::KeyLine)’:
warning: /home/zool/workspace/opencv-rust/target/x86_64-pc-windows-gnu/release/build/opencv-abd80542d8440f1d/out/line_descriptor.cpp:327:54: warning: ‘ret.cv::line_descriptor::KeyLine::ePointInOctaveX’ is used uninitialized [-Wuninitialized]
warning: 327 | cv::line_descriptor::KeyLine ret;
warning: | ^~~
warning: /home/zool/workspace/opencv-rust/target/x86_64-pc-windows-gnu/release/build/opencv-abd80542d8440f1d/out/line_descriptor.cpp:327:54: warning: ‘ret.cv::line_descriptor::KeyLine::ePointInOctaveY’ is used uninitialized [-Wuninitialized]
warning: /home/zool/workspace/opencv-rust/target/x86_64-pc-windows-gnu/release/build/opencv-abd80542d8440f1d/out/line_descriptor.cpp:327:54: warning: ‘ret.cv::line_descriptor::KeyLine::response’ is used uninitialized [-Wuninitialized]
warning: /home/zool/workspace/opencv-rust/target/x86_64-pc-windows-gnu/release/build/opencv-abd80542d8440f1d/out/line_descriptor.cpp:327:54: warning: ‘ret.cv::line_descriptor::KeyLine::size’ is used uninitialized [-Wuninitialized]
warning: /home/zool/workspace/opencv-rust/target/x86_64-pc-windows-gnu/release/build/opencv-abd80542d8440f1d/out/line_descriptor.cpp:327:54: warning: ‘ret.cv::line_descriptor::KeyLine::startPointX’ is used uninitialized [-Wuninitialized]
warning: /home/zool/workspace/opencv-rust/target/x86_64-pc-windows-gnu/release/build/opencv-abd80542d8440f1d/out/line_descriptor.cpp:327:54: warning: ‘ret.cv::line_descriptor::KeyLine::startPointY’ is used uninitialized [-Wuninitialized]
warning: /home/zool/workspace/opencv-rust/target/x86_64-pc-windows-gnu/release/build/opencv-abd80542d8440f1d/out/line_descriptor.cpp:327:54: warning: ‘ret.cv::line_descriptor::KeyLine::endPointX’ is used uninitialized [-Wuninitialized]
warning: /home/zool/workspace/opencv-rust/target/x86_64-pc-windows-gnu/release/build/opencv-abd80542d8440f1d/out/line_descriptor.cpp:327:54: warning: ‘ret.cv::line_descriptor::KeyLine::endPointY’ is used uninitialized [-Wuninitialized]
warning: /home/zool/workspace/opencv-rust/target/x86_64-pc-windows-gnu/release/build/opencv-abd80542d8440f1d/out/line_descriptor.cpp:327:54: warning: ‘ret.cv::line_descriptor::KeyLine::sPointInOctaveX’ is used uninitialized [-Wuninitialized]
warning: /home/zool/workspace/opencv-rust/target/x86_64-pc-windows-gnu/release/build/opencv-abd80542d8440f1d/out/line_descriptor.cpp:327:54: warning: ‘ret.cv::line_descriptor::KeyLine::sPointInOctaveY’ is used uninitialized [-Wuninitialized]
warning: /home/zool/workspace/opencv-rust/target/x86_64-pc-windows-gnu/release/build/opencv-abd80542d8440f1d/out/line_descriptor.cpp:327:54: warning: ‘ret.cv::line_descriptor::KeyLine::class_id’ is used uninitialized [-Wuninitialized]
warning: /home/zool/workspace/opencv-rust/target/x86_64-pc-windows-gnu/release/build/opencv-abd80542d8440f1d/out/line_descriptor.cpp:327:54: warning: ‘ret.cv::line_descriptor::KeyLine::octave’ is used uninitialized [-Wuninitialized]
warning: In file included from /home/zool/workspace/opencv-rust/target/x86_64-pc-windows-gnu/release/build/opencv-abd80542d8440f1d/out/line_descriptor.cpp:1:
warning: /home/zool/workspace/opencv-rust/src_cpp/ocvrs_common.hpp:51:9: warning: ‘ret.cv::line_descriptor::KeyLine::angle’ is used uninitialized [-Wuninitialized]
warning: 51 | ocvrs_return->result = const_cast<R>(&result);
warning: | ^~~~~~~~~~~~
warning: /home/zool/workspace/opencv-rust/target/x86_64-pc-windows-gnu/release/build/opencv-abd80542d8440f1d/out/line_descriptor.cpp:327:54: note: ‘ret.cv::line_descriptor::KeyLine::angle’ was declared here
warning: 327 | cv::line_descriptor::KeyLine ret;
warning: | ^~~
warning: In file included from /home/zool/workspace/opencv-rust/target/x86_64-pc-windows-gnu/release/build/opencv-abd80542d8440f1d/out/line_descriptor.cpp:1:
warning: /home/zool/workspace/opencv-rust/src_cpp/ocvrs_common.hpp:51:9: warning: ‘ret.cv::line_descriptor::KeyLine::lineLength’ is used uninitialized [-Wuninitialized]
warning: 51 | ocvrs_return->result = const_cast<R>(&result);
warning: | ^~~~~~~~~~~~
warning: /home/zool/workspace/opencv-rust/target/x86_64-pc-windows-gnu/release/build/opencv-abd80542d8440f1d/out/line_descriptor.cpp:327:54: note: ‘ret.cv::line_descriptor::KeyLine::lineLength’ was declared here
warning: 327 | cv::line_descriptor::KeyLine ret;
warning: | ^~~
warning: In file included from /home/zool/workspace/opencv-rust/target/x86_64-pc-windows-gnu/release/build/opencv-abd80542d8440f1d/out/line_descriptor.cpp:1:
warning: /home/zool/workspace/opencv-rust/src_cpp/ocvrs_common.hpp:51:9: warning: ‘ret.cv::line_descriptor::KeyLine::numOfPixels’ is used uninitialized [-Wuninitialized]
warning: 51 | ocvrs_return->result = const_cast<R>(&result);
warning: | ^~~~~~~~~~~~
warning: /home/zool/workspace/opencv-rust/target/x86_64-pc-windows-gnu/release/build/opencv-abd80542d8440f1d/out/line_descriptor.cpp:327:54: note: ‘ret.cv::line_descriptor::KeyLine::numOfPixels’ was declared here
warning: 327 | cv::line_descriptor::KeyLine ret;
warning: | ^~~
warning: At global scope:
warning: cc1plus: note: unrecognized command-line option ‘-Wno-return-type-c-linkage’ may have been intended to silence earlier diagnostics
warning: /home/zool/workspace/opencv-rust/target/x86_64-pc-windows-gnu/release/build/opencv-abd80542d8440f1d/out/rgbd.cpp: In function ‘void cv_kinfu_Intr_Reprojector_Reprojector(Resultcv::kinfu::Intr::Reprojector)’:
warning: /home/zool/workspace/opencv-rust/target/x86_64-pc-windows-gnu/release/build/opencv-abd80542d8440f1d/out/rgbd.cpp:594:54: warning: ‘ret.cv::kinfu::Intr::Reprojector::fxinv’ is used uninitialized [-Wuninitialized]
warning: 594 | cv::kinfu::Intr::Reprojector ret;
warning: | ^~~
warning: /home/zool/workspace/opencv-rust/target/x86_64-pc-windows-gnu/release/build/opencv-abd80542d8440f1d/out/rgbd.cpp:594:54: warning: ‘ret.cv::kinfu::Intr::Reprojector::fyinv’ is used uninitialized [-Wuninitialized]
warning: /home/zool/workspace/opencv-rust/target/x86_64-pc-windows-gnu/release/build/opencv-abd80542d8440f1d/out/rgbd.cpp:594:54: warning: ‘ret.cv::kinfu::Intr::Reprojector::cx’ is used uninitialized [-Wuninitialized]
warning: /home/zool/workspace/opencv-rust/target/x86_64-pc-windows-gnu/release/build/opencv-abd80542d8440f1d/out/rgbd.cpp:594:54: warning: ‘ret.cv::kinfu::Intr::Reprojector::cy’ is used uninitialized [-Wuninitialized]
warning: At global scope:
warning: cc1plus: note: unrecognized command-line option ‘-Wno-return-type-c-linkage’ may have been intended to silence earlier diagnostics
error: could not compile
opencv
due to previous errorCaused by:
process didn't exit successfully:
CARGO=/home/zool/.rustup/toolchains/nightly-2022-01-20-x86_64-unknown-linux-gnu/bin/cargo CARGO_CRATE_NAME=window CARGO_MANIFEST_DIR=/home/zool/workspace/opencv-rust CARGO_PKG_AUTHORS='Pro <[email protected]>:Mathieu Poumeyrol <[email protected]>' CARGO_PKG_DESCRIPTION='Rust bindings for OpenCV' CARGO_PKG_HOMEPAGE='' CARGO_PKG_LICENSE=MIT CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=opencv CARGO_PKG_REPOSITORY='https://github.com/twistedfall/opencv-rust' CARGO_PKG_VERSION=0.63.0 CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_VERSION_MINOR=63 CARGO_PKG_VERSION_PATCH=0 CARGO_PKG_VERSION_PRE='' CARGO_PRIMARY_PACKAGE=1 LD_LIBRARY_PATH='/home/zool/workspace/opencv-rust/target/release/deps:/home/zool/.rustup/toolchains/nightly-2022-01-20-x86_64-unknown-linux-gnu/lib:/home/zool/.rustup/toolchains/nightly-2022-01-20-x86_64-unknown-linux-gnu/lib' OUT_DIR=/home/zool/workspace/opencv-rust/target/x86_64-pc-windows-gnu/release/build/opencv-abd80542d8440f1d/out rustc --crate-name window --edition=2018 examples/window.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type bin --emit=dep-info,link -C opt-level=3 -C embed-bitcode=no --cfg 'feature="alphamat"' --cfg 'feature="aruco"' --cfg 'feature="barcode"' --cfg 'feature="bgsegm"' --cfg 'feature="bioinspired"' --cfg 'feature="calib3d"' --cfg 'feature="ccalib"' --cfg 'feature="cudaarithm"' --cfg 'feature="cudabgsegm"' --cfg 'feature="cudacodec"' --cfg 'feature="cudafeatures2d"' --cfg 'feature="cudafilters"' --cfg 'feature="cudaimgproc"' --cfg 'feature="cudaobjdetect"' --cfg 'feature="cudaoptflow"' --cfg 'feature="cudastereo"' --cfg 'feature="cudawarping"' --cfg 'feature="cvv"' --cfg 'feature="default"' --cfg 'feature="dnn"' --cfg 'feature="dnn_superres"' --cfg 'feature="dpm"' --cfg 'feature="face"' --cfg 'feature="features2d"' --cfg 'feature="flann"' --cfg 'feature="freetype"' --cfg 'feature="fuzzy"' --cfg 'feature="gapi"' --cfg 'feature="hdf"' --cfg 'feature="hfs"' --cfg 'feature="highgui"' --cfg 'feature="img_hash"' --cfg 'feature="imgcodecs"' --cfg 'feature="imgproc"' --cfg 'feature="intensity_transform"' --cfg 'feature="line_descriptor"' --cfg 'feature="mcc"' --cfg 'feature="ml"' --cfg 'feature="objdetect"' --cfg 'feature="optflow"' --cfg 'feature="ovis"' --cfg 'feature="phase_unwrapping"' --cfg 'feature="photo"' --cfg 'feature="plot"' --cfg 'feature="quality"' --cfg 'feature="rapid"' --cfg 'feature="rgbd"' --cfg 'feature="saliency"' --cfg 'feature="sfm"' --cfg 'feature="shape"' --cfg 'feature="stereo"' --cfg 'feature="stitching"' --cfg 'feature="structured_light"' --cfg 'feature="superres"' --cfg 'feature="surface_matching"' --cfg 'feature="text"' --cfg 'feature="tracking"' --cfg 'feature="video"' --cfg 'feature="videoio"' --cfg 'feature="videostab"' --cfg 'feature="viz"' --cfg 'feature="wechat_qrcode"' --cfg 'feature="xfeatures2d"' --cfg 'feature="ximgproc"' --cfg 'feature="xobjdetect"' --cfg 'feature="xphoto"' -C metadata=87cf90e7ebf4c265 -C extra-filename=-87cf90e7ebf4c265 --out-dir /home/zool/workspace/opencv-rust/target/x86_64-pc-windows-gnu/release/examples --target x86_64-pc-windows-gnu -C linker=/usr/bin/x86_64-w64-mingw32-gcc -L dependency=/home/zool/workspace/opencv-rust/target/x86_64-pc-windows-gnu/release/deps -L dependency=/home/zool/workspace/opencv-rust/target/release/deps --extern libc=/home/zool/workspace/opencv-rust/target/x86_64-pc-windows-gnu/release/deps/liblibc-3365d484306e4c8b.rlib --extern matches=/home/zool/workspace/opencv-rust/target/x86_64-pc-windows-gnu/release/deps/libmatches-98bf6ce352ac926f.rlib --extern num_traits=/home/zool/workspace/opencv-rust/target/x86_64-pc-windows-gnu/release/deps/libnum_traits-a84c32e09441c92d.rlib --extern once_cell=/home/zool/workspace/opencv-rust/target/x86_64-pc-windows-gnu/release/deps/libonce_cell-4d186dca640ed576.rlib --extern opencv=/home/zool/workspace/opencv-rust/target/x86_64-pc-windows-gnu/release/deps/libopencv-7e172a75d8a970bb.rlib -L native=/home/zool/workspace/opencv-rust/target/x86_64-pc-windows-gnu/release/build/opencv-abd80542d8440f1d/out -L /usr/x86_64-w64-mingw32/lib --cfg ocvrs_opencv_branch_4 --cfg ocvrs_has_module_sys --cfg ocvrs_has_module_types --cfg ocvrs_has_module_alphamat --cfg ocvrs_has_module_aruco --cfg ocvrs_has_module_barcode --cfg ocvrs_has_module_bgsegm --cfg ocvrs_has_module_bioinspired --cfg ocvrs_has_module_calib3d --cfg ocvrs_has_module_ccalib --cfg ocvrs_has_module_core --cfg ocvrs_has_module_dnn --cfg ocvrs_has_module_dnn_superres --cfg ocvrs_has_module_dpm --cfg ocvrs_has_module_face --cfg ocvrs_has_module_features2d --cfg ocvrs_has_module_flann --cfg ocvrs_has_module_fuzzy --cfg ocvrs_has_module_hfs --cfg ocvrs_has_module_highgui --cfg ocvrs_has_module_img_hash --cfg ocvrs_has_module_imgcodecs --cfg ocvrs_has_module_imgproc --cfg ocvrs_has_module_intensity_transform --cfg ocvrs_has_module_line_descriptor --cfg ocvrs_has_module_mcc --cfg ocvrs_has_module_ml --cfg ocvrs_has_module_objdetect --cfg ocvrs_has_module_optflow --cfg ocvrs_has_module_phase_unwrapping --cfg ocvrs_has_module_photo --cfg ocvrs_has_module_plot --cfg ocvrs_has_module_quality --cfg ocvrs_has_module_rapid --cfg ocvrs_has_module_rgbd --cfg ocvrs_has_module_saliency --cfg ocvrs_has_module_shape --cfg ocvrs_has_module_stereo --cfg ocvrs_has_module_stitching --cfg ocvrs_has_module_structured_light --cfg ocvrs_has_module_superres --cfg ocvrs_has_module_surface_matching --cfg ocvrs_has_module_text --cfg ocvrs_has_module_tracking --cfg ocvrs_has_module_video --cfg ocvrs_has_module_videoio --cfg ocvrs_has_module_videostab --cfg ocvrs_has_module_wechat_qrcode --cfg ocvrs_has_module_xfeatures2d --cfg ocvrs_has_module_ximgproc --cfg ocvrs_has_module_xobjdetect --cfg ocvrs_has_module_xphoto
(exit status: 1)The text was updated successfully, but these errors were encountered: