(2021-01-18, 08:06)Montellese Wrote: First of all you don't need the UWP features if you don't want to build Kodi for UWP.
Right, that's why I didn't install it. I mentioned it only to be clear that an installation that
did include it would be substantially larger, per the readme, than the VM disk size I reported.
Quote:The easiest solution would be to modify Windows to support paths longer than 260 characters, see e.g. https://www.howtogeek.com/266621/how-to-...haracters/.
Never heard of that new Windows feature! It's still not activated by default, and I expect this is a common failure mode for new Windows developers.
Quote:There are no restrictions on the folder structure where the Kodi repository is cloned from Git. You also don't have to put it under
C:\Users\xyz\
. I'm not sure why the README mentions this
I remember now the C:\k failure was in one of the first patch steps when compiling ffmpeg. It mentioned a path that started with /xbmc, and that got me thinking it might be a relative path problem. Anyway, I was wrong about that. I just set C:\k up again, and it's working now. No idea what went wrong before. Maybe I didn't notice a prior download failure.
Quote:And when running CMake you need to specify whether you want a 32-bit or 64-bit build using the
-T host=x64
arguments so that it can properly detect the matching Visual Studio build tools.
I see that "-T host=x64" is in the readme, but I didn't use CMake. Like I said, I used BuildSetup.bat to build the 64 bit Release and then Visual Studio to build the Debug. Surely people are switching to Visual Studio once the solution file has been created? Anyway, I didn't continue with the readme past "5. Build Kodi automagically" because while (5) talks about getting a Debug build out of BuildSetup.bat, it doesn't say how to do it, and looking into the .bat file, it didn't seem to have an option for this. Instead, I'd have to edit it to change the buildconfig variable. I stopped reading "6. Build Kodi manually" when I got to the line, "Create an out-of-source build directory," because I didn't know
why I'd want to do that. I just wanted the "stock" configuration, and it seemed to me that using Visual Studio was the way to get it. Indeed, building the "Kodi" project in VS got me the Debug directory alongside the Release directory in kodi-build mentioned in Step 5, and it's all working as expected now.
To summarize, as someone completely new to Kodi development, I would have found it helpful if the readme had mentioned the following.
- The Windows path length obstacle and fix.
- In "5. Build Kodi automagically", explain how you get it to make a Debug build.
- It would be good to explain why you would want to "Create an out-of-source build directory" in "6. Build Kodi manually" and describe the implications that has for working inside Visual Studio. If using CMake to create the Debug build in Step (6) obviates creating the "PreferredToolArchitecture=x64" environment variable so the linker can work for Debug builds, it would be good to mention you're supposed to use CMake instead of including it under a "Build manually" section, which I thought was optional.
- If the goal is to use the command line stuff to bootstrap working in Visual Studio, it could be more explicit about that and also include a section on how to use the generated solution file inside the IDE, e.g. which projects to select to do what.
- Is it possible to create an installer through Visual Studio? I haven't been able to figure out that. This ties into explaining how to use the solution file.