rust-cross/cargo-xwin

trouble to run test, `bcryptprimitives.dll`

Closed this issue · 1 comments

When I run test cargo xwin test --target x86_64-pc-windows-msvc --xwin-arch x86_64 --xwin-version, it make a error like below,

    Finished `test` profile [unoptimized + debuginfo] target(s) in 0.04s
     Running unittests src/lib.rs (target/x86_64-pc-windows-msvc/debug/deps/namui_type-cd05c476bca47a34.exe)
error: test failed, to rerun pass `--lib`

Caused by:
  process didn't exit successfully: `wine /home/ubuntu/namseent/namui/namui-type/target/x86_64-pc-windows-msvc/debug/deps/namui_type-cd05c476bca47a34.exe` (exit status: 53)
note: test exited abnormally; to see the full output pass --nocapture to the harness.

So I directly run wine /home/ubuntu/namseent/namui/namui-type/target/x86_64-pc-windows-msvc/debug/deps/namui_type-cd05c476bca47a34.exe, It shows,

0050:err:explorer:initialize_display_settings Failed to query current display settings for L"\\\\.\\DISPLAY1".
00d4:err:module:import_dll Library bcryptprimitives.dll (which is needed by L"Z:\\home\\ubuntu\\namseent\\namui\\namui-type\\target\\x86_64-pc-windows-msvc\\debug\\deps\\namui_type-cd05c476bca47a34.exe") not found
00d4:err:module:LdrInitializeThunk Importing dlls for L"Z:\\home\\ubuntu\\namseent\\namui\\namui-type\\target\\x86_64-pc-windows-msvc\\debug\\deps\\namui_type-cd05c476bca47a34.exe" failed, status c0000135

It's suddenly happened.

It looks like the problem of wine version. https://groups.google.com/g/golang-nuts/c/Msg1USaNaqM
my current wine version is 6.0.3.

After update to wine-stable (9.0), it became fine.