<!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /></head><body><div data-html-editor-font-wrapper="true" style="font-family: arial, sans-serif; font-size: 13px;"> <p>Dear Ken,<br>I finally managed to get my code building and running on both Windows and Linux.<br>You can find it here:<br><a target="_blank" rel="noopener noreferrer" href="https://transfer.sh/gJ1Sg/vtkOpenVRHelloWorld.zip">https://transfer.sh/gJ1Sg/vtkOpenVRHelloWorld.zip</a><br><br>Unfortunately, it doesn't work with the latest VTK-Version from <a target="_blank" rel="noopener noreferrer" href="https://gitlab.kitware.com/vtk/vtk">https://gitlab.kitware.com/<wbr></wbr>vtk/vtk</a><br>After some testing, I found the first commit it doesn't build with: <a target="_blank" rel="noopener noreferrer" href="https://gitlab.kitware.com/vtk/vtk/commit/61bc6b5b4b8f0d2d111f6c10af3dd79488f919cc">https://gitlab.kitware.com/vtk/vtk/commit/61bc6b5b4b8f0d2d111f6c10af3dd79488f919cc</a><br>(VTK builds, but my program doesn't build with this VTK Version)<br><br>Even though I already use the vtkOpenVR* classes explicitly, it doesn't build.<br>Is there something else I have to change to make it compatible?<br><br>Make produces the following Linker error:<br><br>[ 50%] Linking CXX executable vtkOpenVRHelloWorld<br>CMakeFiles/vtkOpenVRHelloWorld.dir/CylinderRenderingProperties.cxx.o: In function `vtkRenderingOpenGL2_AutoInit::vtkRenderingOpenGL2_AutoInit()':<br>/media/max/home/max/build-vtk-current-master-Desktop_Qt_5_11_2_GCC_64bit-Default/Rendering/OpenGL2/vtkRenderingOpenGL2Module.h:47: undefined reference to `vtkRenderingOpenVR_AutoInit_Construct()'<br>CMakeFiles/vtkOpenVRHelloWorld.dir/CylinderRenderingProperties.cxx.o: In function `vtkRenderingOpenGL2_AutoInit::~vtkRenderingOpenGL2_AutoInit()':<br>/media/max/home/max/build-vtk-current-master-Desktop_Qt_5_11_2_GCC_64bit-Default/Rendering/OpenGL2/vtkRenderingOpenGL2Module.h:47: undefined reference to `vtkRenderingOpenVR_AutoInit_Destruct()'<br><br>Any help would be appreciated!<br><br>Best regards,<br>Max.D.<br><br><br>4. Oktober 2018 16:10, "Ken Martin" <<a target="_blank" tabindex="-1" href="mailto:ken.martin@kitware.com?to=%22Ken%20Martin%22%20<ken.martin@kitware.com>">ken.martin@kitware.com</a>> schrieb:</p> <blockquote><div><div> <div dir="ltr"> <div>You need to create an use an OpenVRCamera. From your code it doesn't look like you are. I doubt that is the crash but it could be.</div> <div></div> <div>Does the example work on windows? Since linux is an unknown I would think it would be best to make sure you have something working on windows, then port to linux.</div> </div> <div> <div>On Thu, Oct 4, 2018 at 9:56 AM, <span dir="ltr"><<a target="_blank" rel="external nofollow noopener noreferrer" tabindex="-1" href="mailto:deubel@dornheim-medical-images.com">deubel@dornheim-medical-images.com</a>></span> wrote:<br><br> <blockquote style="margin: 0 0 0 .8ex;border-left: 1px #ccc solid;padding-left: 1ex"> <div><div style="font-family: arial,sans-serif;font-size: 13px">Hey Guys,<br>Has anyone of you been able to use the vtkOpenVR classes on Linux?<br>I can run Steam with SteamVR on a Ubuntu 18.04 system, but when I try to run the HelloWorld Example of VTK modified for VR, I encounter a segmentation fault.<br>You can find the code I used here: <a target="_blank" rel="external nofollow noopener noreferrer" tabindex="-1" href="https://pastebin.com/gjsvKy58">https://pastebin.com/gjsvKy58</a><br>The whole project with binary and core dump can be found here: <a target="_blank" rel="external nofollow noopener noreferrer" tabindex="-1" href="https://transfer.sh/6vONY/build.zip">https://transfer.sh/6vONY/<wbr></wbr>build.zip</a><br><br>Do you have any suggestions on how to get this working?<br><br>Thanks in advance!<br><br>Best regards,<br>Max.Deubel</div></div> <br>______________________________<wbr></wbr>_________________<br>Powered by <a rel="external nofollow noopener noreferrer" target="_blank" tabindex="-1" href="http://www.kitware.com">www.kitware.com</a><br><br>Visit other Kitware open-source projects at <a rel="external nofollow noopener noreferrer" target="_blank" tabindex="-1" href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/<wbr></wbr>opensource/opensource.html</a><br><br>Please keep messages on-topic and check the VTK FAQ at: <a rel="external nofollow noopener noreferrer" target="_blank" tabindex="-1" href="http://www.vtk.org/Wiki/VTK_FAQ">http://www.vtk.org/Wiki/VTK_<wbr></wbr>FAQ</a><br><br>Search the list archives at: <a rel="external nofollow noopener noreferrer" target="_blank" tabindex="-1" href="http://markmail.org/search/?q=vtkusers">http://markmail.org/search/?q=<wbr></wbr>vtkusers</a><br><br>Follow this link to subscribe/unsubscribe:<br><a rel="external nofollow noopener noreferrer" target="_blank" tabindex="-1" href="https://public.kitware.com/mailman/listinfo/vtkusers">https://public.kitware.com/<wbr></wbr>mailman/listinfo/vtkusers</a><br> </blockquote> </div> <br><br clear="all"><br>--<div data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>Ken Martin PhD<div>Distinguished Engineer<br><span style="font-size: 12.8px">Kitware Inc.</span> </div> <div>101 East Weaver Street<br>Carrboro, North Carolina<br>27510 USA<br> <div><span style="font-size: 10pt;font-family: Tahoma,sans-serif">This communication, including all attachments, contains confidential and legally privileged information, and it is intended only for the use of the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken in reliance on it is prohibited and may be unlawful. If you received this communication in error please notify us immediately and destroy the original message. Thank you.</span></div> </div> </div></div></div></div></div> </div> </div></div></blockquote> <br><br><signature></signature> </div></body></html>