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
Fix build instructions #337
Comments
Not sure to get your point. If you follow the instructions, you will build the whole solution, so the startup project doesn't really matter. Also, there is a good reason why the GameStudio is the default startup project: most other projects are libraries and therefore can't be the startup one. |
Please feel free to give it a try. My results: If I switch (as in the dropdown next to Solution Platforms) startup project to Xenko, and build that one, everything runs smoothly. Then I can build Xenko.GameStudio without any problem |
Sounds like the issue is more about second build works better than first build (independent of startup project). |
Thank you @xen2, in my case it will fail regardless of how many consecutive times I click Build -> Build Solution as long as I don't change the startup project (or maybe there is another reason but changing it works for me). I'm sending you attached three consecutive build logs (I've diffed them and they are different but I presume it could be generation order or any other reason) Note: The third attempt seems to have built many more projects but still 6 failures After the third attempt I switched to Xenko, built it, and then built GameStudio without any problem |
@DiegoBM Changing the startup project doesn't affect the build if you then select to build a particular project. The step to change the startup project is not needed. There seems to be an issue with project build order, though. Trying to get more logs to know why. |
It looks like package are still restoring. Could be a timing issue, might need to wait a while until it works? (don't think I had that recently, VS was restoring package before trying to build). |
You guys are correct in that it's not related to switching to Xenko, since I've just tried and switched immediately from a clean clone to Xenko, and building also triggers some errors. It must be a timing issue as you mentioned @xen2, is there any indicator that allows me to know that I can build? Since I wait until Visual Studio switches to "Ready" but that doesn't seem to be enough |
Also, does building or running current project (which should be Game Studio) works rather than Build Solution? |
If you mean clicking the Green Play button immediately after Visual Studio switches to ready, it does also fail from a clean clone (I have several of them, running multiple tests here hehe) |
I found the root issue: there is a resource contention to access the C++ linker (see error with link.exe in the log). Possible workarounds:
|
The likely culprit is |
Thank you @Kryptos-FR, I've found that if after opening a new clone I wait for like 5 or 6 minutes (even though it says "Ready", it seems to be doing a background live code analysis and the package manager seems to be working in the background as well even though there is no visual indication of it), it will display a few nuget errors and finally it will display a finished message. After that I seem to be able to build the default project without issues (beyond few warnings) Output from "Package Manager" section of the Output bar after 4-5 minutes (approx) of opening the project: Error occurred while restoring NuGet packages: The operation failed as details for project Xenko.Samples.Templates could not be loaded. In any case, since I can build, it's not a problem for me, I just want to save the frustration from other newcomers, since you have an amazing engine going on here and it would be sad to have people having wrong thoughts for small things like this, if that makes any sense. Thank you both for your help. |
Can you try again with latest master and reopen if you still have issues? |
@xen2 I tried again with similar results, 22 success and 80 failures on first build (there is improvement though), after giving it some time (to fetch dependencies I presume) it will just build normally. In any case I'll leave it closed and leave it to your judgement to decide the extent of this and whether or not is worth mentioning it in the build steps (maybe it's me the only person going through this?) |
Could you share the new log to see if the cl.exe/link.exe missing errors are gone at least? |
I sure can |
At the moment, build instructions as they are in the master branch won't successfully build.
If you follow the instructions from a clean clone, when opening Xenko.sln it will start on "Xenko.GameStudio" as startup project, so if you just build as indicated in the README, it will fail for most projects. You actually need to change the startup project to "Xenko", build that one, and then you'll be able to successfully build "Xenko.GameStudio"
The text was updated successfully, but these errors were encountered: