rust-qt / ritual

Use C++ libraries from Rust
Apache License 2.0
1.22k stars 49 forks source link

Add a deployment tutorial #52

Closed cretz closed 4 years ago

cretz commented 7 years ago

When doing cargo run --release on https://github.com/cretz/rust-qthello (with qmake and msvc 64 bit vars on path to properly build deps), I get the following on execution:

image

It should be noted that it all builds properly. Am I missing some DLLs I need to place in the output folder?

cretz commented 7 years ago

I have solved this, see the README at https://github.com/cretz/rust-qthello. I put the Windows subsystem on main which is important in the latest release for removing the console win in the background. Then I took the two dlls built by your libs and coupled them w/ 3 from the Qt bin dir adjacent to the exe for it to work.

My issue, based on my use of the dependency walker, was that I was using old Qt libs that were on my PATH from elsewhere. Here's what that simple prog looks like:

image

Note, you cannot use windeployqt because the exe is not recognized as a Qt app. Shall I leave this open pending some documentation on Windows deployment, or close as not a bug?

Riateche commented 7 years ago

Let's leave it open. A deployment tutorial is definitely needed.

Riateche commented 4 years ago

The deployment tutorial is now available here.