You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After cloning the repo and submodules and installing all necessary dependencies, I was not able to build the project.
This was due to the fact that the build of cglm failed at 2 points:
minecraft-weekend/lib/cglm/src/vec4.c:127 at character 25 and 42.
At both points the compiler complained about wrong boundaries of the float[4] array [-Werror=array-parameter=].
I resolved the issue by changing the typedef of vec3[3] in lib/cglm/include/cglm/types.h at line 46 to vec3[4].
I assume that the error is caused by struct alignment inconsistencies however I would be grateful if somebody could explain what acutally happened and what the correct way of fixing it would be.
The text was updated successfully, but these errors were encountered:
Hello
After cloning the repo and submodules and installing all necessary dependencies, I was not able to build the project.
This was due to the fact that the build of cglm failed at 2 points:
minecraft-weekend/lib/cglm/src/vec4.c:127 at character 25 and 42.
At both points the compiler complained about wrong boundaries of the float[4] array [-Werror=array-parameter=].
I resolved the issue by changing the typedef of vec3[3] in lib/cglm/include/cglm/types.h at line 46 to vec3[4].
Before:
typedef float vec3[3];
After:
typedef float vec3[4];
I assume that the error is caused by struct alignment inconsistencies however I would be grateful if somebody could explain what acutally happened and what the correct way of fixing it would be.
The text was updated successfully, but these errors were encountered: