Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

lights example fails to link, but basic_form works #17

Open
Boscop opened this issue May 17, 2021 · 1 comment
Open

lights example fails to link, but basic_form works #17

Boscop opened this issue May 17, 2021 · 1 comment

Comments

@Boscop
Copy link

Boscop commented May 17, 2021

Thanks for all your effort working on these bindings.
I managed to build & run the basic_form example but when I try to run the lights example, it fails to link.
Any idea why? :)

D:\3rdparty\rust-qt\examples>cargo run --bin lights
  Downloaded qt_3d_core v0.5.0
  Downloaded qt_3d_extras v0.5.0
  Downloaded qt_3d_render v0.5.0
  Downloaded qt_3d_logic v0.5.0
  Downloaded qt_3d_input v0.5.0
   Compiling qt_3d_core v0.5.0
   Compiling qt_3d_logic v0.5.0
   Compiling qt_3d_input v0.5.0
   Compiling qt_3d_render v0.5.0
   Compiling qt_3d_extras v0.5.0
   Compiling lights v0.0.0 (D:\3rdparty\rust-qt\examples\3d\lights)
error: linking with `lld-link` failed: exit code: 1
  |
  = note: "lld-link" "/NOLOGO" "/NXCOMPAT" "/LIBPATH:C:\\Users\\me\\.rustup\\toolchains\\1.41.0-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\lights.179630krbeeu1hv1.rcgu.o" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\lights.1apauomuwstm8z4k.rcgu.o" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\lights.1io03fkjnu9i7dn1.rcgu.o" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\lights.1mg5y7ugjejbdkvc.rcgu.o" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\lights.1rsb8gcrplyadpud.rcgu.o" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\lights.1tmsltrkwm7ag59a.rcgu.o" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\lights.1tv0zigwwmnzb853.rcgu.o" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\lights.1yx008zkctpre5qx.rcgu.o" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\lights.207hr1fnbbpc3oig.rcgu.o" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\lights.234kauzmjmhaex2e.rcgu.o" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\lights.29858xyhzg7b2ohb.rcgu.o" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\lights.2nna2r0aju42heb5.rcgu.o" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\lights.2sbmkz5aee68n3nx.rcgu.o" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\lights.2sepx51zq8drlykq.rcgu.o" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\lights.2vg7ekseat4z00z.rcgu.o" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\lights.2wh6byhjsak53n3.rcgu.o" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\lights.2xhnv9sm5wzqlh69.rcgu.o" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\lights.2yhlq35ut25u8nh8.rcgu.o" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\lights.2yjqn3419qu1sm5i.rcgu.o" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\lights.34ts051aneqj1b26.rcgu.o" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\lights.3lyanug1a7lqmnk9.rcgu.o" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\lights.3n0agzrl8lql9t5m.rcgu.o" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\lights.3o39u43qdzgr2gsw.rcgu.o" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\lights.3xpmu29nre0dw874.rcgu.o" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\lights.3zru1zys11nz2rju.rcgu.o" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\lights.40lqgiyyzvlwvxw4.rcgu.o" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\lights.42k8eq1fw555ji7y.rcgu.o" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\lights.46et2970mulfg61q.rcgu.o" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\lights.4upab3tg2by3eb77.rcgu.o" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\lights.4wrlwepuauxsdl7u.rcgu.o" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\lights.4y0dqmqs92f48ona.rcgu.o" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\lights.50e808ixcnd1tece.rcgu.o" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\lights.fkhfjvmb83q3iq6.rcgu.o" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\lights.hygqt30f1oje1qo.rcgu.o" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\lights.j6ekeg7ihaivs70.rcgu.o" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\lights.n59nvomy629fkvu.rcgu.o" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\lights.nn9rb0vx1pdgw9d.rcgu.o" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\lights.r4t4liyng5w63ex.rcgu.o" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\lights.xpj1lpfeubo9dsd.rcgu.o" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\lights.yejo45zgpjkxqc.rcgu.o" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\lights.zqd82k2h7swo9oj.rcgu.o" "/OUT:D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\lights.exe" "/SUBSYSTEM:windows" "/ENTRY:mainCRTStartup" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\lights.51r9unx9elkcok4y.rcgu.o" "/OPT:REF,NOICF" "/DEBUG" "/NATVIS:C:\\Users\\me\\.rustup\\toolchains\\1.41.0-x86_64-pc-windows-msvc\\lib\\rustlib\\etc\\intrinsic.natvis" "/NATVIS:C:\\Users\\me\\.rustup\\toolchains\\1.41.0-x86_64-pc-windows-msvc\\lib\\rustlib\\etc\\liballoc.natvis" "/NATVIS:C:\\Users\\me\\.rustup\\toolchains\\1.41.0-x86_64-pc-windows-msvc\\lib\\rustlib\\etc\\libcore.natvis" "/NATVIS:C:\\Users\\me\\.rustup\\toolchains\\1.41.0-x86_64-pc-windows-msvc\\lib\\rustlib\\etc\\libstd.natvis" "/LIBPATH:D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps" "/LIBPATH:D:/Qt/5.15.2/msvc2019_64/lib" "/LIBPATH:D:\\3rdparty\\rust-qt\\examples\\target\\debug\\build\\qt_3d_core-59a4ddff77522a24\\out\\c_lib_install" "/LIBPATH:D:/Qt/5.15.2/msvc2019_64/lib" "/LIBPATH:D:\\3rdparty\\rust-qt\\examples\\target\\debug\\build\\qt_core-87accce7af97137f\\out\\c_lib_install" "/LIBPATH:D:/Qt/5.15.2/msvc2019_64/lib" "/LIBPATH:D:\\3rdparty\\rust-qt\\examples\\target\\debug\\build\\qt_gui-7046cd2d82392145\\out\\c_lib_install" "/LIBPATH:D:/Qt/5.15.2/msvc2019_64/lib" "/LIBPATH:D:\\3rdparty\\rust-qt\\examples\\target\\debug\\build\\qt_3d_extras-7f318c7bc69383a1\\out\\c_lib_install" "/LIBPATH:D:/Qt/5.15.2/msvc2019_64/lib" "/LIBPATH:D:\\3rdparty\\rust-qt\\examples\\target\\debug\\build\\qt_3d_input-1e7b4881960fbd78\\out\\c_lib_install" "/LIBPATH:D:/Qt/5.15.2/msvc2019_64/lib" "/LIBPATH:D:\\3rdparty\\rust-qt\\examples\\target\\debug\\build\\qt_3d_logic-657df0a1ccb46010\\out\\c_lib_install" "/LIBPATH:D:/Qt/5.15.2/msvc2019_64/lib" "/LIBPATH:D:\\3rdparty\\rust-qt\\examples\\target\\debug\\build\\qt_3d_render-a3f4f79f7202a8ff\\out\\c_lib_install" "/LIBPATH:C:\\Users\\me\\.rustup\\toolchains\\1.41.0-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\libqt_3d_extras-6c5e91ef3df15efc.rlib" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\libqt_3d_render-e2e22c86a12d770c.rlib" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\libqt_3d_logic-a8575e02095edd6e.rlib" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\libqt_3d_input-e0ee68c428c29a6f.rlib" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\libqt_3d_core-1867e3cd7ce98206.rlib" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\libqt_gui-809f0acfb68560b8.rlib" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\libqt_core-549cd2f65012910f.rlib" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\libcpp_core-4148900faadf6f4a.rlib" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\liblibc-a22ce8d4876a5f17.rlib" "C:\\Users\\me\\.rustup\\toolchains\\1.41.0-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libstd-1f238888c84774e2.rlib" "C:\\Users\\me\\.rustup\\toolchains\\1.41.0-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libpanic_unwind-d8f151518bb4c57c.rlib" "C:\\Users\\me\\.rustup\\toolchains\\1.41.0-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libhashbrown-74266904899dc245.rlib" "C:\\Users\\me\\.rustup\\toolchains\\1.41.0-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\librustc_std_workspace_alloc-51f2cd471cdfc396.rlib" "C:\\Users\\me\\.rustup\\toolchains\\1.41.0-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libbacktrace-dce1430caacd4770.rlib" "C:\\Users\\me\\.rustup\\toolchains\\1.41.0-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\librustc_demangle-6d52e6deaec7cf95.rlib" "C:\\Users\\me\\.rustup\\toolchains\\1.41.0-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libunwind-dbb085221d1acb15.rlib" "C:\\Users\\me\\.rustup\\toolchains\\1.41.0-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libcfg_if-d8cc0a94c0c8a864.rlib" "C:\\Users\\me\\.rustup\\toolchains\\1.41.0-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\liblibc-ee75f5de884abde6.rlib" "C:\\Users\\me\\.rustup\\toolchains\\1.41.0-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\liballoc-8aecd5c37fa55150.rlib" "C:\\Users\\me\\.rustup\\toolchains\\1.41.0-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\librustc_std_workspace_core-d895cc5a4bb533f7.rlib" "C:\\Users\\me\\.rustup\\toolchains\\1.41.0-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libcore-6cba9134ca8058d2.rlib" "C:\\Users\\me\\.rustup\\toolchains\\1.41.0-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libcompiler_builtins-c24e965c1f22f6cd.rlib" "Qt53DExtras.lib" "Qt5Core.lib" "Qt5Gui.lib" "Qt53DCore.lib" "Qt53DRender.lib" "Qt53DInput.lib" "Qt53DLogic.lib" "Qt53DRender.lib" "Qt5Core.lib" "Qt5Gui.lib" "Qt53DCore.lib" "Qt53DLogic.lib" "Qt5Core.lib" "Qt5Gui.lib" "Qt53DCore.lib" "Qt53DInput.lib" "Qt5Core.lib" "Qt5Gui.lib" "Qt53DCore.lib" "Qt53DCore.lib" "Qt5Core.lib" "Qt5Gui.lib" "Qt5Gui.lib" "Qt5Core.lib" "Qt5Core.lib" "advapi32.lib" "ws2_32.lib" "userenv.lib" "msvcrt.lib" "-fuse-ld=lld"
  = note: lld-link: warning: ignoring unknown argument '-fuse-ld=lld'
          lld-link: error: /failifmismatch: mismatch detected for 'RuntimeLibrary':
          >>> libqt_3d_core-1867e3cd7ce98206.rlib(file1.cpp.obj) has value MD_DynamicRelease
          >>> libqt_gui-809f0acfb68560b8.rlib(file1.cpp.obj) has value MT_StaticRelease


error: aborting due to previous error

error: could not compile `lights`.

To learn more, run the command again with --verbose.

I'm executing this in the x64 Native Tools Command Prompt for VS 2019.


EDIT: The chart example also fails with:

D:\3rdparty\rust-qt\examples>cargo run --bin chart
  Downloaded qt_charts v0.5.0
   Compiling qt_charts v0.5.0
error: failed to run custom build command for `qt_charts v0.5.0`

Caused by:
  process didn't exit successfully: `D:\3rdparty\rust-qt\examples\target\debug\build\qt_charts-0aa95637753742da\build-script-build` (exit code: 1)
--- stderr
[2021-05-17T03:05:42Z ERROR ritual_common::errors] Error:
[2021-05-17T03:05:42Z ERROR ritual_common::errors]    extra header dir not found (tried: D:/Qt/5.15.2/msvc2019_64/lib\QtCharts.framework/Headers, D:/Qt/5.15.2/msvc2019_64/include\QtCharts)
[2021-05-17T03:05:42Z ERROR ritual_common::errors] Short backtrace:
[2021-05-17T03:05:42Z ERROR ritual_common::errors]    0: backtrace::backtrace::dbghelp::trace
[2021-05-17T03:05:42Z ERROR ritual_common::errors]              at C:\Users\me\.cargo\registry\src\github.heygears.com-1ecc6299db9ec823\backtrace-0.3.45\src\backtrace\dbghelp.rs:88
[2021-05-17T03:05:42Z ERROR ritual_common::errors]    1: backtrace::backtrace::trace_unsynchronized<closure-0>
[2021-05-17T03:05:42Z ERROR ritual_common::errors]              at C:\Users\me\.cargo\registry\src\github.heygears.com-1ecc6299db9ec823\backtrace-0.3.45\src\backtrace\mod.rs:66
[2021-05-17T03:05:42Z ERROR ritual_common::errors]    2: backtrace::backtrace::trace<closure-0>
[2021-05-17T03:05:42Z ERROR ritual_common::errors]              at C:\Users\me\.cargo\registry\src\github.heygears.com-1ecc6299db9ec823\backtrace-0.3.45\src\backtrace\mod.rs:53
[2021-05-17T03:05:42Z ERROR ritual_common::errors]    3: backtrace::capture::Backtrace::create
[2021-05-17T03:05:42Z ERROR ritual_common::errors]              at C:\Users\me\.cargo\registry\src\github.heygears.com-1ecc6299db9ec823\backtrace-0.3.45\src\capture.rs:164
[2021-05-17T03:05:42Z ERROR ritual_common::errors]    4: backtrace::capture::Backtrace::new_unresolved
[2021-05-17T03:05:42Z ERROR ritual_common::errors]              at C:\Users\me\.cargo\registry\src\github.heygears.com-1ecc6299db9ec823\backtrace-0.3.45\src\capture.rs:158
[2021-05-17T03:05:42Z ERROR ritual_common::errors]    5: failure::backtrace::internal::InternalBacktrace::new
[2021-05-17T03:05:42Z ERROR ritual_common::errors]              at C:\Users\me\.cargo\registry\src\github.heygears.com-1ecc6299db9ec823\failure-0.1.7\src\backtrace\internal.rs:46
[2021-05-17T03:05:42Z ERROR ritual_common::errors]    6: failure::backtrace::Backtrace::new
[2021-05-17T03:05:42Z ERROR ritual_common::errors]              at C:\Users\me\.cargo\registry\src\github.heygears.com-1ecc6299db9ec823\failure-0.1.7\src\backtrace\mod.rs:121
[2021-05-17T03:05:42Z ERROR ritual_common::errors]    7: failure::error::error_impl::{{impl}}::from<failure::error_message::ErrorMessage<alloc::string::String>>
[2021-05-17T03:05:42Z ERROR ritual_common::errors]              at C:\Users\me\.cargo\registry\src\github.heygears.com-1ecc6299db9ec823\failure-0.1.7\src\error\error_impl.rs:19
[2021-05-17T03:05:42Z ERROR ritual_common::errors]    8: failure::error::{{impl}}::from<failure::error_message::ErrorMessage<alloc::string::String>>
[2021-05-17T03:05:42Z ERROR ritual_common::errors]              at C:\Users\me\.cargo\registry\src\github.heygears.com-1ecc6299db9ec823\failure-0.1.7\src\error\mod.rs:36
[2021-05-17T03:05:42Z ERROR ritual_common::errors]    9: failure::error_message::err_msg<alloc::string::String>
[2021-05-17T03:05:42Z ERROR ritual_common::errors]              at C:\Users\me\.cargo\registry\src\github.heygears.com-1ecc6299db9ec823\failure-0.1.7\src\error_message.rs:12
[2021-05-17T03:05:42Z ERROR ritual_common::errors]   10: qt_ritual_common::get_installation_data
[2021-05-17T03:05:42Z ERROR ritual_common::errors]              at C:\Users\me\.cargo\registry\src\github.heygears.com-1ecc6299db9ec823\qt_ritual_common-0.4.0\src\lib.rs:96
[2021-05-17T03:05:42Z ERROR ritual_common::errors]   11: qt_ritual_common::get_full_build_config
[2021-05-17T03:05:42Z ERROR ritual_common::errors]              at C:\Users\me\.cargo\registry\src\github.heygears.com-1ecc6299db9ec823\qt_ritual_common-0.4.0\src\lib.rs:115
[2021-05-17T03:05:42Z ERROR ritual_common::errors]   12: qt_ritual_build::try_run
[2021-05-17T03:05:42Z ERROR ritual_common::errors]              at C:\Users\me\.cargo\registry\src\github.heygears.com-1ecc6299db9ec823\qt_ritual_build-0.5.0\src\lib.rs:57
[2021-05-17T03:05:42Z ERROR ritual_common::errors]   13: qt_ritual_build::run
[2021-05-17T03:05:42Z ERROR ritual_common::errors]              at C:\Users\me\.cargo\registry\src\github.heygears.com-1ecc6299db9ec823\qt_ritual_build-0.5.0\src\lib.rs:113
[2021-05-17T03:05:42Z ERROR ritual_common::errors]   14: build_script_build::main
[2021-05-17T03:05:42Z ERROR ritual_common::errors]              at build.rs:2

The other examples also fail:

D:\3rdparty\rust-qt\examples>cargo run --bin hello_qml
   Compiling qt_qml v0.5.0
   Compiling hello_qml v0.0.0 (D:\3rdparty\rust-qt\examples\qml\hello_qml)
error: linking with `lld-link` failed: exit code: 1
  |
  = note: "lld-link" "/NOLOGO" "/NXCOMPAT" "/LIBPATH:C:\\Users\\me\\.rustup\\toolchains\\1.41.0-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\hello_qml.174n0190huyg44rs.rcgu.o" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\hello_qml.1944wzophlfx1o4p.rcgu.o" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\hello_qml.19ageb6ihxyza13o.rcgu.o" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\hello_qml.1c5v96v6zpdr2rh3.rcgu.o" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\hello_qml.1em3yncqyjy9qdno.rcgu.o" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\hello_qml.1juzvgb2xlsgal6s.rcgu.o" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\hello_qml.1l3kaqhf7kod0oez.rcgu.o" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\hello_qml.20a3rug5i7faij6f.rcgu.o" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\hello_qml.2fqlz6iv6wi20gus.rcgu.o" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\hello_qml.2frrr81fk6ygj0at.rcgu.o" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\hello_qml.2v2c6wrh6l6rd5pz.rcgu.o" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\hello_qml.31r4pyffqins5rv.rcgu.o" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\hello_qml.3cfd0jqdnvdy5v10.rcgu.o" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\hello_qml.3ekf6v7sq6j2qfmq.rcgu.o" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\hello_qml.3fsnod7n6cpnpkqa.rcgu.o" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\hello_qml.3g9mklhudkgq0bz9.rcgu.o" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\hello_qml.3gcbsa0ie3k4h6l4.rcgu.o" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\hello_qml.3krgy3ewrvsleq7r.rcgu.o" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\hello_qml.456x1xfmzpmmmf8o.rcgu.o" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\hello_qml.485u86ayu70vxph7.rcgu.o" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\hello_qml.4936d0c221fmrugo.rcgu.o" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\hello_qml.4c3x3tv87usd53n2.rcgu.o" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\hello_qml.4jen0qlgn2k3j8pf.rcgu.o" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\hello_qml.4jk6e8on4hoi84cg.rcgu.o" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\hello_qml.4qsardwvu5cq029i.rcgu.o" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\hello_qml.59aiwoc4nd2z2lbn.rcgu.o" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\hello_qml.fuqmvjgec7qarae.rcgu.o" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\hello_qml.g1vcvp0ycva66d0.rcgu.o" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\hello_qml.lhclasbwann6j3v.rcgu.o" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\hello_qml.o18o199rd6kdbf2.rcgu.o" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\hello_qml.ue83fnxizug97e0.rcgu.o" "/OUT:D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\hello_qml.exe" "/SUBSYSTEM:windows" "/ENTRY:mainCRTStartup" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\hello_qml.51nv6gmfrodjqatk.rcgu.o" "/OPT:REF,NOICF" "/DEBUG" "/NATVIS:C:\\Users\\me\\.rustup\\toolchains\\1.41.0-x86_64-pc-windows-msvc\\lib\\rustlib\\etc\\intrinsic.natvis" "/NATVIS:C:\\Users\\me\\.rustup\\toolchains\\1.41.0-x86_64-pc-windows-msvc\\lib\\rustlib\\etc\\liballoc.natvis" "/NATVIS:C:\\Users\\me\\.rustup\\toolchains\\1.41.0-x86_64-pc-windows-msvc\\lib\\rustlib\\etc\\libcore.natvis" "/NATVIS:C:\\Users\\me\\.rustup\\toolchains\\1.41.0-x86_64-pc-windows-msvc\\lib\\rustlib\\etc\\libstd.natvis" "/LIBPATH:D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps" "/LIBPATH:D:\\3rdparty\\rust-qt\\examples\\target\\debug\\build\\hello_qml-268dbf101c6d8f53\\out\\ritual_qt_resources_resources\\release" "/LIBPATH:D:/Qt/5.15.2/msvc2019_64/lib" "/LIBPATH:D:\\3rdparty\\rust-qt\\examples\\target\\debug\\build\\qt_core-87accce7af97137f\\out\\c_lib_install" "/LIBPATH:D:/Qt/5.15.2/msvc2019_64/lib" "/LIBPATH:D:\\3rdparty\\rust-qt\\examples\\target\\debug\\build\\qt_gui-7046cd2d82392145\\out\\c_lib_install" "/LIBPATH:D:/Qt/5.15.2/msvc2019_64/lib" "/LIBPATH:D:\\3rdparty\\rust-qt\\examples\\target\\debug\\build\\qt_qml-76f5a69073c485ee\\out\\c_lib_install" "/LIBPATH:C:\\Users\\me\\.rustup\\toolchains\\1.41.0-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib" "ritual_qt_resources_resources.lib" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\libqt_qml-49c6e5f5e982fb55.rlib" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\libqt_gui-809f0acfb68560b8.rlib" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\libqt_core-549cd2f65012910f.rlib" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\libcpp_core-4148900faadf6f4a.rlib" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\liblibc-a22ce8d4876a5f17.rlib" "C:\\Users\\me\\.rustup\\toolchains\\1.41.0-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libstd-1f238888c84774e2.rlib" "C:\\Users\\me\\.rustup\\toolchains\\1.41.0-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libpanic_unwind-d8f151518bb4c57c.rlib" "C:\\Users\\me\\.rustup\\toolchains\\1.41.0-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libhashbrown-74266904899dc245.rlib" "C:\\Users\\me\\.rustup\\toolchains\\1.41.0-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\librustc_std_workspace_alloc-51f2cd471cdfc396.rlib" "C:\\Users\\me\\.rustup\\toolchains\\1.41.0-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libbacktrace-dce1430caacd4770.rlib" "C:\\Users\\me\\.rustup\\toolchains\\1.41.0-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\librustc_demangle-6d52e6deaec7cf95.rlib" "C:\\Users\\me\\.rustup\\toolchains\\1.41.0-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libunwind-dbb085221d1acb15.rlib" "C:\\Users\\me\\.rustup\\toolchains\\1.41.0-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libcfg_if-d8cc0a94c0c8a864.rlib" "C:\\Users\\me\\.rustup\\toolchains\\1.41.0-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\liblibc-ee75f5de884abde6.rlib" "C:\\Users\\me\\.rustup\\toolchains\\1.41.0-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\liballoc-8aecd5c37fa55150.rlib" "C:\\Users\\me\\.rustup\\toolchains\\1.41.0-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\librustc_std_workspace_core-d895cc5a4bb533f7.rlib" "C:\\Users\\me\\.rustup\\toolchains\\1.41.0-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libcore-6cba9134ca8058d2.rlib" "C:\\Users\\me\\.rustup\\toolchains\\1.41.0-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libcompiler_builtins-c24e965c1f22f6cd.rlib" "Qt5Qml.lib" "Qt5Core.lib" "Qt5Gui.lib" "Qt5Gui.lib" "Qt5Core.lib" "Qt5Core.lib" "advapi32.lib" "ws2_32.lib" "userenv.lib" "msvcrt.lib" "-fuse-ld=lld"
  = note: lld-link: warning: ignoring unknown argument '-fuse-ld=lld'
          lld-link: error: /failifmismatch: mismatch detected for 'RuntimeLibrary':
          >>> libqt_qml-49c6e5f5e982fb55.rlib(file1.cpp.obj) has value MD_DynamicRelease
          >>> libqt_gui-809f0acfb68560b8.rlib(file1.cpp.obj) has value MT_StaticRelease


error: aborting due to previous error

error: could not compile `hello_qml`.

To learn more, run the command again with --verbose.

D:\3rdparty\rust-qt\examples>cargo run --bin todo_list
   Compiling todo_list v0.0.0 (D:\3rdparty\rust-qt\examples\widgets\todo_list)
error: linking with `lld-link` failed: exit code: 1
  |
  = note: "lld-link" "/NOLOGO" "/NXCOMPAT" "/LIBPATH:C:\\Users\\me\\.rustup\\toolchains\\1.41.0-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\todo_list.11y3kczpinp3q8vx.rcgu.o" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\todo_list.13jwlavjdbw7l6tj.rcgu.o" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\todo_list.155gww666dchgjr2.rcgu.o" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\todo_list.16g131x0s6nwh213.rcgu.o" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\todo_list.19cvgg923xx9n0pw.rcgu.o" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\todo_list.19zmtc1367yfgnwk.rcgu.o" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\todo_list.1acgj9rjle1y9gxg.rcgu.o" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\todo_list.1d34lj1tklx0zry1.rcgu.o" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\todo_list.1h4x04r5924oatf3.rcgu.o" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\todo_list.1ih7hxhu555js156.rcgu.o" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\todo_list.1l48nkhp3l2fjh3p.rcgu.o" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\todo_list.1wkoobe7o0qdeine.rcgu.o" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\todo_list.1wzvr602ca7vcprf.rcgu.o" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\todo_list.1zdn1980nrsvy9g8.rcgu.o" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\todo_list.2b2a552xxpa73oxb.rcgu.o" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\todo_list.2drayss6xw3ny309.rcgu.o" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\todo_list.2e3gfh3ao4yuo7rt.rcgu.o" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\todo_list.2ep0sda9vpi1rv2e.rcgu.o" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\todo_list.2j11lbu476xr8zt0.rcgu.o" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\todo_list.2potp78fcl9kin5c.rcgu.o" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\todo_list.2s4dug4z0kkl56jw.rcgu.o" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\todo_list.2s55vber1f2e5m8.rcgu.o" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\todo_list.2u24wbunmsg29v60.rcgu.o" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\todo_list.2wja5r8rqjt2hmk1.rcgu.o" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\todo_list.2xxi0j4045voc3cz.rcgu.o" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\todo_list.2yurqz3jn5hee3go.rcgu.o" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\todo_list.314y9ww1fcm7hdwu.rcgu.o" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\todo_list.36ry7auzc39dzxhu.rcgu.o" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\todo_list.390ftag9sichoobt.rcgu.o" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\todo_list.3cnrqg8iom1w32cv.rcgu.o" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\todo_list.3f4k5llqq26ypyj6.rcgu.o" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\todo_list.3gnchzurfxmbgy40.rcgu.o" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\todo_list.3ij9mlmbxy1k6vls.rcgu.o" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\todo_list.3jfor00blpx6mg3x.rcgu.o" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\todo_list.3kk91yiff9z5s9tj.rcgu.o" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\todo_list.3nca3xhd88squmu.rcgu.o" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\todo_list.3oscrgl12562hxw.rcgu.o" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\todo_list.3s43locqeqflbchl.rcgu.o" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\todo_list.448do0vm3ydgzl7v.rcgu.o" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\todo_list.47xlu1hivzvqh0vs.rcgu.o" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\todo_list.4a9g18lniwber7jv.rcgu.o" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\todo_list.4c1xlip0zkwwdqdg.rcgu.o" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\todo_list.4cjnhhp2uqeezjdi.rcgu.o" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\todo_list.4fkl7o3ezenrtkzn.rcgu.o" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\todo_list.4k1hjw0pvmvafutp.rcgu.o" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\todo_list.4ls2ie6mbe26lx0b.rcgu.o" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\todo_list.4rrq0i6yir6x5k88.rcgu.o" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\todo_list.4wgpt4tiwq7s7wlb.rcgu.o" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\todo_list.4x6cy57tz6a9c3t0.rcgu.o" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\todo_list.4xdn9u0itxqt8zw3.rcgu.o" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\todo_list.4z2ejgqjb176njll.rcgu.o" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\todo_list.4zon9w5mcb8phh8.rcgu.o" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\todo_list.53bejxkhtdl7kv63.rcgu.o" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\todo_list.54zoqecrhvhsldkm.rcgu.o" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\todo_list.56877exn4lh5evuh.rcgu.o" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\todo_list.5a7sgayqa9m7au7n.rcgu.o" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\todo_list.5c73jboywdjraabt.rcgu.o" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\todo_list.5ckz3fklj3x0vuq5.rcgu.o" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\todo_list.5egsw8gvoywd8hsn.rcgu.o" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\todo_list.5f8qyttb8im0otba.rcgu.o" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\todo_list.7rrdp0gjg5g9cxp.rcgu.o" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\todo_list.9js5zr5y0qwzwzf.rcgu.o" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\todo_list.a7ws9qxuxsbajjf.rcgu.o" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\todo_list.b0byl70rkmcb13a.rcgu.o" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\todo_list.ir1y1b1bucb9w5g.rcgu.o" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\todo_list.tti5wd3sbbzl68e.rcgu.o" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\todo_list.uaeo0650zjm3fu4.rcgu.o" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\todo_list.vxv9npnel0ybe5y.rcgu.o" "/OUT:D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\todo_list.exe" "/SUBSYSTEM:windows" "/ENTRY:mainCRTStartup" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\todo_list.1gof3uz1uyxcylw8.rcgu.o" "/OPT:REF,NOICF" "/DEBUG" "/NATVIS:C:\\Users\\me\\.rustup\\toolchains\\1.41.0-x86_64-pc-windows-msvc\\lib\\rustlib\\etc\\intrinsic.natvis" "/NATVIS:C:\\Users\\me\\.rustup\\toolchains\\1.41.0-x86_64-pc-windows-msvc\\lib\\rustlib\\etc\\liballoc.natvis" "/NATVIS:C:\\Users\\me\\.rustup\\toolchains\\1.41.0-x86_64-pc-windows-msvc\\lib\\rustlib\\etc\\libcore.natvis" "/NATVIS:C:\\Users\\me\\.rustup\\toolchains\\1.41.0-x86_64-pc-windows-msvc\\lib\\rustlib\\etc\\libstd.natvis" "/LIBPATH:D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps" "/LIBPATH:D:\\3rdparty\\rust-qt\\examples\\target\\debug\\build\\todo_list-8a805568e83adfe8\\out\\ritual_qt_resources_resources\\release" "/LIBPATH:D:/Qt/5.15.2/msvc2019_64/lib" "/LIBPATH:D:\\3rdparty\\rust-qt\\examples\\target\\debug\\build\\qt_core-87accce7af97137f\\out\\c_lib_install" "/LIBPATH:D:/Qt/5.15.2/msvc2019_64/lib" "/LIBPATH:D:\\3rdparty\\rust-qt\\examples\\target\\debug\\build\\qt_gui-7046cd2d82392145\\out\\c_lib_install" "/LIBPATH:D:/Qt/5.15.2/msvc2019_64/lib" "/LIBPATH:D:\\3rdparty\\rust-qt\\examples\\target\\debug\\build\\qt_ui_tools-36adf1f9d24c54f4\\out\\c_lib_install" "/LIBPATH:D:/Qt/5.15.2/msvc2019_64/lib" "/LIBPATH:D:\\3rdparty\\rust-qt\\examples\\target\\debug\\build\\qt_widgets-ed8ff4a48529f278\\out\\c_lib_install" "/LIBPATH:C:\\Users\\me\\.rustup\\toolchains\\1.41.0-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib" "ritual_qt_resources_resources.lib" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\libqt_ui_tools-43fce1653b216a13.rlib" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\libqt_widgets-9041436ca115c564.rlib" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\libqt_gui-809f0acfb68560b8.rlib" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\libqt_core-549cd2f65012910f.rlib" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\libcpp_core-4148900faadf6f4a.rlib" "D:\\3rdparty\\rust-qt\\examples\\target\\debug\\deps\\liblibc-a22ce8d4876a5f17.rlib" "C:\\Users\\me\\.rustup\\toolchains\\1.41.0-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libstd-1f238888c84774e2.rlib" "C:\\Users\\me\\.rustup\\toolchains\\1.41.0-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libpanic_unwind-d8f151518bb4c57c.rlib" "C:\\Users\\me\\.rustup\\toolchains\\1.41.0-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libhashbrown-74266904899dc245.rlib" "C:\\Users\\me\\.rustup\\toolchains\\1.41.0-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\librustc_std_workspace_alloc-51f2cd471cdfc396.rlib" "C:\\Users\\me\\.rustup\\toolchains\\1.41.0-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libbacktrace-dce1430caacd4770.rlib" "C:\\Users\\me\\.rustup\\toolchains\\1.41.0-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\librustc_demangle-6d52e6deaec7cf95.rlib" "C:\\Users\\me\\.rustup\\toolchains\\1.41.0-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libunwind-dbb085221d1acb15.rlib" "C:\\Users\\me\\.rustup\\toolchains\\1.41.0-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libcfg_if-d8cc0a94c0c8a864.rlib" "C:\\Users\\me\\.rustup\\toolchains\\1.41.0-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\liblibc-ee75f5de884abde6.rlib" "C:\\Users\\me\\.rustup\\toolchains\\1.41.0-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\liballoc-8aecd5c37fa55150.rlib" "C:\\Users\\me\\.rustup\\toolchains\\1.41.0-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\librustc_std_workspace_core-d895cc5a4bb533f7.rlib" "C:\\Users\\me\\.rustup\\toolchains\\1.41.0-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libcore-6cba9134ca8058d2.rlib" "C:\\Users\\me\\.rustup\\toolchains\\1.41.0-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libcompiler_builtins-c24e965c1f22f6cd.rlib" "Qt5UiTools.lib" "Qt5Core.lib" "Qt5Gui.lib" "Qt5Widgets.lib" "Qt5Widgets.lib" "Qt5Core.lib" "Qt5Gui.lib" "Qt5Gui.lib" "Qt5Core.lib" "Qt5Core.lib" "advapi32.lib" "ws2_32.lib" "userenv.lib" "msvcrt.lib" "-fuse-ld=lld"
  = note: lld-link: warning: ignoring unknown argument '-fuse-ld=lld'
          lld-link: error: /failifmismatch: mismatch detected for 'RuntimeLibrary':
          >>> ritual_qt_resources_resources.lib(1.obj) has value MD_DynamicRelease
          >>> libqt_ui_tools-43fce1653b216a13.rlib(file1.cpp.obj) has value MT_StaticRelease


error: aborting due to previous error

error: could not compile `todo_list`.

To learn more, run the command again with --verbose.

D:\3rdparty\rust-qt\examples>cargo run --bin logging
    Finished dev [unoptimized + debuginfo] target(s) in 0.09s
     Running `target\debug\logging.exe`

D:\3rdparty\rust-qt\examples>cargo run --bin mime_types
    Finished dev [unoptimized + debuginfo] target(s) in 0.09s
     Running `target\debug\mime_types.exe`
"target\\debug\\mime_types.exe" : QMimeType("application/x-ms-dos-executable")

@Riateche
Copy link
Member

It's unusual to use lld-link linker on an MSVC target. I recommend trying to switch to the default MSVC linker (link.exe).

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants