SirNate0 / U3D-Doxygened-Lua-Bindings

Automatic Binding Generator using Doxygen, Python, and Sol3
MIT License
1 stars 1 forks source link

Building on Windows #1

Open lucasvinbr opened 1 year ago

lucasvinbr commented 1 year ago

After setting up the symlinks, I've successfully built and run the project on Linux, but I've run into some issues when building with visual studio on Windows:

Thanks!

SirNate0 commented 1 year ago

Thank you for attempting to build it for Windows.

  1. It seems to me that just enabling /bigobj might be better. I believe Microsoft does the same for UWP apps because their template heavy code also exceeds the limit.
  2. Yes, it can be added to the binding generator.
  3. I think your final point is probably the answer, though I've only looked at a single function. I believe the issue comes down to this line (below), though the error message isn't very clear and points to the end of the lambda instead of the beginning. I think it's probably because there is a default argument before the sol::this_state argument (that has no default). Possibly the presence of the default argument at all. In any case, I think removing the default arguments should be doable and advisable.

https://github.com/SirNate0/U3D-Doxygened-Lua-Bindings/blob/4929104893196c05c5b6cfbbb5b30133bd97306f/generator/generated/Graphics/BindCustomGeometry.cpp#L117

lucasvinbr commented 11 months ago

Alright, I've finally got it to build on Windows! I removed the default arguments, added /bigobj, and then had to add skipping of members with no name, because BindShaderParameter was being generated with 2 empty member variables (I think it was because of the "union" keyword being used there?). Would it be interesting to add these changes as a PR?

SirNate0 commented 11 months ago

I'd appreciate that, please do.