Skip to content

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

@oscarbg

Description

@oscarbg

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..

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions