mcmilk / 7-Zip-zstd

7-Zip with support for Brotli, Fast-LZMA2, Lizard, LZ4, LZ5 and Zstandard
https://mcmilk.de/projects/7-Zip-zstd/
Other
5.13k stars 300 forks source link

Windows XP? #380

Open Dobrotescu opened 2 months ago

Dobrotescu commented 2 months ago

I am an XP-zaur ... 7-zip 32bit builds still work for me. However, your 32bit build and the 32bit zstd and flzma2 codecs do not work. When I execute 7z.exe i (with the codecs copied to the Codecs sub-folder), Windows complains that

The procedure entry point SleepConditionVariableCS could not be located in the dynamic link library KERNEL32.dll.

and, then, 7z.exe states that "The specified procedure could not be found" for both codecs. I assume that for the same reason, your 7-zip build just doesn't work.

I know that still using XP is a laughing matter for most people, but I hope it is just some build flag that could be restored to the value used by 7-zip.

marklove5102 commented 1 month ago

image At the same time I also use archlinux Just works on different disks

defrag257 commented 1 month ago

Single-threaded zstd works on Windows XP. If you just want to compress [.tar].zst archives, you can just download Modern7z. (7-Zip 24.xx can already decompress.) For 7z-zstd archives, I think you can modify code to restrict zstd algorithm to single-threaded version, and compile your codec for Windows XP, if you can.

Dobrotescu commented 1 month ago

Thanks for the investigation and for the solution. I have hit this issue when I tried to look into some deb packages (not something I do too often), and a virtual machine helped me deal with them. I posted the details about it in the hope that it would be something really easy to fix, and I do not think it worth any significant effort do deal with it from me or anybody else ...

I'm just upset, in general, about all the pressure, put mostly by big companies, to throw away anything old and embrace "on trust" anything new they throw our way. From this perspective, I really appreciate any effort to keep the "old" stuff working.