wolfpld / tracy

Frame profiler
https://tracy.nereid.pl/
Other
10.24k stars 691 forks source link

macOS 14.6.1 profiler build fails (errors in TracyTexture.cpp) #900

Closed vladvoina closed 1 month ago

vladvoina commented 1 month ago

Building the profiler with cmake on macOS 14.6.1 (MacOSX15.0.sdk), fails on latest master [44972019]

Errors:

/tracy/profiler/src/profiler/TracyTexture.cpp:47:69: error: use of undeclared identifier 'GL_LINEAR_MIPMAP_LINEAR'
   47 |     glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, zigzag ? GL_LINEAR_MIPMAP_LINEAR : GL_LINEAR );

/tracy/profiler/src/profiler/TracyTexture.cpp:49:37: error: use of undeclared identifier 'GL_TEXTURE_WRAP_S'
   49 |     glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, zigzag ? GL_REPEAT : GL_CLAMP_TO_EDGE );

/tracy/profiler/src/profiler/TracyTexture.cpp:49:65: error: use of undeclared identifier 'GL_REPEAT'
   49 |     glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, zigzag ? GL_REPEAT : GL_CLAMP_TO_EDGE );

[+ 3 other errors in TracyTexture.cpp]

I installed glfw 3.4 using brew.

Am I missing something? Thanks!

wolfpld commented 1 month ago

Does https://github.com/wolfpld/tracy/issues/895#issuecomment-2383470272 fix this for you?

vladvoina commented 1 month ago

Yesir I have a working build!

wolfpld commented 1 month ago

Added workaround in b46d8db5.