-
Notifications
You must be signed in to change notification settings - Fork 68
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
Irrlicht Visualizer not working in MacOS #1076
Comments
I tried to install |
Thanks for reporting the issue @lrapetti, @S-Dafarra do you have any idea on this? |
Just add something that was not documented, the problem observed for Windows in #1070 is[was] present also on MacOS |
Unfortunately, I did not have any MacOS machine to test with. The error is not very informative either. I checked online, at that error could appear for a multitude of reasons. At first, we can check if it is related to the detection of the inputs. Maybe you could try commenting these lines idyntree/src/visualization/src/Visualizer.cpp Lines 565 to 568 in 850b379
At that point mouse inputs will not work, but if that solves the issues, we might narrow down the problem. Other lines that could be commented are idyntree/src/visualization/src/Visualizer.cpp Line 458 in 850b379
Another thing to check would be to use SDL also on Mac. For that, you could try to change idyntree/src/visualization/src/Visualizer.cpp Line 474 in 850b379
to #if defined(_WIN32) || defined(__APPLE__)
|
Btw, does a Window appear, even just for a split second? |
Also, checking https://gist.github.com/v3n/27e810ac744b076ceeb7, maybe we are missing some lines: #ifdef __APPLE__
/* We need to explicitly ask for a 3.2 context on OS X */
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 These lines should be added immediately after idyntree/src/visualization/src/Visualizer.cpp Line 458 in 850b379
Maybe we also need to add #define GLFW_INCLUDE_GLCOREARB immediately after idyntree/src/visualization/src/Visualizer.cpp Lines 31 to 32 in 850b379
|
No Thanks for all the suggestions! I can try them myself and give you feedback |
This is, in some sense, nice since it may mean that is more related to the creation of a Window with |
I have just noticed also this warning message in cmake
Moreover, I have also this log message from the MacOS problem report, which seems to be more informatie
|
These lines seem interesting
The offending code seems to be in https://github.com/zaki/irrlicht/blob/master/source/Irrlicht/CIrrDeviceOSX.mm#L1199 I guess it has something to do with In any case, it seems to be happening in idyntree/src/visualization/src/Visualizer.cpp Line 518 in 850b379
|
I can set it up. |
Using SDL fixed the issue (last suggestion in #1076 (comment)). I will open a PR with the fix! Thanks a lot @S-Dafarra |
Great! |
The visualizer is no longer working in my machine after #1071.
e.g. if I try to run
idyntree-model-view
I get the followingThe text was updated successfully, but these errors were encountered: