Skip to content
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

Build fails on macOS with Xcode 15 #19

Closed
fxcoudert opened this issue Sep 16, 2023 · 2 comments
Closed

Build fails on macOS with Xcode 15 #19

fxcoudert opened this issue Sep 16, 2023 · 2 comments

Comments

@fxcoudert
Copy link

Build fails on recent macOS (with Xcode 15):

  src/drawgl.c:215:3: error: call to undeclared function 'gluBuild2DMipmaps'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
                  gluBuild2DMipmaps(GL_TEXTURE_2D, GL_ALPHA, gmap->xsz, gmap->ysz, GL_ALPHA, GL_UNSIGNED_BYTE, gmap->pixels);
                  ^
  1 error generated.
  make: *** [src/drawgl.o] Error 1

I think it is missing the right header?

@jtsiomb
Copy link
Owner

jtsiomb commented Sep 16, 2023

Try adding #include <OpenGL/glu.h> right after #include <OpenGL/gl.h> in src/drawgl.c. Does it solve the problem?

@jtsiomb
Copy link
Owner

jtsiomb commented Sep 17, 2023

Nevermind, I've set up an automated build for macosx to see for myself, and fixed this along with a couple of other issues like the example programs not compiling on macos. Feel free to reopen if you continue to have problems with this.

@jtsiomb jtsiomb closed this as completed Sep 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants