Open TheMaverickProgrammer opened 3 years ago
Thanks for the message!
This fails when initializing OpenGL: https://github.com/ArthurSonzogni/smk/blob/4e3adfa250a6a6e81eb222604ce4a76c37723560/src/smk/Window.cpp#L151
// setting the opengl version
#ifdef __EMSCRIPTEN__
glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3);
glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 0);
#else
glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3);
glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 2);
glfwWindowHint(GLFW_OPENGL_FORWARD_COMPAT, GL_TRUE);
glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE);
#endif
glfwWindowHint(GLFW_RESIZABLE, GL_TRUE);
glfwWindowHint(GLFW_SAMPLES, 4);
It might mean your graphic card do not support OpenGL >= 3.2.
If you are running on linux, what the output of:
glxinfo | grep OpenGL
Does it works now?
I have not checked on that machine yet. I got it working on my primary comp. I will revisit this soon! Also I realized I read the startup instructions from smk-starter
and not the smk
repo.
First of all, I'm really excited to begin using SMK. I come from SFML background and think that "SMK" makes more sense internally. No superfluous vec2u types, just use a glm::vec4 for color, all that stuff just makes more sense. Plus with the fact SFML maintainers don't seem to update the library to support stuff like web, gl es 2 for mobile, I'm glad to see someone has a similar API I can use in my projects!
However while I was able to compile the project, I was unable to run any of the examples
This is the error I keep getting, I installed the libs like it instructed. I get the AL lib error when trying to run the ./sound project.
BTW I'd update the readme to show
cd examples
and then run a program like./sprite
instead of what it shows know:./main
as I was confused at first I thought something went wrong,