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

MacOS prebuilt binaries ospExamples demo fails in MacOS altough MacOS specific code is there.. #601

Open
oscarbg opened this issue Nov 17, 2024 · 1 comment
Labels

Comments

@oscarbg
Copy link

oscarbg commented Nov 17, 2024

Hi,

running prebuilt exmaple ospray:

./ospExamples

gets:

GLFW error 65543: NSGL: The targeted version of macOS does not support OpenGL 3.0 or 3.1 but may support 3.2 and above
libc++abi: terminating due to uncaught exception of type std::runtime_error: Failed to create GLFW window!

which is rare as

shows has specific code setting OpenGL 3.2 version for MacOS..

see:

#ifdef __APPLE_
  glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 2);
  glfwWindowHint(GLFW_OPENGL_FORWARD_COMPAT, GL_TRUE);
  const char *glslVersion = "#version 150";

maybe the builder on MacOS is not setting __APPLE_ somehow?
thanks..

@oscarbg oscarbg changed the title Macos prebuilt binaries ospExamples demo fails in MacOS altough MacOS specific code is there.. MacOS prebuilt binaries ospExamples demo fails in MacOS altough MacOS specific code is there.. Nov 17, 2024
@johguenther
Copy link
Contributor

Thanks for reporting! This is indeed a bug (typo: needs to read __APPLE__), will be fixed in the next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants