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
Cannot build Effects on Ubuntu 22.04 in MonoGame 3.8.1 #7905
Comments
Likely not the cause but you have a version mismatch between the tools and the latest release of MonoGame. Your project uses the 303 build (which is the correct 3.8.1 version) but your tools are on build 263 which has been deprecated and unlisted from nuget due to a critical bug. This is because you created your project with the wrong nuget templates or wrong VS extension. You can upgrade your tools by updating your Your output doesn't tell anything about the error. I would suggest trying to run your shader through 2MGFX manually to get an output. |
Same Error on MacOS (Apple M2). I test to build effects of https://github.com/prime31/Nez/tree/master/DefaultContentSource/effects. But build failed and no error is display. I have installed .net6 runtime (x64). Tool is 'dotnet-mgcb' (version '3.8.1.303') |
Maybe caused by #7898 |
I updated the .config/dotnet-tools.json file to the 303 build and as you suspected, I am still getting a failed build without error.
I'm unsure how to manually run 2MGFX. Is there a guide somewhere I can follow? I appreciate the help. |
There is a guide here: https://docs.monogame.net/articles/tools/mgfxc.html. |
Running it this way, it also does not compile the shader and there is no error message.
I've run the script with both the x86 and x64 dotnet installs and no luck, unfortunately. |
Could you try running '''dotnet mgfxc''' on your .fx directly to get a proper output to read? |
That's peculiar. Looks like wine fails at some point. |
I tried to debug the mgfxc tool on Ubuntu and as you say wine is failing to run |
@harry-cpp would likely know, but without traces it will be hard to figure out. |
Okay so I have managed to get it too work. After running (Provided by monogame docs)
i run theses commands
it just reinstalls dotnet sdk in wine for So, I am unsure if there is an issue with the @BrettStory Could you try this work around and see if it fixes the issue for you too? |
@KieranFleckney That does fix it for me. Signs seem to point to |
Cool to know than it's "just that". If anyone knows has more insights, feel free to keep commenting (I'm very rarely on Linux to check it out myself). |
@KieranFleckney Fixed it for me, too. Thanks a bunch! |
Just want to chime in that this fixed it for me also after upgrading my Ubuntu rig from 20.04 to 22.04. Thanks @KieranFleckney! |
Gonna +rep this, @KieranFleckney's solution worked immediately on my Arch desktop after about an hour of head-bashing on vague error messages leading me here. The issue I was getting fed by mgfxc before the fix was |
Hey guys, I'm pretty new to MonoGame and having the same issue on Windows, I tried manually replacing the dotnet package in my program files with the one from the download suggested above but it doesn't seem to have done anything. Can anyone tell me what I'm missing? Do I need to apply the changes somehow? |
@wayne-dillon this issue was related to people developing on Linux as they use Wine to build. It is very strange you would get this error on Window. All I could suggest is reinstall dotnet via Microsoft website and do fresh install of Monogame too. If the issue still presistes then I would open a new bug report. |
Please refer to #8124 while this issue is being worked on. |
I can't seem to build Effects on Ubuntu 22.04 in MonoGame 3.8.1. I have deleted my .winemonogame, reinstalled Wine, and re-ran mgfxc_wine_setup.sh (I did all of this today, after the recent fixes to mgfxc_wine_setup.sh).
The shader does build on my Windows PC and it also built on Ubuntu before the upgrade to .NET 6.
I don't get any error message. Here's the entire build output for the project:
Here's the shader:
What version of MonoGame does the bug occur on:
What operating system are you using:
What MonoGame platform are you using:
The text was updated successfully, but these errors were encountered: