thunk icon indicating copy to clipboard operation
thunk copied to clipboard

How to set up static compilation

Open JiuYeChongYang opened this issue 1 year ago • 5 comments

I set this in.cargo/config file: [target.i686-pc-windows-msvc] rustflags = ["-C", "target-feature=+crt-static"] But after compiling with thunk, running in windows XP still prompts me that dll is missing

JiuYeChongYang avatar Jul 01 '24 14:07 JiuYeChongYang

Can you show how you use thunk? Use thunk as library or command line tool? And which dll is missing?

felixmaker avatar Jul 03 '24 00:07 felixmaker

What's more, thunk uses VC-LTL5 to make the final executable work without c runtime time installed.

felixmaker avatar Jul 03 '24 01:07 felixmaker

I followed the instructions in the documentation to use Scoop to install thunk tools and related components, using the command line "thunk --os xp --arch x86 -- --release" to compile, When the program is running on windows XP, api-ms-win-core-synch-l1-2-0.dll is lost

JiuYeChongYang avatar Jul 03 '24 01:07 JiuYeChongYang

Again, I would like to ask whether the rustc version has an impact on the thunk tool compilation. I am currently using the "1.78.0" version.

JiuYeChongYang avatar Jul 03 '24 01:07 JiuYeChongYang

Can you provide which api is lost? Rustc 1.78.0 should be supported. For now, YY-Thunks scoop bucket needs to update.

felixmaker avatar Jul 03 '24 09:07 felixmaker