openglonmetal / MGL

OpenGL 4.6 on Metal
Apache License 2.0
781 stars 30 forks source link

Can't Build #7

Closed lbibass closed 2 years ago

lbibass commented 2 years ago

Trying to build on my Mac, M1 Max, Monterey 12.1.

I keep getting the error

MGL/include/glm_context.h:152:5: error: unknown type name 'uint'; did you mean 'int'?

When using xcodebuild, it succeeds, but I'm not sure it should.

error: unable to spawn process '/usr/bin/make' (No such file or directory) (in target 'SPIRV-Headers' from project 'MGL')

darkaegisagain commented 2 years ago

uint should work, I will change it to unsigned int which should conform to M1. I know it works with Xcode on 12.4e with Intel.

Mike

"The difference between communism and socialism is that under socialism central planning ends with a gun in your face, whereas under communism central planning begins with a gun in your face." ― Kevin D. Williamson

On Fri, Jan 14, 2022 at 12:39 PM Ev @.***> wrote:

Trying to build on my Mac, M1 Max, Monterey 12.1.

I keep getting the error

MGL/include/glm_context.h:152:5: error: unknown type name 'uint'; did you mean 'int'?```

— Reply to this email directly, view it on GitHub https://github.com/openglonmetal/MGL/issues/7, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACOKD346S5KSNLCIPNGE44LUWCCW3ANCNFSM5L7WZDKQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you are subscribed to this thread.Message ID: @.***>

lbibass commented 2 years ago

MGL/src/framebuffers.c:32:13: error: conflicting types for 'createTextureLevel' extern void createTextureLevel(GLMContext ctx, Texture tex, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void pixels);

Got a new problem here.

darkaegisagain commented 2 years ago

I found that today, fixing framebuffers (depth attachments)... I just copied the correct def to glm_context.h and deleted it from framebuffers.c

I can't see how this compiled on my local machine...

MIke

"The difference between communism and socialism is that under socialism central planning ends with a gun in your face, whereas under communism central planning begins with a gun in your face." ― Kevin D. Williamson

On Fri, Jan 14, 2022 at 5:59 PM Ev @.***> wrote:

MGL/src/framebuffers.c:32:13: error: conflicting types for 'createTextureLevel' extern void createTextureLevel(GLMContext ctx, Texture tex, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void pixels);

Got a new problem here.

— Reply to this email directly, view it on GitHub https://github.com/openglonmetal/MGL/issues/7#issuecomment-1013581567, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACOKD36TT25TVNWVUVGI2OTUWDIHFANCNFSM5L7WZDKQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you commented.Message ID: @.***>

darkaegisagain commented 2 years ago

Fixed, checked in a copy of frame buffer.c with the local def removed.