-
-
Notifications
You must be signed in to change notification settings - Fork 82
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
Wine: "build_command_line command line too long" #105
Comments
Many build tools try to avoid such long paths when they are building on actual Windows, by storing the command line in a |
Thank you for your advice and the tip. I tried to alter the msvc-wine.sh in different ways but it didn't work out.
(Pls don't mind this terrible code, I'm not good at all writing bash scripts.) The output of the compile looks now like this:
Do I need to make changes to the msvc/bin/ scripts as well? But I would assume they just pass the "@args.rsp" as simple text along. |
So I could make changes to the wine-msvc.sh to get it to compile. I had an error in the previous code that's fixed now. But it's still pretty, pretty whacky.
In theory - and that would be the far better solution - cmake could be forced to use response files. But it fails for me with argument errors. Or cmake gets stuck and never finishes the build (not the compile itself) without an error. Also it's not really documented and I couldn't find much.
Leaving this info here for others. My script code should be made way nicer if you actually want to implement this hacky solution. |
Right - that's indeed a bit hacky, but great if it fixes the issue for you!
Nice! Btw, see #93 and #96, for an attempt at fixing issues with cmake generated .rsp files. |
So I am wondering why you not "simply" use the Windows build of cmake? Shouldn't that fix this issue by itself? Unrelated but wouldn't fit a new issue (as well, its not about this project): |
If you want to use the Windows build of cmake, you certainly are free to do that - I've heard from users doing that, and that way, one can avoid some of the issues that we do have. But that makes for a quite different build setup/environment - then you run cmake wrapped in wine, and ninja wrapped in wine, and the whole build is essentially run in wine. The way msvc-wine currently works is that all of the builds are orchestrated in unix land, easing builds where as much as possible is run as unix tools, handling cases where some build tools are native unix tools while only the MSVC compilers are run in wine. That's essentially a different goal than what msvc-wine has. |
This title might be wrong, tho:
We try to compile a larger project (11 MB .dll file as result) but the very last step, the linking, gets stuck and never ends. There are no error messages, the log files in /tmp are existent but empty. So I caught the command line and run it on my own - but not thru wine-msvc.sh. So winetricks and other stuff might be missing then but I at least got this error message from wine:
Thank you for your help!
The text was updated successfully, but these errors were encountered: