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

Unable to Create Window MacOS 13.6.7 #7

Open
JosiahBLB opened this issue Jun 24, 2024 · 4 comments
Open

Unable to Create Window MacOS 13.6.7 #7

JosiahBLB opened this issue Jun 24, 2024 · 4 comments

Comments

@JosiahBLB
Copy link

Description

The project built fine with only warnings about the deprecation of sprintf. However, I am not able to launch the demo application.

System

MacOS 13.6.7

Input

./build/src/Project/Project

Output

[error] Glfw: Unable to create window

Note to Developer

I know I haven't given you much information, but I am unsure as to what else I can provide as there were no additional error messages and the project built without errors. Please let me know if there is any additional information that you require.

Many thanks,
Josiah

@deccer
Copy link
Owner

deccer commented Jun 24, 2024

Hey, thanks for giving this thing a try.

I'm not really a fan of supporting MacOS because you are stuck in OpenGL 4.1 and can't really use anything useful, let alone are able to debug your stuff with proper tools. But.

Can you try this line instead of
glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_COMPAT_PROFILE); instead of
glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE);?

@deccer
Copy link
Owner

deccer commented Jun 24, 2024

Ah also with regards to sprintf. I believe spdlog is hooked up in this project, so that you can just do spdlog::error("Hello {}", "Josiah");

@JosiahBLB
Copy link
Author

Can you try this line instead of glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_COMPAT_PROFILE); instead of glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE);?

Changing that resulted in the same output.

I'm not really a fan of supporting MacOS because you are stuck in OpenGL 4.1 and can't really use anything useful, let alone are able to debug your stuff with proper tools. But.

I fully understand, I've had nothing but issues trying to get anything working. Unrelated but, what are my options if I wanted to develop a cross platform application? Would developing on a different system that supports later versions of OpenGL mean that I can no longer ship to MacOS?

Thanks for your help and quick response!

@deccer
Copy link
Owner

deccer commented Jun 25, 2024

If you hop onto our Graphics Programming discord https://discord.gg/6mgNGk7 we might have a better time to troubleshoot this...

WebGPU is pretty much your only "portable" choice when you want to involve macos. Otherwise there is more hassle involved for going with native Vulkan, which requires some MoltenVK-isms. With OpenGL you are really out of luck unless you keep targeting 4.1 at max, which is really not worth it IMHO.

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