[vtkusers] Compiling VTK 7.1 against OpenVR
Ken Martin
ken.martin at kitware.com
Fri Jan 6 16:16:31 EST 2017
OK I downloaded openvr 1.0.5 and made a couple more fixes. Just tested it
and it all builds and runs. I merged it into master so you should be able
to download an updated master and compile.
Thanks
Ken
On Fri, Jan 6, 2017 at 1:14 PM, Ken Martin <ken.martin at kitware.com> wrote:
> I just googled it, try what that guy did, I am probably on 1.0.4. I'll try
> 1.0.5 this weekend.
>
> https://github.com/ValveSoftware/openvr/issues/335
>
>
>
> On Fri, Jan 6, 2017 at 1:06 PM, Luis Vieira <luis.vieira at vektore.com>
> wrote:
>
>> Hi Ken,
>>
>>
>>
>> Error 175 error C2039: 'API_OpenGL' : is not a member of
>> 'vr' C:\VTK\VTK-7.1.0VR\Rendering\O
>> penVR\vtkOpenVRRenderWindow.cxx 670 1
>> vtkRenderingOpenVR
>>
>>
>>
>> Lines 670 and 672
>>
>>
>>
>> I had downloaded the packages following (https://blog.kitware.com/usi
>> ng-virtual-reality-devices-with-vtk/)
>>
>> https://github.com/ValveSoftware/openvr (*OpenVR SDK 1.0.5
>> <https://github.com/ValveSoftware/openvr/commit/9d48ccf90d709382a137de9bc429aab5f7cea5de>)*
>>
>> https://github.com/Kitware/VTK (*master branch of VTK from the VTK
>> respository <https://github.com/Kitware/VTK>* *on GitHub*)
>>
>>
>>
>> Please, see attached vtkOpenVRRenderWindow.
>>
>>
>>
>> Thank you,
>>
>>
>>
>> *Luis Vieira*,
>>
>> Consultant, Software Engineer
>>
>> Vektore Exploration Consulting Corporation
>>
>> ca.linkedin.com/in/joaoluisvieira
>>
>> luis.vieira at vektore.com
>>
>> www.vektore.com
>>
>>
>>
>> *From:* Ken Martin [mailto:ken.martin at kitware.com]
>> *Sent:* January 6, 2017 12:03 PM
>> *To:* Luis Vieira <luis.vieira at vektore.com>
>> *Cc:* VTK Users <vtkusers at vtk.org>
>> *Subject:* Re: [vtkusers] Compiling VTK 7.1 against OpenVR
>>
>>
>>
>> I'm not getting that error. With the diffs I posted it is compiling OK.
>> What SDK version are you using?
>>
>>
>>
>> On Fri, Jan 6, 2017 at 12:00 PM, Luis Vieira <luis.vieira at vektore.com>
>> wrote:
>>
>> Hi Ken,
>>
>>
>>
>> Have you figured out some update regarding the following error?
>>
>>
>>
>> Error 871 error C2039: 'API_OpenGL' : is not a member of
>> 'vr' C:\VTK\VTK-7.1.0VR\Rendering\OpenVR\vtkOpenVRCamera.cxx
>> 108 1 vtkRenderingOpenVR
>>
>> Thank you,
>>
>>
>>
>> *Luis Vieira*,
>>
>> Consultant, Software Engineer
>>
>> Vektore Exploration Consulting Corporation
>>
>> ca.linkedin.com/in/joaoluisvieira
>>
>> luis.vieira at vektore.com
>>
>> www.vektore.com
>>
>>
>>
>> *From:* Ken Martin [mailto:ken.martin at kitware.com]
>> *Sent:* January 4, 2017 5:11 PM
>> *To:* Luis Vieira <luis.vieira at vektore.com>
>> *Cc:* VTK Users <vtkusers at vtk.org>
>> *Subject:* Re: [vtkusers] Compiling VTK 7.1 against OpenVR
>>
>>
>>
>> Here are the diffs
>>
>>
>>
>> https://gitlab.kitware.com/vtk/vtk/merge_requests/2315/diffs
>>
>>
>>
>> Thanks
>>
>> Ken
>>
>>
>>
>> On Wed, Jan 4, 2017 at 12:59 PM, Luis Vieira <luis.vieira at vektore.com>
>> wrote:
>>
>> Hi Ken,
>>
>>
>>
>> I got some things regarding 'API_OpenGL' to TextureType_OpenGL within
>> OpenVR SDK. However, there are other issues related to vtkOpenVRCamera,
>> vtkOpenVRRenderWindow, vtkOpenVRRenderWindowInteractor
>>
>>
>>
>> I am looking forward to hearing from you soon.
>>
>>
>>
>> Tks,
>>
>>
>>
>> *Luis Vieira*,
>>
>> Consultant, Software Engineer
>>
>> Vektore Exploration Consulting Corporation
>>
>> ca.linkedin.com/in/joaoluisvieira
>>
>> luis.vieira at vektore.com
>>
>> www.vektore.com
>>
>>
>>
>> *From:* Ken Martin [mailto:ken.martin at kitware.com]
>> *Sent:* January 4, 2017 12:42 PM
>> *To:* Luis Vieira <luis.vieira at vektore.com>
>> *Cc:* VTK Users <vtkusers at vtk.org>
>> *Subject:* Re: [vtkusers] Compiling VTK 7.1 against OpenVR
>>
>>
>>
>> They changed the signature on a couple functions in a recent SDK update.
>> I have the changes at home and I'll push a topic soon to update it. If you
>> look at the OpenVR SDK header files you can see the new signature change,
>> it is a pretty easy fix. I'll try to remember to email the diffs tonight
>> when I get home.
>>
>>
>>
>> On Wed, Jan 4, 2017 at 12:25 PM, Luis Vieira <luis.vieira at vektore.com>
>> wrote:
>>
>> Hello vtkusers,
>>
>>
>>
>> I am trying to compile my VTK 7.1 against OpenVR following the
>> documentation: https://blog.kitware.com/using
>> -virtual-reality-devices-with-vtk/
>>
>> I got all modules SDL2 <https://wiki.libsdl.org/Installation>/ Oculus
>> Windows SDK <https://developer3.oculus.com/downloads/>/ OpenVR
>> <https://github.com/ValveSoftware/openvr> SDK and master branch of VTK
>> from the VTK respository <https://github.com/Kitware/VTK> . I had used
>> CMAKE 3.0 as usual to compile everything against Visual Studio 2013, as
>> well my VTK 7.0, VTK 6.3.
>>
>>
>>
>> The point is, every time I am trying do build the libraries by compiling
>> my VTK.sln within Visual Studio I got the following errors:
>>
>>
>>
>> Error 871 error C2039: 'API_OpenGL' : is not a member of
>> 'vr' C:\VTK\VTK-7.1.0VR\Rendering\OpenVR\vtkOpenVRCamera.cxx
>> 108 1 vtkRenderingOpenVR
>>
>> Error 883 error C2660: 'vr::IVRSystem::ComputeDistortion' :
>> function does not take 3 arguments C:\VTK\VTK-7.1.0VR\Rendering\O
>> penVR\vtkOpenVRRenderWindow.cxx 709 1
>> vtkRenderingOpenVR
>>
>>
>>
>> Error 886 error C2660: 'vr::IVRSystem::GetControllerState' :
>> function does not take 2 arguments C:\VTK\VTK-7.1.0VR\Rendering\O
>> penVR\vtkOpenVRRenderWindowInteractor.cxx 126
>> 1 vtkRenderingOpenVR
>>
>>
>>
>> Somebody knows what it means? I mean somebody have been struggling with
>> the same situation?
>>
>>
>>
>> Thank you for any help.
>>
>>
>>
>> *Luis Vieira*,
>>
>> Consultant, Software Engineer
>>
>> Vektore Exploration Consulting Corporation
>>
>> ca.linkedin.com/in/joaoluisvieira
>>
>> luis.vieira at vektore.com
>>
>> www.vektore.com
>>
>>
>>
>>
>> _______________________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Please keep messages on-topic and check the VTK FAQ at:
>> http://www.vtk.org/Wiki/VTK_FAQ
>>
>> Search the list archives at: http://markmail.org/search/?q=vtkusers
>>
>> Follow this link to subscribe/unsubscribe:
>> http://public.kitware.com/mailman/listinfo/vtkusers
>>
>>
>>
>>
>>
>> --
>>
>> Ken Martin PhD
>>
>> Chairman & CFO
>> Kitware Inc.
>> 28 Corporate Drive
>> Clifton Park NY 12065
>> 518 371 3971 <(518)%20371-3971>
>>
>>
>>
>> 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.
>>
>>
>>
>>
>>
>> --
>>
>> Ken Martin PhD
>>
>> Chairman & CFO
>> Kitware Inc.
>> 28 Corporate Drive
>> Clifton Park NY 12065
>> 518 371 3971 <(518)%20371-3971>
>>
>>
>>
>> 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.
>>
>>
>>
>>
>>
>> --
>>
>> Ken Martin PhD
>>
>> Chairman & CFO
>> Kitware Inc.
>> 28 Corporate Drive
>> Clifton Park NY 12065
>> 518 371 3971 <(518)%20371-3971>
>>
>>
>>
>> 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.
>>
>
>
>
> --
> Ken Martin PhD
> Chairman & CFO
> Kitware Inc.
> 28 Corporate Drive
> Clifton Park NY 12065
> 518 371 3971 <(518)%20371-3971>
>
> 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.
>
--
Ken Martin PhD
Chairman & CFO
Kitware Inc.
28 Corporate Drive
Clifton Park NY 12065
518 371 3971
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20170106/a108136f/attachment-0001.html>
More information about the vtkusers
mailing list