Skip to content
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

Documentation on Linux/MacOS shader environment setup is broken / out of date. #8059

Open
Ninjastorm380 opened this issue Sep 1, 2023 · 2 comments
Labels
Linux MacOS Setup Related to setuping a MonoGame project for the first time

Comments

@Ninjastorm380
Copy link

Ninjastorm380 commented Sep 1, 2023

The wine prefix setup script on https://docs.monogame.net/articles/getting_started/1_setting_up_your_development_environment_ubuntu.html links to https://raw.githubusercontent.com/MonoGame/MonoGame/master/Tools/MonoGame.Effect.Compiler/mgfxc_wine_setup.sh, which is broken for all Linux distributions and MacOS versions (incorrect dotnet architecture downloaded).

Perhaps cherry pick https://raw.githubusercontent.com/MonoGame/MonoGame/develop/Tools/MonoGame.Effect.Compiler/mgfxc_wine_setup.sh from the develop branch over to the master branch to make that section of documentation work again?

See also: #7953, #7360

EDIT: Links got mismashed somehow. Fixed.

@seebs
Copy link

seebs commented Sep 15, 2023

Can confirm, the new script made this work for me. With the old one, any attempt to compile fx files just produced empty diagnostic lines and reported failure.

The relevant change is just:

-DOTNET_URL="https://download.visualstudio.microsoft.com/download/pr/44d08222-aaa9-4d35-b24b-d0db03432ab7/52a4eb5922afd19e8e0d03e0dbbb41a0/dotnet-sdk-6.0.302-win-x64.zip"
+DOTNET_URL="https://download.visualstudio.microsoft.com/download/pr/e71628cc-8b6c-498f-ae7a-c0dc60019696/aaadc51ad300f1aa58250427e5373527/dotnet-sdk-6.0.202-win-x86.zip"

so going from 6.0.202-x86 to 6.0.302-x64. Probably the -x64 part is the part that really matters, but the version bump is probably fine too.

@mrhelmut mrhelmut added Linux MacOS Setup Related to setuping a MonoGame project for the first time labels Jan 19, 2024
@mrhelmut
Copy link
Contributor

Please refer to #8124 while this issue is being worked on.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Linux MacOS Setup Related to setuping a MonoGame project for the first time
Projects
None yet
Development

No branches or pull requests

3 participants