Open michbarsinai opened 9 years ago
This is fine for a workaround, but this is not a permanent solution. We need to figure out what the correct fix is with respect to the CMake infrastructure.
I tried to compile rviz indigo-devel against Ogre1.9 today and it still segfaulted away.
rosrun rviz rviz
[ INFO] [1423665723.109843000]: rviz version 1.11.4
[ INFO] [1423665723.109913000]: compiled against OGRE version 1.9.0 (Ghadamon)
[ INFO] [1423665723.543868000]: Stereo is NOT SUPPORTED
[ INFO] [1423665723.544019000]: OpenGl version: 2.1 (GLSL 1.2).
[2] 82336 segmentation fault rosrun rviz rviz
I thought the indigo-devel was supposed to work or should i have compiled against 1.74?
@jmtatsch some other people were able to get it working:
https://github.com/ros-visualization/rviz/issues/782#issuecomment-59715552
The above issue has a lot of information, unfortunately building it reliably on OS X is still an open issue.
Without a backtrace of the segfault, its hard to know what the root cause of the segfault is.
Here is a gist of the backtrace: https://gist.github.com/jmtatsch/2ad92d431ab5ea7f697c
@jmtatsch based on that, I would say it's a different crash. Can you open a new ticket? This one is about compiling not working based on library paths.
@jmtatsch I have the same error and stack trace as you reported (https://gist.github.com/jmtatsch/2ad92d431ab5ea7f697c). Did you ever discover the solution? I'm trying to run rviz on OS X 10.10.5 with the tip of ogre v1-9 branch. My rviz builds fine, ogre sample browser app runs correctly, but rviz segfaults with your stack trace just after rviz logo displays.
@matt-langston I don't remember what the issue was but you can have a look at my ros compilation gist https://gist.github.com/jmtatsch/3aa268d41ae40c89b35a Rviz has been running fine since then...
Thank you @jmtatsch.
Out of the box, rviz's script can't find ogre and assimp. I did make it build by adding the following lines to CMakeLists.txt:
This made it build, but I'm not sure it's a proper solution (especially not the first line).
Thanks @wjwwood or the guidance.