-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Better warning about Windows not being supported? #91
Comments
Also, exciting note! I had thought to close a Windows-cross-compilation bug for SZ3 that I had opened but the SZ3 team was able to get things running for Windows - see szcompressor/SZ3#5 (comment) |
We have been able to get the SZ HDF5 filter working under windows without needing cross-compilation: Needed SZ changes are already in current master: f36afa4 |
Hi Armando,
Thanks. I merged the pull request early yesterday.
I think the current master has included that change.
Feel free to ping me if you still find anything to update. Thanks!
Best,
Sheng
…On Wed, Nov 23, 2022 at 4:55 AM V. Armando Solé ***@***.***> wrote:
We have been able to get the SZ HDF5 filter working under windows without
needing cross-compilation:
silx-kit/hdf5plugin#206 <silx-kit/hdf5plugin#206>
Needed SZ changes are in current master: f36afa4
<f36afa4>
—
Reply to this email directly, view it on GitHub
<#91 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACK3KSI5UJDTB6LUPMKT3WTWJXZ3JANCNFSM5SX5UHLA>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Would it be possible to include the building instructions for Windows in the main README.md file? Which compiler to use, what commands to run. The steps described in the Installation section do not work on Windows, in particular, zlib.dll and zstd.dll are built without any exported functions and thus the .lib files are not generated. |
I am not familiar with the support regarding windows. Waiting for any
possible response from other guys.
…On Mon, Jun 26, 2023 at 1:04 PM Alex Shovkoplyas ***@***.***> wrote:
Would it be possible to include the building instructions for Windows in
the main README.md <http:///szcompressor/SZ> file? Which compiler to use,
what commands to run. The steps described in the Installation section do
not work on Windows, in particular, zlib.dll and zstd.dll are built without
any exported functions and thus the .lib files are not generated.
—
Reply to this email directly, view it on GitHub
<#91 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACK3KSN6MS3WPFMSYD6RFZTXNHFMLANCNFSM5SX5UHLA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
When using cmake and native microsoft compiler, I only succeed under windows by forcing static compilation of the zlib and the zstd libraries |
I detail the changes in PR #109 In any case, there are GCC specific options that need to be handled (first commit of the PR) |
@vasole and @VE3NEA , our team has limited experience with Windows and don't have an easy way to validate it on our CI/CD resources. With the limited experience if you add We do however fully support WSL, and this works as expected. |
In any case, the first commit of my PR is necessary. https://stackoverflow.com/questions/19333898/lnk1181-cannot-open-input-file-m-lib |
My interpretation from the message of @disheng222 was that he was asking for help. The flag Wextra triggers an error and the link to m.lib triggers a second one when using native windows compilers. It's up to you what you do with that information. |
Yes, and we are thankful for your help with Windows!
Thank you for your PR which addresses these. My comment here was more 1. Mention how to get the functions exported in the DLL without extensive code changes. 2. Provide an explanation of why we hadn't fixed this earlier. Thanks again for your help with this! |
@vasole 's fork builds fine on Windows with the VS compiler. Both 32-bit and 64-bit versions of SZ.dll are generated. The When |
I'm guessing that there is a calculation where 8 was used instead of sizeof(size_t). Out of mild curiosity, why do you need 32 bit support? Robert |
@robertu94 The project I am working on is for the hobbyists, the people who sometimes use pretty old hardware for their hobby. It would be nice to support 32-bit systems, if possible. |
I recently had a bit of an unfortunate experience. I spent some time cross-compiling SZ for Windows. While I couldn't compile on Windows directly, things went smoothly on Linux using MinGW to target Windows for the core libraries ... or so I thought.
I dug around for a while and finally bumped into this older ticket: #58 This confirmed it won't work on Windows essentially due to
sizeof(long)
being different on different platforms.When cross-compiling doesn't work for me, it usually fails much earlier than this, so I was a bit surprised it failed this late. While it would be amazing if SZ could support Window, could a small warning please be added to the front page to let folks know that Windows won't work? Thanks!
The text was updated successfully, but these errors were encountered: